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

Issue with Asset transfer within company code through BAPI

Former Member
0 Likes
2,505

Hi All,

I am trying to transfer assets within a company code, with structure and tables populated in bapi, BAPI_ACC_ASS_TRANSFER_POST.

Through ABUMN, we are getting only required and correct entries in the document getting created after the transfer.

But with BAPI, I am getting some extra entries along with the required entries.

I am populating data in the DOCUMENTHEADER structure; and TRANSRETIREMENTDATA and TRANSACQUISITIONDATA tables.

Can anyone provide me some solution to this.

Thanks in advance.

8 REPLIES 8
Read only

Former Member
0 Likes
1,701

hi

use this link .

hope it will help u.

Read only

0 Likes
1,701

hi katigiri,

i have tried this option and the asset1 which i have to transfer has been transferred, and the document has been created successfully.

but the document created has the different postings the and entry on the assets are different.

Read only

0 Likes
1,701

Hi,

While transferring the assets from 002100000044 to 002100000043 through transaction ABUMN, the document post with entries somewhat like this -

Posting key Account Description Amount

75 152501 002100000044 0000 -3.000,00

70 152557 002100000044 0000 9,38

70 152501 002100000043 0000 3.000,00

75 152557 002100000043 0000 -9,38

And while trasferring assets between 002100000046 and 002100000049 using BAPI_ACC_ASS_TRASFER_POST, the document posts with entries somewhat like this -

PK Account Description Amount

75 152501 002100000046 0000 -10.000,00

70 152557 002100000046 0000 104,17

40 437504 N-Cash Dona Cont Cap 9.895,83

75 152501 002100000049 0000 -10.000,00

70 152501 002100000049 0000 10.000,00

70 152557 002100000049 0000 104,17

75 152557 002100000049 0000 -104,17

Which ideally should have only two entries for asset 002100000049, not in BOLD.

The entries in bold are extra entries. I don't how I am getting these entries, and would like to get rid of them.

Can anyone help me on this.

Read only

0 Likes
1,701

Hi,

I will appreciate if anyone can please help me with this issue.

Thanks in advance.

Read only

0 Likes
1,701

Hi,

Is there anyone who can help me with this issue.

Thanks in advance.

Read only

0 Likes
1,701

Hi,

I am getting the above data from the fields in the BAPI as given below.

wa_doc_header-OBJ_TYPE = 'AMBU'.

wa_doc_header-DOC_DATE = '20090422'.

wa_doc_header-PSTNG_DATE = '20090422'.

wa_retire_data-ITEMNO_ACC = '0000000001'.

wa_retire_data-COMP_CODE = '1010'.

wa_retire_data-ASSETMAINO = '002100000039'.

wa_retire_data-ASSETSUBNO = '0000'.

wa_retire_data-VALUEDATE = '20090422'.

wa_retire_data-COMPL_RET = 'X'.

wa_retire_data-PART_COMCO = '1010'.

wa_retire_data-PART_ASSET = '002100000043'.

wa_retire_data-PART_SUBNO = '0000'.

APPEND wa_retire_data to tab_retire_data.

wa_retire_data-ITEMNO_ACC = '0000000002'.

wa_acqui_data-COMP_CODE = '1010'.

wa_acqui_data-ASSETMAINO = '002100000043'.

wa_acqui_data-ASSETSUBNO = '0000'.

wa_acqui_data-VALUEDATE = '20090422'.

wa_acqui_data-PART_COMCO = '1010'.

wa_acqui_data-PART_ASSET = '002100000039'.

wa_acqui_data-ITEMNO_RET = '0000000001'.

wa_acqui_data-PART_SUBNO = '0000'.

APPEND wa_acqui_data to tab_acqui_data.

CALL FUNCTION 'BAPI_ACC_ASS_TRANSFER_POST'

EXPORTING

documentheader = wa_doc_header

  • CALLED_FROM_WORKFLOW =

tables

transretirementdata = tab_retire_data

transacquisitiondata = tab_acqui_data

  • TRANSRETAREAVALUES =

  • ACCOUNTGL =

  • CURRENCYAMOUNT =

  • EXTENSION1 =

return = tab_return.

Is this problem happening because of wa_retire_data-COMPL_RET = 'X'.

If this is the case then can anyone help me which fields I should populate.

Thanks and Best Regards

Read only

0 Likes
1,701

Hi Satya,

Can you solve this issue?

Read only

0 Likes
1,701

Hi Satya

Did you solve this issue ?

I'm trying to run this Bapi to simulate a ABUMN transaction. But I encountered some issues.

Thanks for your help

Regards