on 08-22-2020 2:43 AM
Hi experts! I need to validate a particular input field in the table control.
The scenario is something like: When the user click gives some inputs in table control and click on save certain validation to be done by comparing loaded quantity with balance quantity and throw an error if it exceeds.
*Issue happening is:
Process After Input.
Module user_command_500.
loop at gt_item.
chain.
field wa_item-loadqty module valiadte_loadqty.
endchain.
endloop.
"Here in my above code, the gate pass is created when user click on SAVE, so the input in table control has to be validated before the Gatepass is generated. My Sy-ucomm is in useer_command_500 where the logic for validations needs to be written but the system captures the loaded qty (Input given in table control) only within loop endloop. So it's like a gatepass is generated and validation is beinh done.
If you want to save only if the loop did not produce any error, then call user_command_500 after the loop:
Process After Input.
loop at gt_item.
chain.
field wa_item-loadqty module valiadte_loadqty.
endchain.
endloop.
Module user_command_500. " <=== moved after the loop
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.