Skip to Content
0
Former Member
Mar 07, 2011 at 12:45 PM

MB_MIGO_BADI problem with i_line_id

116 Views

Hi all,

I've added a new Tab in MIGO using the badi MB_MIGO_BADI. This tab should only be displayed for lines with the EBELN field filled.

In creation or modification mode is working fine, but i'm having problems with Visualization mode (A04).

I have an attribute in the class as table with all the lines called gt_extdata, I'm filling this table in the method LINE_MODIFY. In this method i have all what i need.

The problem is that in Visualization mode this method is not triggered. So I'm using the method PUBLISH_MATERIAL_ITEM for fill the table in visualization mode. But in this method i haven't the attribute I_LINE_ID, so i'm filling the field in the table with the field LS_GOITEM-ZEILE.

But this is wrong, in the method PBO_DETAIL, where I'm calling the tab or not, the parameter I_LINE_ID have other value and in this method i haven't the data of GOITEM table...

Do you know how can I do it?

Thanks in advance !