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

Transfer data from table control to internal table

Former Member
0 Likes
1,013

Hi All,

I have to develop a custom screen which has a table control on the first screen.

The user enters the data on the table control and presses enter.

This data should be captured and displayed on the next screen i.e., the user should see the data which he has entered

on the previous screen.

once he presses another button on the second screen, this data should be used to create transfer orders using Tcode LT01.

Can anyone please guide me in doing this?

Helpful answers will be rewarded!

Thanks

Sandeep

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
514

Hi Sandeep,

lets say screen1 where the the user enters and press enters

and screen2 is where user want to see.

in pai

loop

field itab-fld1 module fld1_check.

field--

module update_record_1.

endloop.

in this module

write the following code

insert itab index tab_ctrl-current_line.

let me know if its not clear.Post your code so it would be easier for us to help you out.

it's not all a difficult requirement.

if you haven't started let me because its easier to do with wizard

thanks

venki

Hi Sandeep,

lets say screen1 where the the user enters and press enters

and screen2 is where user want to see.

in pai

loop

field itab-fld1 module fld1_check.

field--

module update_record_1.

endloop.

in this module

write the following code

insert itab index tab_ctrl-current_line.

let me know if its not clear.Post your code so it would be easier for us to help you out.

it's not all a difficult requirement.

if you haven't started let me because its easier to do with wizard

thanks

venki

2 REPLIES 2
Read only

Former Member
0 Likes
515

Hi Sandeep,

lets say screen1 where the the user enters and press enters

and screen2 is where user want to see.

in pai

loop

field itab-fld1 module fld1_check.

field--

module update_record_1.

endloop.

in this module

write the following code

insert itab index tab_ctrl-current_line.

let me know if its not clear.Post your code so it would be easier for us to help you out.

it's not all a difficult requirement.

if you haven't started let me because its easier to do with wizard

thanks

venki

Read only

Former Member
0 Likes
514

Hi Sandeep,

First develop a table control as described in following link using the fields of Tcode LT01 i.e., Warehouse number(LTAK-LGNUM), Movement type(LTAK-BWLVS), Material(LTAP-MATNR), Quantity requested(RL03T-ANFME), Plant/storage location(LTAP-WERKS) which seems to be mandatory fields in the creation of transfer order.

http://www.sapdevelopment.co.uk/dialog/tabcontrol/tchome.htm

or post your email-id where i can send couple of documents as how to start developing dialog programs using table control.

Once you do that i.e., in the PAI event of first screen when user press enter, you will call second screen which shows the above entered details according to your design as table or line by line. If the user feels good, in the PAI event of second screen you will call Tcode with above values(just wondering how you pass this values)...

Regards,

Vivek