Application Development and Automation 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: 
Read only

Handling Table control

Former Member
0 Likes
511

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

4 REPLIES 4
Read only

Former Member
0 Likes
492

Hi,

Question was not clear.

I am not getting what you are saying.

Please explain it clearly.

Read only

Former Member
0 Likes
492

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

Read only

Former Member
0 Likes
492

Hi

Try these links:

1-http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbac5e35c111d1829f0000e829fbfe/content.htm

Regards

Neha

Read only

Former Member
0 Likes
492

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