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

Go TO Specific COde

Former Member
0 Likes
2,211

Dear all ,

I have written code for example of 100 lines .

At one condition e.g at line number 99 I need to go to Fuction module whic is somewhere in line number 50.

Is there any command in ABAP through which I can go to specific Line.

Thanks

Moderator message: moved to BASIC questions forum (points-free!)

Edited by: Thomas Zloch on Jan 20, 2011 4:56 PM

3 REPLIES 3
Read only

Former Member
0 Likes
1,098

There is no specific GOTO statements in ABAP. Or ae you talking about Macros?

Vikranth

Read only

Former Member
0 Likes
1,098

use modular coding techniques.....PERFORM keyword....Essentially, the perform statement is your "GOTO" command. Try like:

.....
if <some condition is true (or false).
   perform my_subroutine.
endif.
. . .


form my_subroutine.
cal function <my_function>
exporting...
importing....

endform.

Read only

0 Likes
1,098

Like break point say you have to use modular techniques basically you put in a function one process and when you have to call it you uses perform in help sap you can get examples about it or write perform in your editor and hit "F1" you can pass values to the function and changes.