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: 

Validation of quantity field in co11n.

pritam_baboo
Participant
0 Kudos
139

Hi All,

I have a requirement where for a certain Material the quantity field should be blank and for this, I am using BADI

WORKORDER_GOODSMVT when trying to change the value of the Quantity field in method gm_screen_line_ckeck it is giving an error that this field cannot be changed. Kindly suggest how to achieve this.

4 REPLIES 4

venkateswaran_k
Active Contributor
0 Kudos
81

Please provide your code

pritam_baboo
Participant
0 Kudos
81
IF i_cowb_comp-matnr+0(1) = 'X'.
IF i_cowb_comp-bwart = 531 or i_cowb_comp-bwart = 531.
i_cowb_comp-ERFMG = ''.
ENDIF.

ENDIF.

ENDIF.

venkateswaran_k
Active Contributor
0 Kudos
81

It looks like it is a standard settings that system not allows you to change.

Check with functional consultant if he can make this field attributes

pritam_baboo
Participant
0 Kudos
81

Can we achieve this with some other BADI or exits.