Validating material types in LSMW
Hi Experts,
How do we vaqlidate material types in LSMW.
what are the kind of problems generally we get doing LSMW.
Thanks,
Naren,
material types are stored in table T134.
so we will write a SELECT to know,its a valid or not.
SELECT SINGLE MTART INTO V_MTART
FROM T134
WHERE MTART = ZSOURCE-MTART.
IF SY-SUBRC = 0.
*--ITs a valid Material type
BMMOO-MTART = ZSOURCE-MTART.
else.
*--Invalid material type,its an error.
SKIP_RECORD. <--this SKPS the current record,as there is no meaning to process this error record.
ENDIF.
Regards,
Srikanth
Message was edited by: Srikanth Kidambi
Similar Messages
-
Validating Material Type on BD21
Hi,
Requirement : I need to Automate ALE for only material type 'HAWA'.
Solution Tried: called BD10 in Userexit on save in MM01, Problem here is it is taking the old material and ALEing and not the newly changed one.
So how to use BADI BDCP_BEFORE_WRITE to filter the change pointer table on material type and will this be triggered with BD21.
Best regards
Satich Kumar KHi Team,
Or else can I have possibility to schedule a job that runs after 30 sec's of the material saved?
Best Regards
Satich Kumar -
"No valid material component found" when Routing upload using LSMW RCPTRA02
I want to upload routings through LSMW RCPTRA02 incluing routing headers, sequences, operations and component allocations. But systems appears error CM 101 "No valid material component found" . Does anybody occurs the same error before?
The materials truly exists in BOM component.
Sincerely thanks,
AlinaHi,
What is the status of the BOM? There should not be any problem if the material BOM exists.
Regards,
Krishnendu. -
Different material type picking in LSMW.
Hi,
In creating the MM data through LSMW,
Ist material picks ZRFM material type which is not having purch & Acc views,
where as next 9 materials picks HALB material type(Correct mat type).
In input file, all materials(10 Nos) have HALB mat type and corresponding fields.
Can you tell, wha could be the reason.
Madhu.Hi,
Do you see ZRFM as material type for the 1st entry in display read data or display converted data ?
I thinkyou are using a recording and in the recording you may have had entered ZRFM against material type. Go into change recording and clear the default value in the recording.
Pavan -
How to post return stock to unrestricted stock for only Plant & Material Type combination?
Hello Everyone,
At present, whenever the stock is returned then it posted through 655 movement type. So, material is posted as quality stock.
Now, the requirement is to post the stock to unrestricted stock for Plant and Material type combination only. Which means, if the plant is 1413 and the material type is ERSA, VERP, and HIBE then for return sales order system post the stock directly to unrestricted stock, instead of quality stock.
So, is there any standard way of configuring the above scenario without going for validation (Z Fields)?
Regards
AnwarDear Mohammed ,
as per your scenario , there is two movement type has to trigger in the Delivery level according to the plant and material combination .
as per my knowledge it will not configurable in standard process . this will possible with user exit logic only .
follow the below logic to achieve your issue .
you have to create two item categories and two schedule lines with (655 &653) , that means your movement type has to trigger at sales order level only . write a logic in the user exit - MV45AFZZ -USEREXIT_MOVE_FIELD_TO_VBAP , if this combination matches then automatically item category has to over write other wise it will copy the existing item category .at delivery level you can see two movement types in item level.
wait for other experts solution , if any standard is possible or not .
Regards,
C.B Reddy. -
Hi all,
I am working on LSMW by BAPI method. i want to update the Material Type of a given material.So, I have gone to MM01 then I copy that material but in BAPI I do not find any structure related to Refrence Material No. Field. Kindly tell me the structure regarding this Refrence Material No. field.
SulabhI doupt that you can change the material type, as it cannot be changed in the standard transaction MM02, and not in the MM17 mass maintenance transaction (which uses BAPI method).
A material type is usally changed with an extra transaction: MMAM as it has to perform a couple extra checks that are not needed in a standard maintenance. -
Packaging material type-SU type
Hello to all
While manually packing / repacking HU for outbound delivery against customer order the error "Packaging materail type XXXX in warehouse ABC is not assigned to SU type"
On checking the customising setting at "Logistics General >HUM>Basics>WM>Assign Storage unit type to packaging material type" I found that there is no assignment of Pkg mat type to SU type.
Please confirm (as I am under the belief that this setting is relevant only when HU has to be automatically packed for moving into warehouse) if the above customising controls the error as I do not have access to test by changing the customisation.
Thanks
PrasadHi Prasad,
Even you do the manaul packing also. system checks the validation for SU type with HU type
regards,
Ramana -
Net price in P-info record for DIEN material type
I am supporting a system ,
The issue is as follows ,
I have created a P-info record for material with material type as DIEN , and maintained Net price and system automatically updates the price in the condition type PBXX .
The pricing procedure in this system doesnt have PB00 , but has PBXX with Access sequence .
Now when I try to view the price in ME12 , I see the Net price as 0.00 , but the value for condition type PBXX exists when I click on conditions push button .
Has any one come across this scenario , Pl help .
Thanks in advance ,
AmitHi,
The first time you create a PO for a material/vendor combination, then system will not prompt any price as info record or valid conditions have not been found.
The next time you create a PO for the same material, then the price will be defaulted/found from the order price history from the info record(As info record would be reated after the first PO is created) and the latest PO price for the mat/ven combination would be found.
Hope you are clear with this..Any doubts revert back.
Regards,
Deepak. -
when i try to fill values for field BWTAR(Valuation type) in LSMW upload for Material Master I am getting ie. first create the valuation-type-independant data. How create this.
Hello,
There is an AFS BAPI that can be used for material master update. I don't remember it, I'll provide you tomorow whith the function module you need. You can also find it in the BAPI repository. Go to transaction code BAPI and select object AFSMaterial, then you should see a method called "AFSMaterialMasterCreation", the coresponding FM will be displayed.
Mehdi -
Upload sales text for material master using LSMW direct input method
Hello Experts,
I was trying to upload sales text for a material master using LSMW direct input method.
I followed the following steps for the same
Tab dlimited Text file format
MATNR LONGTEXT LINE
MATERIAL1 LONGTEXT FOR MATERIAL MATERIAL1 1
Step1 -> Maintain object attributes
Object -> 0001
Method-> 0001
Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
Program type -> D
Step2 -> Maintain Source Structure
Source structure -> LONG_TEXT Source structure for long text
Step 3-> Maintain souce file
Source Fields
ZLONG_TEXT Source structure for long text
MATNR C(018) MATNR
LTEXT C(132) LTEXT
Step 4-> Maintain structure relationship
Structure Relations
/SAPDMC/LTXTH Long Texts: Header <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTH .
/SAPDMC/LTXTL Long Texts: Row <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTL .
Step 5-> Maintain Field mapping and conversion rules
Here i have assigned constan rules to couple of them like
/SAPDMC/LTXTH Long Texts: Header
Fields
OBJECT Texts: Application Object
Rule : Constant
Code: /SAPDMC/LTXTH-OBJECT = 'MVKE'.
NAME Name
Source: ZLONG_TEXT-MATNR (MATNR)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
ID Text ID
Rule : Constant
Code: /SAPDMC/LTXTH-ID = '0001'.
SPRAS Language Key
Rule : Constant
Code: /SAPDMC/LTXTH-SPRAS = 'E'.
/SAPDMC/LTXTL Long Texts: Row
Fields
TEXTFORMAT Tag column
Rule : Constant
Code: /SAPDMC/LTXTL-TEXTFORMAT = '/'.
TEXTLINE Text Line
Source: ZLONG_TEXT-LTEXT (LTEXT)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
Step6 -> Specify file
Legacy Data On the PC (Frontend)
Data D:\Sales_Longtext.txt
Step7 -> Assign File
ZLONG_TEXT Source structure for long text
Data D:\Sales_Longtext.txt
Step8 -> Read data
Output result
Source Structure Read Written Not Written
ZLONG_TEXT 1 1 0
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 1
Step 8 -> Display read data
Field Name Field Text Field Value
MATNR MATNR MATERIA1
LTEXT LTEXT SALES TEXT FOR Material MATERIAL1
Step 9 -> Convert data
File Read: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
File Written: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 2
Step 10 -> Display converted data
1 /SAPDMC/LTXTH 1MVKE MATERIAL1 0001E
2 /SAPDMC/LTXTL 2/ SALES TEXT FOR Material MATERIAL1
Step 11 -> Start direct input program
Output result for the same
Legacy System Migration Workbench
Project: ZNRD_PRJ1 ORH
Subproject: ZNRD_SUBPRJ2 Upload long text
Object: ZNRD_LTEXT Long text tru direct input
File : ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Long Texts in Total: 1
Successfully Transferred Long Texts: 1
Non-Transferred Long Texts: 0
Now when i check the material master sales view -> sales text it is empty.
Please help me with the same.
Regards,
Ranjith NHello Experts, I was trying to upload sales text for a material master using LSMW direct input method.
I followed the following steps for the same
Tab dlimited Text file format
MATNR LONGTEXT LINE
MATERIAL1 LONGTEXT FOR MATERIAL MATERIAL1 1 *************************************************************************************************************
Step1 -> Maintain object attributes
Object -> 0001
Method-> 0001
Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
Program type -> D
Step2 -> Maintain Source Structure
Source structure -> LONG_TEXT Source structure for long text
Step 3-> Maintain souce file Source Fields
ZLONG_TEXT Source structure for long text
MATNR C(018) MATNR
LTEXT C(132) LTEXT
Step 4-> Maintain structure relationship
Structure Relations
/SAPDMC/LTXTH Long Texts: Header <<<< ZLONG_TEXT Source structure for long text
Select Target Structure
/SAPDMC/LTXTH . /SAPDMC/LTXTL Long Texts: Row <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTL .
Step 5-> Maintain Field mapping and conversion rules
Here i have assigned constan rules to couple of them like
/SAPDMC/LTXTH Long Texts: Header
Fields
OBJECT Texts: Application Object
Rule : Constant
Code: /SAPDMC/LTXTH-OBJECT = 'MVKE'.
NAME Name
Source: ZLONG_TEXT-MATNR (MATNR)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
ID Text ID
Rule : Constant
Code: /SAPDMC/LTXTH-ID = '0001'.
SPRAS Language Key
Rule : Constant
Code: /SAPDMC/LTXTH-SPRAS = 'E'.
/SAPDMC/LTXTL Long Texts: Row
Fields
TEXTFORMAT Tag column
Rule : Constant
Code: /SAPDMC/LTXTL-TEXTFORMAT = '/'.
TEXTLINE Text Line
Source: ZLONG_TEXT-LTEXT (LTEXT)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
Step6 -> Specify file Legacy
Data On the PC (Frontend)
Data D:\Sales_Longtext.txt
Step7 -> Assign File ZLONG_TEXT
Source structure for long text
Data D:\Sales_Longtext.txt
Step8 -> Read data
Output result
Source Structure Read Written Not Written
ZLONG_TEXT 1 1 0
Transactions Read 1
Records Read: 1
Transactions Written: 1
Records Written: 1
Step 8 -> Display read data
Field Name Field Text Field Value
MATNR MATNR MATERIA1
LTEXT LTEXT SALES TEXT FOR Material MATERIAL1
Step 9 -> Convert data
File Read: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
File Written: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 2
tep 10 -> Display converted data
1 /SAPDMC/LTXTH 1 MVKE MATERIAL1 0001 E
2 /SAPDMC/LTXTL 2/ SALES TEXT FOR Material MATERIAL1
Step 11 -> Start direct input program
Output result for the same
Legacy System Migration Workbench Project:
ZNRD_PRJ1 ORH
Subproject: ZNRD_SUBPRJ2 Upload long text
Object: ZNRD_LTEXT Long text tru direct input
File : ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Long Texts in Total: 1
Successfully Transferred Long Texts: 1
Non-Transferred Long Texts: 0
Now when i check the material master sales view -> sales text it is empty. Please help me with the same.
Regards,
Ranjith N -
Hi Gurus,
How to get the material type in SRM? If we enter the material in the product field in the shopping cart, based upon the material type some validation needs to be done in the shopping cart.
Please advise if anybody is having any clue.
Thanks & Regards,
AswiniHi,
Now I got to know how to get the material type in SRM. Would like to share the information.
Material along with the material type get replicated into SRM from R/3 system. In COMMPR01 transaction, we can search for the material by entering the number in the product id and then it will show the detail information. When the material is replicated into srm, it will be tagged to both the hierachies R3MATCLASS as well as R3PRODSTYPE. The category id corresponding to the hierachy R3PRODSTYPE will have the format MAT_XXXX where XXXX denotes the material type. e.g. MAT_ESRA where ESRA denotes the material type in R/3. The characters after MAT_ will vary.
The below step is followed to get the material type in SRM:
1. Get the product GUID of the material (product) used int he shopping cart from the BBP_PD transaction. Or the product GUID can be obtained from table COMM_PRODUCT.
2. Get the Hierarchy GUID of R3PRODSTYPE from COMM_HIERACHY.
3. Get the CATEGORY_ID from the table COMM_PRPRDCATR based upon product GUID and HIERARCHY GUID of R3PRODSTYPE.
It will give the result in MAT_XXXX format. The remaining characters after MAT_ represents the material type.
Hope this information will be useful.
Regards,
Aswini
Edited by: Aswini Kumar Sahoo on Sep 18, 2009 5:29 PM
Edited by: Aswini Kumar Sahoo on Sep 18, 2009 5:30 PM -
Hi,
In my infocube material type for one of the material is not getting displayed.
When I check in the content of the cube for this material all the fileds are getting displayed except material type.
However it is present in the material master data from which it is put into the update rules to populate in the cube.
Its getting displayed for some other materials , so we cant say that mapping is wrong or problem with update rules.
Can some body let me know what could be the reason.
Thanks,
JeetuHi Jeetu,
can you check in your cube if you have for one material, entries with AND entries without the MATL_TYPE? If this is the case then you were loading transactional data before having the corresponding material master data.
You should adapt your scenario:
- first do not use the standard attribute derivation during your URules: performance is very bad.
- implement a start routine filling an internal table with your material and MATL_TYPE for all entries of material in your datapackage.
- implement an update routine on the MATL_TYPE with a READ on this internal table an raise an ABORT = 4 if the MATL_TYPE is initial or the material in not found.
Now to fix your situation you'll have to reload your cube or alternatively just reload your missing MATL_TYPE MATERIAL from your cube itself and selective delete those which are empty.
hope this helps...
Olivier. -
Mandatory fields With reference to Material types
Dear Gurus,
I need to make few fields as mandatory with reference to material types while creation of the material master data.
For example:
For Semi finished and Finished Schedule margin key is required(mandatory)
For Raw Materials Schedule margin key is optional.
Regards,
SiddharthHi
find following step to make field mandatory for material type
Follow the stpes for making field as optional, required entry
1 click the tab ,(Which is u want to be Required entry )and get the field name by pressing F1 key and then
2.Go to T.Code: OMSR and enter that field name and get Selection Group
once you get selection group and field name
3 Use t.Code: OMS2 and click your material type and in next screen check Field reference ( you have assigned for material type; example :;For ROH material type the Field reference is ROH
3. Use T.code:OMS9,, Double Click your Field Reference and select field selection Group , & select round box of Required Entry or optional and save
check following link you will get clear idea [How to configure the fields required for each Material type ?;
Regards
Kailas ugale -
SAP report for movement type and material type
Hi!
I would like to use a standard SAP report to give me a list of all the movement types (much like MB51) but instead of material I would like to select on Material type e.g. ROH. The result should for example be a list of the movement types 501 on material type ROH.
It is urgent, if you could help me I would be very greatful!
Sincerely
Anders ÖhrlingThanks for your answer!
I have managed to join the two tables and created a report that will work, except that the amounts in local currency that is given by movement type 201 is not negative (as in MB51). I need all movement types that generate a debit must be shown as a negative value. Wo when I summarize all the movement types I end up with the value of 101 minus 201.
Is that possible without ABAP programming?
Sincerely Anders Öhrling -
Hi friend,
i have issue regarding mandatory self life field (SELD/BBD and Date of manufactor)in migo for Batch Tab for particular Material start with '1' Series and material type.
i want to make mandatory above field during GR from migo..any one let me know exit or badi for that to full fill this goal..
Regard's,
shaikh Khalid.Hi Shaikh
First of all Thread is not closed seconldy as a good practice if you have resolved your issue kindly document it here so that it may help someone in future
Nabheet
Maybe you are looking for
-
Is there any way to change the default folder for new finder windows...
...Or even set a different folder as the "home folder"? I am recovering from an incredibly messy archive and install which refused to allow me to save my old user accounts, instead moving them all into "Previous Systems". In my haste to get the machi
-
hi Am supposed to solve performance issue for the query in SQ01. I have no clue about how to start. am not able to view anything in Infoset Query. Where exactly the queries will be wriiten. because in my technical design i saw a piece of code. Please
-
Automatic IDOC Invoice without TAX A1
HI, I am setting an intercompany invoice from IV billing RD04 to create an vendor invoice of supplying site. I have read all different posting in here and using OBCA, OBCB, OBCC, OBCD, OBCE to setup the idocs for creating INOVICE01 for receviing co
-
Why 2 copies of same App?
Mavericks is dumb. So I download an App from the develpers website, and I start using it. It has an option to "Review" the app, so I click on it, but it sends me to the App Store where I am supposed to leave this review. But since I didn't download t
-
My media is a few seconds behind my audio... help?
Hi, I currently have a 30 day free trial with Premiere Pro CC and when I wan to look at my finished video (edited) my media will always be a couple of seconds behind my audio. It is really annoying and sets everything back. I'm wondering if there is