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

getting run time errors while executing the copied SAP programs

Former Member
0 Likes
494

Hi folks,

i want to copy an sap program.after coping i need to change some coding there.then i have to create a new transaction for that.

i am just copying the sap program RQEEAL10(transaction-QA32) to Z_RQEEAL10. it has 4 include programs.i am copying them to z programs like

RQ00MF10 copied to z_RQ00MF10

RQALVF14 copied to z_RQALVF14

RQALVF16 copied to z_RQALVF16

RQALVTOP copied to z_RQALVTOP.

now i am executing that program Z_RQEEAL10.but i am getting run time errors as given below.

<b>runtime error---</b>

The termination occurred in the ABAP program "Z_RQEEAL10" in

"SELECT_FIELDS_MANIP2_F16".

The main program was "Z_RQEEAL10 ".

The termination occurred in line 257 of the source code of the (Include)

program "RQALVF16"

of the source code of program "RQALVF16" (when calling the editor 2570).

--Error in ABAP statement when processing an internal table.

--When changing or deleting one or more lines of the internal table

"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS" or when inserting in the table

"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS", 0 was used as

the line index. An index less than or equal to zero is not

allowed.

The error can occur when using the following options:

1. "INDEX idx" for specifying the line number in the table

"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS"

where you want to change, insert or delete.

2. "FROM idx" for specifying the start index when deleting a line

area from or inserting a line area into the table

"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS".

3. "TO idx" for specifying the end index when deleting a line

area from or inserting a line area into the table

"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS".

When the program terminated, the table had 2 lines.

-


these r the runtime errors what i am getting.where is the problem?i have activated all interface & includes.plz advice.

Thanks & regards

2 REPLIES 2
Read only

Former Member
0 Likes
418

Hi Madhu,

I will give you one more check point where you have to give your concentration while copying the standard programs....

Call Customer-Function (Function Exists) if any in the Program when copied will not get executed. Instead you need to call the FM Directly.

one more is also here

You are likely to have some problems with the text-elements and translation that may have been maintained for the original report.

~~Guduri

Read only

Former Member
0 Likes
418

Hi Madhu,

Seems your SAP program involves dynamic call of routines. This routins are dependent on Program name, Include name and TCODE name....

Pl. review u r code and see possibility of any dynamic call.

After review... Please update us .. Have u solved the question or still we need to create scenario and work on it to help you,

Darshan