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 Delete Lines of abap program from another program

1,241

Hi all,

I need a program which opens another abap program which takes input as a program and deletes specified lines from it?

5 REPLIES 5
Read only

Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert
947

It sounds like quite dangerous requirement... I would not really recommend something like this. Can you share a little bit what is the idea behind it? I am almost sure it could be done better/systematical way...

-- Tomas --
Read only

matt
Active Contributor
947

How are you going to specify those lines?

Read only

947

The requirement is to delete the commented lines from any program that is given as input to my program.

But the thing is all the commented should not be deleted only those lines which are abap code and are commented should be deleted where as those like explanations should be left.

i have program which gets all the commented lines along with line numbers in my code .so i need my program to delete those lines which i select in that table to be deleted from the input program

Read only

matt
Active Contributor
947

The requirement is to delete the commented lines from any program that is given as input to my program.

But the thing is all the commented should not be deleted only those lines which are abap code and are commented should be deleted where as those like explanations should be left.

i have program which gets all the commented lines along with line numbers in my code .so i need my program to delete those lines which i select in that table to be deleted from the input program

That's easy then. You use READ REPORT and INSERT REPORT.

Read only

0 Likes
947

I actually could use a program like that. If it could also delete other garbage like "begin of... end of..." comments that would be heavenly!

Perhaps OP could share.