cancel
Showing results for 
Search instead for 
Did you mean: 

problem with long text in T-CODE F-47

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Rob,

Thank for quick reply.

but where i use Read_text FM. before write_form or after write-form?

Thanks

Vish

Former Member
0 Kudos

You use the FM to get the text into an internal table, then you have to do your concatenation into a variable that the SAPSCRIPT or SMARTFORM can use. Then you write the form.

Rob

Former Member
0 Kudos

Hi Rob,

Thanks again, i go through your way and i will update you.

Thanks

vish

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Any suggetion??

??

Thanks

Vish