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 for create material master (SAP version 40b)

Former Member
0 Kudos
99

Hi,

Anyone know BAPI for create material master for SAP version 40b?

There's no BAPI_MATERIAL_SAVEDATA.

I try to use BAPI_MATERIAL_MAINTAINDATA_RT,

but seems that BAPI only for retail.

Kindly advice!

Thanks,

Victor.

2 REPLIES 2

Former Member
0 Kudos
53

Hi,

this one works pretty good.

call function 'MATERIAL_MAINTAIN_DARK'

exporting

sperrmodus = ' '

kz_prf = 'W'

max_errors = ' '

p_kz_no_warn = 'X'

kz_verw = 'X'

kz_aend = 'X'

kz_dispo = 'X'

kz_test = ' '

flag_muss_pruefen = ' '

call_mode = 'ACT'

importing

number_errors_transaction = numerror

matnr_last = last_matnr

tables

amara_ueb = i_mara "Basic Data

  • amakt_ueb = i_makt "Descriptions

amarc_ueb = i_marc "Plant

  • amard_ueb = i_mard "Storage Location

  • AMFHM_UEB = I_MFHM "Production Tools

  • amarm_ueb = i_marm "Units of Measure

  • AMEA1_UEB = I_MEA1 "Internal Mangagement - EANs

  • ambew_ueb = i_mbew "Accounting/Costing

  • asteu_ueb = i_steu "Tax Data

  • astmm_ueb = i_steumm "Tax Data

  • AMLGN_UEB = I_MLGN "Warehouse Data

  • AMLGT_UEB = I_MLGT "Storage Type Data

  • AMPGD_UEB = I_MPGD "Change Documents

  • AMPOP_UEB = I_MPOP "Forcast Parameters

  • AMVEG_UEB = I_MVEG "Total Consumption Data

  • AMVEU_UEB = I_MVEU "Unplanned Consumption Data

  • amvke_ueb = i_mvke "Sales Data

  • altx1_ueb = i_ltx1 "Sales Text

  • AMPRW_UEB = I_MPRW "Forcast Values

amfieldres = i_delfields

amerrdat = i_errors

exceptions

kstatus_empty = 01

tkstatus_empty = 02

t130m_error = 03

internal_error = 04

update_error = 05

too_many_errors = 06.

Otherwise try BAPI_RETAILMATERIAL_CREATE

BAPI_STANDARDMATERIAL_CREATE

<b>Reward points</b>

Regards

0 Kudos
53

Hi Skk,

I got the following error:

Transaction code does not exist (table T130M)

Any idea of this?

Best Regards,

Victor