Application Development and Automation 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: 
Read only

Printing SAP Script using ABAP WebDynpro

Viveknin
Explorer
0 Likes
1,007

Hi Experts,

My older prorgam use below syntax to generate SAP Script print using RSNAST00. Now in Object oriented prog we can't use Tables *NAST syntax, so below syntax do not work in my ABAP WebDynpro Methods. Please advise if there is any alternate syntax available using which i could generate output using sapscripts. Also please advise if this output can be moved to binary / pdf variable, which i could use to send email (with attachment) directly. so far this output goes to screen, printer or to file.

Best Regards

Vivek

Tables: NAST, *NAST.

.... some more code to populate NAST.

PERFORM objekt_sperren IN PROGRAM rsnast00 USING lv_rcode abap_true. "Lock object

PERFORM einzelnachricht IN PROGRAM rsnast00 USING lv_rcode. "Print Object

PERFORM objekt_entsperren IN PROGRAM rsnast00. "Unlock Object

3 REPLIES 3
Read only

Sandra_Rossi
Active Contributor
0 Likes
878

For the question "SAPscript to email", search the web, it has been asked and answered hundreds of times...

Read only

Sandra_Rossi
Active Contributor
878

Concerning the way how "you" used to call RSNAST00 is weird, why don't you use:

SUBMIT rsnast00 WITH s_objky IN s_objky WITH ... AND RETURN.

and enter the object to print in S_OBJKY.

Read only

Viveknin
Explorer
0 Likes
878

Sandra,

thank you for reply. Business expectation is bit weird itself and i enjoy solving it. 🙂

For "SAPscript to email", what i meant is if i could read SAPScript output to memory (PDF memory) which i could add as attachment to email. business want to send multiple( min 20) document attached in one email, all generated from different SapScript.

This email should trigger for all selected documents in one go. i had option of reading from generated spool but that is not feasible as i am not sure of how long to wait for one spool generation, also spool has a limit as it takes server disc.

i hope i have explored little more.

regards

Vivek