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_GL_POSTING_POST

Former Member
0 Likes
2,079

Hi!

I am trying to utilize BAPI_ACC_GL_POSTING_POST. However, at first glance I can see that there are very little parameters to pass. Most of the fields that users fill when they post manually (BSEG fields, e.g. MWSKZ, ZFBDT, ZTERM...) are missing. BSEG has >200 fields, while BAPIACGL08 has 28 fields. How can I use this function then?

Thanks!

Regards,

Igor Barbaric

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,744

Hi,

Have you checked BAPI_ACC_DOCUMENT_POST . It uses BAPIACGL09 which has 99 fields. Also remember, that these are only for GL postings. You also have customer and vendor specific BAPI, BAPI_ACC_INVOICE_RECEIPT_POST and BAPI_ACC_BILLING_POST .

I am looking at these BAPIs in ver 46C.

Hope this helps.

Raj

7 REPLIES 7
Read only

Former Member
0 Likes
1,745

Hi,

Have you checked BAPI_ACC_DOCUMENT_POST . It uses BAPIACGL09 which has 99 fields. Also remember, that these are only for GL postings. You also have customer and vendor specific BAPI, BAPI_ACC_INVOICE_RECEIPT_POST and BAPI_ACC_BILLING_POST .

I am looking at these BAPIs in ver 46C.

Hope this helps.

Raj

Read only

0 Likes
1,744

Thanks, Raj!

BAPI_ACC_DOCUMENT_POST looks like it's worth a try. I got stuck with parameter DOC_HEADER-BUS_ACT. First I've got message that it's obligatory, then I passed transaction code 'FB01' and got message that it's invalid. I have no idea what's expected here.

Kind regards,

Igor Barbaric

Read only

0 Likes
1,744

I peeked into BKPF and saw it. I'll just pass 'RFBU' hardcoded for the time being.

Igor

Read only

0 Likes
1,744

Raj!

I had one mess of CALL TRANSACTION calling FB01 with many items - it was complicated, sensitive and hard to maintain. Thanks to your hint, I'm having now smooth, fast and reliable functionality. I cut code lines by third and it's clear and tidy now.

There's only one little problem left:

I can't find parameter field which would correspond to "BSEG-KIDNO Payment Reference" for vendor item lines(ACCOUNTPAYABLE). Without this, the whole thing is useless.

Thanks!

Regards,

Igor

Read only

0 Likes
1,744

Hi!

I resolved it by just appending structure with PAYMT_REF field to BAPIACAP09.

I peeked into the BAPI_ACC_DOCUMENT_POST code and saw a nice little MOVE-CORRESPONDING there, which suggested that it could work. The target structure ACCBAPIFD5 has much more fields than BAPIACAP09 and they can all be appended this way. I wonder why they didn't put them there in the first place.

It works beautifully now.

Thanks a lot, Raj!

Igor

P.S. I'd still be happier with solution that doesn't require changes to standard objects, although this one wasn't a mod. If anyone has one, please share it.

Read only

0 Likes
1,744

Dose anyone konw about the profit segment issues when posting a GL document using BAPI 'BAPI_ACC_DOCUMENT_POST ' by table paratemers 'CRITERIA' and 'VALUEFIELD'. Please help!

Read only

Former Member
0 Likes
1,744

Hi,

I am trying to use BAPI_ACC_DOCUMENT_POST to post G/L document using transaction f-02 . Can any one please tell me about the parameters-fileds

DOCUMENTHEADER-OBJ_TYPE , DOCUMENTHEADER-OBJ_KEY, DOCUMENTHEADER-OBJ_SYS and what are the values need to be passed for each field while posing G/S document in the header leverl .