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_ASSET_POSTCAP_POST - with Account

Former Member
0 Kudos

Hi,

Was having some problem with Call Transaction on ABNAN,

The call Transaction is in MODE N,

The it_messtab (type BDCMSGCOLL) is not getting populated with the document number after the asset is Posted .The document number is displayed in the status bar when I run ABNAN manually .I need this document number to populate some details of this in the next transaction.

So alternatively tried using the BAPI "BAPI_ASSET_POSTCAP_POST" to post the Asset, but I am not able to specify the account to which i need the asset to be posted. It is currently getting defaulted to an account which we cannot change thru config since another site is using that account.

Tried looking for an user exit for ABNAN, so I could Export to memory the document number that was generated, but could'nt find a suitable one.

Please let me know of any option for changing account in the BAPI or a way to capture the message after the Call Transaction.

Much appreciated.

Thank you

Lalitha

1 REPLY 1

Former Member
0 Kudos

Did not use the BAPI, used the Call Transaction, get the ABNAN document number by importing the bkpf table from Memory