Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Not setting selected value in column of table control

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.

Tags:
replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question