2009 Jun 23 10:17 AM
Hi Guru,
I am a beginner ABAP programmer
i am writing a start routine (BI 7.0) and i try to write a subroutine (FORM ... ENDFORM) that will called several times inside the start routine code (PERFORM...) but i have received an error message "STATEMENT ENDMETHOD MISSING.
Is it possible to insert a subroutine in a start routine of a trasformation?
If yes, which is the correct syntax to use in order to avoid this issue?
Anybody has an useful link with syntax or example?
Thanks a lot,
Veronica
Hi Guru,
I am a beginner ABAP programmer
i am writing a start routine (BI 7.0) and i try to write a subroutine (FORM ... ENDFORM) that will called several times inside the start routine code (PERFORM...) but i have received an error message "STATEMENT ENDMETHOD MISSING.
Is it possible to insert a subroutine in a start routine of a trasformation?
If yes, which is the correct syntax to use in order to avoid this issue?
Anybody has an useful link with syntax or example?
Thanks a lot,
Veronica
2009 Jun 23 10:20 AM
Hi,
Within a routine FORM...ENDFORM is not allowed.
Write a PERFORM statement. Double click on it and it will prompt you with a set of includes where you can write your subroutine.
Regards,
Ankur Parab
2009 Jun 23 10:22 AM
Hi ,
i think you are trying to write the perform statement in include program.PLease let me know if you still nedd any more help.
Thanks and regards,
Rajeshwar.
2009 Jun 23 10:41 AM
Hi,
with double click on the PERFORM statement i can select two different selection Include:
RS_ROUTINE_CVONERSIONF01 New Include
RE_ROUTINE Main Program
but if i select one of these options the system shifts the cursor at the beginning of the start routine where is not possible to write.
What's wrong?
How can obtain the same result (write a code that can be called several times inside the start routine using a different syntax?)
Thanks,
Veronica
2009 Jun 23 10:53 AM
Hi,
It will not work. This is because probably your start routine is called in some standard method.
Just try if PERFORM subroutine name in PROGRAM Z program is allowed.
If it is allowed then create a Z subroutine pool program(Type S) via SE38 and add your subroutine in that.
Regards,
Ankur Parab
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |