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
649

Hi All,

Can anybody please explain me the parameters used in WRTE_FORM with an example.

Thanks in Advance.

6 REPLIES 6
Read only

Former Member
0 Likes
629

Hi,

U can use this FM for the Other Windows also by the following Means,

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'ELEMENT1'

type = 'BODY'

window = 'WINDOW1'.

So here your window name is "window1". So what ever you wrote in window is Displayed in the SAPscript form.

Thanks,

Reward If Helpful.

Read only

0 Likes
629

Thanks for your quick response. What are the values used in parameter 'TYPE'.

Read only

0 Likes
629

in type u specify Window area in MAIN window..default value is 'BODY'

Read only

Former Member
0 Likes
629

Hi

<b>WRITE_FORM</b> (to output the general text and data in the main window)

<b>

Syntax Description</b>

CALL FUNCTION ‘ WRITE_FORM ’

EXPORTING

ELEMENT = ..

TYPE = ..

FUNCTION = ..

WINDOW = ..

EXCEPTIONS …..

reward if usefull

Read only

former_member188827
Active Contributor
0 Likes
629

Text

SAPscript: Output text element in form window

The specified element of the layout set window entered is output. The element must be defined in the layout set.

The specified element of the layout set window entered is output. The element must be defined in the layout set.

The specified element of the layout set window entered is output. The element must be defined in the layout set.

Parameters

PENDING_LINES

FUNCTION

ELEMENT

TYPE

WINDOW

Exceptions

WINDOW

TYPE

UNOPENED

UNSTARTED

ELEMENT

BAD_PAGEFORMAT_FOR_PRINT

CODEPAGE

FUNCTION

SPOOL_ERROR

Read only

Former Member
0 Likes
629

hi,

write_form : writes the data in the form

u can use this fun module : call function 'write_form'

in exporting

element = 'emat'.

type: body

window : 'main".

emat is group name that u give it in main window.