Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

PO Header Custom tab Z field Input Problem

0 Kudos
733
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.

8 REPLIES 8

raymond_giuseppi
Active Contributor
0 Kudos
606

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?

0 Kudos
606

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.

0 Kudos
606

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.

0 Kudos
606

Added the TABLE in the TOP , also I have the Table structure created in the system.

Still not taking the input from the screen.

0 Kudos
606

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.

0 Kudos
606

ZST_EKKODB structure is having the 3 checkbox fields.

0 Kudos
606

Could you also post the Flow logic

0 Kudos
606
PROCESS BEFORE OUTPUT.
* MODULE STATUS_0100.
MODULE event_pbo.
PROCESS AFTER INPUT.
MODULE event_pai.
*

* MODULE USER_COMMAND_0100.