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: 

MB_MIGO_BADI: Fields on Header - Accessing PO number

Former Member
0 Kudos

Hi Experts,

I am using MB_MIGO_BADI to add custom fields to the MIGO header tab. Inside the BADI methods/function modules, I'm not able to access the PO number. The PO number that is entered on the MIGO screen is needed to fill the new fields that I've created. How do I get the PO number?

2 REPLIES 2

Former Member
0 Kudos

Well, I solved it on my own...here's how:

In the FM of the method PAI_Header, I added this code:

DATA LV1(28) TYPE c VALUE '(SAPLMIGO)GODYNPRO-PO_NUMBER'.

FIELD-SYMBOLS <fs1> TYPE ANY.

ASSIGN (LV1) TO <fs1>.

Now, I can use Select statements to get data using this PO number!

Former Member
0 Kudos

Solved it on my own