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

Calling Sap Script from SE38

Former Member
0 Likes
8,484

Hi ,

Please let me know how to call sapscript from se38.

Regards,

Sreeja.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
4,518

hi,

After creating ur SAPSCRIPT, use these FM's in ur Report program..

CALL FUNCTION 'OPEN_FORM'

CALL FUNCTION 'START_FORM'

CALL FUNCTION 'WRITE_FORM'

CALL FUNCTION 'END_FORM'

CALL FUNCTION 'CLOSE_FORM'

If u didn't get tel me i will clarify u....

Regards,

Shankar.

9 REPLIES 9
Read only

RaymondGiuseppi
Active Contributor
0 Likes
4,518

Look at [BC SAPscript: Printing with Forms|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf] there you will find the FM to call ([OPEN_FORM|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=open_form&adv=false&sortby=cm_rnd_rankvalue], [WRITE_FORM|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_weblog&query=write_form&adv=false&sortby=cm_rnd_rankvalue], [CLOSE_FORM |https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=close_form&adv=false&sortby=cm_rnd_rankvalue]and the like, look at the pdf for "Example of a Print Program")

Don't forget to use [search at sdn|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_weblog&query=sapscript&adv=false&sortby=cm_rnd_rankvalue].

Regards

Read only

Former Member
0 Likes
4,519

hi,

After creating ur SAPSCRIPT, use these FM's in ur Report program..

CALL FUNCTION 'OPEN_FORM'

CALL FUNCTION 'START_FORM'

CALL FUNCTION 'WRITE_FORM'

CALL FUNCTION 'END_FORM'

CALL FUNCTION 'CLOSE_FORM'

If u didn't get tel me i will clarify u....

Regards,

Shankar.

Read only

Former Member
0 Likes
4,518

Hi,

below Function modules provided by sap for print program

open_form

close_form

start_form

end_form

write_form.

regards

swamy

Read only

0 Likes
4,518

Please tell me , in which FM we are giving that particular sapscript name?

Also I am not clear according to what functionalities we can confirm which FMs required?

Please clarify.

Regards,

Sreeja.

Read only

Former Member
0 Likes
4,518

first you have to maintain both the print program name and the corresponding sapscript name in the 'nace' transn.

After this use the call function 'write_form' in your print program mentioning the text elements name, which you want to call in various stages of the program.

In order to see the debugging of both the SAPscript and the print program, in SE71 give the layout name and Utilities->Activate Debugger

In the print program, mention a breakpoint wherever needed.

-archana

Read only

Former Member
0 Likes
4,518

hi,

Every Script has a driver program which is a SE38 program and so we can call the normal report program from the driver program using SUBMIT statement and same in the case of calling scripts from normal programs we can use submit and we can call the driver program from the script.

copy forms between clients

step 1. from the sap standard menu choose Toolsu2013> sap scriptu2014> SE 71

Step 2. on the form painter:request screen,choose utilitiesu2014> copy from client

hope this helps you...

Regards,

Praveena.

Read only

Former Member
0 Likes
4,518

Hi,

Sapscript is used for form printing from an abap program (reports) written in se38.If you have created your sapscript form in se71, use the following function modules

1. open_form - in this module specify the sapscript form name in the parameter FORM on the exporting side.

2. write_form - in this module you'll have to specify the name of the element if you have defined it with /E in your sapscript form.

3. close_form - you need not specify any paramenters in this module.

Remember that these 3 modules are compulsary and will not give you an output if any of them are skipped.

I hope this may help you to a certain extent. Do let me know if more details are required.

Thanks,

Sachin

Read only

mahaboob_pathan
Contributor
0 Likes
4,518

CALL FUNCTION 'OPEN_FORM'

CALL FUNCTION 'START_FORM'

CALL FUNCTION 'WRITE_FORM'

CALL FUNCTION 'END_FORM'

CALL FUNCTION 'CLOSE_FORM'

in open form u have to mention the form name

and write form give the element which u used in the script.

regards,

pathan.

Read only

0 Likes
4,518

Hi Experts,

We need to mention sap script form name in OPEN_FORM or START_FORM.

Please suggest