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

Job failed due to syntax error

Former Member
0 Likes
1,027

Hi gurus,

I have program <b>GP3FCXWYVG0NP43CQUGM4X9DUDF</b> which I have scheduled in background. Job was canceled because of the below syntax error.

<i>Includes RKEB090F.

Incorrect nesting : Before the statement "FORM",the structure

introduced by "SELECTION-SCREEN BEGIN OF BLOCK BLOCKV" must be

concluded by "SELECTION-SCREEN END OF BLOCK BLOCKV".</i>

Please advice,as it is urgent

Thanks

Sam.

5 REPLIES 5
Read only

Former Member
0 Likes
934

Hi,

U might not have defined the SELECTION-SCREEN Block properly.

SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME
                                     TITLE text-001.
SELECT-OPTIONS: p_ktopl FOR t030-ktopl,
                p_komok FOR t030-komok,
                p_ktosl FOR t030-ktosl.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK block1.

Read only

Former Member
0 Likes
934

u need to add the bolded code...

SELECTION-SCREEN BEGIN OF BLOCK blockv.

SELECT-OPTIONS: s_matnr like mara-matnr.

<b>SELECTION-SCREEN END OF BLOCK blockv.</b>

Read only

Former Member
0 Likes
934

Hi,

Is it a standard program which you have scheduled?

or it seems like you are calling the RKEB090F program in your custom program.

Are you using a Include RKEB090F. stmt inside a begin of block and end of block. If so, remove that.

Regards

Subramanian

Read only

Former Member
0 Likes
934

These are standard SAP programs. You should raise an OSS message.

rob

Read only

Former Member
0 Likes
934

Hello,

If the program that u have scheduled is a Z program then include the code written in Capitals

Selection Screen Begin of Block B1.

..........

..........

SELECTION SCREEN END OF THE BLOCK B1

If the Program is a Standard Program check in the service market place whether an OSS note is available for the same . If relevant OSS note is not available then raise a not with SAP.

Regards,

Sowmya.