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: 

write_form

Former Member
0 Kudos

Hi All,

what is WRITE_FORM AND START_FORM?

Thansks&Regards

Ramu

4 REPLIES 4

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

amit_khare
Active Contributor
0 Kudos

Hi Ramu,

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

Regards,

Amit

Reward all helpful answers.

former_member842213
Participant
0 Kudos

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.