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 for vendor clearing

former_member544878
Participant
0 Likes
2,756

Hi All,

An Invoice is created for vendor liability via FB60 and advance paid through (f-48) .

thereafter, they do vendor clearing through F-44.

Example

vendor - 200015

Doc No                Amount

1900000258           10000-

1500000051           1000

once vendor clearing BAPI runs new account should be created with liability of Rs. 9000/= .

Can you please provide a suitable BAPI to meet this requirement?

Already i tried below BAPI's,and can not reach my requirement.

BAPI_AP_ACC_GETBALANCEDITEMS

BAPI_AP_ACC_GETCURRENTBALANCE

BAPI_AP_ACC_GETKEYDATEBALANCE

BAPI_AP_ACC_GETOPENITEMS

BAPI_AP_ACC_GETPERIODBALANCES

Thanks in advance,

Rehan

2 REPLIES 2
Read only

Former Member
0 Likes
1,677

Hi Rehan,

You can use FM POSTING_INTERFACE_CLEARING.

Sample code for the same can be found by google... but here is a reference

https://scn.sap.com/thread/141266

Hope it helps.

BR

Read only

Former Member
0 Likes
1,677

Hi,

Use BAPI_ACC_DOCUMENT_POST.