on 04-20-2006 5:43 PM
CALL FUNCTION 'WRITE_FORM'
EXPORTING
window = 'CHECK'
element = '540'
EXCEPTIONS
window = 1
element = 2.
Can any one tell me what is the purpose of element,is it have any unique feature and also what is the order driver pgm will load window in form.
I think first always main window load then remain window as per albaphetical order..
if we want to change ordre then we have to write code in write form in drive pgm as we want that time also first will main window always..
anyway if any doc is supporting this,it will helpful me..
Thanks
Kumar
Hi
The element (in your case 540) is a text element of the window, so in your sapscript in window CHECK you should find a line like this:
/E 540
The text element is a part of a window and it's printed only if it's directly called by fm WRITE_FORM.
So you can insert several text element in a WINDOW and decide what has to be printed.
For example: WINDOW WELCOME
/E ITALIAN
Ciao
/E ENGLISH
Bye Bye
IF LFA1-SPRAS = 'I'.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
window = 'WELCOME'
element = 'ITALIAN'
EXCEPTIONS
window = 1
element = 2.
ELSE.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
window = 'WELCOME'
element = 'ENGLISH'
EXCEPTIONS
window = 1
element = 2.
In this case a sentece is writen in order of the language and is place in the same position of the page because both text elemant belong to the same window.
I'm not sure the sequence used to load the windows, but you could see it running your sapscript in debug mode. Anaway I'm sure it depends on when the program call the windows.
Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I believe you are a little confused.
SO10 is trx to create the standard text, not text element.
The std text is like a sapscript, but it can be inserted into a sapscript.
The text element are in the windows, so they are a part of the sapscript and so they are created in SE71 while creating the sapscript.
For example:
By SO10, you create the std text ZMY_TEXT
By SE71, you create you sapscript ZMY_PRINT and in the window MY_WINDOW you can insert that text:
/: INCLUDE ZMY_TEXT OBJECT TEXT ID ST
You can also insert the std text in a text element of the window
/E ELEMENT1
/: INCLUDE ZMY_TEXT OBJECT TEXT ID ST
Max
Hi Kumar,
Use of an element is to print different blocks of statments explicitly.
If you want to print only some block of statments in a window depending on a particular condition, if you write that block starting with /E, it will be called only when the user calls it explicitly from driver program, otherwise that part will not be printed.
Thanks,
Ramya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.