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

write_form

Former Member
0 Likes
621

Hi All,

what is WRITE_FORM AND START_FORM?

Thansks&Regards

Ramu

4 REPLIES 4
Read only

Former Member
0 Likes
568

Hi ramu,

1. In sapscript layouts, there are Elements (/E)

for printing block of texts, such as line items, in a loop.

2. To print such text elements, from the driver program, and with flow,

we use WRITE_FORM, and pass the element name to be printed.

(For line items, such as po items,

we use LOOP in the driver program,

and inside the loop, we use WRITE_FORM and pass the element name)

3. START_FORM is totally different.

Usually it is not used.

We use it only when we want to

use 2 or more different layouts, in one single driver program.

In that case,

we have to start layout 1, then layout 2, etc...

then we print them, using write_form,

and then we stop/end them with END_FORM,

each for layout1, layout 2, etc.

regards,

amit m.

Read only

Former Member
0 Likes
568

The FM Start_form is used to start a layout set in Scripts

and the FM write_form is used to Output text element in form window.

Read only

amit_khare
Active Contributor
0 Likes
568

Hi Ramu,

Check Manish Reply in this thread. It will give you exact picture of the FMs.

Regards,

Amit

Reward all helpful answers.

Read only

former_member842213
Participant
0 Likes
568

To run a sap script we need driver program ,In that program we should call our

sap script for that we are using open form function module.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

FORM = 'ZNEW_SCRIPT'.

Write Form:

is to display any contents in your sap script.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

  • Element = 'E1'

window = 'MAIN'.

The form shoud be ended ,thatz y v r using end form.

CALL FUNCTION 'CLOSE_FORM'.

Our driver program need to consist of the above three function module,

or v cant run sapscript.