01-29-2008 7:18 AM
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.
01-29-2008 7:39 AM
01-29-2008 8:20 AM