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

Posting Key issue in BAPI_ACC_DOCUMENT_POST

former_member214878
Active Participant
0 Likes
5,422

Dear All,


I am working aroung BAPI_ACC_DOCUMENT_POST, I have a requirement -

Need to create the accounting document for Customer advance payment against Net-banking transaction. Document is to be created with the accounting document type (DZ-Customer Payment).

Since the FI documents of customer payment and Advance payment is to be separated, Customer line item of above entries are to be posted with posting key 04 (Other Receivables - Debit) and GL Account line item to be posted with posting key 50 (GL - Credit) .....

Since BAPI does not give any predefined way to pass the posting keys, I assume internally it will be taking the Posting Keys as per the Configuration. Thats why this BAPI is getting posted successfully but Posting Keys are different than what I actually want.

All I want to know is, how can we change the posting keys while posting the BAPI? Seached a lot but did not find any suitable posting ...

Please let me know if you have anything in your mind. ....

Thanks and Regards,

Ravindra Sonar.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,370

Use Business transaction event (RWBAPI01).  Search SCN, you will find relevant documents/discussions.

Regards,Vinod

8 REPLIES 8
Read only

Former Member
0 Likes
3,371

Use Business transaction event (RWBAPI01).  Search SCN, you will find relevant documents/discussions.

Regards,Vinod

Read only

0 Likes
3,370

Great help Vinod,

issue got cleared got some nice documents on SCN, going to work on that ..... surprisingly was simmilar of what I got from my functional consultant May be he has copy pasted it from there only to test me invested lot of time in debugging that BAPI though ....

Thanks for showing me the path, gonna walk on it.

Regardsm

Ravindra Sonar.

Read only

0 Likes
3,370

Hi Ravindra,

I have problem to pass posting to BAPI BAPI_ACC_DOCUMENT_POST...

I need to pass POSTING KEY as '15' For incoming payment from customer. Currently the BAPI update the posting as 11 by automatically .

Can you please help me to solve it,

Thanks,

Pasumpon Karuppaiah

Read only

ThomasZloch
Active Contributor
0 Likes
3,370

My curious self searched for the keyword provided by Vinod and found this wiki entry by...Vinod

http://wiki.sdn.sap.com/wiki/display/ABAP/Business+Transaction+Event+-+RWBAPI01+-+For+Accounting+Doc...

What puzzles me is that the section "Scenario" in his document from 2010 is identical to your first paragraph above. Can you explain this?


Thomas

P.S. meanwhile I saw your second post, as usual, the functional consultant can be blamed

Read only

0 Likes
3,370

He he he the exact search I gave and found out the same document with same paragraph.

I was also shocked to see how on earth I can get same documented question from one functional consultant to just to test me???????

I invested lot of time in BAPI debugging and Extension Table etc. , rather than searching on SCN ... Otherwise I would have never posted it here.

I should ask the same question to the person who assigned me this task now    

Read only

0 Likes
3,370

Good one, Thomas. Interesting & funny.. ( I didn't read OPs entire business requirement while replying).  Surprising, that someone got the similar requirement which I mentioned in the Wiki post.

Regards, Vinod

Read only

0 Likes
3,370

I am not blaming my Functional guy, honestly I could never be able to explain my question on such a tough topic with such a brilliant wordings At least I am sure about it. Also there is no point in asking question whos answer you are reading right

So whatever I got I pasted it here. I should have searched it with proper concentration and with proper keywords perhaps to save me from Thomas

And suprisingly this document has been writen by Vinod only ....  what a co-incident

Read only

swapnil_rane
Explorer
0 Likes
3,370

Perfect Solution!! Thanks a lot for document..

Best Regards,

Swapnil R.