on 04-12-2007 10:42 PM
Hello,
I need display the long text in sapscript. I have a internal table in the print program but i cant display this table in sapscript.
Could you help me, please?
Thanks
David
Hi,
Read the internal table.if internal table have 4 lines split each line in to each and every line..pass to each variable to script.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = '0001'
language = SY-LANGU
name = V_OBJECT
object = 'DOC_ITEM'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = I_LINESP
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE I_LINESP INDEX 1.
I_BSEG-LTEXT1 = I_LINESP-TDLINE.
READ TABLE I_LINESP INDEX 2.
I_BSEG-LTEXT2 = I_LINESP-TDLINE.
READ TABLE I_LINESP INDEX 3.
I_BSEG-LTEXT3 = I_LINESP-TDLINE.
READ TABLE I_LINESP INDEX 4.
I_BSEG-LTEXT4 = I_LINESP-TDLINE.
MODIFY I_BSEG.
ENDLOOP.
Regards,
padmaja.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try n lemme know whether u solved the prob r not?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
David,
do the following:
Goto Menu option "Insert" -> "Text" -> "Standard" -> Give <Text name>, <Text Id> and <Language>.
or
you need to use the incldue text with the text id and text object. try to insert this code in the corresponding window.
/: INCLUDE &variable& OBJECT VBBP ID 0001 LANGUAGE EN.
It may work for u
~~Guduri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naveen,
I am facing a similar situation like the one you have replied below.
I have read the long text and moved the contents to an internal table.
How can I assign this internal table to the standard text (in the calling program)? so that I can use the standard text in sapscript as you describe below.
FYI, my object is VBBP & ID is ZNUM
Please revert.
Thank you very much for your time.
Regards
Geetha
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.