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

anand_n5
Explorer
0 Kudos

Hi experts I need your help  I have created Table control wizard with 3 fields in that I need to check the first field for empty and on selecting save button

it should check the next row if that 2 row of the 1st column is empty or not. And one more thing after saving the data entered in the first column of the table

for next display I want the entire row as default like output mode only please help me its very urgent for me.

Thanks in advance 

5 REPLIES 5

Former Member
0 Kudos

Hi Anand,

Inside your table control loop. TABLECONTROL denotes the field which you are using on the screen

    CHAIN.

      FIELD: TABLECONTROL-FIELD1.

      MODULE CHECK_FIELD1 ON CHAIN-REQUEST.

    ENDCHAIN.

Thanks,

Tooshar Bendale

0 Kudos

thank you

Former Member
0 Kudos

hello,

assign save button a 4 letter function code. Check when use presses Save. You need to loop at the internal table of the table control and verify the first field if it is blank or not and provide messages accordingly.

a simple way to grey out fields is loop at the screen table and make the property screen-input = 0.

some links with examples on the same -

http://scn.sap.com/message/13494508

http://scn.sap.com/thread/1569975

http://scn.sap.com/thread/1785939

http://scn.sap.com/thread/1307381

best regards,

swanand

0 Kudos

Thank you swanand

I got your point but how to pass the data to table control. I know while creating table control wizard itself we have given the internal table and we have to pass the data to that internal table then we have loop this internal table in flow logic of the screen but in my program i have tried to pass the data to the internal table it is not coming to table can u help me with this pls.

0 Kudos

hello,

Data should pass in PAI/PBO events as generated by the Table control Wizard. See link below to understand that -

http://help.sap.com/saphelp_erp60_sp/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm

In the save command where you do validations you need to append the data to the internal table also. This was the new entries added by user will be stored in the Internal table and also will be shown in the Table control. But if you need these entries to be stored permanently and when the program starts it need to be shown, then you need to store these in a custom Z table same as your table control/internal table.

best regards

swanand