‎2013 Dec 02 9:06 PM
Hello Experts,
I have created a new custom tab at item level in ME21N/22N/23N using ME_GUI_PO_CUST and ME_PROCESS_PO_CUST badis.
But this tab has to be activated for only specific condition. The condition has to be checked based on header data in LFM1 table.
Usually in ME_GUI_PO_CUST BADI, in subscribe method we activate the tab but I am unable to retrieve header data in the method.
So, can anyone help me out on which method do we need to handle and how to do this?
Appreciate your inputs.
Thanks!
Sandy.
‎2013 Dec 02 11:45 PM
Hi,
Get the header data from the badi which trigger before ME_GUI_PO_CUST and store that as singleton class attribute, then get those values in ME_GUI_PO_CUST from singleton class.
Regards,
Sreenivas.
‎2013 Dec 03 2:16 AM
Hi,
Try Exporting the header data in the exit and Importing in the BADI's ( ME_GUI_PO_CUST BADI ) Subscribe method.
See if it works.
BR.
‎2013 Dec 03 2:34 AM
hi Sandeep,
Maybe you can use this BADI, 'ME_CHECK_ALL_ITEMS', when check the header data, you export the LFM1 data to memory, then, in ME_GUI_PO_CUST, you can import those data to judgement.
Regards,
Archer
‎2013 Dec 03 5:05 AM
Hi All,
Thanks all for your replies.
When I tried to retrieve the Header and item data in FIELDSELECTION_ITEM method of ME_PROCESS_PO_CUST and checked the condition, it is working fine.
So, I believe this should work fine.
Thanks!
Venkat