06-09-2008 7:00 AM
hi experts,
I am using WORKORDER_GOODSMVT BADI to put check on quantity field of CO11n tcode. I found the method GOODS_RECEIPT having the changing parameter CT_GOODS_RECEIPT which is containing the field ERFMG (quantity).
I created an implementation ZBADI_co11n for the BADI.
I am trying to write code like this :
IF ct_goods_receipt-erfmg = 0.
MESSAGE e001(0) WITH ' Please Enter Exact Quantity ' .
ENDIF.
it is throwing error CT_GOODS_RECEIPT is a table without header line therefore has no component called ERFMG.
can anyone tell what to write in the mehtod GOODS_RECEIPT for my check on field.
help pls
06-09-2008 8:51 AM
Hi,
Create a work area with header and move the contents of CT_GOODS_RECEIPT to
the work area, now put a check on the parameter...
Have Fun!!
Ira!!
06-09-2008 8:51 AM
Hi,
Create a work area with header and move the contents of CT_GOODS_RECEIPT to
the work area, now put a check on the parameter...
Have Fun!!
Ira!!
06-09-2008 9:19 AM
hi ira,
thanks for your reply. I am able to code it without error.
but my requirement is this BADI is triggered after I press goods movement & the message
is displayed on the confirmation screen itself, i want it to display it in goods movement screen.
how?