cancel
Showing results for 
Search instead for 
Did you mean: 

From nast to sapscript.

Former Member
0 Kudos

Hi All,

Im supposed to get an entry from Nast and create a sapscript based on that entry.

Further more I need to create a pdf from that partikular sapscript print.

Can anyone help me?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

a new custom SAPScript, or repeat output of a SAPScript that has already been printed or ??

If new, look at how SAP writes script driver programs, how they match that to form design, etc. Best training examples, IMHO.... search the forum for going from SAPScript to PDF.

Answers (2)

Answers (2)

0 Kudos

Hi,

Please go through the below code.

in NACE transaction maintain FORMROUTINE as ENTRY

in your program call subroutine like below code.

FORM ENTRY USING return_code us_screen.

CLEAR retcode.

xscreen = us_screen.

PERFORM processing USING us_screen.

CASE retcode.

WHEN 0.

return_code = 0.

WHEN 3.

return_code = 3.

WHEN OTHERS.

return_code = 1.

ENDCASE.

ENDFORM.

FORM processing USING proc_screen.

vbco3-vbeln = nast-objky.

here you can get the nasobject key and selects the data as per your requirement passing nast object key.

ENDFORM

RSTXPDFT4 is the program which will convert into PDF format.

input for RSTXPDFT4 is spool number of that script program

Former Member
0 Kudos

Hi,

You try to get the output type of that script form.If the form is in SD or MM module you can go to NACE transaction select the appropriate application.for example EF for Purchase Order select it and click the position button & enter the output type, then you select the output type and click on processing routines.you will get the form name and driver program name of that output type.

Regards,

Manesh.R.