Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Help on BAPI_DOCUMENT_CREATE2

Former Member
0 Likes
617

Can nyone pls tell how to include long texts in the tables parameter o that when the document is created in the long text field I am able to see the long text. In my case the document is created without long text?

2 REPLIES 2
Read only

Former Member
0 Likes
499

See standard include program LCDESKF13 which uses this BAPI. Here Long text is populated. You can check this and rectify error in your program.

data: lt_longtexts LIKE bapi_doc_text_keys OCCURS 0 WITH HEADER LINE,

data: lt_bapi_longtexts LIKE bapi_doc_text OCCURS 0 WITH HEADER

LINE,

  • fill table lt_bapi_longtexts

CLEAR: lt_bapi_longtexts.

LOOP AT lt_longtexts WHERE tab_index = wa_plm_document-index.

APPEND lt_longtexts TO lt_bapi_longtexts.

ENDLOOP.

Read only

Former Member
0 Likes
499

Hey Papiya,

Are you building your internal table for Long text using the structure 'BAPI_DOC_TEXT' ?? Did you do a Where-Used List for the BAPI to check it's usage?

Regards,

Vivek