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: 

FM write_form

Former Member
0 Kudos
207

Dear All!

For SAP-Script is this below shown FM very important and elementary.

Who can say to me how can I call a window type -> var (not main)

with this FM.

Worlds all examples about sap script show how it works with

main but never an example with other window types like var or constants ?

I can't almost see this line -> WINDOW = 'MAIN'

I hope you have insight for my nervousness.

Regards

Ilhan

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'INTRODUCTION'

FUNCTION = 'SET'

TYPE = 'BODY'

WINDOW = 'MAIN'

EXCEPTIONS

OTHERS = 8

1 ACCEPTED SOLUTION

Former Member
0 Kudos
86

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'.

Regards,

Padmam.

2 REPLIES 2

Former Member
0 Kudos
87

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'.

Regards,

Padmam.

Former Member
0 Kudos
86

Hi,

I understand your problem, suppose you want to display address of the vendor in constant window, so, you can write text element in constant window like this:

/E: ELE1

In write form FM:

Call Function 'Write_Form'

Exporting

Element : 'ELE1'

Function : 'SET'

Type : 'BODY'

Window : 'Const' (Window name)

.....

Regards,

Bhaskar