Paste the code you have written in PA event. because your XML code is fine.
Re: how to display the chart container after i press a button?
Re: How to display a dynamic Row Count in ALV?
Hi Aviad,
Yes it was a typo mistake...
I hope it helped to achieve your functionality
Interactive alv report for tcode
Hello experts,
I have developed following report. Now I want to make it interactive to generate t-code 'MMBE' . Please suggest changes.
*&---------------------------------------------------------------------*
*& REPORT Z_MAT_VALUE
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT Z_MAT_VALUE.
TYPE-POOLS.
TABLES : MBEW,MARA,T023T.
TYPES :
BEGIN OF TY_MARA,
MATNR TYPE MARA-MATNR,
MATKL TYPE MARA-MATKL,
MTART TYPE MARA-MTART,
END OF TY_MARA,
BEGIN OF TY_MBEW,
MATNR TYPE MBEW-MATNR, "
BKLAS TYPE MBEW-BKLAS,
LBKUM TYPE MBEW-LBKUM,
SALK3 TYPE MBEW-SALK3,
END OF TY_MBEW,
BEGIN OF TY_T023T,
MATKL TYPE T023T-MATKL,
WGBEZ TYPE T023T-WGBEZ,
END OF TY_T023T,
BEGIN OF TY_T025T,
BKLAS TYPE T025T-BKLAS,
BKBEZ TYPE T025T-BKBEZ,
END OF TY_T025T,
BEGIN OF TY_MAKT,
MATNR TYPE MAKT-MATNR,
MAKTX TYPE MAKT-MAKTX,
END OF TY_MAKT,
BEGIN OF TY_TOTAL,
MATNR TYPE MARA-MATNR, "
BKLAS TYPE MBEW-BKLAS,
LBKUM TYPE MBEW-LBKUM,
SALK3 TYPE MBEW-SALK3,
MAKTX TYPE MAKT-MAKTX,
MATKL TYPE MARA-MATKL,
WGBEZ TYPE T023T-WGBEZ,
RATE TYPE MBEW-STPRS,
BKBEZ TYPE T025T-BKBEZ,
END OF TY_TOTAL.
DATA :
IT_MARA TYPE STANDARD TABLE OF TY_MARA,
WA_MARA TYPE TY_MARA,
IT_MBEW TYPE STANDARD TABLE OF TY_MBEW,
WA_MBEW TYPE TY_MBEW,
IT_T023T TYPE STANDARD TABLE OF TY_T023T,
WA_T023T TYPE TY_T023T,
IT_T025T TYPE STANDARD TABLE OF TY_T025T,
WA_T025T TYPE TY_T025T,
IT_MAKT TYPE STANDARD TABLE OF TY_MAKT,
WA_MAKT TYPE TY_MAKT,
IT_TOTAL TYPE STANDARD TABLE OF TY_TOTAL,
WA_TOTAL TYPE TY_TOTAL,
IT_SORT TYPE SLIS_T_SORTINFO_ALV,
WA_SORT TYPE SLIS_SORTINFO_ALV,
IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
FS_LAYOUT TYPE SLIS_LAYOUT_ALV.
*SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
*SELECT-OPTIONS : SO_MATNR FOR WA_MARA-MATNR,
* SO_MATKL FOR WA_MARA-MATKL.
*SELECTION-SCREEN END OF BLOCK B2.
START-OF-SELECTION.
SELECT MATNR MATKL MTART INTO TABLE IT_MARA FROM MARA WHERE MTART <> 'UNBW'." WHERE MATNR IN SO_MATNR AND MATKL IN SO_MATKL .
SELECT MATNR
BKLAS
LBKUM
SALK3 INTO TABLE IT_MBEW FROM MBEW FOR ALL ENTRIES IN IT_MARA WHERE MATNR = IT_MARA-MATNR.
SELECT BKLAS
BKBEZ
INTO TABLE IT_T025T FROM T025T FOR ALL ENTRIES IN IT_MBEW WHERE BKLAS = IT_MBEW-BKLAS.
SELECT
MATKL
WGBEZ INTO TABLE IT_T023T FROM T023T FOR ALL ENTRIES IN IT_MARA WHERE MATKL = IT_MARA-MATKL.
SELECT
MATNR MAKTX INTO TABLE IT_MAKT FROM MAKT FOR ALL ENTRIES IN IT_MARA WHERE MATNR = IT_MARA-MATNR.
END-OF-SELECTION.
LOOP AT IT_MARA INTO WA_MARA.
* LOOP AT IT_MBEW INTO WA_MBEW WHERE MATNR = WA_MARA-MATNR.
READ TABLE IT_MBEW INTO WA_MBEW WITH KEY MATNR = WA_MARA-MATNR.
READ TABLE IT_T023T INTO WA_T023T WITH KEY MATKL = WA_MARA-MATKL.
READ TABLE IT_T025T INTO WA_T025T WITH KEY BKLAS = WA_MBEW-BKLAS.
READ TABLE IT_MAKT INTO WA_MAKT WITH KEY MATNR = WA_MARA-MATNR.
IF WA_MARA-MATNR+0(1) EQ 'C'.
WA_TOTAL-MATNR = WA_MARA-MATNR.
SHIFT WA_TOTAL-MATNR LEFT DELETING LEADING '0'.
WA_TOTAL-BKBEZ = WA_T025T-BKBEZ.
WA_TOTAL-MAKTX = WA_MAKT-MAKTX.
WA_TOTAL-MATKL = WA_MARA-MATKL.
WA_TOTAL-WGBEZ = WA_T023T-WGBEZ.
WA_TOTAL-BKLAS = WA_MBEW-BKLAS.
WA_TOTAL-LBKUM = WA_MBEW-LBKUM.
WA_TOTAL-RATE = ( WA_MBEW-SALK3 / WA_MBEW-LBKUM ) .
WA_TOTAL-SALK3 = WA_MBEW-SALK3.
APPEND WA_TOTAL TO IT_TOTAL .
CLEAR WA_TOTAL.
ENDIF.
* ENDLOOP.
ENDLOOP.
DELETE IT_TOTAL WHERE LBKUM EQ 0.
PERFORM IT_FIELDCAT USING 'MATNR' 'MATERIAL CODE' 'MARA' '' .
PERFORM IT_FIELDCAT USING 'MAKTX' 'MAT DESC' 'MAKT' '' .
PERFORM IT_FIELDCAT USING 'MATKL' 'MAT GROUP' 'MARA' '' .
PERFORM IT_FIELDCAT USING 'WGBEZ' 'MAT GROUP DESC' 'T023T' '' .
PERFORM IT_FIELDCAT USING 'BKLAS' 'VALUATION CLASS' 'MBEW' '' .
PERFORM IT_FIELDCAT USING 'BKBEZ' 'DESC' 'MBEW' '' .
PERFORM IT_FIELDCAT USING 'LBKUM' 'TOTAL STOCK' 'MBEW' 'C500' .
PERFORM IT_FIELDCAT USING 'RATE' 'RATE' 'MBEW' 'C700' .
PERFORM IT_FIELDCAT USING 'SALK3' 'TOTAL VALUE' 'MBEW' 'C500' .
* PERFORM IT_FIELDCAT USING 'STPRS' 'RATE' 'MBEW' '10' '' .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER = ' '
* I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = SY-REPID
* I_CALLBACK_PF_STATUS_SET = ' '
* I_CALLBACK_USER_COMMAND = ' '
* I_CALLBACK_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
* I_STRUCTURE_NAME =
* I_BACKGROUND_ID = ' '
* I_GRID_TITLE =
* I_GRID_SETTINGS =
IS_LAYOUT = FS_LAYOUT
IT_FIELDCAT = IT_FIELDCAT
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
IT_SORT = IT_SORT
* IT_FILTER =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
I_SAVE = 'A'
* IS_VARIANT =
* IT_EVENTS =
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* I_HTML_HEIGHT_TOP = 0
* I_HTML_HEIGHT_END = 0
* IT_ALV_GRAPHICS =
* IT_HYPERLINK =
* IT_ADD_FIELDCAT =
* IT_EXCEPT_QINFO =
* IR_SALV_FULLSCREEN_ADAPTER =
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = IT_TOTAL
* EXCEPTIONS
* PROGRAM_ERROR = 1
* OTHERS = 2
.
IF SY-SUBRC <> 0.
* IMPLEMENT SUITABLE ERROR HANDLING HERE
ENDIF.
*&---------------------------------------------------------------------*
*& FORM IT_FIELDCAT
*&---------------------------------------------------------------------*
* TEXT
*----------------------------------------------------------------------*
* -->P_0361 TEXT
* -->P_0362 TEXT
* -->P_0363 TEXT
* -->P_0364 TEXT
* -->P_0365 TEXT
*----------------------------------------------------------------------*
FORM IT_FIELDCAT USING VALUE(P_0361)
VALUE(P_0362)
VALUE(P_0363)
VALUE(P_0364)
.
WA_FIELDCAT-FIELDNAME = P_0361.
WA_FIELDCAT-SELTEXT_L = P_0362.
WA_FIELDCAT-TABNAME = P_0363.
WA_FIELDCAT-EMPHASIZE = P_0364.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
ENDFORM. " IT_FIELDCAT
Re: Drop Down Default on select values in ALV container Screen
One more Solution,
after Changing drop down user have to press enter then enter event trigger and make a loop on internal table manipulate as per your need
i.e.
loop at lt_trans into wa_trans.
IF wa_trans-freight_nature = 'SECONDARY' AND wa_trans-nat_of_dispatch = 'LOCAL'.
wa_trans-stage1 = 'STAGE 1'.
endif.
enloop.
*note use field symbol instead of work area.
Material collect from Web:-
In order to make the system react to an edit event, we need to firstregister the edit event.
To register the edit event, call the methodREGISTER_EDIT_EVENT
CALL METHOD cont_editalvgd -> register_edit_event
Exporting
{}I_event_id = cl_gui_alv_grid => mc_evt_modified.
When user press 'ENTER' the event MC_EVT_ENTER is triggered which automatically sets the variable M_cell_edit to 'X'.
But if the user bypasses the enter key then the variable M_CELL_EDIT has to be set explicitly which is done by passingmc_evt_modifiedto the exporting parameter I_EVENT_ID instead ofmc_evt_enter.
In the PAI event, call the methodCHECK_CHANGED_DATA. This method automatically triggers thedata_changedevent.
By default, SAP recognizes 'ENTER' event.When only the CHECK_CHANGED_DATA is called in PAI event, then the 'ENTER' event is not recognized by the system.In order to have both the events recognized by the system, we need to register the edit event.
Re: Not Able to create DBCONNECT
Hi Aditya
Could you refer the SAP KBA 1543702 for Error message "error 1326 could not establish connection"
Regards
SS
Adding a new custom field in Customer master and replicating to standard field in ECC
Hi Folks,
I want to create a new Z-field in Address data of customer master in crm webui.
Label of the field should be say "xxxxxx",but in actual it refers to External address number field in Address tab of customer master in SAP GUI screen.
How can I achieve this.Where should I make a setting?
I can create a Z-field but how can I say it refers to External address number field?
Pls suggest
Regards
Jayalakshmi.
Re: SAP B1 upgrading problems with apps using DI Server from 8.82 to 9.1
Hi Eric,
from 8.82 PL05
Re: How does HANA resolve input parameters in calculation views executed in the SQL Engine?
Well "the recommendation" is a bit too official - it's just what I think
But other than that: yep!
Change entry from pahi table
If I Remove all single digit entries from Systemid entry of pahi table .
What will be the impact.
Re: Steps to follow to migrate all datas from existing Company Code to new Company code
Download the data for the company & related objects into spreadsheets. Then change the company code to the new one. However I would recommend starting the new company from a suitable future date and not delete the old company.
You can use LSMW with the appropriate transaction code/s for each object using the spreadsheet/s saved as .txt files.
Re: running generated odata in the app
In place of this.
resourceBundle : "i18n/messageBundle.properties",
serviceConfig : {
name: "ZE2E_CUST_INFO_KY_SRV",
serviceUrl: "/sap/opu/odata/sap/ZE2E_CUST_INFO_KY_SRV/"
}};
Write full path of that URL.
resourceBundle : "i18n/messageBundle.properties",
serviceConfig : {
name: "ZE2E_CUST_INFO_KY_SRV",
serviceUrl: "http://hostname:port/sap/opu/odata/sap/ZE2E_CUST_INFO_KY_SRV/"
}};
Also you can use proxy for it.If you are running it in localhost
resourceBundle : "i18n/messageBundle.properties",
serviceConfig : {
name: "ZE2E_CUST_INFO_KY_SRV",
serviceUrl: "proxy/http/hostname:port/sap/opu/odata/sap/ZE2E_CUST_INFO_KY_SRV/"
}};
Re: by on click i need to change the button text dynamically
This really isn't the correct approach... where is the M in MVC?
Have a look at the example Dennis created below. It is much easier to understand, much more stateful, and requires way less code
Re: Single Step Task is triggering but suddenly not executing next Step NOt BAPI for creation froforma invoice
Hello
Can you post the SM58 errors .
Is this issue only with a particular workflow or all workflows. Also check if WF-BATCH is locked in SU01.
Regards
sandy
Parameter containing a user ID is missing: neither user nor user alias nor external ID nor SSO ticket nor X.509 certificate is specified
Re: Message mapping using system variables
Hi Mark,
I don't really understand. Are you saying I can do this without any coding?
On the ESB I should have a mapping? How should this look: DEV - USR01, QAS - USR02, PRD - USR03. And then in IB?
Re: Hi all, I Have once isuues in web i
Select the options Multiple SQL statements for each context and Multiple SQL statements for each measure in the universe. Check the objects are same in the combined query if you have used in the webi query.
Amit
Re: S&DP administartion-configuring POS
Thank you Rahul..
Re: Company Databases not showing on one of our laptop user.
Hi Amol,
Kindly follow the below steps
1.Login the laptop with Manager ID
2.Go to Local Disk C-->Users-->Admin-->App Data-->SAP
Note: App data is a hidden folder, So enable the hidden files.
3.Now Copy all the files under the SAP folder and paste it in any other location.
4.Again open Local Disk C-->Users-->Admin-->App Data-->SAP
and delete all the files.
5.Now Login the Laptop in Admin user and check whether SAP is showing the DB name, if not Paste all the file in SAP folder which you have deleted before.
Regards,
BHARATHIRAJA
Initial RM Stock Upload on Price Control "S"
Dear Sir
I am on the edge of a project where the Go-live is delayed by 3 months, I am from India Posting period in MMRV is 12/2014, and I need to upload the closing stock on 31.3.2014. I am getting an error for "No Standard cost estimate for Material abc in Plant xyz" during the stock Upload, My price control is "S" for RM, As my client globally us procuring item on Price Control "S" and do not want to go with price control "V". Pls can you guide me how to escape this error while Uploading my Initial Stock, I have already Uploaded Price via MR21 on 31.03.2014. Once stock is Uploaded I will open the posting period.
Regards
Nishant Singh
SAP techno-functional Consultant
Re: SUM SPS15 PREP_INPUT/INSTANCELIST_PRE! error
Hi Albert,
- You need to check the profiles properly. If you have maintained one parameter twice in the instance profile , then you receive this type of error.
- If two parameters point to the same location , also cause the issue.
- Also remove the extra space from the profiles if it is exists.
Kindly paste the logs for instancelist_pre phase logs.
With Regards
Ashutosh Chaturvedi