‎2007 Aug 14 10:44 AM
Hi All,
This is a requirement in Module pool programming. I have a screen with a table control in which a range (specified by user) of document numbers are diaplayed.
Now when multiple document numbers in this table control are selected and the 'DISPLAY ITEM' button is clicked, the details of the selected document numbers need to be display in another table control.
How do i achieve this..please help.
Thanks
‎2007 Aug 14 10:52 AM
First u need to capture the document numbers selected...
for this case define one more field in table control as a check box
and validate this ( tablecontrol is nothing but internal table in pai module ) checkbox field in pai module ...
if it is selected read the corresponding document numbers and select u r data for these corresponding doc numbers and move into one more internal table ...
first do this one.
Best Regds,
kiran.M
‎2007 Aug 14 10:52 AM
First u need to capture the document numbers selected...
for this case define one more field in table control as a check box
and validate this ( tablecontrol is nothing but internal table in pai module ) checkbox field in pai module ...
if it is selected read the corresponding document numbers and select u r data for these corresponding doc numbers and move into one more internal table ...
first do this one.
Best Regds,
kiran.M
‎2007 Aug 14 11:14 AM
Thanks for the reply Kiran.
Is there no way that i do not add this checkbox and achieve this?
‎2007 Aug 14 11:17 AM
tell me one thing if check boxes not exist
how u r selecting multiple document columns in a table control
Best Regds,
kiran.M
‎2007 Aug 14 11:22 AM
Hi,
You can aceive it by selcting the push button column of the table control.
Refer to the following link for more details,
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5e35c111d1829f0000e829fbfe/content.htm
Reward if helpful.
‎2007 Aug 14 11:24 AM
Hi
check the table control attributes in screen painter whether multiple colmns selected check box is selected or not
‎2007 Aug 14 11:26 AM
Hi Yes u can do it without check boxes
in the screen just select ur table control then dbl clk on it to go to properties of TC.
Now there is one checkbox right at the bottom which looks like
w/selcolumn
just select this and the box next to the checkboz will get activated and give the name to the checkbox .
MAke appt settings in the above radio buttons
and include field in ur itab in this way u will b able to select multiple columns
thnks
Sahil