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 to park G/L Account document

Former Member
0 Kudos

Hi Experts,

I have been looking for BAPI to park G/L account document (FV50).Can you please let me know ,if you have come across it.

I have found the one for posting BAPI_ACC_DOCUMENT_POST, It should not be used in our case..

I appreciate your inputs on it

Thanks

Matt

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

For parking the document you can use PRELIMINARY_POSTING_FB01

and for posting the document use BAPI_ACC_DOCUMENT_POST

5 REPLIES 5

Former Member
0 Kudos

Santhosh,

There is no standard function available for parking. You need to write a BDC (call transaction) to transaction FBV1 or FB01. I would recommend FBV1. Also, I would also suggest creating a custom Z function, that has same interface (import, export, etc) as BAPI_ACC_DOCUMENT and then you put in your BDC code within that function. This way you can switch between the 2 functions by simply changing the function name.

Salai.

Former Member
0 Kudos

Try PRELIMINARY_POSTING_FB01 also

Former Member
0 Kudos

Hi,

There is not function module for that. I am using BDC to park GL document. For BDC parking you can use Function module -

POSTING_INTERFACE_START and POSTING_INTERFACE_DOCUMENT.

Sample Logic:

Loop at header.

populate header.

loop at item.

populate item.

endloop.

call function POSTING_INTERFACE_START

call function POSTING_INTERFACE_DOCUMENT

call function POSTING_INTERFACE_END

BAPI COMMIT.

Endloop.

Former Member
0 Kudos

Hi Santosh,

Do you got solution for this, if so please send how u have done it..Even i too have the same requirement.

Regards

Anil

Former Member
0 Kudos

Hi,

For parking the document you can use PRELIMINARY_POSTING_FB01

and for posting the document use BAPI_ACC_DOCUMENT_POST