‎2020 May 06 3:33 PM
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
‎2020 May 06 3:44 PM
For the question "SAPscript to email", search the web, it has been asked and answered hundreds of times...
‎2020 May 06 3:49 PM
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.
‎2020 May 06 4:55 PM
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