Skip to Content
0
Mar 20, 2009 at 09:16 AM

MB_MIGO_BADI

70 Views

Hi Gurus,

I try to use method line/item change, but I cannot find a solution.

Acctually I cannot change the value of cs_goitem and to display it.

Below is my code!

Pls help !

Please have a look on my code !

method IF_EX_MB_MIGO_BADI~LINE_MODIFY.

break skolev.

data: p_groes type mara-groes.

data: p_maktx type makt-maktx.

data: p_all type goitem-maktx.

data: p_len type p.

select single groes into p_groes

from mara

where matnr = cs_goitem-matnr.

select single maktx into p_maktx

from makt

where matnr = cs_goitem-matnr

and spras = sy-langu.

concatenate p_maktx p_groes into p_all SEPARATED BY space.

p_len = strlen( p_all ).

cs_goitem-maktx = p_all.

  • CALL METHOD cs_GOITEM->HOLD_DATA_SAVE( ).

*

*

break skolev.

endmethod.