Skip to Content

create text in log text field fb03

Hello,

I want to add a long text in "long text field" to test in tocde in FB03 with FM Create_text, any help please? I'm using the table FEBRE:

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 14 at 07:24 AM

    Hi Ouail Roukbi,

    Better you can go for BAPI Function Module : "BAPI_ACC_DOCUMENT_POST"

    *Logic
    wa_bapi_item-item_text = wa_final-item_text. 
    APPEND wa_bapi_item TO it_bapi_item. 

    (It gets saved in Text-Field in DB Table: BSEG, Field Text: SGTXT)

    Hope this helps you.

    If any clarifications comment below.

    Thanks & Regards,

    Niyas

    Add comment
    10|10000 characters needed characters exceeded

  • May 14 at 07:40 AM

    Thank u, Mohamed.

    But I'm looking to create text in the input field "long text For Document line item"

    I'm using the FM Create_Text with the following code:

    CALL FUNCTION 'CREATE_TEXT'
    EXPORTING
    fid = fid
    flanguage = sy-langu
    fname = fname
    fobject = 'FEBRE'
    * save_direct = 'X'
    * fformat = '*'
    TABLES
    flines = textline
    EXCEPTIONS
    no_init = 1
    no_save = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    * Implement suitable error handling here

    ELSE.

    COMMIT WORK AND WAIT.
    ENDIF.

    but I don't know if the correct fobject is FEBRE ? I think that finally the text should be saved in the structure table TLINE.

    Wat do you think ?

    Ouail.

    Add comment
    10|10000 characters needed characters exceeded