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

BAPI_ACC_DOCUMENT_POST long text field missing

Former Member
4,707

Hi,

I will have to transfer our vendor open items from v 3.1 to ERP 2004. I

am using <b>BAPI_ACC_DOCUMENT_POST</b> to upload these open items. However, I

cannot find the <b>'LONG TEXT'</b> field in the said BAPI. In using <b>F-02</b>, a

long text field/button is available. <u><b>How can i post an entry in the long text

field of the line item in f-02 using BAPI_ACC_DOCUMENT_POST</b></u>.

Also, i have used the extension1 table and a BTE (note 487722) in

uploading the posting key. Since field bschl is available in table

accit, there was no problem in doing this. However, i cannot seem to

find the field long text in this table. Is it available? If not, what

can I do with the above situation.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
3,039

Hi,

How are you calling the SAVE_TEXT fm..

Pass the parameter SAVEMODE_DIRECT = 'X'.

Thanks,

Naren

14 REPLIES 14
Read only

andreas_mann3
Active Contributor
3,039

Hi,

you will <b>not</b> find it in any structure

-> use fm's INIT_TEXT and save_text

A.

Message was edited by: Andreas Mann

Read only

0 Likes
3,039

it seems that <b>save_text</b> could only be used in headers' long text. will i be able to use this for <b>line items' long texts</b> as well? how can i do this?

Thanks so much

Read only

Former Member
0 Likes
3,039

Hi

I don't believe try to use std bi RFBIBL00

Max

Read only

0 Likes
3,039

how can i make use of <b>RFBIBL00?</b>

Thanks.

Read only

0 Likes
3,039

Hi

Excuse me! you can't use RFBIBL00, use the fm SAVE_TEXT.

After calling the BAPI you should have the number of FI document will be created and know in which item you need to insert the long text so:

THEAD-TDOBJECT = <Object text>.

THEAD-TDNAME(4) = <Company code>

THEAD-TDNAME+4(10) = <Document number>

THEAD-TDNAME+14(4) = <Fyscal year>

THEAD-TDNAME+18(3) = <Item number>.

THEAD-TDID = <Id text>.

THEAD-TDSPRAS = <Language>.

THEAD-TDLINESIZE = 72.

These are the header data, transfer the text in LINES parameters.

Max

Read only

0 Likes
3,039

Ok i'll try this out. Thanks so much!

Read only

0 Likes
3,039

Hi Max,

How can i find the object text the long text (notes) for F-02? Thanks.

Read only

Former Member
0 Likes
3,039

it seems that <b>save_text</b> could only be used in headers' long text. will i be able to use this in line items as well? how can i do this?

also, how can i make use of <b>RFBIBL00</b>?

thanks for all the help.

Eunice

Read only

Former Member
0 Likes
3,039

Hi,

If you don't to store more than one 50 characters..Use the field ITEM_TEXT in the bapi line item..

Thanks,

Naren

Read only

0 Likes
3,039

The thing is, I have used that field already to post other details.

I need the long text to post some more details.

Read only

Former Member
0 Likes
3,039

Hi,

The text details are mentioned below..

Text ID - 0001

Text object - DOC_ITEM

The text name is the combination of

BSEG-BUKRSBSEG-BELNRBSEG-GJAHR+BSEG-BUZEI..

Which means you will get the belnr only after calling the bapi..

Use the function module SAVE_TEXT to save the text..

Please let me know if you have any questions..

Thanks,

Naren

Read only

0 Likes
3,039

There were no errors, though when i checked the document created by the bapi, and went through the line items, still the long text was blank.

Read only

Former Member
3,040

Hi,

How are you calling the SAVE_TEXT fm..

Pass the parameter SAVEMODE_DIRECT = 'X'.

Thanks,

Naren

Read only

0 Likes
3,039

Thanks! That solves it!!!