Application Development 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: 

BAPI_ACC_DOCUMENT_POST

Former Member
0 Kudos

hi,

i am using the BAPI_ACC_DOCUMENT_POST .

i am giving the data to line items with profit center and segment.

the document is posting but in bseg table its not taking the segment value.

please tell me the solution for this/

thanks&regards,

srinivas.

4 REPLIES 4

Former Member
0 Kudos

Hi,

I've used the same BAPI and it posts fine setting the following

*-----------------------------------------------------------------------
* Post an entry to the actual profit center
*-----------------------------------------------------------------------
    add 10 to lv_item.
    clear ls_acc.
    ls_acc-itemno_acc = lv_item.
    ls_acc-gl_account = hdr-hkont.
    ls_acc-profit_ctr = <ls_itm>-prctr.
    append ls_acc to gt_bapiacc.

    clear ls_amt.
    ls_amt-itemno_acc = lv_item.
    ls_amt-amt_doccur = <ls_itm>-wrbtr.
    ls_amt-currency   = hdr-waers.
    append ls_amt to gt_bapiamt.

Regards,

Darren

0 Kudos

thanks,

i also used profit center,its coming but

when segment is inserted its not taking.

0 Kudos

Hi,

After using the posting BAPI, did u commit using the BAPI_TRANSACTION_COMMIT?

Please check and let me know incase of issues

Regards

Shiva

0 Kudos

hi

all the data is posting in the database table but segment is not storing in the document.