‎2008 Nov 29 5:08 AM
Hi Experts,
i have one tabstrip in that subscreen i have table control and outside the tabstrip i have buttons (display, save and create sales order). when i select display button that table controll will come in display mode with data,
after that when i select one or two records then click the button (create sales order) it has to go to tcode VA01.
Now my question is that how to capture one or two records when i select the button "create sales order" Please send me the code.
Regards,
Shaheen.
Edited by: shaheen unissa on Nov 29, 2008 6:08 AM
‎2008 Nov 29 6:28 AM
Hi,
Question was not clear.
I am not getting what you are saying.
Please explain it clearly.
‎2008 Nov 29 8:26 AM
HI,
Check these demo program...they will help you...
-
DEMO_DYNPRO_TABSTRIP_LOCAL Tabstrip logic
RSDEMO_TABLE_CONTROL Selecting Multiple rows and perfroming action.
-
Edited by: avinash kodarapu on Nov 29, 2008 1:56 PM
‎2008 Nov 29 8:17 PM
Hi
Try these links:
1-http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbac5e35c111d1829f0000e829fbfe/content.htm
Regards
Neha
‎2008 Dec 01 3:36 AM
Hi,
as you want the table control on the tabstrip to be displayed only when you click on the display button.
in PBO
call subscreen sub INCLUDING dynprg dynnr
pass a dummy screen initially in the Top include
IN TOP include
data : dynnr type sy-dynnnr value 100.( this is a dummy screen )
in PAI MODULE USERCOMMAND
This in the main screen PAI
CASE ok_code
when 'DISP'.
DYNNR = 101. ( now call the sub screen on which the table control present )
endcase.
in the screen101 where the tablecontrol is placed make sure you enable the row selecting button in the screen painter W/ROWSEL CHECK BOX
in PAI of the subscreen
loop at itab
module modify_tc
endloop
module modify_tc.
describe table itab lines tc-lines.
if tc-current_Line > tc-lines.
append itab.
else.
modify tc index tc-current_line.( this will modify the itab where the row is selected )
endmodule
now in another PAI module( This is in the PAI of screen 101 )
read table itab with key mark = 'X' ( mark means the row selector, you need to declare the mark component for the itab in the Top include )
Hope this is clear and will help you
Thanks and Regards
Ramchander Rao.K