Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8122

How to use Bapi_acc_document_post for FI and CO-PA posting.

$
0
0

Hi Experts,

 

I am using BAPI_ACC_DOCUMENT_POST for AR posing, But some company codes do posting in CO-PA.

I am filling the CRITERIA and VALUEFIELD tables of the BAPI with the following values:

 

CRITERIA:

 

Field Names:

VKORG  <value>

VTWEG <value>

SPART <value>

WERKS <value>

MATNR <value>

PRCTR <value>

BUKRS <value>

KUNWE <value>

KNDNR <value>

 

VALUEFIELD:

AWTYP = BKPFF

 

the FI document gets posted and the profit segment (co-pa) fields are also populated correctly. But there are no accounting documents created.

 

But when i do the posting manually in FB01 and save the FI document and go the account documents i can see the "Accounting document" "Controlling Document" and "Profitab. Analysis".

 

I want to achieve the same using the BAPI. Can anyone please help in this ?

 

Thanks !

Ravi Aswani


Viewing all articles
Browse latest Browse all 8122

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>