Application Development 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: 

POSTING_ILLEGAL_STATEMENT encountered in SUBMIT when I leave VL02N

Former Member
0 Kudos

Hi Experts,

This happens when I leave VL02n transaction, after I go by Menu "Extras-> Delivery output header-> Header" an d then I create a new entrie in "Export Delivery output" and save.

I have encountered the error message 00 671: ABAP/4 processor: POSTING_ILLEGAL_STATEMENT when I viewed SM13 with the update request failed. The Dump analysis said that:

Runtime Errors POSTING_ILLEGAL_STATEMENT

Date and Time 18.05.2009 06:50:57

Short text

Statement "SUBMIT" is not allowed in this form.

Error analysis

There is probably an error in the program

"SAPLZRUB_BEM".

This program is triggered in the update task. There, the

following ABAP/4 statements are not allowed:

- CALL SCREEN

- CALL DIALOG

- CALL TRANSACTION

- SUBMIT.

The program has the following codes:

SUBMIT rsconn01 WITH mode = c_mode

WITH output = c_flag.

How will I resolve this? Thanks in advance

Thanks!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Sergio

You could try removing the SUBMIT statement from the program SAPLZRUB_BEM.

Or you could enclose the statement in TRY ENDTRY.

Better contact some ABAP guy and see why the custom code was put there.

Pushpraj

3 REPLIES 3

mvoros
Active Contributor
0 Kudos

Hi,

on some contexts you can not call all ABAP commands. In your case you can not use command SUBMIT. You can create a function module which will wrap you call and call this wrapper with option STARTING NEW TASK. This will create a separate task with unrestricted access to ABAP commands for your additional processing.

Cheers

former_member555112
Active Contributor
0 Kudos

Hi,

In the output determination program you have used the SUBMIT statement.

The output determination program is always called in UPDATE task.

Therefore it cannot have a SUBMIT statement.

Check the output determination program in NACE configuration settings.

Run TCODE NACE and then go through the output determination program for your output type.

Regards,

Ankur Parab

Former Member
0 Kudos

Hi Sergio

You could try removing the SUBMIT statement from the program SAPLZRUB_BEM.

Or you could enclose the statement in TRY ENDTRY.

Better contact some ABAP guy and see why the custom code was put there.

Pushpraj