09-29-2008 1:31 PM
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®ards,
srinivas.
09-29-2008 1:39 PM
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
09-29-2008 1:41 PM
thanks,
i also used profit center,its coming but
when segment is inserted its not taking.
09-29-2008 2:07 PM
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
09-29-2008 4:17 PM
hi
all the data is posting in the database table but segment is not storing in the document.