2023 Apr 17 9:25 AM
method IF_EX_ME_GUI_PO_CUST~TRANSPORT_FROM_DYNP.
CASE im_name.
WHEN subscreen1.
CALL FUNCTION 'ZMEPOBADIEX_POP'
IMPORTING
ex_dynp_data = dynp_data_pai.
IF dynp_data_pai NE dynp_data_pbo.
* something has changed therefore we have to notify the framework
* to transport data to the model
re_changed = mmpur_yes.
ENDIF.
WHEN OTHERS.
ENDCASE.
endmethod.
We have added a Custom Tab in PO Header with 3 Checkbox fields .
Below link was used as Reference :
https://vdocuments.mx/how-to-create-customer-screen-on-me21n.html
Only change was that we didn't use the EBELP field as PO Item Number was not required . It is showing correctly in ME22N or ME23N , only problem it is not taking any Input from the screen , if we try ME22N and save it pop up comes up "No Data Changed".
Any suggestions will be much appreciated.
2023 Apr 17 12:49 PM
Both old Customer Exits and methods of BAdI (ME_GUI_PO_CUST) contain a parameter to inform main program that some fields were changed (e.g E_CI_UPDATE or RE_CHANGED) and code to move values from Customer Dynpro to Main Program. Seems you forgot one of those?
2023 Apr 17 2:11 PM
Added the code where I have passed the RE_CHANGED value , problem is in the DYNP_DATA_PAI structure the values are not coming from the screen.
2023 Apr 17 2:35 PM
Check the PAI logic of your dynpro, it should pass the data to the function group of FM ZMEPOBADIEX_POP.
NB: In sample provided by SAP a structure (MEPO_BADI_STRUCT) is defined with statement TABLES in the TOP include of the dynpro function Group (MEPOBADIEX) and the fields of the dynpro use this structure so implicit update of the global data of the FG.
2023 Apr 18 9:18 AM
Added the TABLE in the TOP , also I have the Table structure created in the system.
Still not taking the input from the screen.
2023 Apr 18 1:56 PM
Hiw did you define the fields in the dynpro, I hope you used the TABLES referenced structure, look also in online help or your abap course for Data Transport at PAI Time.
2023 Apr 19 9:35 AM
ZST_EKKODB structure is having the 3 checkbox fields.
2023 Apr 19 9:41 AM
2023 Apr 19 11:59 AM
PROCESS BEFORE OUTPUT.
* MODULE STATUS_0100.
MODULE event_pbo.
PROCESS AFTER INPUT.
MODULE event_pai.
*