cancel
Showing results for 
Search instead for 
Did you mean: 

What's the use of START_FORM?

Former Member
0 Kudos

hi experts,

wat is the exact use of start_form.

if i writes the code like this:


call function 'OPEN_FORM'
 exporting
*   APPLICATION                       = 'TX'
*   ARCHIVE_INDEX                     =
*   ARCHIVE_PARAMS                    =
*   DEVICE                            = 'PRINTER'
*   DIALOG                            = 'X'
   form                              = 'ZAAA'
   language                          = sy-langu
.

loop at itab.

call function 'WRITE_FORM'
 exporting
   element                        = 'ELE'
   function                       = 'SET'
   type                           = 'BODY'
   window                         = 'MAIN'


close_form.

it is giving error like WRITE_FORM is invalid, START_FORM is missing.

why iam getting error message. if i use start_form iam getting the output.

Edited by: Alvaro Tejada Galindo on Feb 22, 2008 2:46 PM

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

You have to call the 'CLOSE_FORM' function module after the endloop statement.

Cheers,

Deepthee Kasal

Former Member
0 Kudos

hi ,

There is Syntax for doing Scripts...

Open form

Start form

Write form

End form

Close form..

In that Loop can be used Only with Write form so that it can print one or more lines.. remaining is only for initialization of forms and printer.

Former Member
0 Kudos

Hi,

if u use OPEN_FORM then u have have to close that.that is

OPEN_FORM.

WRITE_FORM.

CLOSE_FORM.

if u have used START_FORM then u have to end that.that is

OPEN_FORM.

START_FORM

WRITE_FORM

END_FORM..

CLOSE_FORM.

<REMOVED BY MODERATOR>

Thanks,

Manjunath MS

Edited by: Alvaro Tejada Galindo on Feb 22, 2008 2:45 PM

Former Member
0 Kudos

Hi,

remove the loop and see. it will work.

Former Member
0 Kudos

hi

Open_form => It assign the form and printer, It should be first.

Start_form => It start Writing mode. You can use write_form in loop to write more than one lines befor End_form.