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

problem in line INDEX control-current_line.

Former Member
0 Likes
738

hi ......i have a problem with following lines of my program for pending order status .

this program runs fine on one client gives a dump on other client at following lines .

plz guide me how can i resolve such problem .

whether its a patches or snote problem .

MODULE READ_TABLE OUTPUT.

READ TABLE itab2 INDEX control-current_line .

*MODIFY itab2 INDEX control-current_line.

ENDMODULE. " READ_TABLE OUTPUT

thanks and regards ,

hi ......i have a problem with following lines of my program for pending order status .

this program runs fine on one client gives a dump on other client at following lines .

plz guide me how can i resolve such problem .

whether its a patches or snote problem .

MODULE READ_TABLE OUTPUT.

READ TABLE itab2 INDEX control-current_line .

*MODIFY itab2 INDEX control-current_line.

ENDMODULE. " READ_TABLE OUTPUT

thanks and regards ,

3 REPLIES 3
Read only

former_member386202
Active Contributor
0 Likes
681

Hi,

Check the value of control-current_line and what error ur getting ??

Regards,

Prashant

Read only

Former Member
0 Likes
681

Hi,

Just try this code , if it does not resolve let us know what exactly is the error message you are getting...

MODULE READ_TABLE OUTPUT.

IF itab2[] IS NOT INITIAL.
READ TABLE itab2 INDEX control-current_line .
ENDIF.

*MODIFY itab2 INDEX control-current_line.
ENDMODULE. " READ_TABLE OUTPUT

Regards,

Siddarth

Read only

Former Member
0 Likes
681

Hi Ujjwal,

Initialize or define the table index inside the module where you are reading the data.

Best Regards,

Sharmila