on 01-07-2009 3:58 PM
Hello,
I would like to show an item text field of a delivery (VL02n) on one of the output script forms.
I've used the function read_text in my print program for the output type:
DATA: BEGIN OF TEXT_CARTONQUAN OCCURS 20.
INCLUDE STRUCTURE TLINE.
DATA: END OF TEXT_CARTONQUAN.
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = 'Z005'
LANGUAGE = SY-LANGU
NAME = VBDPL-TDNAME
OBJECT = 'VBBP'
IMPORTING
HEADER = THEAD
TABLES
LINES = TEXT_CARTONQUAN
EXCEPTIONS
NOT_FOUND = 1.
READ TABLE TEXT_CARTONQUAN INDEX 1.
MOVE TEXT_CARTONQUAN-TDLINE TO VBDPL-USR01_VBLB.
Now I put this code into my sapscript:
IL &VBDPL-USR01_VBLB&
For some reasons, it does not come up on the form, but I know it should have a value.
Am I missing something?
Thanks,
Anne
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on Jan 7, 2009 11:25 AM
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = 'Z005'
LANGUAGE = SY-LANGU ---> here dont pass sy-langu , you can pass the NAST-SPRAS , becasue the text is created some other language
NAME = VBDPL-TDNAME
OBJECT = 'VBBP'
IMPORTING
HEADER = THEAD
TABLES
LINES = TEXT_CARTONQUAN
EXCEPTIONS
NOT_FOUND = 1.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Instead of using this method you can directly include the delivery item long text in sapscript usind comand
/: INCLUDE &VBDPL-TDNAME& OBJECT 'VBBP' ID 'Z005'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
thanks for the answers!
@Ramiro Escamilla
I've tried that already, but for some reasons, the break point doesn't work, it is not stopping during the print out. I've tested if it is using that print program and uncommented the entry subroutine and I got an error message then, so it's the correct print program. Any suggestions why break point is not working?
@Pawan Kesari
I did that and this is working. But the problem is, I need this value within an IF statement, because I only want to give this and some text out, if INCLUDE &VBDPL-TDNAME& OBJECT 'VBBP' ID 'Z005' has a value. Unfortunately I cannot use the Include statement within an IF statement.
Thanks
Anne
Put a break point before the write form function call for the specific window/element and check if the field has a value assigned.
If the field does have a value it might be an activation issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
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.