on 06-16-2007 3:01 PM
Hi!
Whats the use of element in write form function module
call fun 'write-form'.
exp
element =
window
Thanks
Hi Rahul,
Using element helps to divide the data in a particular window.
Foe eg:- IN MAIN Window if you are displaying items list.
Using element item_header u can display on the column names.
/E ITEM_HEADER
Srno.,,Description,,Value.
Using another element item_text you can print the values of the items dynamically.
/E ITEM_TEXT
&..&,,&..&,,&,,&
It is more useful if you are large data in one window itself.if you want some text to appear for certain condition then it is much better to use it inside a seperate element.
one can put the condition directly in the driver progrma beefore you call the element in the write form.
IF VBRP-VKORG = 5000
call function 'write_form'
exporting
element = ' '
window = ' '
If the data satisfies the conditon then only the element will be printed.
Incase of large data to be printed in main window, printing different data under same element increases the complexity.So better use elements in such situations.
Regards,
Subodh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
http://help.sap.com/saphelp_nw04/helpdata/en/d6/0dba41494511d182b70000e829fbfe/frameset.htm
The system outputs the form element specified in parameter ELEMENT into the currently opened form.
In the parameter WINDOW you can specify the name of a window for the output. Remember that the form element must be defined in this window. The parameter FUNCTION specifies how to merge the text lines to be output with any existing contents in the window. In this case, there are differences between the different window types or areas.
CALL FUNCTION 'WRITE_FORM'
EXPORTING ELEMENT = SPACE
WINDOW = 'MAIN'
FUNCTION = 'SET'
TYPE = 'BODY'
IMPORTING PENDING_LINES =
EXCEPTIONS ELEMENT =
FUNCTION =
TYPE =
UNOPENED =
UNSTARTED =
WINDOW =
Specify the name of the text element you want to output into the form window specified in the parameter WINDOW. The element must be defined in that form window. If you specify no element, the system uses the default element, if one is defined in the form.
Default value: SPACE
Hope this will help.
Regards,
Srilatha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
<b>The system outputs the form elements specified in parameter ELEMENT.</b>
call function 'write_form'
exporting
element = ' ' "here specifies the element you are going to
print element data in the script form.
window = ' ' " here specifes the output location(name of the
window for output).
type = ' ' "with help of this parameter ,we can specifies the position of the location to print data.( top or body or bottom)
regards,
Ashokreddy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You would be specifying different elements (or only one element) in a particular window when you create a window in a page. So, this parameter specifies in which element of that window should the function module control.
Specify the name of the text element you want to output into the form window specified in the parameter WINDOW.
An element can contain data such as column headings, values of the fields that are being passed from driver program of the script.
Reward points if this is helpful.
Regards,
Srilatha.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.