2011 Jan 10 10:17 AM
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
2011 Jan 10 10:23 AM
Hi ,
bktxt is the importing parameter in this BADI.
you cant change the importing parameters here.
Thanks.
2011 Jan 10 7:28 PM
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
2011 Jan 11 7:26 AM
Welinton --> do you have a simple code that works? I tried changing it trhough the structure but it doesnt work on this method.
thanks
2011 Jan 11 10:10 AM
Hi Marlon,
Have you tried EXIT_SAPMM07M_001 of Enhancement MBCF0002.
Or
EXIT_SAPLMBMB_001 of Enhancement MB_CF001
Regards,
Jovito
2011 Jan 11 11:49 AM
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
2011 Jan 12 9:29 AM
Wellinton -> This logic doesnt work work because lt_gohead is not modifiable in the said; you will get an dump during execution.
2011 Jan 12 9:38 AM
Jovito -> Unfortunately those fm doesnt work for display mode; anyway thanks
2011 Jan 12 8:36 PM
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
2011 Jan 19 8:36 AM
2011 Jan 11 3:06 AM
Is there any other option to modify bktxt of the Document header in MIGO transaction?
2011 Jan 11 6:16 AM
Try to find the enhancement spot in the program and change the value.