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: 

Statement "SUBMIT" is not allowed in this form. -- Please Urgent

Former Member
0 Kudos

Hi,

Is there any alternative in ECC 6 for the same??

I am doing upgrade project (ECC 6.0) and i am getting following dump while executing the below code.

What happened?

Error in the ABAP Application Program

The current ABAP program "ZVADIN69" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

What can you do?

Note down which actions and inputs caused the error.

To process the problem further, contact you SAP system

administrator.

Using Transaction ST22 for ABAP Dump Analysis, you can look

at and manage termination messages, and you can also

keep them for a long time.

Error analysis

There is probably an error in the program

"ZVADIN69".

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 code is used as follows.

FORM ENTRY USING RETURN_CODE US_SCREEN.

W_RETCODE = RETURN_CODE.

EXPORT NAST-KSCHL TO MEMORY ID 'Z_KSCHL'.

SELECT SINGLE * FROM VBRK WHERE VBELN = NAST-OBJKY+0(10).

IF NOT US_SCREEN IS INITIAL.

SUBMIT ZMDTRAIL

WITH P_BUKRS EQ VBRK-BUKRS

WITH S_VBELN EQ VBRK-VBELN

AND RETURN.

ELSE.

PERFORM FILL_PRINT_PARAMETERS.

CHECK W_RETCODE IS INITIAL.

SUBMIT ZMDTRAIL

WITH P_BUKRS EQ VBRK-BUKRS

WITH S_VBELN EQ VBRK-VBELN

TO SAP-SPOOL SPOOL PARAMETERS PRI_PARAMS

ARCHIVE PARAMETERS ARC_PARAMS

WITHOUT SPOOL DYNPRO

AND RETURN.

ENDIF.

IF SY-SUBRC = 0.

CLEAR W_RETCODE.

ELSE.

W_RETCODE = 1.

ENDIF.

RETURN_CODE = W_RETCODE.

ENDFORM.

2 REPLIES 2

andreas_mann3
Active Contributor
0 Kudos

try to use fm's job_open, job_close

or fm K_BATCH_REQUEST

A.

0 Kudos

Thanks for your reply.

Can you please explain me in detail.