‎2007 Dec 11 11:58 AM
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>
‎2007 Dec 11 11:59 AM
‎2007 Dec 11 11:59 AM
‎2007 Dec 12 3:55 AM
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....
‎2007 Dec 12 4:29 AM
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,
‎2007 Dec 11 12:01 PM
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.
‎2007 Dec 11 12:02 PM
‎2007 Dec 11 12:02 PM
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.
‎2007 Dec 11 12:04 PM
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.
‎2007 Dec 11 12:09 PM
Hi,
You can use Se93 ->Give Standard TCode ->Click on Copy button, it will autmatically created.
Thanks,
Sriram Ponna.