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: 

Not setting selected value in column of table control

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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