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: 

MB_MIGO_BADI: modifying ls_gohead-bktxt

Former Member
0 Kudos
1,232

Hi Experts,

Im trying to modify ls_gohead-bktxt (forcing a value) using method IF_EX_MB_MIGO_BADI~STATUS_AND_HEADER but Im getting an error that ls_gohead is not modifiable. Please advice on a possible alternative.

Thanks

11 REPLIES 11

Former Member
0 Kudos
588

Hi ,

bktxt is the importing parameter in this BADI.

you cant change the importing parameters here.

Thanks.

Roc31
Participant
0 Kudos
588

Hi Marlon Castelltort ,

You can to do a assign of structure gohead and modify the bktxt,

verifiy before the call of BADI, for to find the structure.

Best Regards,

Welinton Rocha

Former Member
0 Kudos
588

Welinton --> do you have a simple code that works? I tried changing it trhough the structure but it doesnt work on this method.

thanks

Former Member
0 Kudos
588

Hi Marlon,

Have you tried EXIT_SAPMM07M_001 of Enhancement MBCF0002.

Or

EXIT_SAPLMBMB_001 of Enhancement MB_CF001

Regards,

Jovito

0 Kudos
588

Hi Marlon,

you have to do a assign on (SAPLMIGO)gohead, this is the structure.

Assign '(SAPLMIGO)gohead' to <fs>.

<fs>-bktxt = new value.

ok, save.

Best Regards.

Welinton Rocha

Former Member
0 Kudos
588

Wellinton -> This logic doesnt work work because lt_gohead is not modifiable in the said; you will get an dump during execution.

Former Member
0 Kudos
588

Jovito -> Unfortunately those fm doesnt work for display mode; anyway thanks

0 Kudos
588

Hi Marlon,

lv_gohead not is modifiable because is a local structure,

but gohead is!

you can change the value with assign and not going to dump!

Best Regards.

Welinton Rocha

Former Member
0 Kudos
588

closed

Former Member
0 Kudos
588

Is there any other option to modify bktxt of the Document header in MIGO transaction?

0 Kudos
588

Try to find the enhancement spot in the program and change the value.