Application Development 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: 

co11n check on field

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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!!

2 REPLIES 2

Former Member
0 Kudos

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!!

0 Kudos

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?