on 11-25-2008 8:09 AM
Hi all,
I need to use Text elements from print program to Script output.
I have included the text element name in WRITE_FORM and defined in the script with (/E) also.
Still the data is not displaying.
Please let me know how to use the text elements.
thanks in advance..
Rakesh
<removed_by_moderator>
Edited by: Julius Bussche on Nov 25, 2008 10:08 AM
Thanks Prashanth,
The text elemetns in your example ITEM_HEADER and ITEM_LINE have any significance in the print program or do they need to declare at any other place also other than WRITE_FORM to get the text displayed?
because I followed the same way and still the values in the variables in the layout are not getting displayed.
thanks
Rakesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You do not need to declare the text elements anywhere in driver prog
While using the WRITE_FORM directly pass them in single quotes.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'ITEM_LINE_CONFIGURATION'
EXCEPTIONS
OTHERS = 1.
If values are not printed the debug and check if the variables are not blank.
I dont think there shud be any other problem
Regards,
Prashant
Thanks Prashanth,
How to display the content in the text element(lw_element) in the script.
Means, do we need to maintain the fields and its contents in the text element (lw_element).
I have moved some contents to some variables, then I am using the WRITE_FORM to display these contents. SO I am using the text element in the FM and in the script..
Please let me know the correct procedure to display the desired contents in the layout.
Thanks
Rakesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For printing the text directly on the formm the text element in form wud be as
/E ITEM_HEADER
MH Quantity,,,,Description,,UOM,,Net Weight,,Gross Weight
If you have variable define in the driver prog and you want to display,text elt. wud be as
/E ITEM LINE
MH &CONF_OUT-ATBEZ&,,&CONF_OUT-ATWTB&
where CONF_OUT is a structure with fields ATBEZ and ATWTB
MH is the paragraph format
Hope this clears your doubt.
Regards,
Prashant
I
In the driver prog
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = lw_element
window = lw_window
EXCEPTIONS
element = 1
window = 2.
In the form, in window lw_window
/E lw_element
Hope this helps!
Regards,
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rasheed,
Thanks for the reply.
May I know the procedure for using the Text element in print program and sapscripts.
thanks
Rakesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I thing you should READ_TEXT function module to get text elements in ur form.
Try with tht function module
Regards
Rasheed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.