‎2011 Jan 20 10:24 AM
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
‎2011 Jan 20 11:30 AM
There is no specific GOTO statements in ABAP. Or ae you talking about Macros?
Vikranth
‎2011 Jan 20 2:18 PM
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.
‎2011 Jan 20 5:09 PM
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.