Skip to Content
0

BAPI for Accounting View of material

May 11, 2017 at 07:33 AM

79

avatar image
Former Member

Hi All,

Kindly help. Its urgent. I am trying to update my material master by adding the Accounting view through a BAPI BAPI_MATERIAL_SAVEDATA. My excel sheet would contain material number, plant, valuation class and standard price. I am receiving success message. But unable to see the Accounting view for that material.

Below views have been selected.

bapimathead-basic_view = 'X'.

bapimathead-account_view = 'X'.

bapimathead-cost_view = 'X'.

bapimathead-warehouse_view = 'X'.

The BAPI used:

CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = bapimathead
clientdata = it_bapi_mara "BAPI_MARA1
clientdatax = it_bapi_marax "BAPI_MARAX
plantdata = it_bapi_marc
plantdatax = it_bapi_marcx
valuationdata = it_bapi_mbew
valuationdatax = it_bapi_mbewx
IMPORTING
return = it_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers