Material Master Update from group routing.
Dear All,
When we make material routing. in CA02>scheduling>Results--->Update material master (marking). can be done for the lead time scheduling Purpose. and update in CA96.
But when we use Group Routing, and assign multiple materials in routing header, and then go for
CA02>scheduling>Results--->** (no Material Master Update tab Appeared)
Do we have a solution for this?
Thanks & regards
Raghu
Dear,
Follow these steps,
Scheduling in routing (CA02 ) as :
Call up the operation overview for the routing.
Choose Extras-- Scheduling -- Schedule.
You reach the Scheduling dialog box.
Maintain the data on the dialog box. The system proposes Backward scheduling for the scheduling type.
Choose Continue.
You reach the Enter overview variant dialog box 00000001.
Enter the overview variant you want to use to display the scheduling results. Choose Continue.
The routing is scheduled. You reach the Schedule Overview screen containing the scheduling data.
After the scheduling run has been carried out, click on scheduling Result-- update material master
You use this function to update material master. Go to the CA96 and update material master.
Please try and come back.
Regards,
R.Brahmankar
Similar Messages
-
Issue in material master update from presentation server using BAPI....
Hi Guru's...
i am trying to change the material master from presentation server (desktop flat file)
using BAPI(BAPI_MATERIAL_SAVEDATA) ....
while executing my program i am getting the message like material had changed...
but while in mm02 i am un able to fine the updates...
please find below program logic and correct me if any mistakes....
thanks in advance...
*& Report ZAREPAS36
REPORT zarepas36.
DATA : gs_bapimathead TYPE bapimathead,
gs_clientdata TYPE bapi_mara,
gs_clientdatax TYPE bapi_marax.
TYPES : BEGIN OF gty_itab1,
matnr(18),
matkl(9),
spart(2),
ntgew(13),
gewei(3),
meins(3),
END OF gty_itab1.
DATA : gt_itab1 TYPE STANDARD TABLE OF gty_itab1,
gwa_itab1 TYPE gty_itab1.
TYPES: BEGIN OF gty_itab2,
abc(132),
END OF gty_itab2.
DATA: gt_itab2 TYPE STANDARD TABLE OF gty_itab2,
gwa_itab2 TYPE gty_itab2.
flat file at selection screen
PARAMETERS: p_files TYPE string.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = p_files
filetype = 'ASC'
CHANGING
data_tab = gt_itab2
EXCEPTIONS
OTHERS = 8.
LOOP AT gt_itab2 INTO gwa_itab2.
IF gwa_itab2-abc(1) = 'S'.
gwa_itab1 = gwa_itab2-abc(132).
APPEND gwa_itab1 TO gt_itab1.
ENDIF.
ENDLOOP.
loop at gt_itab1 into gwa_itab1.
*Material
gs_bapimathead-material = gwa_itab1-matnr.
*Material details at client data
*material group.
gs_clientdata-matl_group = gwa_itab1-matkl.
gs_clientdatax-matl_group = 'X'.
*Division
gs_clientdata-division = gwa_itab1-spart.
gs_clientdatax-division = 'X'.
*Net Weight
gs_clientdata-net_weight = gwa_itab1-ntgew.
gs_clientdatax-net_weight = 'X'.
*Unit of Weight
gs_clientdata-unit_of_wt = gwa_itab1-gewei.
gs_clientdatax-unit_of_wt = 'X'.
*Base Unit of Measure
gs_clientdata-base_uom = gwa_itab1-meins.
gs_clientdatax-base_uom = 'X'.
endloop.
*calling BAPI for making changes in material and saving thru BAPI.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = gs_bapimathead
clientdata = gs_clientdata
clientdatax = gs_clientdatax.
IF sy-subrc NE 0.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
WRITE: / 'Error occured while changing material'.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / 'material',gs_bapimathead-material,'changed'.
ENDIF.hi hello Guru's
i resolved the issuee..
pleaso go thru the below proram logic for your reference..........
*& Report ZAREPAS36
REPORT zarepas36.
DATA : gs_bapimathead TYPE bapimathead,
gs_clientdata TYPE bapi_mara,
gs_clientdatax TYPE bapi_marax.
TYPES : BEGIN OF gty_itab1,
matnr(18),
matkl(9),
spart(2),
ntgew(13),
gewei(3),
meins(3),
END OF gty_itab1.
DATA : gt_itab1 TYPE STANDARD TABLE OF gty_itab1,
gwa_itab1 TYPE gty_itab1.
TYPES: BEGIN OF gty_itab2,
abc(132),
END OF gty_itab2.
DATA: gt_itab2 TYPE STANDARD TABLE OF gty_itab2,
gwa_itab2 TYPE gty_itab2.
DATA:ls_return TYPE bapiret2,
lt_bapiret2 TYPE standard table of bapiret2.
flat file at selection screen
PARAMETERS: p_files TYPE string.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = p_files
filetype = 'ASC'
CHANGING
data_tab = gt_itab2
EXCEPTIONS
OTHERS = 8.
LOOP AT gt_itab2 INTO gwa_itab2.
IF gwa_itab2-abc(1) = 'S'.
gwa_itab1 = gwa_itab2-abc(132).
APPEND gwa_itab1 TO gt_itab1.
ENDIF.
ENDLOOP.
LOOP AT gt_itab1 INTO gwa_itab1.
*Material
gs_bapimathead-material = gwa_itab1-matnr.
*Material details at client data
*material group.
gs_clientdata-matl_group = gwa_itab1-matkl.
gs_clientdatax-matl_group = 'X'.
*Division
gs_clientdata-division = gwa_itab1-spart.
gs_clientdatax-division = 'X'.
*Net Weight
gs_clientdata-net_weight = gwa_itab1-ntgew.
gs_clientdatax-net_weight = 'X'.
*Unit of Weight
gs_clientdata-unit_of_wt = gwa_itab1-gewei.
gs_clientdatax-unit_of_wt = 'X'.
*Base Unit of Measure
gs_clientdata-base_uom = gwa_itab1-meins.
gs_clientdatax-base_uom = 'X'.
ENDLOOP.
*calling BAPI for making changes in material and saving thru BAPI.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = gs_bapimathead
clientdata = gs_clientdata
clientdatax = gs_clientdatax
IMPORTING
return = ls_return.
LOOP AT lt_bapiret2 INTO ls_return.
EXIT.
ENDLOOP.
IF sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
WRITE: / 'Error occured while changing material'.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / 'material',gs_bapimathead-material,'changed'.
ENDIF. -
Return PO Price is picked up from MAP of materia master,not from info.recod
User Requirement :
When creating return po ,the price is picked up from MAP of material master ,not from info.record
I wrote a code at PO Enhancement "MM06E005" user exit "EXIT_SAPMM06E_017",but don't change the price ,pls help me check what the problem is ,thanks.
The below is my code.
DATA : M_VERPR LIKE MBEW-VERPR,
M_PEINH LIKE MBEW-PEINH,
M_MEINS LIKE MARA-MEINS.
CLEAR :M_VERPR,M_PEINH,M_MEINS.
CHECK SY-TCODE = 'ME21N ' OR SY-TCODE = 'ME22N' OR SY-TCODE = 'ME23N' .
IF I_EKKO-BSART = 'ZNB7'.
LOOP AT TEKPO.
SELECT SINGLE VERPR PEINH FROM MBEW INTO (M_VERPR,M_PEINH)
WHERE MATNR = I_EKPO-MATNR AND BWKEY = I_EKPO-WERKS.
SELECT SINGLE MEINS FROM MARA INTO M_MEINS WHERE MATNR = I_EKPO-MATNR.
TEKPO-INFNR = ' '.
TEKPO-NETPR = M_VERPR.
TEKPO-PEINH = M_PEINH.
TEKPO-MEINS = M_MEINS.
TEKPO-BPRME = M_MEINS.
TEKPO-NETPR = TEKPO-NETPR * I_EKKO-WKURS.
MODIFY TEKPO TRANSPORTING NETPR PEINH MEINS BPRME NETPR.
CLEAR TEKPO.
ENDLOOP.Hi Gunawan,
According your meaning ,I change the logic as following:
IF I_EKKO-BSART = 'ZNB7'.
SELECT SINGLE VERPR PEINH FROM MBEW INTO (M_VERPR,M_PEINH)
WHERE MATNR = I_EKPO-MATNR AND BWKEY = I_EKPO-WERKS.
SELECT SINGLE MEINS FROM MARA INTO M_MEINS WHERE MATNR = I_EKPO-MATNR.
TKOMV-KNUMH = ''.
TKOMV-KAWRT = M_VERPR * I_EKKO-WKURS.
TKOMV-KPEIN = M_PEINH.
TKOMV-KMEIN = M_MEINS.
EndIF.
But the values of the fields are not updated,I need to write the code in EXIT_SAPMM06E_017 of PO Enhancement,may you help me ,thanks. -
Guidance for getting material master data from database table
Hi,
I need guidance to fetch following Material master data from the system data base.Please guide me for the same.
BASIC DATA1
BASIC DATA2
MRP1,2,3,4
WORK SCHEDULING
QUALITY MANAGEMENT
ACCOUNTING1
ACCOUNTING2
COSTING1,2
PURCHASING
PURCHASE ORDER TEXTSALES ORG1,2
SALES GENERAL/PLANT
PLANT DATA/STOR.1,2
WAREHOUSE MGMNT1,2
Also please tell me in general what is the reason for error while uploading the data into system using BAPi(AM talking about return message error).
Thank you.
Edited by: sanu debu on Feb 24, 2009 12:41 PM
Edited by: sanu debu on Feb 24, 2009 12:42 PMUse BAPI's
BAPI_MATERIAL_GET_DETAIL
BAPI_MATERIAL_GETALL
BAPI_MATERIAL_GET_ALL -
Extend material master data from one plant to another plant
hi,
how can i extend material master data from one plant to another plant.
is there any sap standard transaction for this ie. bdc/t-code.
thanks in advance.......
rahulHi
If you want to extend the material form one plant to another then below are the possible options.
1) MM01 - Use the material in the reference and fill in copy from and to then press enter to complete the extention.This is recommended only if you want to extend very less records.
2) Use LSMW and record MM01 thru BDC recording available in LSMW and make the template in excel and convert it to .txt tab delimited format to upload more records.LSMW is the perfect tool and is used extensively in all the projects.
3) Get the help from ABAPer to create upload program and include the BDC recording.
There is no standard T code available in SAP becoz data mainatenance in the material master will be based on the industry.
Hope it will help.
Thanks/Karthik -
Exit for Material Master UPdate
Hi Friends,
could anyone let me know any user exit for Material Master UPdate.
Thanks in Advance
Regardshi
good
MGA00001 Material Master (Industry): Checks and Enhancements
MGA00002 Material Master (Industry): Number Assignment
MGA00003 Material Master (Industry and Retail): Number Display
thanks
mrutyun^ -
Custom - Material Master Update using an IDOC (Message Type - MATMAS_BAPI)
Hello everyone,
I was writing a functional specs. Basically, I want to update the material master MM02 using an IDOC (MATMAS_BAPI01 - Basic Type & MATMAS_BAPI - Message Type). This is currently working.
To my understanding, this currently uses function module - BAPI_IDOC_INPUT1 to update the material master after the IDOC is posted to SAP ECC from XI system.
Now I want to add one small validation logic before it actually updates the material master (MM02).
I looked around and found one exit - EXIT_SAPLMV02_002 in enhancement MGV00001. I was almost sure that this EXIT can be used to write the custom validation code before, actual MM02 updation.
However while trying to establish a link between this EXIT and BAPI_IDOC_INPUT1, I found that EXIT_SAPLMV02_002 is actually a part of another function module - IDOC_INPUT_MATMAS01 and not BAPI_IDOC_INPUT1. I am stuck here if adding the custom logic in the exit really going to work.
a bit of googling and I found from WE30 that the purpose of both these function modules are actually different. While BAPI_IDOC_INPUT1 actually create & updates the material master (also plant specific master data which is my need), IDOC_INPUT_MATMAS01 is just for maintenence of few fields in MM02 (may be custom fields).
Can anyone point out if my thing is in right direction?
Also please offer any solution where shall I put the Custom Logic in the EXIT or the some variants of
BAPI_IDOC_INPUT1.
A less technical explanation would be appreciated as I come from a functional background and invloved in this for writing the func specs. I want to make it sure that what I write is not useless and makes some sense.
Thanks in advance,
AruneshHi Lalit,
Did some head breaking with the function module - BAPI_IDOC_INPUT1 to check whether it is calling the EXIT_SAPLMV02_002 internally. Couldn't get anywhere.
On question of another EXIT in BAPI_IDOC_INPUT1, I don't see any. I am not very proficient in ABAP code, I must say though.
I found the list of exits from google, almost same list everywhere.
http://www.sapfans.com/forums/viewtopic.php?f=21&t=296637
here I got the EXIT, I am talking about.
Any other way to find either the EXIT or link the above?
-- Arunesh -
Hi Abap Experts,
I am facing an issue with an update of material master data when using a Bapi BAPI_MATERIAL_SAVEREPLICA. I am trying to update the below fields
Minlotsize,pl_ti_fince,plnd_delry.
Below is the code which i have used
LOOP AT it_zcostupdate INTO zcostupdate.
READ TABLE it_cost_clr INTO wa_cost_clr "+JS01
WITH KEY lifnr = zcostupdate-lifnr"+JS01
matnr = zcostupdate-matnr."+JS01
IF sy-subrc EQ 0. "+JS01
CLEAR wa_headdata.
wa_headdata-function = c_upd.
wa_headdata-material = zcostupdate-matnr. "Material
wa_headdata-mrp_view = c_x.
APPEND wa_headdata TO it_headdata.
Plant Data
CLEAR wa_plantdata.
wa_plantdata-function = c_upd.
wa_plantdata-material = zcostupdate-matnr. "Material
wa_plantdata-plant = zcostupdate-dwerk. "Plant
wa_plantdata-minlotsize = zcostupdate-bstmi. "Min Lot Size
wa_plantdata-round_val = zcostupdate-bstrf. "Rounding Value
wa_plantdata-pl_ti_fnce = zcostupdate-plifz. "Plnd Delivery Time
wa_plantdata-plnd_delry = zcostupdate-plifz. "Plnd Delivery Time
APPEND wa_plantdata TO it_plantdata.
Plant Data
CLEAR wa_plantdatax.
wa_plantdatax-function = c_upd.
wa_plantdatax-material = zcostupdate-matnr. "Material
wa_plantdatax-plant = zcostupdate-dwerk. "Plant
wa_plantdatax-minlotsize = c_x.
wa_plantdatax-round_val = c_x.
wa_plantdatax-pl_ti_fnce = c_x.
wa_plantdatax-plnd_delry = c_x.
APPEND wa_plantdatax TO it_plantdatax.
ENDIF. "+JS01
ENDLOOP.
When Plantdata internal table is not initial proceed with an update.
IF NOT it_plantdata[] IS INITIAL.
CALL FUNCTION 'BAPI_MATERIAL_SAVEREPLICA'
EXPORTING
noappllog = 'X'
nochangedoc = ' '
testrun = ' '
inpfldcheck = ' '
IMPORTING
return = wa_return
TABLES
headdata = it_headdata
plantdata = it_plantdata
plantdatax = it_plantdatax
returnmessages = it_returnmsg.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
ENDIF.
And later stage i am deleting the messages from the it_returnnmsg table other than error and then displaying the log.
It worked perfectly fine when i have done testing in Development & Quality system with couple of test . But it has not done the same when it went into production and no log is displayed .
And in production it has executed for 24k Materials at the same time. I am Just think that due to mass of material it has executed ,it may have cause a problem in update,But not sure whether this is the issue . I am planning to split into 100 materials update at one time.But if any one have any other solution ,i would be great ful to you.
Thanks in advance.
Cheers
J.Hi
Check this link
BAPI_MATERIAL_SAVEDATA with custom z-fields -
Availability Check Changed on the Material Master Update Existing Orders
I need to know if there is a way to update existing orders once changes have been made to the material. Currently the only way that I know of is to go into individual orders change the plant save then change it back to the original plant on the order then the changes take effect. How can I achieve this without touching every order individually. Is there something to mass update existing orders to take a new snapshot of the material master settings for a material.
Try with t.code VA05 - Open sales order list.
Execute this list. In the output, sort the data by plant. Then go to menu Edit -> mass change -> new plant. Change the plant for group of sales orders that have similar plants. Then again do the same thing to bring the previous plant in the sales orders.
This can help reduce the time instead of going one by one.
Regards, -
Downloading Material Master data from ECC to CRM
Hello friends, I am working in CRM 5.0., I am finding difficulty in downloading Material master created in ECC to a Product Master in CRM. Can you please tell me how to use Customizations to download the material master to product master.
Hi Rghunandan,
To carry out the product replication from ECC to CRM,you need to carry out the foll steps.
First download the customizing objects using R3AS
DNL_CUST_PROD0 u2013 Material number conversions
DNL_CUST_PROD1 u2013 Product : Categories
DNL_CUST_PROD3 u2013 Material : R/3 sales status
DNL_CUST_SPROD u2013 Sales product item
DNL_PLANT - Plant
To download products foll the steps below
1.Defining Product ID Settings -COMCPRFORMAT
Cross-Application Components SAP Products Basic Settings Define Output Format and Storage Form of Product Ids
This activity describes how to synchronize the product Ids in the CRM system and the R/3 system.
The material master length is R/3 is defined in transaction code OMSL and is set to 18. (also check note no. 545824)
2.Make sure that CRM item categories and R/3 item categories are the same.
In CRM, item categories and item category groups are seen via
Customer Relationship Management Transactions Basic Settings
3.Selecting specific objects for replication : R3AC1
Use adapter object MATERIAL
Use filter settings tab and specify the material or a range of products you want to download .Use atble name MARA,field MATNR use an approriate operator and mention theproduct you want to downlaod.
4.Replicate Materials : R3AS
mention the adaptor object Material and execute
Regards
Itty -
Material Master--Item CAt. group.
Dear SAP Guru's
I need clarification on the following points.
1. In the Materail MAster MM02 Creation screen
In SALES org 2 :
What is the diff. of General Item category group and Item category group.
2. I have a scenerio where I have out sourced material BANS as the Item category group and general Item category group as Norm.
When I create a sales order the system automatically creates a purchase requisition. in the system and confirms the del. date.
Where I have to configure the order document type sothat the PR (Purchase requisition comes automatically.
regards,
Amlan SarkarHi,
Item category group from material master
A grouping of materials that the system uses to determine item categories during the processing of sales documents.
Procedure
Depending on the item category group that you apply and the sales document type you are processing, the system automatically proposes an item category in the document.
Example
In the standard system, for example, there are standard items, items that represent services (and do not require delivery processing), and items that represent packaging materials.
General item category group
Materials grouping that helps the system to determine item categories during sales document processing.
If a group is configured specific to distribution channel, it has priority if the corresponding activity is distribution channel-dependent.
Procedure
The system automatically suggests an item type in the document depending on the item category group you assign and the sales document type you are processing.
Example
In the standard system, there are normal items, items that signify services (and therefore need no delivery processing) and items that signify packing material, for example.
Thanks & Regards
Sasikanth.Ch -
Problem:related to material master replication from r3 to srm
hai everybody,
hai to all of u my friends....recently i have learned sap srm 5.0..and now i am practicing in my institute from starting configuration with a fresh client.everything has done successfully except replication of material master.while doing material master replications the system throws an error like" product hierarchy has not maintained" and one more error while executing smq2.. like "exception condition :guid forlogsys_changed"raised....thanks in advanceIt seems that the logical system name has been renamed or changed. You need to update the config tables. Fix it using Trx BDLS.
Regards, IA -
Material Master Update through BAPI - Follow up material not updated
Hi Experts,
I am updating the material master through a custom transaction using the BAPI 'BAPI_MATERIAL_SAVEDATA'. Rest of the fields are updating correctly except for discontinuation ind., effective out date & follow-up material.
When I try to update it through MM02 it is working fine. However, when I pass the same data through BAPI it is throwing an error message that 'the material XXXXXX does not exist or is not activated'.
Please advice.
Thanks & Regards,
Ashu AroraSome more fields need to be updated along with the discont. indicator. Now working fine.
-
Weight change in material master, update all open PO's
Hello
IS there any standard way for mass update open purchase orders, when weights and volumen in material master change ?
example:
there is a change in neto weight for material AAAA, which is inserted into mm02, basic data for his material. This change doesn't effect already created open orders with this material. Is there any standard way to update them in sap 4.7 ?Changes will get reflected for new docs only. This is standard.
Now other question comes, why you want to change in PO. I am sure PO are already sent to vendor. Then ideally it is not advisable to change in those PO.
If you haven't sent those PO to vendor, open those PO do some minor corrections SAP will populate the change information in PO documents.
Also changed information will get effective later at GR stage also.
So no question to worry.
Check and revert -
No Material Master replication from R/3 to CRM
Hallo guys,
i've got no replication of material master, haven't tried any other object except customizing but customizing is triggered from CRM and was replicated fine. Can anybody help me how can i debug the replication process from R/3?
Thanks for your help in advance.Dmitry,
You first need to determine where your errors are happening?
1. Do you have blocked queues on CRM? If you see a blocked inbound/outbound queue on CRM via SMQ1 or SMQ2, then you can try to rerun the BDOC message in the queue.
2. Is there tax code customizing not downloaded correctly into CRM? This sometimes can hang up your download of materials?
3. Have you looked at SMW01 after the load to see if you have any BDOC's in error, the queues were empty?
4. What is the status of the initial load R3AM1?
I would hold off from debugging until I figure out where in the download process that I am receiving the error. Once I know that fact them I can debug a single download. You will have to set a filter on the material object to a single material and attempt an initial download. When you perform the initial download you will need all queues deregistered on the CRM side, so that you manually execute the BDOC import into CRM.
The last step will require placing a breakpoint into the validation function module for material.
I believe validation function module is: COM_PRODUCT_MAT_VALIDATE. If you have questions along the way of debugging the flow, please reply back and I will try to see if I can answer them. It has been a little while since I had to debug our middleware downloads.
Good Luck,
Stephen
Maybe you are looking for
-
How do I handle values in source that are not in "lookup" table?
hi there, I have 3 tables (all Oracle technology): 1) Source table: CALLS with columns MSISDN, TRANS_DATE, TYPE, COST, DURATION 2) Lookup table: SUBSCRIBERS with columns SUBSCRIBERID, MSISDN, IMSI 3) Target table: FACT_CALLS with columns SUBSCRIBERID
-
How to input data from labview to executable application and export the results back to labview
I have a simple function written in m file under Matlab enviornment, function [c]=myadd2(a,b) c=a+b; I built it into a executable file (.exe), then I want to call it in labview and get the results. I followed this tutorial and some other information
-
Check box is not printing ...
hello , i need to insert check box in my smartform i got some number related to the pic i selected eg: 678 in the text element.. But it is not outputting that symbol in the printer.
-
Data nt capturing in are1 and are3 document
dear sir, in are1 and are3 documents base exicise value is nt being captured and higher edusess 1% too but BED and educess is captured ?can anybody help me ?is ita notes problem?
-
Locked out of Macbook Pro w/ Retina
I just bought my Macbook Pro with the Retina screen and I was moving my stuff from my imac to my macbook using Migration Assistant and I clicked continue before the estimate was reached for how much memory everything would take so It went on to move