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

FORM SubRoutine in STARTROUTINE

Former Member
0 Likes
1,150

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

4 REPLIES 4
Read only

Former Member
0 Likes
774

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

Read only

Former Member
0 Likes
774

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.

Read only

Former Member
0 Likes
774

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

Read only

0 Likes
774

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