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

how to insert code in ABAP program ( Z program) by ABAP coding.

Former Member
0 Likes
1,257

Hello,

In ABAP is there any way to insert some code lines into an existing ABAP program (Z*) , We will insert in masse some code lines into a liste of program automatically ?

Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
792

HI

/first of all I want to know

why you are wondering that whether you can insert code in Z program or not

it;s user defined program right so I think you can add your code if you have permission to edit that program.

Thanks

Lalit Gupta

4 REPLIES 4
Read only

Former Member
0 Likes
793

HI

/first of all I want to know

why you are wondering that whether you can insert code in Z program or not

it;s user defined program right so I think you can add your code if you have permission to edit that program.

Thanks

Lalit Gupta

Read only

0 Likes
792

Hello,

Here I need to insert a default line of code before each program ( This code will call aonther FM ) . And I do this in mass ( many programme at the same time) So I wonder if there's any function or program that can help us to do this . The input of the function maybe :

Program to be modified

Start line

End Line

Source code to be inserted

Thanks

Read only

0 Likes
792

Please refer [Inserting ABAP code dynamically|http://www.sapdev.co.uk/tips/dynamic/dyn_prog.htm]

Regards

Marcin

Read only

Former Member
0 Likes
792

Ho JoeHan,

We can insert the code in Z*programs.

OPen the program in Tcode SE38 and click on Chnage mode.

Make the necessary changes in ur code and save it under the Transaport request.

Regards,

Pravin