Skip to Content
author's profile photo Former Member
Former Member

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

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 29, 2008 at 07:39 AM

    try to use fm's job_open, job_close

    or fm K_BATCH_REQUEST

    A.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.