Application Development 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: 

Execute Script

Former Member
0 Kudos

Hi Gurus,

Can we execute the script individually? If yes How? Else what we need to do so?

Regards,

Vijaya

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi vijaya,

You cannot execute script individually.. u need to write a print program to execute the script in se38 with

open_form

write_form

close_form

function modules

regards

padma

4 REPLIES 4

Former Member
0 Kudos

hi vijaya,

You cannot execute script individually.. u need to write a print program to execute the script in se38 with

open_form

write_form

close_form

function modules

regards

padma

Former Member
0 Kudos

Hi Vijaya,

Before giving answer to your point let me tell you one thing..

SAPscript comprises these five components:

  • An Editor for entering and editing the lines of a text. The application transactions automatically call this editor if the user decides to maintain texts that concern an application object.

    • Styles* and forms for print layout. These are created independent of the individual texts using the corresponding maintenance transactions and are allocated to the texts later.

  • The Composer as central output module. Its task is to prepare a text for a certain output device by including the corresponding formatting information. This information comes from the style and form allocated to the text. The SAPscript composer is invisible on the outside.

  • A Programming interface that allows you to include SAPscript components into your own application programs and to control the output of forms from within the programs.

  • several database tables for storing texts, styles and forms.

So by the components of SAPSCRIPT it leads to a conclusion that SAPSCRIPT is not independent like normal Program in SE38..

So to execute SAPSCRIPT we need a Printer program(Driver Program) which contains few function modules like

OPEN_FORM   ----> calls the form by specifying name of the form
WRITE_FORM  -----> used to write the contents of the form
CLOSE_FORM ------> closes the form.

And other two are used depend on usage... they are START_FORM and END_FORM.

go through the library about SAPSCRIPT which will help you more.

Hope my information is clear and helpful to you.

Regards

Narin Nandivada

GauthamV
Active Contributor
0 Kudos

hi,

u can test the form that u have created individually.

goto utilities and select printing test.click on print preview.it will show u the layout that u have designed to ur script.

Former Member
0 Kudos

Hi Vijaya,

You can definitely execute script individually.

After creating a script, in the script menu bar, goto

UTILITIES -


PRINTING TEST.

Now select the printer(LP01).

It gives the exact layout output that could be seen when run thru the program, but without any data.

If you want the data to be displayed, then you call the script program.

Here we have the following option also:

UTILITIES --- PRINT LAYOUT

This gives the outline of our layout, i.e, it shows where our windows are placed on the page.

Hope this helps you.

Any queries, get back to me.

Regards,

Chandra Sekhar

Edited by: Chandrasekhar Gandla on Jun 29, 2008 6:37 PM