cancel
Showing results for 
Search instead for 
Did you mean: 

sample script print program covering open write forms

Former Member
0 Kudos

Hi all,

can anyone send a sample script program.

Thanks in advance,

Regards

Reddy R

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Reddy,

First create the SapScript Layout using Tcode:SE71 and name it as 'z_testing1',then create a page called 'PAGE1', create a main window 'MAIN', create a Paragraph called 'A' and use the below code in the Text Element of the Main Window and activate.

/E MAIN

A &NAME&

A &DESIGNA&

A &SIGNATU&

Now, create the Print Program 'zprg' using Tcode:SE38 like the below.

Report zprg no standard page heading.

selection-screen begin of block b1.

parameters : name(20) type c,

designa(20) type c,

signatu(20) type c.

selection-screen end of block b1.

start-of-selection.

call function 'OPEN_FORM'

exporting

form = 'Z_TESTING1'

language = sy-langu.

call function 'START_FORM'

exporting

form = 'Z_TESTING1'

language = 'E'

startpage = 'PAGE1' .

call function 'WRITE_FORM'

exporting

element = 'MAIN'

type = 'BODY'

window = 'MAIN' .

call function 'END_FORM' .

call function 'CLOSE_FORM'.

Then save and activate. Now execute this, and enter the required in the selection screen and execute. The values you entered will be shown in the Sapscript.

Hope this helps.

Thanks,

Srinivasa

Former Member
0 Kudos

hi

good

go through this link,hope this would help you to solve your problem

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPS...

thanks

mrutyun^