2007 Feb 02 6:07 AM
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
2007 Feb 02 6:10 AM
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
2007 Feb 02 6:20 AM
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
2007 Feb 02 6:33 AM
there is a blue color icon on your layout screen through which you can select your desired fields
by
vijay dwivedi
2007 Feb 02 6:41 AM
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
2007 Feb 02 6:48 AM
Hi Vijay,
I want to know where the fields are placed in the code not in the layout.
2007 Feb 02 6:12 AM
2007 Feb 02 6:15 AM
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