09-09-2008 12:25 PM
Hi,
I have MATNR field in table control.
In PAI code is as follow.
PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
MODULE VALIDATE.
LOOP WITH CONTROL TC_FORMV.
FIELD /SISLEMCU/CNVADTL-MATNR SELECT *
FROM /SISLEMCU/CNVA01
WHERE WERKS = TXT_PLANT
AND CHARG =
/SISLEMCU/CNVADTL-CHARG.
INTO /SISLEMCU/CNVADTL.
MODULE read_table_control.
ENDLOOP.
MODULE USER_COMMAND_0500.
When i take the help in MATNR column the above query works fine but when i select the entry from help MATNR is not gets set in column in table control.
Plz help me regarding this.
Thankx in adv.
Regards,
Deepak.
09-09-2008 12:27 PM
When you select a value, PBO as well as PAI gets triggered. When PAI gets triggered, your query gets executed which gives sy-subrc <> 0 and due to this it might not filling the data selected..
09-09-2008 12:27 PM
When you select a value, PBO as well as PAI gets triggered. When PAI gets triggered, your query gets executed which gives sy-subrc <> 0 and due to this it might not filling the data selected..