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: 

Calling another program in the print program through FORM ENTRY

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

Hi Vinodha,

Please try to use CALL TRANSACTION instead of SUBMIT.

I believed it won't dump.

Thanks,

Victor.