Skip to Content
0
Former Member
Dec 31, 2007 at 10:02 AM

Coding help reqd for BADI

27 Views

HI Friends,

Im working on MB_MIGO_BADI object for MType: 261.Here, im facing a problem to call a info msg with coding effect.i.e, I've to give a conditional message says that if the user tries to change the quantity (changing the existing/available in the field text of MIGO), then it'll give a window pop-up message or info msg like "Quantity should not be changed". Pls reply ur post how to fix this.

The fields are

1) cs_goitem-bwart " MType

2) cs_goitem-erfmg "Quantity

Note: A) It'll be applied only for MType:261.

B) Pls advise, Here, shall I declare the export and import memory id concept?

FYI

******Below is the coding part declared inside the method function.

method IF_EX_MB_MIGO_BADI~LINE_MODIFY.

if cs_goitem-bwart eq '261'.

*cs_goitem-erfmg is not initial and

*call function 'CUSTOMIZED_MESSAGE'

*exporting

Message i006(zmsg).

endif.

endmethod.

**********************

Above, it helps only showing the info msg while entering the mtype: 261.But i need to display it only if the cursor comes into Qty (ERFMG) field. Pls advise me how to fix with ur coding example.

mail me:sankar1781@gmail.com