External material number with trailing spaces

Hi ,
One of our users created a material number(external number range) by copying it  from a spreadsheet. The value he copied had trailing spaces and when he copied it on to material number field the trailing spaces were not removed by SAP conversion routines . But when we deliberately type in trailing spaces the system removes them. Has anyone faced this kind of problems before? If so what is the solution.
Thanks,
Veera

Any Input??????

Similar Messages

  • External Material Number range

    Dear all,
    Is it possible if I define external number range only with numbers not alphabet. I have defined external number range as 000000001 to zzzzzzzzzzzz but its not accepting external number as 10000203030 when creating material master.
    Pls guide

    Check 2 Function Modules:
    EXIT_SAPLMG02_001 - Customer Exit: Internal Material Number Assignment
    EXIT_SAPLMG02_002 - Customer Exit: External Material Number Assignment
    Also one material type can only be assigned to one internal and one external number range
    both number ranges must not overlay each other,
    Number range can be defined like this from 1 to zzzzzzzzzzzzzzzzzz so anything can be done within this one range

  • To fill in the material number with item category u201CBu201D for Framework Order.

    The use of framework orders (also referred to as blanket purchase orders)  enables you to procure a variety of materials or services from a vendor up to a predefined maximum value (the value limit).
    Instead of a specific delivery date, you specify a validity period for the order.
    Goods receipts or the entry and acceptance of services performed are not necessary in the case of a framework PO and limit items.
    The invoices are posted directly with reference to the purchase order, provided that the specified value limit is not exceeded. When the value limit of the PO is reached, or the validity period is exceeded, the system issues a warning message. It is possible to book the invoices, but these are blocked for payment.
    During the phase of service performance, the cumulative u201Cactual" values (for the services actually performed) are continually updated in the underlying purchase. This enables you to monitor the progress of a procurement project on an ongoing basis. By comparing the "actual" value with the total value, you can always obtain an overview of the degree to which a budget for unplanned services or materials has been exhausted (i.e. see whether predefined limits have been reached or nearly reached).
    So with the Framework Order type (FO) and item category u201CBu201D you get the error that it is not allowed to fill in the material number with item category u201CBu201D.
    Please suggest me the possible solution to fill in the material number with item category u201CBu201D for Framework Order.
    Best Regards,
    Harisha

    The Framework order type is specialy defined for lesser value procurements (ex: stationeries, cleaning services ....) which are all not worthy to create Material Master at all.
    If you are very sure to fill the Material number, then proceed with some other document type.
    In what circumstances you want to put material number in FO order?
    Karthi.

  • Display material Number with Serialization Number

    Hi,
    I have a materai with serialization and spilt valuation.
    If i wish to display particular material number with serial numbers under oner valuation type, which T code I need to use?
    Suppose under one valuation type C1 there are 10 materials, numbered with serial numbers, E.g. Material P1 with serial numbers 1 to 10 under Valuation type C1.
    I wish to display this list of serial numbers under that valuation type.
    Thnaks & Regards,
    Kedar

    Check IQ 09
    <i><b>U have to develop report for the details u want</i>
    Material -env.sr no -. Check

  • How to generate external material number?

    hi all,
    I need to create material in the report. this material number is assigned external (manually). but the user want to generate the number.
    I only found the function ' MATERIAL_NUMBER_GET_NEXT' , which can only generate the internal number.
    Is there other function which can help me to generate the external material number?
    Thanks in advance.
    Ned

    you can use another number range II
    so you use fm number_get_next to generate a material number .
    And you can use this number for mm01 or an interface to create you material number I external
    A.

  • String with Trailing Space in a 4.7 / Basis 620 system

    Hi
    My customer is using SAP 4.7(Enterprise Management Version) / SAP BASIS Release 6.20 (Kernel 640).
    We have a requirement to print a product label using a 2D Datamatrix barcode following HIBC standards.  We are using a custom development object (Z function module) that builds the barcode string (variable length string) using a Mod43 calculated check digit as the last character of the string.  One of the valid check digits is a "space" character as the last character of this barcode string.
    Everything in our solution is working fine, except for the situation of the "space" check digit character at the end.  We are running into an ABAP syntax limitation when we are trying to concatenate the calculated check digit onto the barcode string.
    For example, we have a barcode value "+M53210250 " (within the quotes).  This string ends with a SPACE character at the end.  We are calculating the barcode value (some fixed elements + SAP material number, batch, etc.), then calculating the check digit, and concatenating the check digit onto the end of the initial barcode string value.
    I have tried this in a higher version system and am able to make it work by using the statement CONCATENATE RESPECTING BLANKS.  This syntax is not available with WebAS 620 however.
    Here are the attempts we have made:
    *Get HIBC 2D Barcode String
      CONCATENATE E_HIBC_2D_BC L_CHECK_DIGIT INTO E_HIBC_2D_BC.
    IF L_CHECK_DIGIT = SPACE.
    The following attempts does not work
    CONCATENATE with SPACE at end
    Concatenate HIBC SPACE and a dummy variable like 'TEST' into HIBC builds a space in between the dummy and HIBC
    and then when i split it the space is lost again.
    Insert SPACE in the beginning bulding a new variable with 0(1) space followed by HIBC and then SHIFT CIRCULAR BY 1 place
    It will work only if moved to a variable of length which is exactly HIBC + 1 char in length then by default the last char is SPACE.
    Use a replacement variable which is not a HIBC Check Digit like # & ! ? ^ or other for SPACE
    ECC 5.0 and HIGHER
    *CONCATENATE {dobj1 dobj2 ...}|{LINES OF itab}
               INTO result
               [IN {BYTE|CHARACTER} MODE]
               [SEPARATED BY sep]
               [RESPECTING BLANKS].
    *4.7 Version *
    *CONCATENATE f1 ... fn INTO g.
    *1. ... SEPARATED BY h
    *2. ... IN BYTE MODE
    *3. ... IN CHARACTER MODE
    Having the customer upgrade to ECC 5.0 is not feasible to solve this.
    If anyone has any alternative ideas on how to manage this variable length string and respect the trailing space, I would appreciate it.
    I have searched the forums but the only solutions that are close deal with outputting to a file during a download or FTP, or else mention the newer syntax of CONCATENTATE with the option RESPECTING BLANKS, but that is not available in this release.

    If you could predict how long the string is (assuming you might determine whether the last element length is shorter than the db length), you could try to insert your check digit based upon fieldname+your_calculated_length(1) = checkdigit.
    for example if batch is 3 cahr and you have '50' in the data, you could calculate as lv_len = strlen( the value ) .
    lv_len = lv_len + 1.
    move checkdigit to barcodefield+lv_len(1).
    Perhaps something like this would allow you to work around.  At any rate, if you can figure out if there's supposed to be one or ?? blanks on the end, specifying the position by +offset(columns) should do the trick, instead of the concatenate.

  • External material number should not contain purely numbers

    Hi Gurus,
    I have created the material number range for a specific material type. I need the number to be assigned externally. When i try to create a new material master (with only numbers)on the above material type, the system throwing " For the specific material type, external matl no should not contain purely numbers".
    Any body pls explain.
    Thanks,
    Saravanan

    hi
    check while mentioning number range have u entered any alphabet in from and to filed
    i.e from A to ZZZ    then system will ask u to add atlease 1 alphabet
    if u use  1000000000    1000099999  as external number range then u can use only numerical numbers in number range
    pls  check same
    Vishal...

  • Use material number with profile serial number in SRM

    Hello,
    I created a material number in the back-end and I transfered it to the
    SRM.
    After creating and approving the PO with that material number, I tried to
    create a confirmation in the SRM and I got the error message:
    "Maintain serial numbers for total quantity".
    I do not have an a suitable field in the SRM.
    Please advice.
    Best Regards
    Eyal Weinreb
    HP

    check it up in ECC.
    even if you do MIGO, you will get same erro message.
    Note 1278707 - BAPI_GOODSMVT_CREATE: Message M7 175 during goods receipt
    You are using BAPI_GOODSMVT_CREATE to perform a goods receipt posting for a subcontracting purchase order where the materials being received are serial number managed. The BAPI incorrectly returns the error message M7 175 (Maintain serial numbers for total quantity) even though the correct number of serial numbers are being passed over in the parameter table GOODSMVT_SERIALNUMBER. This error also occurs when the serial numbers should be automatically created during the goods receipt posting (controlled by the field SERIALNO_AUTO_NUMBERASSIGNMENT in the table GOODSMVT_ITEM).
    Note 1337306 - Goods receipt for stock transport order with serial numbers
    In transaction MIGO, you post a goods receipt for stock transport orders for a material with serial number requirement and the system issues error message M7 175: "Maintain serial numbers for total quantity". On the "Serial Numbers" tab page, all you are told is that the item is not relevant for serial numbers. You are therefore unable to maintain serial numbers, even though there is a serial number requirement for this transaction/event. You can post the goods receipt in transaction MB01.
    IEN                    166     Maintain serial numbers for total quantity
    M7                     175     Maintain serial numbers for total quantity

  • List of material number with PO text from material master

    I want to get a list of materials number with PO text from material master. Can anybody help ?

    The purchase order texts maintained in the material master are stored
    as SAPScript text files in tables STXH (header) and STXL (lines). For
    material master records:
    Field TDOBJECT = 'MATERIAL'
    Field TDNAME = material number (MARA-MATNR).
    So you should be able to write a small report to extract the data.

  • Re: Material number with leading zeros (40 char long)

    Hello Experts,
    I am working on SAP ME 6.1.4.15.
    I am having a problem with the material number appearing in production order / planned order request document in MEINT and failing there since the material it is looking for is with leading zeros (for example 1291 appearing as 0000000000000000000000000000000000001291) - a total of 40 char long.
    But this material exists in ME as 1291 only. Can any one throw any light on this as to what could be the reason and how to solve it?
    Thanks
    Srinivas

    Dear Srinivas,
    SAP Note 1799009 - 'Presence of leading zeros is inconsistent over IDOC thus SAP MEINT cannot handle all inbound IDOC consistently' should help to resolve the problem.
    Regards,
    Alex.

  • How to find string with trailing space

    Hi,
    I need to search a word instead of string from another string.
    I tried below code and expected that FIND will not search 'weeds' but it seems FIND ignores trailing spaces of string zstr and thus finds word 'weeds'.
    DATA: zstr type string value 'we ',
              lv_string type string value 'These are weeds',
              result_tab TYPE match_result_tab.
    FIND FIRST OCCURRENCE OF regex zstr IN lv_string
                          IGNORING CASE
                          RESULTS result_tab.
    Please consider that zstr is runtime variable with no fixed length.
    If anybody has the solution, reply back fast !
    Regards,
    Sourabh

    Hi,
    Hi,
      DATA STRING(30) VALUE 'This is a little sentence.'.
    WRITE: / 'Searched', 'SY-SUBRC', 'SY-FDPOS'.
    ULINE /1(26).
    SEARCH STRING FOR 'X'.
    WRITE: / 'X', SY-SUBRC UNDER 'SY-SUBRC',
                   SY-FDPOS UNDER 'SY-FDPOS'
    SEARCH STRING FOR 'itt '.
    WRITE: / 'itt   ', SY-SUBRC UNDER 'SY-SUBRC',
                       SY-FDPOS UNDER 'SY-FDPOS'
    SEARCH STRING FOR '.e .'.
    WRITE: / '.e .', SY-SUBRC UNDER 'SY-SUBRC',
    SY-FDPOS UNDER 'SY-FDPOS'.
    SEARCH STRING FOR '*e'.
    WRITE: / '*e ', SY-SUBRC UNDER 'SY-SUBRC',
    SY-FDPOS UNDER 'SY-FDPOS'.
    SEARCH STRING FOR 's*'.
    WRITE: / 's* ', SY-SUBRC UNDER 'SY-SUBRC',
    SY-FDPOS UNDER 'SY-FDPOS'.
    Hope it will solve your problem..
    Pls. reward if useful...

  • Store number with trailing 0's

    Whatever the user enters as decimal places must be preserved. E.g. if the user enters 10.24000 then a five decimal place number must be stored.
    How to achieve this if i dont want data type as varchar

    erka wrote:
    Kamran,
    as I understand OP he needs anywhere information about how many - not significant - zeroes users append to their numeric inputs, so your example is not matching the requirement.
    If someone enters e.g. 23.54445 *000* he wants to retrieve exactly 23.54445 *000*
    Edited by: erka on 20.02.2009 12:23Looks to me like this is a case where we need to question the OP more deeply about the <b>real business</b> requirement. Numbers are numbers and are stored as numbers and need to be thought of and treated as numbers. If I enter 123.4 or 123.400000 there is no difference in value though the two do indicate a difference in precision of the measurement. I would think that if an app accepts a particular number with a precision of 5, then that data element (column) would/should always reflect that precision regardless of how many trailing zeros the user actually entered at data entry time.

  • Download IDOC with Trailing spacs

    I have a requirement like when I download an IDOC data into a text file, I need the dataline and the trailing spaces. This is required in EDI where it interprets the SDATA as 1000 charcter string and actual case we have actula data less than 1000 character in sap. So we need to append the remaining spaces to each data record which in turn fills the segment pad field in EDI map tool and read the next line correcly
    Any Idea pls share

    HI ,
    My requiremrnt is i want to download IDOC to local PC...but if i use /nzdown transaction i am not getting EDI_DC40 header in the downloaded file...
    Regards
    Venkatesh

  • Adding zeros to the external material number

    Hello Friends,
    I needed your assistance with  a routine in BI 7, Infosource Transformations or in the Infoobject transformations (update Rules).
    I have data comming from a  flat file without the leading zeros for an infoobject.I need to have the leading zeros but i need a code that will do a record count and then accordingly add the zeros.
    EX:     1)  67909344 i need it to look  like  000067909344
              2) 505289 then i need it to look like 000000505289
    Basically, if its 8 digit number then i want 4 zeros before it and if its a 6 digit number then i need 6 zeros before it, those are the only tyoes ill have 6 and 8 digits
    Thanks alot.

    Hello Ronit,
    You can use FM CONVERSION_EXIT_ALPHA_INPUT.
    Declare a variable to contain that value, for example, 67909344.
    If you declare a variable like CHAR10, and use it like this:
    lv_variable = '67909344'.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING                                  
      INPUT  = lv_variable                        
    IMPORTING                                  
      OUTPUT = lv_variable.                       
    The result will be 0067909344.
    If you declare the variable as length 12, the result will be 000067909344.
    And it goes on...
    See if this can be helpful to you.
    Kind regards,
    Bruno
    Edited by: Bruno Garcia on May 27, 2008 5:54 PM

  • How to relate MATNR (material number) with its internal Characteristics?

    Material and its internal characteristics should be extracted from R/3 to BW?
    The Internal Characteristics are available in following tables
    CABN (Characteristic)
    CAWN (Characteristic Value)
    CAWNT (CHaracteristic Value Texts)
    How to relate MATNR with the internal characteristics data from the above tables and extract it to BW?

    Hi,
      Check the following link:
    Getting material characteristics

Maybe you are looking for