Application Development and Automation 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: 
Read only

Deactivate custom tab

Former Member
0 Likes
633

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.

4 REPLIES 4
Read only

former_member219762
Contributor
0 Likes
566

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.

Read only

Former Member
0 Likes
566

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.

Read only

Former Member
0 Likes
566

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

Read only

Former Member
0 Likes
566

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