2015 May 12 4:49 AM
Hi Experts,
I have created a custom tab in PO header by using ME_GUI_PO_CUST.I can see my fields on the PO header.But data entered in this screen is not getting saved.I am getting message like 'NO data changed'.
I have implemented the following methods of ME_GUI_PO_CUST.
SUBSCRIBE
MAP_DYNPRO_FIELDS
TRANSPORT_FROM_MODEL
TRANSPORT_TO_DYNP
TRANSPORT_FROM_DYNP
TRANSPORT_TO_MODEL
Still I am not able to save the data to ekko table.
Kindly anyone advise how to save the data to ekko table.
Do I need to implement any method of ME_PROCESS_PO_CUST?
Thanks & Regards,
Anusha
2015 May 12 5:56 AM
Hi,
Check this class CL_EXM_IM_ME_GUI_PO_CUST which has sample Implementation for the said BADI.
Also check if the implemented methods are being called in the debugger and the BADI implementation is Active.
Hope this helps.
2015 May 12 6:32 AM
2015 May 12 6:56 AM
2015 May 12 7:05 AM
Hi Everyone,
Thank you for your replies.
DATA: l_header TYPE REF TO if_purchase_order_mm,
ls_mepoheader TYPE mepoheader,
ls_customer TYPE CI_EKKODB,
l_po_header_handle TYPE REF TO cl_po_header_handle_mm.
*--------------------------------------------------------------------*
* data have to be transported to business logic
*--------------------------------------------------------------------*
CASE im_name.
WHEN subscreen1.
* is it an item? im_model can be header or item.
mmpur_dynamic_cast l_header im_model.
CHECK NOT l_header IS INITIAL.
ls_mepoheader = l_header->get_data( ).
* standard fields changed?
IF dynp_data_pbo-zauto_send NE dynp_data_pai-zauto_send .
* update standard fields
ls_mepoheader-zauto_send = dynp_data_pai-zauto_send.
CALL METHOD l_header->set_data
EXPORTING
im_data = ls_mepoheader.
CALL METHOD l_header->set_changed( ).
ENDIF.
WHEN OTHERS.
ENDCASE.
2015 May 12 7:52 AM
2015 May 12 8:34 AM
I have associated the subscreen1 in subscribe method.I have checked the data is clearing before coming to transport_to_model method.
Thanks,
Anusha.B
2015 May 12 8:37 AM
2015 May 12 8:42 AM
I clicked on save in me22n but it is not saved.dynp_data_pai is the attribute of implemented class.
Regards,
Anusha
2015 May 12 8:55 AM
2015 May 12 8:57 AM
2015 May 12 9:02 AM
I have created the 2 FM's in the function grp.I have called these FM'S inside the BADI. Do I need to call these function modules in screen flow logic?
Regards,
Anusha.B
2015 May 12 9:20 AM
In a "classic" solution (be it exit or BAPI) you have two FM in the FG of the dynpro, one called before PBO and one after PAI, that exchange data beween implementing class and function group. In the PAI of the screen you store the data in the global data of function, group (TOP include) where the post-PAI FM will get acces to it.
-> So in debug, insure the screen data is saved, that the FM are called in correct sequence and data correctly exchanged between implementing class and container program of the dynpro.
Regards,
Raymond
2015 May 13 4:19 AM
Hi ,
Along with the FM's one for PAI and PBI.DO i need to create any other function module to stop clearing of the data.
Thanks,
Anusha
2015 Sep 10 8:02 AM
2015 Sep 10 7:48 AM