on 03-13-2008 9:57 PM
Hi experts,
I have problem with long text in F-47 T-CODE(Down payment request: heade data) i develop sap script for payment print prog, text field is bseg-sgtxt In my script my field is bseg-sgtxt(item text). and this field lenght is only 50 char. client wnat this line item more then 300 char char through this field in my script. for that i use long text button... (besides text button) this long text stored in EENO_DYNP and field name is ZEILE , but it is a structure...so my question is
1) How can i retrive this long text field in my script
2) Can u give me example with this coding..
3) How can i concate bseg-sgtxt with EENO_DYNP-ZEILE
give me some code for this issuue
Pl help me its urgent
Vishal
Use FM READ_TEXT to get the long text.
Thusly:
DATA: textl TYPE TABLE OF tline WITH HEADER LINE, "Text Lines
texth TYPE TABLE OF thead WITH HEADER LINE, "Text Header
tx_id LIKE thead-tdid, "Text Id
tx_obj LIKE thead-tdobject VALUE 'DOC_ITEM', "Text Object
tx_lnsize LIKE thead-tdlinesize VALUE 72. "Text Line width
DATA: rec_key(70) TYPE c. " record key fields for texts
CLEAR texth.
REFRESH textl.
tx_id = '0001'.
CLEAR rec_key.
*concatenate bukrs belnr gjahr buzei into rec_key.
MOVE 'UOFT24000000702008001' TO rec_key.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = tx_id
language = sy-langu
name = rec_key
object = tx_obj
IMPORTING
header = texth
TABLES
lines = textl
EXCEPTIONS
id = 01
language = 02
name = 03
not_found = 04
object = 05
reference_check = 06.
Rob
Edited by: Rob Burbank on Mar 13, 2008 6:23 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rob,
Now Client req some change, client want not add text in bseg-sgtxt field. they direct put entry in long text (like Editor button)
like our sap script text element screen. so whole long text
entry put in sap script text element screen, not in text box(bseg-sgtxt).
for that i see that text element table and field, its saved in RSTXT table and fieldname is TXLINE, but it is a structure not table so how can i retrive in my script???
so same function i use for that? give me suggest for this issue
Thanks
Vish
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.