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

Copy T.Code

Former Member
0 Likes
927

Hi,

I want to Copy a Pre-defined T.code to our Z T.code....

How can I do it...

Regards,

<b>Anil Kumar</b>

9 REPLIES 9
Read only

former_member404244
Active Contributor
0 Likes
900

hi,

Use SE93 tcode to copy..

Regards,

Nagaraj

Read only

0 Likes
900

hi,

use se93

Read only

0 Likes
900

Hi,

Thanks.....But my problem is not end...

I mean that after copy the standard t.code, it will be copy but not copy all includes.. any statement left...that cause <b>Runtime errors</b>....

Now wat can i do....

Read only

0 Likes
900

Hi,

You can find the associated program in the se93 transaction and goto se38 and mention the program name over there and copy (including all the includes).

Thanks,

Read only

Former Member
0 Likes
900

Hi,

Go to SE93....give the predefined T-code,and in application tool bar one button is there to copy it or Press Shift+F1 and give ur Z-kind T-code:

I mean after pressing Shift+F1,this will ask you from which t-code to which you wanna copy....give ur Z-tcode and copy it.

Reward if helpful.

Read only

former_member386202
Active Contributor
0 Likes
900

Hi,

Use TCode SE93 to copy the tcode

Reagrds,

Prashant

Read only

0 Likes
900

If the program associated to the t_code is the same that the new t.code, you can do this through the se93 transaction. Then you put the name of the transaction you want to copy, and push the button with two papers (COPY), then you put the name you want to the new transaction.

Read only

Former Member
0 Likes
900

Hi

use following commands:

select * from sflight into table itab.

insert zsflight from table itab.

OR :

let us consider you have to copy EKKO table to ZEKKO table

1. In ABAP program define internal table based on EKKO

eg: i_ekko

2. Select the data from EKKO to i_ekko

eg: select * from ekko into table i_ekko.

3. insert into Z-TABLE from the internal table

eg: INSERT EKKO FROM TABLE I_EKKO.

COMMIT WORK.

To insert in internal table you can use the following:

1. INSERT [wa INTO|INITIAL LINE INTO] itab [INDEX idx].

2. INSERT [wa INTO|INITIAL LINE INTO] TABLE itab.

3. INSERT LINES OF itab1 [FROM idx1] [TO idx2] INTO itab2 [INDEX idx3].

4. INSERT LINES OF itab1 [FROM idx1] [TO idx2] INTO TABLE itab2.

To inert in database table, use the following:

1. INSERT INTO <dbtabname> [CLIENT SPECIFIED] VALUES wa.

2. INSERT <dbtabname> [CLIENT SPECIFIED] FROM TABLE itab.

3. INSERT <dbtab> [CLIENT SPECIFIED]. oder

4. INSERT <dbtabname> [CLIENT SPECIFIED] ... .

Reward points.. if helpful.

Cheers,

Chandra Sekhar.

Read only

Former Member
0 Likes
900

Hi,

You can use Se93 ->Give Standard TCode ->Click on Copy button, it will autmatically created.

Thanks,

Sriram Ponna.