Material length
hi
this is my scenerio
my DS is 0material_text
i am getting 0material, text and lanu
at transfer rules 0 material is mapped with produect (char) with length 40. they have wirtten 1 rountine chnage length from 18 to 40 to target field.
this infosource is assigned my cubes already uisng at production.
now their requirement is in future they may create some more cubes . they need the infosource ( that material) lenthg will be same.
they can use same infosource , they can write update routine for new cubes. they dont wnat like, they want field with 18 length at infosource level
i suggested this solution
create Z datasource (generic extraction withtext) assign this new ds to any new infosource and use this new infosource for new cubes?
please let me know my suggested solution is correct ?
or please let em know any best solution is theer for this scenerio
Hi Suneel......
0material_text is a master data..............did u mean that u have used same infosource for both master data and transaction data.........but how.........as per my knowledge it is not possible.........
Whatever....ur solution is ok........
But u can do another thing...........u will include product infoobject in those infocubes......right........
Now before transaction data we will load master data......Now u..........in the General tab page of the characteristic infoobject ........there is a option to create Transfer routine...........this routine is a global routine......and there u can write code to chnage length from 18 to 40 to target field............
Here u hav to write code only once............but if u write it at infosource level..........it will be local.........infosource specific......
Hope this helps.....
Regards,
Debjani.........
Similar Messages
-
Report where material no material length ,& material width are needed
I am working on a report for the stcoks material detail but i am unable to find the table where the details of length & width of the material is stored I have tried almost all the possible ways like ST05 , report evaluation, RECORDING , WHERE USED LIST BUT UNABLE TO FIND the table .
SCENARIO IS that my mm consultant has made a batch class using class type 023 where he maintained the length & width of material . i am to make a report similar to RMMMBSTEN where length & width are
shown in tcode MMBE . kindly help me with elaborated steps .
thanks In advance .
regards
digvijayHi,
MARM for Multiple Unit of Measure
LAENG-Length
BREIT-Width
HOEHE-Height
MARA For single UNIT of Measure
LAENG-Length
BREIT-Width
HOEHE-Height
Thanks,
Durai.V -
Routing setup Time based on material length
Hi All,
I have a situation where i have to write an Object Dependency to change the setup time of an operation based on the length of the material selected by the customer.
For the first 5 inches, the Setup time should be 4Hrs, for each additional 5 inches the Setup time should be increased by 1Hr. there is no limit on the length they can select.
I have created a Reference Characteristics SETUP_TIME, and have a Characteristic called LENGTH. I could use some help with writing the dependency.
Thanks for the help.
RajHello Raj,
Please review the link . You can create a procedure as defined in this link.
http://help.sap.com/saphelp_47x200/helpdata/EN/92/58c3a1417011d189ec0000e81ddfac/frameset.htm
Eg ,
$SELF.SETUP_TIME = MDATA $SELF.SETUP_TIME + 30 IF COLOR = 'FL'
OR $SELF.SETUP_TIME = $SELF.SETUP_TIME + 30 IF METALLICEFFECT = u2018Yesu2019
You should only usee MDATA if you reading the value from master data ,for a changed value you do not need to use MDATA.
You can also achieve this by usingVariant functions in a procedure. You can write a code to do a calculation based on the values you are sending. Assign this FM (OD) to the reference characteristic. You can find more information on this on the following link.
http://help.sap.com/saphelp_47x200/helpdata/EN/92/58c6eb417011d189ec0000e81ddfac/frameset.htm
Hope this helps
Thanks Amber -
Needed areport for a material with its length & width
Hi friends i need a report in which i am to show material , plant , storage location , batch no , & material length & material width ( its charcteristics are defined by using a class ) , i have found table AUSP in which
field ATFLV field is populated with length & width details but i am not getting how to link this with material no & batch kindly anybody send me elaborated steps will be very thankful if with appropriate codes ,bcoz m new to abap .
Regards
Digvijay raiHI SOURAV ,
i tried this you are saying what is correct but when i m taking the cuobj = internal object no , there is problem that but have differnt no as cuobj of 50 char & internal object no is of 18 & numc so there is problem
regards
digvijay rai -
Error in PR creation in material code?
hii experts,
While creating PR i m getting error , the material length is not set ..etc??
Becas in my case i have created material master and it has given a number also for material .
The same material while using in PR creartion its not allowing me ??
How i can rectify this ??
Thanks.Hi,
Check Manufacturer Part Number activated or not? Also check OMSL t.code for Lexicographical & Leading zeros section.
http://help.sap.com/saphelp_di471/helpdata/en/08/a1110f4d7611d2b438006094b9c9be/content.htm
http://www.sapgeek.net/2010/03/material-numbering-configuration/
As system cretaed a material number, you should not have any issue for creating PR, Just check above links:
Regards,
Biju K -
Urgent!!!! Material Number Problem
Hi Experts,
i am facing the simple problem,
I Loaded the Hierachy Data from IS-R/3 to Bw,
Its Loaded successfully, but the Problme is that its not
showing in the BEx Report,
The Problme is , in the Hierarchy the Material number
is like Ex:3530014 this is not displaying in the BEx(displays like not assigned nodes)
But When i am inserted the Same Material number manually
its inserted like EX:000000000003530014(this is displaying in the bex hierarchy)
to the same node which 3530014 is having.
The Problme is that this Same material number is differing between leading'zeros and the non-leading zeros.
is there any convesion exit routine problem,
i am unable to find out this... help plzzzIn BW system , if you set material length 18 and checked leading zero option.
when material no is below 18 length, the leading zero will be added, in your case 3530014(below 18).
How the infoobject(0material) masterdata looks?
with leading zero or not?
also check conversion routine(MATN1) is set.
thank you
senthil kumar -
Characteristic value '5000000000 ' of characteristic 0MATERIAL is not MATN1
Dear Experts,
I am getting one error message while extraction,when executing the DTP .the messge is :
"Characteristic value '5000000000 ' of characteristic 0MATERIAL is not MATN1 -converted" BRAIN 68 @3R@
what is the meaning of this messege ,Request you to plese suggest me reagarding the same .thanks in advance .Hi Bhullar,
Have you maintained material length as 18 at ECC and BW sides.
at bw side info object 0material conversion routine as MATN1. seems like you may be maintained as ALPHA. if your using as ALPHA conversion routine then at transfer rules for MATERIAL you can pass output data by suing FM - CONVERSION_EXIT_ALPHA_INPUT.
or if possible then change conversion routine to MATN1 for material(info obj) at data source level or info object maintenance(RSD1) level.
Thanks -
Dear Gurs,
Pls help me for the scenario as mentioned followed.
I have a one material. for that there is a 3 differenet vendors. for that material Length is a one MIC.but as per vendor limit is different. I don't want to use a 3 different MIC for vendor wise. Requirment is One Material, One MIC but Limit should be come in Inspection plan as per vendor.
MIC u2013 length
Vendors u2013 A,B and C
Vendor Spec for length for the SAME material u2013 10-12cm,10-18cm,10-20cm (A,B and C vendors)
For GR if vendor is B then for that Inspcection lot limit of the MIC legnth should be reflected as a 10-18 cm.
Thanks in advance for help.Hi Mihir,
There are two ways to incorporate the requirement.
1. Create that much number of task list counters for the inspection plans, same as the Vendors you have. I means One Task list group counter 01 will be assigned to Material 'M' Vendor 'A', counter 02 for Material 'M' Vendor 'B', & counter 03 for Material 'M' Vendor 'C'.
2. Refer the [wiki document|https://wiki.sdn.sap.com/wiki/display/PLM/SameParameters-DifferentSpecifications]
Regards,
Shyamal -
dear all,
In SAP material code should be maximum of 40 characters. I wanted to add vendor code with that particular material due to which character range goes to 70 digits.
do we have a provision to add vendor's material code in material master and also want to print that vendor's material code in Purchase Order.
how will I do that?
amitHi
Material length is STD and you can not change it unless u have KEY to change it which you need to get from SAP itself
Now regarding Vendor part No in SAP mm we call it as MPN -- Manufacturer Part No
To confugre a MPN for a material itself a procedure. It gone through following steps-
1. Basic Setting: Here we allows MPN for the Client and
T-Code
IMG --> Logistics General --> Material master --> Basic Setting --> Make Global Setting
Now tick mark the check box of MPN.
2. Define Manufacturar Part profile: Here we create a profile for the MPN.
IMG --> Material Management --> Purchasing --> Material master --> Define Manufacturer Part Profile
--> F5 --> Fill the data as follows
Mrf. part profile
Profile Descriptiion
Tick mark all the check box
Chek g. rule: manuf 1
ENTER --> SAVE
3. Goto MM02 and feed the data of that material for which you want to maintain MPN
Select the Purchasing View
In order data/ manufaturer data box
Mat. part. profile --> Fill the profile name
SAVE
4. Now create a Material master (it may be more than one when you want to create MPN for more than one supplier)
Material U - 01
Industry Sector Machenical engineering
Material Type HERS (Manufacturer Part)
Select the Purchasing View
In Manufacturer Part box
Int. material No. For which you want to create MPN
Mrf. part number same as former
Material Group F4 help
ENTER --> SAVE
Hope this will help you -
Hi,
I have a small doubt.
In file to IDOC mapping, I am mapping two fields using a UDF.
That UDF in turn calls a RFC.
But that RFC is not moved to quality server.
If now I try to test that in quality environment, the mapping works fine and IDOC is posted because the error handling is done in ABAP.
My doubt is why did the messge did not failed in XI, saying the RFC not available??
I tried to search in sdn, by did not get anything related to this.
Please try to clarify my doubt.
Regards,
SachiRavi,
Below is the UDF code:
MappingTrace importantTrace = container.getTrace();
String query = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ns0:Z_RFC_UOM xmlns:ns0=\"urn:sap-com:document:sap:rfc:functions\">";
String restQuery = "</ns0:Z_RFC_UOM>";
String Lookup_Key_Tag = "I_MATNR";
String Lookup_Key_Tag1 = "I_VKORG";
String Lookup_Key_Tag2="I_VTWEG";
String Lookup_Value_Tag = "E_MENEE";
String Lookup_key_StartTag = "<" + Lookup_Key_Tag + ">";
String Lookup_key_EndTag = "</" +Lookup_Key_Tag + ">";
String Lookup_key_StartTag1 = "<" + Lookup_Key_Tag1 + ">";
String Lookup_key_EndTag1 = "</" +Lookup_Key_Tag1 + ">";
String Lookup_key_StartTag2 = "<" + Lookup_Key_Tag2 + ">";
String Lookup_key_EndTag2 = "</" +Lookup_Key_Tag2 + ">";
String Lookup_Value_StartTag = "<" + Lookup_Value_Tag + ">";
String Lookup_Value_EndTag = "</" +Lookup_Value_Tag + ">";
String comm_channel = "";
String content = "";
String items = "";
String item1 = "";
String item2 = "";
String item3 = "";
String ItemsTag = "";
String Lookup_Value = "";
int j =0;
String Rec = Service[0];
for(int i= 0;i< material.length;i++)
ItemsTag = Lookup_key_StartTag material<i> Lookup_key_EndTag;
item1 = item1 + ItemsTag;
for(int i= 0;i< sales_org.length;i++)
ItemsTag = Lookup_key_StartTag1 sales_org<i> Lookup_key_EndTag1;
item2 = item2 + ItemsTag;
for(int i= 0;i< dist_channel.length;i++)
ItemsTag = Lookup_key_StartTag2 dist_channel<i> Lookup_key_EndTag2;
item3 = item3+ ItemsTag;
items=item1item2item3;
items = items + restQuery;
query = query + items;
RfcAccessor accessor = null;
ByteArrayOutputStream out = null;
comm_channel = "CC_Recv_RFC";
try
Channel channel = LookupService.getChannel(Rec,comm_channel);
accessor = LookupService.getRfcAccessor(channel);
InputStream inputStream = new ByteArrayInputStream(query.getBytes());
importantTrace.addWarning(query);
XmlPayload payload = LookupService.getXmlPayload(inputStream);
Payload result1 = accessor.call(payload);
InputStream in = result1.getContent();
out = new ByteArrayOutputStream(1024);
byte[] buffer = new byte[1024];
for(int read = in.read(buffer);read>0;read = in.read(buffer))
out.write(buffer,0,read);
content = out.toString();
importantTrace.addWarning("RFC Response::" + content);
//Parsing RFC output
j= 0;
while ( content.indexOf(Lookup_Value_StartTag) != -1 )
Lookup_Value = content.substring( content.indexOf(Lookup_Value_StartTag) + Lookup_Value_StartTag.length() , content.indexOf(Lookup_Value_EndTag) ) ;
importantTrace.addWarning("LookupValue::" + Lookup_Value);
j++;
content = content.substring(content.indexOf(Lookup_Value_EndTag) + Lookup_Value_EndTag.length() );
result.addValue( Lookup_Value);
}//end of try
catch(Exception ex)
importantTrace.addWarning("Error while lookup"+ ex.getMessage());
//catch(LookupException e){ importantTrace.addWarning("Error while lookup"+ e.getMessage()); }
//catch(IOException e) { importantTrace.addWarning("Error while IOException"+ e.getMessage()); }
finally
if(out!=null)
try
out.close();
catch(IOException e)
importantTrace.addWarning("Error while IOException"+ e.getMessage());
if(accessor!=null)
try
accessor.close();
catch(LookupException e)
importantTrace.addWarning("Error while lookup"+ e.getMessage());
result.addValue(""); -
Sum quantities in message mapping
Hello there.
I'm trying to map a xml message with items (material/quantity) into another one with exact same structure but collecting the lines by material.
The XML's structure is like:
header_fields ...
<items>
<item>
<matnr>1</matnr>
<qty>1</qty>
</item>
<item>
<matnr>2</matnr>
<qty>10</qty>
</item>
<item>
<matnr>1</matnr>
<qty>5</qty>
</item>
</items>
When mapping <item> tag, I used a user-defined function Like this:
public void addMaterial(String[] material,ResultList result,Container container){
Vector vMats = new Vector();
for (int i = 0; i < material.length; i++ ){
if (!vMats.contains(material<i>)){
vMats.addElement(material<i>);
for (int i = 0; i < vMats.size()-1; i++){
result.addValue("");
This is working well (I think) because i only get different materials in output queque in mapping.
Now, I want to actually calculate quantities, mapping qty tag, collected by material, and i'm trying something like:
public void sumQuantities(String[] material,String[] units,ResultList result,Container container){
Vector vMats = new Vector();
Vector vQuant = new Vector();
for (int i = 0; i < material.length; i++ ){
if (!vMats.contains(material<i>)){
vMats.addElement(material<i>);
vQuant.addElement(units<i>);
else {
for (int i = 0; i < vQuant.size()-1; i++){
result.addValue("");
I'm creating a vector vMats to have an array with not repeated material, and a vQuant array to sum quantities. There is the ???? part ...
I'm sorry for the SIMPLE question but i'm an abaper trying a bit in the java workd
The needed result is:
header_fields ...
<items>
<item>
<matnr>1</matnr>
<qty>6</qty>
</item>
<item>
<matnr>2</matnr>
<qty>10</qty>
</item>
</items>
Regards,
Valter Oliveira.Hello VJ.
Thanks for your input. There were some problems in the type convertion in your code, but using your idea with small changes found in java foruns I got one of the possible solutions (probably not the best one). I've tryied it with several complex combinations and so far so good ... always got what we need.
The code for the 3 UDF's that I created is:
For <Item> (non-repeated materials)
public void additem(String[] material,ResultList result,Container container){
Vector vMats = new Vector();
for (int i = 0; i < material.length; i++ ){
if (!vMats.contains(material<i>)){
vMats.addElement(material<i>);
result.addValue("X");
For <matnr> (non-repeated materials)
public void addmaterial(String[] material,ResultList result,Container container){
Vector vMats = new Vector();
for (int i = 0; i < material.length; i++ ){
if (!vMats.contains(material<i>)){
vMats.addElement(material<i>);
result.addValue(material<i>);
For <qty> (collected by material)
public void sumQuantities(String[] material,String[] units,ResultList result,Container container){
Vector vMats = new Vector();
Vector vQty = new Vector();
for (int i = 0; i < material.length; i++ ){
if (!vMats.contains(material<i>)){
vMats.addElement(material<i>);
vQty.addElement(units<i>);
else {
int p = vMats.indexOf(material<i>);
int actual = Integer.parseInt(units<i>);
String[] aux = (String[])vQty.toArray(new String[vQty.size()]);
int previous = Integer.parseInt(aux[p]);
int sum = actual + previous;
String strsum = Integer.toString(sum);
vQty.set(p, strsum);
String[] end = (String[])vQty.toArray(new String[vQty.size()]);
for (int i = 0; i < vQty.size(); i++){
result.addValue(end<i>);
After the UDF's, to achieve <matnr> and <qty> in output XML, I had to use SPLIT by VALUE.
I'll keep this open for a while to see if anyone has a better solution.
Regards,
Valter Oliveira -
Leading zeros in the Product allocation characteristic combinations.
Hi All,
I am copying Characteristic combination from planning area to product allocation group, after i complete the transaction system is automatically preceding the zeroes to the product number.
I have one the following activities before copying CVC of planning area to product allocation group.
against all the Product allocation settings.
2.Created the MPOS with product (characteristic length of Product is 18), Customer and Allocation object.
3.Created planning area and planning book.
4.Copied cvc combination from planning are to product allocation group and also copied planning area values in to Product allocation group.
5.Tried to check in the ATP simulation mode, while I was doing system has given no characteristic combination found, when I checked Product is preceding zeros as per the filed MATNR length 40 and this MATNR is selected from the Product allocation field catalog, But when I add zeros to product system is performing Product allocations in simulation mode.
6.Tried triggering gATP Product allocations by creating Order in ECC, here also it has given same error No characteristic combination exists.
When I did initial R&D on this. I found that material number in the product allocation characteristic combination is leading by zeros for ex:- 000000000000000002200325.
Could any one please suggest me what to do on this.
Thanks and Regards,
T.MuthyalappaHi Muthyalappa ,
If i have understood your question properly , then my guess is you should be facing this problem only for numeric material codes. Try out the following things
1. Execute the same test condition for a non numeric material. I believe it will work perfectly .
2. For numeric material codes it is not working because of the difference in MATNR length between ECC and APO. In ECC the maximum possible MATNR length is 18 char whereas it is 40 chars in APO. So as per std SAP functionality the numeric materials get concatenated with leading zeros when you try to transfer it (or carry out any kind of processing ) from ECC to APO.
ex consider material 12345. In ECC it will be stored internally as 13 leading zero's followed by12345 . But in APO it will be stored as 35 leading zero's followed by 12345. Your issue is the system does not recognize the CVC that has this material as characteristic. At the time of cvc creation / change make sure your material characteristic ( especially for numeric material codes) totally has 40 chars . Pack it with leading zeros and make the material length 40.
Try this out and update me .
Thanks
Saradha -
Hi Experts,
We are loading data from APO to BW. However, the Material length in APO is 40 with PRODU conversion routine. In BW, the Material length is 18 with ALPHA conversion routine.
During data loading, if the value is '000000000000000000000000000000000001' in APO, it will display as '0000000000000000' in BW. Please advise on how to correct this. Thank you.HI
first check in SPRO.. settings configures. 4.3.Specify Output Format of Product Number
IMG > Advanced Planning & Optimization>Master Data>Product> Specify Output Format of Product Number.
For example:
Product Number with Leading Zeros: 000000001234 (zeros up to defined length of product number)
Product Number without Leading Zeros: 1234 (leading zeros removed from product number)
Following the menu path or transaction code above:
u2022 Uncheck the u201Cleading zerosu201D box and save the setting.
thx
vijju -
0Material installing in BContent Error
Hi,
we are newly setting up BI system, 0MATERIAL infoobject is in INACTIVE status, i tried to install from business content,
after installation also, the Infoobject is in INACTIVE, if I am trying to display that infoobejct , it is throwing error that
"Settings for material number conversion not found"
Please suggest me,
Regards
PrasadHi Siva,
Check Tx- OMSL in R/3 & BW
check material length in r/3 & bw if there is any discerpency.....
change it to both to 18.
hope this will help you.
Regards,
Vijay. -
Hi All,
When I am trying load Master data for 0MATERIAL for I am getting below error message.
Maintained RSKC (Invalid Characteristics) and OMSL (Material Length) Settings in BI.
Diagnosis
Data record 33 & with the key '103-001-00003 &' is invalid in value '103-001-00003 &' of the attribute/characteristic 0MATERIAL &.
System Response
The system has recognized that the value mentioned above is invalid, and has processed this general error message. A subsequent message may give you more information on the error. This message refers to the same value, even though it does not state this explicitly.
Procedure
If this message appears during a data load, maintain the attribute in the PSA maintenance screens. If this message appears in the master data maintenance screens, leave the transaction and call it again. This allows you to maintain your master data.
Please help me out
Thanks in Advance
Thanks,
ChanduHi Chandra,
There are two problems hers
1) Material length.
2) Allowed character set.
1) for material length, as it says it is more than the length specified. to check the length allowed, go to table 0MSL.
2) for allowed character set, looks like '-' is not maintained. go to transaction RSKC and enter - . this will be added to the allowed set of characters.
Hope this helps.
Sri..
Maybe you are looking for
-
How to Terminate the BPM Process instance
Hi, If I have an instance of bpm process which fault at the database service task, I want to manually terminate or suspend it. I tried to do it in the workspace as an bpm administrator, however, since the instance pass the human task already, so that
-
Search engines dont' load what is wrong?
everything else works fine just the search engines don't work. and the app store does not work also.
-
What is the Role that gives me access to JCO settings page?
Hi all, I am at the customer site doing some WDP dev. I need to setup JCO so as to make use of RFC. Customer has already assigned all the roles they have and i still cant access to the backend setting page. What is the role to give me the access? how
-
No Systems in "Search in" 7.1SP3
Hi I tried to import a data service as described in the documentation. However, in the Search (button in task-panel toolbar) in the "Search in" drop-down list is see no systems or WS-Destinations but the following entries: "Business Objects, Portal C
-
Dear Friends, Greetings for the day!! I have some 2.5 years of experience in Recruitment and i have done my SAP-ABAP course also ,iam planning to enter into SAP-HR domain . Iam planning to enter into HR domain since my experience is into recruitment