cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a SAP SCRIPT program in WebDynpro

narendar_naidu
Active Participant
0 Kudos

Hi All,

After a successful FTD creation in TRM, i have to print a receipt(SAP SCRIPT) with the Transaction ID.

for this i have developed a separate print program with sapscript and i am trying to call this in on SUBMIT ACTION Event.

SUBMIT ZTRM_TEMP_RECP with SELECTION-TABLE it_selection               
                       AND RETURN.


When i Click Submit action, i get this error


500 SAP Internal Server Error


Error : Error in Control Framework (termination : ERROR_MESSAGE_STATE)


Any inputs will be appreciated.


regards,

Accepted Solutions (1)

Accepted Solutions (1)

narendar_naidu
Active Participant
0 Kudos

Hi All,

any input in this regard will be appreciated.

regards

Former Member
0 Kudos

you can not call any sap GUI Screens from webdynpro frame work.

try submitting it as job in back ground.

Thanks.

Uma

narendar_naidu
Active Participant
0 Kudos

hi Uma,

Thanks for  your reply, earlier we were able to call and save a smartform for the same requirement .

this smartform logic was written in on SUBMIT action method and we could save it.But as a usual routine, the client was insisting on earlier used SAP Script(this is a separate transaction) to be called wen he executes webdynpro .

Now my concern is wen a smartform is able to download, what is the issue with script.

or shall i try to write the entire script driver program in the same method as earlier it was for smartform.

Please suggest.

regards,

ramakrishnappa
Active Contributor
0 Kudos

Hi Naren,

When you submit program from WDA event, you should make sure that it doesnt give out put in gui.

You can submit programs which writes into memory or spool.

Here, you need to add VIA JOB to run this application in background & generate the pdf in WDA.

Please refer the links of similar requirement:

Hope this helps you.

Regards,

Rama

narendar_naidu
Active Participant
0 Kudos

Sorry For a Delayed Response,

Thanks for your reply Rama, i have tried the way you mentioned and its working fine. Thank you all for your replies.

Regards,

Naren

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Naren,

Is there any  dump in ST22?.

Thanks

KH

narendar_naidu
Active Participant
0 Kudos

Hi Katrice,

No Dump in ST22.

i have suppressed all the pop-ups in the called program like Print preview and save dialog screens.

regards,