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: 

Table control wizard

Former Member
0 Kudos
116

Hi all,

I have desgined a table control wizard of 5 fields.2 are from database 2 are what i designed...a check box and text box.now i am letting the user to enter the data in the textbox.and later i need to check the table control text box with on db field in a select query.How and where can i write the code

7 REPLIES 7

Former Member
0 Kudos
90

Hi,

In the PAI event, you need to write the code, Just write a MODULE in the PAI.

In that Module, wirte the Select statement to see the DB value.

Select Field into FIELD from TABLE where Scren text = BD_text.

Regards

Sudheer

0 Kudos
90

Hi,

Thank you very much for the reply..can u tell where can we find the screen field..I am not able to find it out..is it in table controls where it will be declared or some other place

0 Kudos
90

there is a blue color icon on your layout screen through which you can select your desired fields

by

vijay dwivedi

0 Kudos
90

have u got it or not if not then i can help in better manner. well look on layout screen n just c in standerd tool bar.third last icon is used for selection of fields

ref by

vijay dwivedi

0 Kudos
90

Hi Vijay,

I want to know where the fields are placed in the code not in the layout.

former_member404244
Active Contributor
0 Kudos
90

Hi,

u can write ur code in the PAI event....

regards,

Nagaraj

Former Member
0 Kudos
90

write the code in PAI.

ex:

PROCESS AFTER INPUT.

*&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'TC2'

LOOP AT G_TC2_ITAB.

CHAIN.

FIELD MARA-MATNR.

FIELD MARA-WESCH.

FIELD MARA-ERGEW.

MODULE TC2_MODIFY ON CHAIN-REQUEST.

ENDCHAIN.

ENDLOOP.

MODULE TC2_MODIFY INPUT.

*****Here you write code for validatation