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

Regarding Runtime error with MB_MIGO_BADI

Former Member
0 Likes
429

Hi,

I have implemented badi MB_MIGO_BADI for MIGO transaction for GR. I have added 3 fields to the header level. If i save it it is saving(i Have created a Ztable to store it.).

If i give the material document number its showing the contents of the fields i have added.

But we can display the same GR through ME23N also. In ME23N transaction if i click on GR document, Its going for dump. The problem with field symbol.

Code is:

field-symbols <fs2> type MSEG.

assign ('(SAPLMIGO)mseg') to <fs2>.

<fs2>-zzoctno = WA_OCT_DET-OCT_NOTE.

<fs2>-zzoctdate = WA_OCT_DET-OCT_DATE.

<fs2>-zzmatdate = WA_OCT_DET-MAT_RECP_DATE.

its not asssiging ('(SAPLMIGO)mseg') to <fs2> .....when coming through ME23N.

The same statement is working fine through MIGO code.

Please let me know the solution

thanks,

kishore

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
398

Hello,

Change this

field-symbols <fs2> type TABLE. "CHeck here

Regards,

Vasanth

Hi,

I have implemented badi MB_MIGO_BADI for MIGO transaction for GR. I have added 3 fields to the header level. If i save it it is saving(i Have created a Ztable to store it.).

If i give the material document number its showing the contents of the fields i have added.

But we can display the same GR through ME23N also. In ME23N transaction if i click on GR document, Its going for dump. The problem with field symbol.

Code is:

field-symbols <fs2> type MSEG.

assign ('(SAPLMIGO)mseg') to <fs2>.

<fs2>-zzoctno = WA_OCT_DET-OCT_NOTE.

<fs2>-zzoctdate = WA_OCT_DET-OCT_DATE.

<fs2>-zzmatdate = WA_OCT_DET-MAT_RECP_DATE.

its not asssiging ('(SAPLMIGO)mseg') to <fs2> .....when coming through ME23N.

The same statement is working fine through MIGO code.

Please let me know the solution

thanks,

kishore

1 REPLY 1
Read only

Former Member
0 Likes
399

Hello,

Change this

field-symbols <fs2> type TABLE. "CHeck here

Regards,

Vasanth