01-15-2009 4:20 AM
Hi All,
Have a requirement that I need to submit the program with variant to a print program.
But it is giving dump "Statement "SUBMIT" is not allowed in this form" while executing through VF04.
I have tried by using CALL FUNCTION "func" in update task .Inside the "func" in I have coded the logic of
submit program using selection-set VARIANT.
Even then while executing through VF04 got the dump "DYNPRO_SEND_IN_BACKGROUND" and "POSTING_ILLEGAL_STATEMENT ".
Kindly advise to resolve the issue.
01-15-2009 5:09 AM
hi,
I think your calling program(SUBMIT ZXXX) has any error or activation problem..
please make sure ..
If you are getting again the same problem..
Please paste your code(Syntax of the submit what u have called)..
For what purpose this SUBMIT program u r calling..
whether it is report or another smartform..
please let us know..
regards
vijay
01-15-2009 5:20 AM
Hi ,
This is the syntax i'm using in my Call function "func"
SUBMIT Program
USING SELECTION-SET kunwe
AND RETURN.
This submit program will do posting through FB01 to create an accounting document.
From the print program this report needs to be called to make posting.
01-15-2009 5:44 AM
Hi,
PLease make sure that u r using both smartforms and report..
Once the function called the report program, whether control back to the print program..
Using debugger please check..
put a break-point in your program and find where that dump is arised..
whether u want report only or smartform only...
If the same problem arises again,
Paste your report program code inside the print program instead of using SUBMIT..
let me know what the issue u r facing
regards
vijay
01-15-2009 5:53 AM
Hi Vinodha,
Please try to use CALL TRANSACTION instead of SUBMIT.
I believed it won't dump.
Thanks,
Victor.