CRM 7.0 Leading zeros on material in sales documents delta replication

Hi
During initial load of sales documents from ECC to CRM the item is replicated with leading zeros.
The consequences is that CRM do not find the product and the crm order gets an error message that the product is not maintianed in product master.
So my question is; how to replicate the order without leading zeros for items?
BR
Johan

Hello Johan,
You need to check txn:OMSL in ERP and you need to make sure that settings are in sync with CRM customizing path settings.
SPRO>IMG>Cross-Applicaiton Component>SAP Product>Basic Settings-->Define O/P Format..
Especially you need to check for the lexicographical flag.
If this flag is set, then 0123 is different from 123.
Hope this helps!
Best Regards,
Shanthala Kudva.

Similar Messages

  • Display key and text in dropdown box & suppress leading zeros in material #

    Hi Everyone,
    I have some questions on how to ....  Can anyone help me?  Here they are:
    How to show material # and description (key and text) both in dropdown box list? 
    How to suppress leading zeros in material #, i.e. 0000000012345678 only show 12345678 ?
    How to show a date with format mm/dd/yyyy not yyyymmdd?
    Thanks alot, Jin
    Edited by: Jin Freda on Mar 25, 2008 4:47 PM

    Hi,
    What type control you are useing for date .
    If you are useing Input field of date type or Date picker control you should get this option in the control properties.
    Can you tell me what are  tabs are appaering in the conrtol properties.
    2.When you you are using the formula Round(@material) ,Are you typing it or draging Field from right side in to  the formula .If you did not drag it you will get Message:Formula has errors.
    One more probelm is there if the Data type of field where you using formula is not Number type.
    Check all above and get back to me.
    3.You are not able to give 6 points for all because its a resrticed one you execeded giving6 points option now you can give only 10 points.
    Regards,
    GOVINDU

  • Appending leading zeros to material number

    Hi,
    I want to form a object key for material number. so i need to append leading zeros to material number. but i am getting "TYPE CONFLICT" shot dump in FM 'BAPI_OBJCL_GETDETAIL'.
    The following code is giving the dump.
    data: wa_object(18) type c.
    wa_object = '100301010'. "Material No
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT         = wa_object
        IMPORTING
       OUTPUT        =  wa_object.
    CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
      EXPORTING
        OBJECTKEY              =  wa_object
        OBJECTTABLE            = 'MARA'
        CLASSNUM               = 'FINISHED_MATERIAL'
        CLASSTYPE              = '001'
        KEYDATE                = SY-DATUM
        UNVALUATED_CHARS       = ' '
        LANGUAGE               = SY-LANGU
      TABLES
        ALLOCVALUESNUM         = IT_ALLOCVALUESNUM
        ALLOCVALUESCHAR        = IT_ALLOCVALUESCHAR
        ALLOCVALUESCURR        = IT_ALLOCVALUESCURR
        RETURN                 = IT_RETURN
    but if I hard code to 18 characters, the following code is working fine:
    CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
      EXPORTING
        OBJECTKEY              =  '0000000000100301010'
        OBJECTTABLE            = 'MARA'
        CLASSNUM               = 'FINISHED_MATERIAL'
        CLASSTYPE              = '001'
        KEYDATE                = SY-DATUM
        UNVALUATED_CHARS       = ' '
        LANGUAGE               = SY-LANGU
      TABLES
        ALLOCVALUESNUM         = IT_ALLOCVALUESNUM
        ALLOCVALUESCHAR        = IT_ALLOCVALUESCHAR
        ALLOCVALUESCURR        = IT_ALLOCVALUESCURR
        RETURN                 = IT_RETURN
    Please tell me how to rectify the short dump which uses Conversion_exit_alpha_input.
    Thanks .
    Sankar

    Hi Shankar,
    When ever u pass parameters to any function module the type of parameters must match with the ones defined in function module. Here u defined ur object key like this
    data: wa_object(18) type c.(18 digits). But the in function module it referenced with BAPI1003_KEY-OBJECT (50 digits). So u have to define the variable with BAPI1003_KEY-OBJECT.
    Check this solution. It will work for u.
    data: wa_object(18) type c,
               wa_object1 TYPE BAPI1003_KEY-OBJECT.
    wa_object = '100301010'. "Material No
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    INPUT = wa_object
    IMPORTING
    OUTPUT = wa_object.
    wa_object1 = wa_object.
    CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
    EXPORTING
    OBJECTKEY = wa_object1
    OBJECTTABLE = 'MARA'
    CLASSNUM = 'FINISHED_MATERIAL'
    CLASSTYPE = '001'
    KEYDATE = SY-DATUM
    UNVALUATED_CHARS = ' '
    LANGUAGE = SY-LANGU
    TABLES
    ALLOCVALUESNUM = IT_ALLOCVALUESNUM
    ALLOCVALUESCHAR = IT_ALLOCVALUESCHAR
    ALLOCVALUESCURR = IT_ALLOCVALUESCURR
    RETURN = IT_RETURN
    Thanks,
    Vinod.

  • How to remove leading zero from Material Number

    Hello Everyone,
    I need to figure it out how to remove leading zero from material number. Cureently extractor is sending material number as 100663. But when comes into BI i am getting as "000000000000100663" and similariy in report it is appearing as "000000000000100663". Now my client wants me to exclude preceeding zero for a material in all the reports.
    Is there any setting in query desinger to handle this issure or in the backend.
    Need your inputs.
    Thanks,
    Lasya.

    Hi
    you can use the function Module
    CONVERSION_EXIT_ALPHA_OUTPUT in the start routine
    to test this go to SE37  --- give the CONVERSION_EXIT_ALPHA_OUTPUT -
    >display -
    > F8
    in the input give 000000456
    and execute
    the out put will be 456
    for getting Zeros you can use
    CONVERSION_EXIT_ALPHA_INPUT--- to remove leading zeros
    Santosh
    Edited by: Santhosh Nagaraj on Oct 29, 2009 10:52 PM
    Edited by: Santhosh Nagaraj on Oct 29, 2009 10:54 PM

  • Removal of leading zeros for material no. in report

    hi
    my issue is that i have to remove leading zeros for material number when displaying in alv grid.iam getting output.but leading have to truncated automatically.
    eg: 000000000000000102
    the ouput should be 102.
    please do provide solution for this or any function module.thanks in advance.

    Hi Sanjana,
    while populating the internal table use the conversion exit available for MATNR. this will remove the leading zeros.
    oter possible way, declare the internaltable by referring the data element MATNR, i hope if you do this, it will delete the leading zeros automaticallt.
    or if you declare the internal table field as charecter type, use the ALPLA_CONVERSION_EXIT_INPUT ot OUTPUT function module to remove the leading zeros.
    Reward the points if it is helpful..

  • Delete leading zeros for material in mapping.

    Hi,
    How to delete leading zeros for material like 0000000128736 if so I am expecting 128736 only.
    We need to consider if I get  material number is like RPG2389 .
    Thanks,
    Vinay.

    Hi,
    If you will be getting alphanumeric codes, it would be best to use a UDF with a regex-expression.
    UDF Type:
    ContextType
    imports:
    java.util.regex; (if you are using PI 7.1 you must remove the semicolon)
    arguments:
    input1
    Here's the code (courtesy of Sun Developer Network):
            Pattern p = Pattern.compile("[^a-zA-Z]");
            Matcher m = p.matcher(input1[0]);
            StringBuffer sb = new StringBuffer();
            boolean output = m.find();
            while(output) {
                m.appendReplacement(sb, "");
                output = m.find();
            m.appendTail(sb);
    result.addValue(input1[1]);
    Now to solve the leading zeroes, just add formatNumber: 0 after the UDF and it will work.
    Hope this helps,

  • Leading zeros in material master WEB UI ERP order scenario

    Hi CRM Gurus,
    when typing e.g. material 04100 in order entry screen for WEB UI ERP Order leading zeros are cut (material is displayed as
    4100) but an error message is issued, that article 000000000000004100 does not exist for SalesOrg XXXX DistrCh XX.
    COMCPRFORMAT in CRM and OMSL in ERP are in sync both with lexographically flag switched on...
    Any findings/solutions appreciated.
    Thank you in advance,
    Herbert

    Hi Manfred,
    thank you very much for your quick reply...
    Did some debugging in the SET-Method and it came out to be that table TMCNV in CRM was not maintained correctly.
    This table is part of customizing download object DNL_CUST_PROD0 which according to R3AM1 was downloaded
    succesfully but obviously did not adopt the settings in CRM. I maintained the setting now manually in CRM and everything
    works as expected.
    Anyway, your advice was pointing me to the right direction and I want to thank you again very much.
    Cheers,
    Herbert

  • Remove Leading zeros for Material in Transformation

    Hi Experts,
    I'm using DTP first time. I don't have much exp on DTP & Transformations.
    I'm creating infocube with some objects. I want to remove leading zeros for zmaterial.
    In 3.x writen update routines as fallows:
    data: zmat(18) type c.
    zmat = COMM_STRUCTURE-/BIC/ZMAT.
    shift zmat left deleting leading '0'.
    result value of the routine
      RESULT = zmat.
    I'm confusing in Transfermation where to write this routines.
    I'm writing in Transformation as fallows:
    data: zmat(18) type c.
    zmat = SOURCE_FIELDS-/BIC/ZMAT.
    shift zmat left deleting leading '0'.
    RESULT = zmat.
    But it's getting remove zero's.
    Anybody suggest on this.
    Siri

    Dear Sir,
    No confusion at all.
    Just double click on the Target Infoobjct i,e Material object in Transformation, you will see a wizard popping up.
    There you will see a option called "RULE TYPE" and the default value will be "Direct Assignment". In the same check box click on the drop down icon and select "Routine".
    The moment you select the routine option, it will open up ABAP workspace where in you can write your routine and get the desired result.
    Hope it helps.

  • Leading Zero in Material Master

    Hi,
    I am trying to do a simple select query from MAR inside the BADI  imp of IDOC_CREATION_CHECK, i get the Material no from segment  E1MARAM of IDOC data  & fill this in work area  & use it
    Now in one environment, the material no is coming without leading Zero's in another it is coming with.
    What could be the difference in setting /user setting where in one environment it is coming with leading & in one without.
    PS: In any way i am going to use CONVERSION_EXIT_ALPHA_INPUT to covert but curious to know.
    Thanks

    Hi Harish,
    I'm not sure why, I'm just replying because you should use CONVERSION_EXIT_MATN1_INPUT instead of CONVERSION_EXIT_ALPHA_INPUT.
    Of course, your problem is in the sender system.
    I might be wrong but if I remember correctly you have to define in the ALE model whether material numbers are to be distributed in internal or external format. That is, if OMSL are equal of course.
    regards,
    Edgar

  • BADI to add leading zero to material in DP

    Hello,
    I wanted to check if there is a BADI that can be used while generating CVC (/sapapo/mc62) that will add leading zeros to the product number (9amatnr) while uploading CVCs from FLAT FILE.
    Thanks,
    Sanju

    Hello,
    I am basically trying to create CVC from a TAB delimited file using tcode /sapapo/mc62. The file will be loaded on Application server and  /sapapo/mc62 will pick up the tab delimited file in background. I want a FM or BADI that can pad leading zero in front of the material Characteristics when CVCs are generated.
    Please advise.
    I am not planning to load the file into infocube and generate CVC from infocube.
    Thanks

  • How could I thoroughly close the Leading Zero function of Material No.?

    There are only a checkbox in SPRO with the function Leading Zeros of Material No. in
    Material Master->Basic Settings->Define Output Format of Material Numbers.
    But this function either make the Material ID full of Leading Zeros or delete all the Leading Zeros of it.
    Could I make the Material ID as normal string type without those functions?
    Because I want to set my Material ID as different between '0001234' or '00001234'.
    Could any one help me? Thank you very much.

    Hi,
    Yes, of course you can, on the screen "Define Output Format of Material Numbers", you can find an indicator "Lexicographical", If this indicator is set, material numbers are stored as follows:
    If the material number (numeric or not purely numeric) was assigned externally, it is stored left-justified as entered.
    Example
    Defined length: 8 characters
    Externally assigned number: 123
    Stored number: 123
    Note
    Any leading zeros that may have been entered are stored too. This makes it possible to distinguish between the material numbers 123 and 0123.
    If the material number (numeric only) was assigned internally, it is padded with leading zeros to the defined length and stored left-justified.
    Example
    Defined length: 8 characters
    Internally assigned number: 123
    Stored number: 00000123
    Activate it and make the number is assigned externally, then you can realize your request!
    Good luck
    Tao

  • Removing Leading Zeros

    Hi Friends,
    I need to delete leading zeros from material while loading to ODS and have tried followings options:
    CONVERSION_EXIT_ALPHA_OUTPUT
    Shift Variable LEFT deleting leading zeroes
    Both the options did not work in my case. I need to delete leading zeros from material. For example if source has material as "00000000002213749R" I was to convert it as "2213749R".
    Following is the code I am using in transformation:
    DATA: LV_MATNR(18) TYPE C.
    LV_MATNR = SOURCE_FIELDS-/BIC/Z9AMATNR.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
         EXPORTING
              INPUT  = LV_MATNR
         IMPORTING
              OUTPUT = LV_MATNR.
         RESULT = LV_MATNR.
    Also I tried the following code for SHIFT:
    DATA: LV_MATNR(18) TYPE C.
    LV_MATNR = SOURCE_FIELDS-/BIC/Z9AMATNR.
    SHIFT LV_MATNR  LEFT deleting leading zeroes
    RESULT = LV_MATNR.
    I tried both the option but could not get the leading zeros deleted. Can some one let me know whats wrong with the code, or is there any other option i can try for?
    Thanks,
    Manmit

    Hi amitesh,
                 Please try this code
    DATA: LV_MATNR(18) TYPE C.
    LV_MATNR = SOURCE_FIELDS-/BIC/Z9AMATNR.
    SHIFT LV_MATNR LEFT DELETING LEADING '0'.
      RESULT = LV_MATNR.
    Hope this will help u.....
    Regards,
    Yuvaraj.
    Edited by: sap_yuvaraj on Dec 13, 2010 12:54 PM

  • How to eliminate leading zero in quality notification list

    Hi All,
    we have implemeted support package after that we are facing an issue in quality notification list(QM11) leading zeros displying against material, quality notification number,production order number etc...  and the leading zeros effected someother Z programs reports also.
    material number is diplaying like this way example (00000012345678)
    i would like to eliminate the leading zero's in quality list and Z reports as well.
    for this issue  is there  any OSS note availble.
    kindly help on this issue.
    Thank you in advance.
    Regards
    Sailendra

    Hi,
    Please use the function module: CONVERSION_EXIT_MATN1_INPUT for removing leading zeroes from material master in Z-reports/programs.
    Thanks
    SUMIT

  • Materials with leading zeros - consequences of changes

    Hello,
    In Trx OMSL is defined that materials will be shown with leading zeros (checkbox marked).
    My client is already using logistics functions involving materials and wants to change this material representation with leading zeros to material without leading zeros (Lexicografic).
    the config setting appears quit easy but Im not sure what the effects will be - if there any!?
    Anyone has done this kind of change and what were the consecuences?
    Thanks for any answer.
    Aart

    Thanks Guys,
    Ill Try to focus my question.
    In OMSL my customer has not marked the checkbox: Lexicographic
    in OMSL my customer has marked the checkbox: Leading zeros
    my customer uses matererials with internal and external number asignment.
    Material with internal number asignment behave like this
    MM03: 000000000050000010  (and the material number is show like this in ME23N, MIRO etc.)
    MARA: 000000000050000010
    OMCV-CONVERSION_EXIT_MATN1_INPUT :  
    50000010  -> 000000000050000010
    MAterial with external number asignment behave like this
    MM03:    5101377600TF
    MARA:   5101377600TF
    OMCV-CONVERSION_EXIT_MATN1_INPUT :  
    5101377600TF  -> 5101377600TF
    The behaviour of the leading zeros is especialy a problem in trx like ME23N and MIRO.
    My question is:
    If I change in OMSL and unmark the checkbox "leading zeros" , what consecuences will this have for the materials with external number asignment - if there are any?
    Can I try this out in DEV and after this reset the flag "leading zeros"?
    Thanks for any answers.
    Aart

  • Selection without leading zeros in query

    Hi Gurus
    In report, we have defined variable for item no. 
    Is it possible to change the selection for a defined variable (item no.) not to require the leading zeros. Ex u2013 Instead of entering 000000123 , user enters only 123. Its very difficult to search when you are selecting specific item no.
    Thanks
    BIT

    Hi,
    Yep, the values in the cube will reflect in the query input screen, but I guess you need to drop and reload the data after the change, inorder to not reflect the old values.
    Check the below links for the reference:
    How to remove leading zero from Material Number
    Need to strip the leading ZERO using ABAP code.
    Remove Leading Zero
    Remove leading zeros
    Hope this helps...
    Rgs,
    Ravikanth.

Maybe you are looking for

  • Pre Lion iPhone videos show Thumbnail but can't play - new video generates Unsupported Video Format popup, no thumb but will play via quicktime

    This is really frustrating - Over the last year I have been uploading all of my photos and occasional iPhone video to Aperture 3 (latest version all patches in place).    Aperture would recognize the video, create a thumbnale and otherwise treat it n

  • How to set up

    I have a 500GB HD connected to my TC via USB. I can access the external HD via the airport extreme feature. But the real reason why I got the 500GB is because I want to make that external HD the primary location for my iTunes library. I wanted to kno

  • Sql Server Licensing

    Hi, I didn't know where to post it so I'm posting here. I'm a developer and currently I've a developer license. I never worried/needed a production license until now but I've got a client who is SQL illiterate and not technical at all. I did some goo

  • How to remove ICQ Search from Firefox

    Are you an ICQ-user? Have you ever wanted to have your own search engine instead of theirs? Even when you uninstall the ICQ Search Toolbar in "Add/Remove Programs", delete the extension in Firefox's Add-ons and restart your browser, it still not comp

  • COHV not get correct production order

    Hi     I get a odd case...     CO40 convert the planned order into production order  and get correct user defined status profile..     COHV convert the planned order into production order but miss the user defined status profiel... btw,I use the same