BAPI for create material master (SAP version 40b)
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.
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
Similar Messages
-
Function Module / BAPI for Creating Material freight Group
Hi All,
Can anyone tell me the Function Module / Bapi for creating material freight group.
Regards,
Raj.Bapi for creating material freight group. :: You actually use mm01 or mm02 to change data for material flight.
So you can use BAPI for mm02 and mm01
For Ex:
BAPI_MATERIAL_SAVEDATA
Hope this helps -
Standard BAPI for creating groups in SAP
Hi,
I have a requirement to create user groups in SAP executing a BAPI from an external application.
As an input parameter the group name and group description will be passed to the BAPI.
I am unable to find the standard BAPI for the same. Can anyone help me with the BAPI name for creting groups in SAP?
Thanks in advance,
AniHi,
I think you can search for it or you can create a thread at ABAP section. -
Standard BAPI for creating groups in SAP using JAVA and JCO
Hi,
I have a requirement for creating user groups in SAP from java using JCO but i am unable to find the standard BAPI name to creating user groups.
Can anyone let me know whats the bapi name for creating user groups in SAP?
Thanks in advance,
AniHi,
I think you can search for it or you can create a thread at ABAP section. -
BAPI to create Material master record
Hi All,
I need to create a new material master record using a reference Mterial number. Please let me know, if there is any BAPI to achieve this.Hi,
Check these links .You will get your answer in detail.
Re: How to use BAPI BAPI_MATERIAL_SAVEDATA
Re: Mass creation of Material Master Records
Hope it will help you.
Regards:
Alok -
RE:BAPI for Create Material Serial Number
Can anybody please suggest me any function module or BAPI available to Create Material Serial Number (transaction IQ04), and later Change Material Serial Number (transaction IQ02) for updating its class type, class and characteristic description?
Hi,
Two options for creating meters, meter serial number
- FM: EQUIPMENT_SAVE - It is too trickly to use this FM, one has to do lot of research and should have good technical skills
- Using BDC - simple and straigh.
For updating class for the meter you can use FM: BAPI_OBJCL_CREATE (BDC does not work for this one). Again it is pretty complex to implement.
For created meters, i have used both FM and BDC. Decision depends on requirement, volume and resource.
- ASB -
Create Material Master Data with BAPI
Hi,
I don't know using of BAPI. I want using BAPI_MATERIAL_SAVEDATA bapi for creating material master data for Basic Data1, Basic Data2, Purchasing and MRP views. Does anybody can help me ?
Thank you
Good nightHi,
Please refer to the documentation below:
BAPI_MATERIAL_SAVEDATA
Short Text
Create and Change Article Master Data
Functionality
You use this method to create new material master data or to change existing material master data. The data on a material can be transferred for each call.
When creating material master data, you must transfer the material number, the material type, and the industry sector to the method. You must also enter a material description and its language.
When changing material master data, you need enter only the material number.
In the header data, you must select at least one view for which data is to be created. Depending on the view selected, you must maintain other required parameters. If you do not enter values for all of the required parameters, the method is ended with an error message.
The corresponding fields in the tables (such as CLIENTDATA) must first be supplied with data by the calling program. An indicator must also be set for each of these fields so that the data is written to the database by the method. This requires the calling program to supply the corresponding field with the indicator in a checkbox table (for example, CLIENTDATAX). Checkbox tables exist for tables that do not contain any language-dependent texts (MAKT, MLTX), International Article Numbers (MEAN), or tax classifications (MLAN). Several data records for a material can be created in these tables.
If a structure contains fields for units of measurement (such as structure CLIENTDATA, field BASE_UOM), language indicators (such as structure MATERIALDESCRIPTION, field LANGU), or country indicators (such as structure TAXCLASSIFICATIONS, field DEPCOUNTRY), there is always a field of the same name with the ending _ISO. This makes it possible to transfer either the internally used SAP code or a standardized ISO code for the units of measurement, language indicators, or country indicators. ISO codes are converted to an SAP code internally for further processing. The ISO code is used only if the SAP code is not transferred. If you use ISO codes, there must be a unique assignment of the ISO code to the SAP code in the following activities in Customizing for Global Parameters:
Check Units of Measurement
Define Countries
If you want to maintain long texts (basic data texts, internal comments, purchase order texts, material memos, or sales texts) or customer-defined fields for a material, some special conditions have to be observed. They are described in the documentation for parameters MATERIALLONGTEXT and EXTENSIONIN.
Parameters
HEADDATA
CLIENTDATA
CLIENTDATAX
PLANTDATA
PLANTDATAX
FORECASTPARAMETERS
FORECASTPARAMETERSX
PLANNINGDATA
PLANNINGDATAX
STORAGELOCATIONDATA
STORAGELOCATIONDATAX
VALUATIONDATA
VALUATIONDATAX
WAREHOUSENUMBERDATA
WAREHOUSENUMBERDATAX
SALESDATA
SALESDATAX
STORAGETYPEDATA
STORAGETYPEDATAX
FLAG_ONLINE
FLAG_CAD_CALL
NO_DEQUEUE
NO_ROLLBACK_WORK
RETURN
MATERIALDESCRIPTION
UNITSOFMEASURE
UNITSOFMEASUREX
INTERNATIONALARTNOS
MATERIALLONGTEXT
TAXCLASSIFICATIONS
RETURNMESSAGES
PRTDATA
PRTDATAX
EXTENSIONIN
EXTENSIONINX
Exceptions
Function Group
1001UEB
Thanks,
Sandeep. -
HI All,
Anyone know BAPI for create and change PO in SAP version 40b?
This BAPI is not available:
BAPI_PO_CREATE1
BAPI_PO_CHANGE
Can we use this function?
ME_CREATE_DOCUMENT
How about for changing?
Please advice, with the example much better
Best Regards,
Victor.I don't think there is BAPI for PO in 4.0B Version..
ME_CREATE_DOCUMENT - will create Purchase order
Use this FM ME_UPDATE_DOCUMENT to update PO
I saw the FM and looks like both FM will create and update FM,I did not find any sample programs.
Do the where used list in SE37 and may be you get atleast one SAP standard program.
Thanks
Seshu -
BAPI or FM Required to create Material Master
IS there any BAPI or Function module avaiable in SAP to create Material Master.
The following Two BAPIs uses Call transaction, which I dont want.
BAPI_RETAILMATERIAL_CREATE
BAPI_STANDARDMATERIAL_CREATE
Please let me know if any other Function module or BAPI Avaiable in the system.
Thanks
AmanYep, 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.
Regards,
Rich Heilman -
Set default value for price unit when creating material master data
HI: Every
could you tell me how to use user-exit or else ways to set default value(such as 1000) for field "Price unit" (MBEW-PEINH) when creating material master data(MM01)?
I have try to use Exit:EXIT_SAPLMGMU_001. However, this way cannot respones it.
thanks
HenryHi: Ihave find out a solution
Use BADI: BADI_MATERIAL_REF
SPROlogistics general enhancement supplement or change default data (industry)
And then creating a Implementation Name
Double click method: CREATE_MATERIAL
And then write code as below:
method IF_EX_MATERIAL_REFERENCE~CREATE_MATERIAL.
c_mbew-peinh = '1000' .
endmethod.
However, SAP still store '1000' in database evenif we change the default value such as 100 when we use TCode MM01.
in additional, we still use MM02 to change the default value such as '100'
can anybody tell me how to do?
thanks
Henry -
Bapi or IDOC which create material master in ECC
Hi Guys,
Can any one let me to know by which function modules or Bapi or IDOC available to create material master in ECC?
Regards,
Veerahi,
there are lot many ways of creating Mat master.
1: you can go for idocs: /CWM/MATMAS_BAPI, /SAPSLL/MATMAS_SLL, ARTMAS, MATMAS..
2: you can use LSMW batch method:
Object 0020 Material master
Method 0000
Program Name RMDATIND
Program Type D Direct Input
3: you can use BAPI as suggested above:
Business Object BUS1001006 Standard material
Method SAVEDATA Create and change materia
Message Type MATMAS_BAPI Create and change materia
Basic Type MATMAS_BAPI03 Create and Change Materia
ags. -
ISR For Approve Create Material Master
I have requirement apply ISR for Control Create Master.Example User1 input information about purchasing group and send to User2. And then User2 input information about Plant and send to next user for approve.If already send to last user and submit,ISR will be create material master.
But i don't know could be apply ISR for this case, Because i find for Costing and Banking.
Please help me. Thank you very muchHi,
You need to speak to a workflow consultant.
You can get workflow to do many things (including creating a material master) but it takes a lot of coding and design.
For those of you who think that workflow is just used for the standard SAP workflow tasks, you have to realise that workflow is far more powerful and far more useful than many people think.
It is always referred to as "Event triggered messaging" but it is more accurate to call it "Event triggered events".
Within workflow you can chain together many different transactions and or ABAPS and so you can get it to do virtually anything you want (as long as you know how).
In this case you need the workflow to trigger an ABAP or BTCI session etc. that works through the MM01 transaction. It is relatively easy to get it to do this, but I am not technical enough to be able to help with the steps involved (sorry)
Steve B -
CREATING MATERIAL MASTER USING BAPI-GROSS_WT VALUE IS NOT SEEN
HI GUYS,
I AM CREATING MATERIAL MASTER USING BAPI_MATERIAL_SAVEDATA.I AM LOADING THE VALUES FROM A FLAT FILE .
THE VALUE FOR GROSS_WT IS NOT SEEN WHEN THE MATERIAL IS CREATED.
THE BAPI_MARM STRUCTURE HAD THE FILED BRGEW(GROSS_WT).
I AM ABLE TO LOAD NET WT CORRECTLY BUT AM NOT ABLE TO LOAD GROSS WT.
ANY SUGGESTIONS AS TO WHY THIS IS HAPPENING AND PROVIDE ME WITH A SOLUTION.
THANKS.Error: The numeric material number 1000000 was transferred without leading zeros for material: 1000000
From next timepost only related code to make it look better.
Use conversion exit for MATNR field. -
Screen Level Security for the Material Master
We need to create security for the material master by screen views. The Purchasing group needs to be able to change the Purchasing and MRP screens but none of the other screens. How would we accomplish this with SAP security?
Thanks!Janet,
It is hard for us to know how your authorization profiles or roles are constructed. You really should consult your local authorization expert.
The Authorization object you are looking for is M_MATE_STA. It is probably contained in at least one of your Roles or Profiles that are currently assigned to your MM maintenance people. At a minimum, it should exist in standard SAP profile M_MATE_ALL in your system. You can review all of these types of authorization info in the User Information System (transaction SUIM).
You would have to create roles or profiles that narrowly define the "User department" fields for M_MATE_STA object. You would also have to search for existing roles/profiles that contain "*" in this field, and determine if these entries are still appropriate in your new authorization business process you want to begin.
Below is the SAP help about this authorization object
M_MATE_STA
Definition
Maintenance status authorization for material master records
The data contained in a material master record is divided into user departments or views (Purchasing, MRP, and so on). The maintenance status is a single-character key for the relevant user department or view.
This object determines which user departments or views a user is authorized to process; that is, which data he or she may process from this view.
Note
To use material master functions, a user needs the authorization for at least one user department.
Defined Fields
Fields Possible values Meaning
ACTVT 01 User may create data.
02 User may change data.
03 User may display data.
06 User may flag data for deletion.
08 User may display change documents.
STATM Here, you specify the maintenance status for which the user is authorized.
The maintenance statuses possible are as follows:
User department Maintenance status
Work scheduling A
Accounting B
Classification C
MRP D
Purchasing E
Production resources/tools F
Costing G
Basic data K
Storage L
Forecasting P
Quality management Q
Warehouse management S
Sales V
Plant stocks X
Storage location stocks Z
Notes
This authorization object also determines:
o Whether a user may flag a material master record for deletion. In this case, 06 must be entered in field ACTVT; the maintenance status is irrelevant here.
o Whether a user may change the material type. In this case, 02 must be entered in field ACTVT; the maintenance status is irrelevant here.
o Whether a user may process an MRP profile or forecast profile. In this case, the following values must be entered in field ACTVT:
- 01 to create
- 02 to change or delete
- 03 to display
The maintenance status must be D for the MRP profile or P for the forecast profile.
o Whether a user may create an overview of all extendable materials. In this case, 01 must be entered in field ACTVT; the maintenance status is irrelevant here.
o Whether a user may call up the materials list. In this case, 03 must be entered in field ACTVT; the maintenance status is irrelevant here.
o Whether a user may create or change production versions from task lists. In this case, 02 must be entered in field ACTVT, and A in field STATM.
Rgds,
DB49 -
'BAPI_GOODSMVT_CREATE' takes more time for creating material document
Hi Experts,
I m using 'BAPI_GOODSMVT_CREATE' in my custom report, it takes more time for creating Material documents.
Please let me know if there is any option to overcome this issue.
Thanks in advance
Regards,
LeoHi,
please check if some of following OSS notes are not valid for your problem:
[Note 838036 - AFS: Performance issues during GR with ref. to PO|https://service.sap.com/sap/support/notes/838036]
[Note 391142 - Performance: Goods receipt for inbound delivery|https://service.sap.com/sap/support/notes/391142]
[Note 1414418 - Goods receipt for customer returns: Various corrections|https://service.sap.com/sap/support/notes/1414418]
The other idea is not to commit each call, but executing commit of packages e.g. after 1000 BAPI calls.
But otherwise, I am afraid you can not do a lot about performance of standard BAPI. Maybe there is some customer enhancement which is taking too long inside the BAPI, but this has to be analysed by you. To analyse performance, just execute your program via tr. SE30.
Regards
Adrian
Maybe you are looking for
-
CX600/700 Polycom phones not displaying mobile & telephone Numbers
Dear , we have lync 2013 in our setup with polycom CX500/600/700/3000 devices. on phone when we check contact card of any user , by default SIP address display , telephone or mobile numbers not display. but when we add contact on outlook , telephone
-
Standard pre-configured user in ESS
Hi, I need to demo ESS out of the SAP ERP2004 system in a couple of days and was wondering if there are any standard ESS users in the SAP system which are already preconfigured for Career and Job, Time Management, Personal Information, Employee Searc
-
I have an old Imac ( 2006 ) wiyh Snow Leopard OSX 10,4.11 since a few days all the letters in the menu is a capital A in a square box, in mail not able to send a mail cause i tyupe a letter ( whatever ) and it's always a a capital in a box??? What sh
-
Lately, AI CS6 has a problem when I shut it down: I always get the message Adobe Illustrator CS6 has stopped working. It doesn't really give me a problem, since I've saved my files, but it's a real nuisance. I've transhed my preferences file but t
-
When I go to restore my phone; is there any way to pick what you want back on your phone or do you have to get everything backed up?