Skip to Content
0

create text in log text field fb03

May 11 at 03:15 PM

30

avatar image

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:

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Mohamed Niyas. R May 14 at 07:24 AM
2

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

Share
10 |10000 characters needed characters left characters exceeded
Ouail Roukbi May 14 at 07:40 AM
0

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.


y1u8o.png (3.5 kB)
Share
10 |10000 characters needed characters left characters exceeded