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

Adding extra fields for the Bapi

Former Member
0 Likes
572

Hi Friends,

My Requirement is to upload data using transaction F-02 (Enter GL Account posting) with DA document type.

For this, the suitable BAPI I have found is BAPI_ACC_DOCUMENT_POST. But for DA document posting we need to maintain the posting keys 40 and 14. But the bapi BAPI_ACC_DOCUMENT_POST does not have posting key field.

I need to add the posting key field to this bapi by copying standard bapi to customer namespace. Please give me some ideas of how to proceed in this regard.

As an alternative, I tried with BDC, but in the FBL5n transaction, it is not going to make correct entry. Then I concluded that BAPI is the correct solution.

Thanks

Murali

2 REPLIES 2
Read only

brad_bohn
Active Contributor
0 Likes
427

Posting keys are populated by the EXTENSION1 structure - see OSS note 487722 or the documentation for BTE RWBAPI01. There should be examples on this forum as well...

Read only

Former Member
0 Likes
427

Hi

The accounting BAPI, so BAPI_ACC_DOCUMENT_POST too, set the posting key automatically:

Vendor: 21/31

Customer: 01/11

G/L: 40/50

The posting key depends on the sign of the amount

Now If it needs another key it should set the table T030B for a particular operation key (KTOSL)

But I've never tried that solution

That BAPI calls 2 exit:

The BTE RWBAPI01

The BADI ACC_DOCUMENT (method CHANGE)

You can try to use one of them

Max