ABOUT MATERIAL NUMBER

hi, if the material number is with numbers, for example, 1000000001, we can use FM CONVERSION_EXIT_ALPHA_INPUT to add the leading zeros to make the material to 18 char.
But if the material number is with character, how should I make it to 18 char.
I need to CONCATENATE MATNR VKORG VTWEG INTO V_NAME. But the MATNR must be 18 char. Many thanks in advance!

Ok..try this...
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING
input = matnr
IMPORTING
OUTPUT = matnr
EXCEPTIONS
LENGTH_ERROR = 1
OTHERS = 2
IF sy-subrc 0.
ENDIF.
CONSTANTS: c_space TYPE syhex02 VALUE '00a0'. " Value for space
DATA: g_space TYPE string,
             l_pos type i,
             l_pos1 type i.
Get the actual value for a space*
g_space = cl_abap_conv_in_ce=>uccp( c_space ).
L_pos = strlen( matnr ).
l_pos1 = 18 - l_pos.
Do l_pos1 times.
matnr+l_pos(1) = g_space.
L_pos = l_pos + 1.
Enddo.
Than use the material for concatenation purpose...
CONCATENATE MATNR VKORG VTWEG INTO V_NAME.
By this way u can keep the trailing spaces...
Regards,
Joy.

Similar Messages

  • About material number,Urgent!

    Hi,All,
       When we create a material master data,if we use auto number,the material group number will be not take into account by the system,for example, we use 1 present electronics Industry(Industry sector) ,01 present finished products(material type),01 present computer(material group),the system generate number as 101xxxxx,not 10101xxx,Is there any way to let the system genrate material number as 10101xxx so we can take material group number into account?
    Thanks!

    It sounds like you want CMOD: MGA00002.  In this exit we accomplished very much the same thing, just using material type.

  • Report to find a material by a mfr part number and old material number

    Hi,
    Is there any standard report to find a material by a mfr part number and old material number ?
    For the moment, we are using MM03 to search articles by these selection criterion.
    Thanks,
    Julien Girard

    Hi
    As there is no stsndard report use the SQVI to find out the details, It is very simple , please follwo the below steps.
    Use Txn SQVI, enter the Quick view field say- ZMNFR and click the  create button, Enter the title in the next screen i.e Report name- Say - Manufacturer's Part No. Details, in the same screen you need to enter  MARA  for the data from table/database view, please leave the 1. data source as Table only and the radio button as Basis mode only.  Click the tick mark , you will go to the next screen,
    You will notice Quick viewer Intial screen
    Open the node general material data
    Select the Buttons besides the fields MARA-MATNR for material number, MARA-MFRPN for manufacturers part number, and MARA-BISMT for old material number. You can include any other field if you wish to have in your output. You will notice two check boxes against each field, one is for input screen field and the other is for outputf field. But currently you do not bother about and select both the check boxes or any other field you wish to have as input and output as well. Once selected all the fields afer clicking the check boxes save the total arrangement. and then in the same screen use the execute button or use F8 to find out your report input screen.
    Now enter the Material number for which you wish to know other two details in the report and execute again you will find the report output.
    Please ensure that you are maintaining both the details in material master basic data1 and purchasing  view if you wish to get  out output
    Best regards
    SAM
    Edited by: samuel mendis on Apr 8, 2009 6:52 AM

  • Material Number Truncated in ALV to Excel Download

    Hi Guru,
    I have a ALV program report. It has about 18 columns, but for some strange reason, when we download this report to an ALV the 3rd column which host the material number as the last digit missing/truncated.
    For example if we have a material number in SAP ALV Grid as 1234567, when we download this the excel, what we get in excel is 123456. with the last number missing.
    What is the best solution to fix this issue.
    Thanks for you help in advance.

    Hi Keshav,
    Previously I faced the same situation, like in ALV grid I was displaying the material nos with output length as 15. Since in the Grid display you can readjust the columns, So after displaying we just expanded in the grid and try to download the same in excel. But at that time the ALV was downloading with material number field length as 15 ( What I set in my field catalog). Even when I saw the print priview I saw only the length it is showing as 15.  After changing the output length as 18 in field cat  I got the correct download.
    (Here I am assuming that the question is raised for  ALV grid display since no where it is mentioned the type of ALV).
    Sorry it was mentioned in the question itself
    Regards
    Shiba
    Edited by: Shiba Prasad Dutta on Feb 22, 2010 2:41 PM

  • Delivery Created with out Material Number

    HI
    I created an STO for material, when i have done the VL10B i got a message "See log for information about creating deliveries"
    A Delivery got created with out the Material number, When i look in the Document Flow for the Delivery Created its preceding document (PO) is not linked
    In the log information i see an error, Please advise
    Diagnosis                                                                               
    The sales unit is not allowed for the material in item               
        000001.                                                                               
    System Response                                                                               
    The system does not allow further processing of this item.                                                                               
    Procedure                                                                               
    Check your entry.                                                    
        Select a sales unit which is defined for the material in the         
        material master record. Normally the sales unit will be              
        determined immediately from the master master record.

    see the change log of material master in MM04.
    check if  the sales unit got removed recently (after the PO creation - before delivery creation)
    if it is not caused by material master directly, then check if you have any userexit in place that changes the sales unit in the delivery.
    SAP has a sales unit in mind which is not available in material master, hence it issues this error.

  • Add Competitor Material via MMW1 but material number exists

    Master Data Experts:
    1. We are adding material type WETT competitor materials via tcode MMW1. However, we have many cases where our competitor number is the same as one of our own existing physically different material numbers. When we try to add the material, we get the hard error message "Specified material already assigned to material type xxxx" and cannot add the competitor material number.
    2. Similarly, we have many cases where more than one of our competitors use the same material number, so we cannot add more than one as a competitor number.
    3. Lastly, we have some competitor material numbers that are more than 18 characters long, and due to the SAP limitation of 18 characters we cannot add these competitor numbers via MMW1.
    These scenarios have never worked before, there is no ABAP related user exits, etc, and no changes done before the problem occurred. We understand that under the single instance system you cannot add the same material number more than once, and we have a company policy system in place so our businesses will not have these material number collisions. However, we cannot control what material numbers our competitors use, so we need some way to remedy this so we can add competitor numbers even though they may already exist.
    Any help that can be given would be appreciated,
    David Bruhn
    Hubbell, Inc.

    Hello James and happy new year.
    Thank you for your answer.
    In fact, I already tried to leave the matnr field with blanks and for a material type which use internal numbers range. I hoped/thought it would have worked as you said but it wouldn't.
    About the external old numbers I keep, I think I don't have to use the field external_number of the E1MARA1 segment, because some of my tests showed me that it works good. Moreover, I don't really understand the reason why this field exists because the field matnr is here for.
    I presume that the external_number is maybe for another use I don't know, aren't you ?
    I've never used this segment for data take over.
    Do you know if the principle you described in your previous mail is also the same to apply to customers & vendors idocs ?
    Best regards.
    David

  • Material Number on PR/PO

    All -
    I had a question regarding material numbers on PR/PO - It seems like material number is mandatory for some material groups and not for others. Can anyone tell me about that?
    Appreciate your help.

    MM > Purchasing > Material master > Entry aids for item without a material master
    Anythign with a val class here can be used to create a PR without material

  • Populate material number into SAPMV45A 4001dynpro

    my requirement.
    while creating sale order, before entering the screen 4001 where we enter sold to party and material and order quantity, i need to populate these fields from my exit.
    i am able to populate the sold to party field from the exist EXIT_SAPMV45A_002 and
    INCLUDE ZXVVAU04 .
    in the same fashion i need to populate my material filed in the table with the required qunatity.
    how do i do it

    can u be a little more clear and broad about your requirements...
    if it is something like , you want the material number to be populated before you enter 4001 then do the necessary coding in the PBO event of your flow logic
    Regards
    Abhinab

  • Consulatancy sales order with only desription not material number

    Hello ,
    I want to make a CONSULTANCY TYPE  of sales order where in I just want to enter description  for eg LABOUR CHARGES, but then system asks me to enter the material number in sales order, kindly guide me how to go about it . My requirement is that I want only the description in sales order and i dont want to enter the material number, pls guide me about teh config.
    Regards
    Sunaina

    Another option is to use a generic material # (e.g. CONSULTANT) and just type in the description when entering the sales order. We use this technique and only maintain material numbers per consulting position, e.g. "consultant", "senior consultant", etc.

  • Different material number for SD and for PP MM

    Hello
    Does sap provide a functionality to manage different material number for SD and for PP MM:
    We produce and stock material A . We want to be able to sell material A and B. For MM (stock)  and PP, B = A but for reglementation, we need to print on the delivery document  caracteristics stored at the material level.
    We don't want to substitute B by A on the sale document and we want that the stock of A beeing reduced by sales orders of A and B.
    Thanks
    Simon

    Simon,
    Iu2019m not aware of any way to manage the same thing using one material number in MM/PP and a different number in SD.
    What makes B different from A?  From your description it sounds like itu2019s the same thing with different characteristics.  Without more info itu2019s difficult to offer solutions to your problem but Iu2019d start by looking at classification and batch management so you can differentiate differences between materials based on characteristics captured at the batch level. 
    If you provide a little more info about the products perhaps I can help.

  • MC.9 - Material Number appears for period 06/2007 but not 07/2007

    Hi Experts,
    Have you encountered the situation whereby in MC.9(S039), the data of a certain Material Number appears for period 06/2007 but not 07/2007
    This material# has no stock & movements for 07/2007, but for another material# with the same conditions, there is no problem.
    Thanks & Regards
    Lawrence

    Hello Experts,
    i´m having the same issue at my system.
    Does anyone know why for a certain material report MC.9 shows balance at some Store Location although it doesn´t have any movements, while for other Store Location it isn´t showed any line, not even with zero values.
    I hope somebody can answer this issue.
    Thank you very much in advance.
    Regards,
    cecil

  • Check same material number is entered in the va02 for bulk_sales_order

    hi
    i am calling the transaction 'VA02' by passing the bulk_sales_order number which is already created containing the record, after that if i try to create the new item for same material can allow, but if i try to create for different material i need to display error like
    'invalid material number enter the same material number'. and before that i need to check sales order type is bluk_sales_order "XLB' used in my project...
    thanks with regards
    swamy
    Moderator Message : Duplicate post locked. Continue with [Need to validate the material number in the VA02|Re: Need to validate the material number in the VA02].
    Edited by: Vinod Kumar on May 19, 2011 10:25 AM

    VKOA error was there

  • While create inbound delviery Material number is not showing

    Hi All,
    I am trying to create inbound delivery with reference to Purchase Order.
    While using BBP_INB_DELIVERY_CREATE to create inbound deliveries, the material number is not showing up in the VL33N screen but Material Description is coming.
    As you have also faced same problem,can you please suggest how to resolve this issue?Your help will be highly appreciated.
    Thanks
    Santhu
    Edited by: santosh jajur on Sep 24, 2010 12:48 PM

    Hi,
    This function module doesn't pass Material number while creating the inbound delivery.  Instead you can use the function module GN_DELIVERY_CREATE along with NUMBER_GET_NEXT function module.
    See line number 631 to 656 of include LBBP_SIC_40F02 (Called from Line no 18 of BBP_INB_DELIVERY_CREATE) for more details.
    While using the function module BBP_INB_DELIVERY_CREATE, material number is not passed to the function module (GN_DELIVERY_CREATE) structure field XKOMDLGN-MATNR.
    Regards
    Vinod

  • BBP_INB_DELIVERY_CREATE-material number is not showing up in the VL33N

    Hi All,
    I am trying to create inbound delivery with reference to Purchase Order.
    While using BBP_INB_DELIVERY_CREATE to create inbound deliveries, the material number is not showing up in the VL33N screen but Material Description is coming.
    As you have also faced same problem,can you please suggest how to resolve this issue?Your help will be highly appreciated.
    Thanks
    Priyanka

    Hi,
    This function module doesn't pass Material number while creating the inbound delivery.  Instead you can use the function module GN_DELIVERY_CREATE along with NUMBER_GET_NEXT function module.
    See line number 631 to 656 of include LBBP_SIC_40F02 (Called from Line no 18 of BBP_INB_DELIVERY_CREATE) for more details.
    While using the function module BBP_INB_DELIVERY_CREATE, material number is not passed to the function module (GN_DELIVERY_CREATE) structure field XKOMDLGN-MATNR.
    Regards
    Vinod

  • Material number is blank in FBL3N for doc type SA

    Hi,
    If posting is coming from SD or MM module, the material number is reflected in FBL3N for GL acct "Material price variance".  But when the posting is coming from FI, the material field is blank. 
    But in another company code, when  postings are from FI, the material field is correctly populated.  
    I have already checked and verified that BSEG-MATNR was defined as a special field.  I have also ran RFPOSXEXTEND and BALVBUFDEL but the material field from FI posting is still blank.
    The FI posting involves filling up the material or product number in the profitability segment amongst other fields and then system will do a derivation.
    Can someone point me to the right direction on how to get the material field populated by an FI posting?
    Thanks and regards,
    Thess

    Hi,
    The material field should appear in FBL3N for all types of postings, provided it got populated.  Can you please check, whether material field  is getting populated in BSEG table for that document # ?  If the material is not getting derived, then it won't appear in the report.
    Best Regards,
    Madhu

Maybe you are looking for

  • What is the use of lookup tranformation in odi

    Hi Experts, What is the use of lookup transformation in ODI. In ODI we use different kinds of joins, so my doubt is what is the difference between lookup transformation joins and normal joins we use in ODI. Please let me know with your valueable info

  • Connecting a DV Camcorder to iChat

    I'm trying to get iChat up and running. I'd like to connect our DV camera to it. I can't seem to get iChat to display video from the camera (I assume the window that pops up when I click "Video preview" is supposed to show what my camera is showing.

  • How can I insert photos to excel documents from iPad?

    I need to find a way to edit excel docs from my iPad. I have found numerous apps that work great. The thing I'm having trouble with is editing or inserting images or art into the spreadsheets as you can with excel.

  • MRP Production Orders one for One

    Hello All, I have a case that when MRP creates an order for ITEM1 I need MRP to also create an order for the component requirement quantity of the order regardless of unrestricted stock.    Example ITEM1 I have a production order for 5000 which has a

  • WBS element AND project

    All, This is my question. 1 WBS Element can be assigned to multiple projects ? I have seen in table PRPS table WBS Element is only the key field , But it related PROJ using the field PSPHI . In that case it means there will 1 WBS Element can be assig