Item number length

What is the best way to set a rule for item codes to ensure the length of the item code MUST equal 14 characters including 2 - signs (character will be numberic and alphanumeric)
I.e.
1234-12345-123
Thanks Lisa

Lisa,
Try this in SP_SBO_TransactionNofication:
--validation for ItemCode in Item Master Data.
--Rules:
--1.length = 14,
--2.char = numeric, - , alpha
--3.Contain two '-' sign
if @object_type = '4' and (@transaction_type = 'A' OR @transaction_type = 'U')
begin          
     if (len(@list_of_cols_val_tab_del) <> 14 )
        or (patindex('%[^0-9,a-z,A-Z,-]%',@list_of_cols_val_tab_del) <> 0) --contain special chars
        or (patindex('%-%-%',@list_of_cols_val_tab_del) = 0)     
     begin
          set @error = -4
          set @error_message = 'Item code should contain 14 characters and 2 ''-'' sign'
     end
end
Regards, Yatsea

Similar Messages

  • Can i increase the Item Number Length ?

    Hi All,
    Is it possible to increase the length of the item number in Item Master from 20 Char to say 40 Char?
    Regards,
    Sankar

    Hi Esakki,
    Unfortunately what you are asking is not possible nowadays. Don´t know if in new versions is planned to increase it.
    Regards,
    Ibai Peñ

  • Any suggestions for the ITEM NUMBER field

    We sell DVDs, Books, CDs, etc. for which we have item groups setup.
    We are using the ISBN based EAN barcode for the bar code field.
    Any best practices for coming up with the ITEM NUMBER naming convention that people have for us.
    Currently we use the short form title of the DVD or book to denote the item number.
    Mike

    Hi Mike,
    There are always pros and cons for something like Item Code convention.
    In my experience, I would like to make them in the same length whenever possible.  Because they are internal codes, they should be easier to be used for both technical and non-technical users.  Sometimes you might not be able to make both parties happy.  In that case, you have to give up something to compromise.  The most important above all is to eliminate any duplicated codes.  You will find that could the most difficult job if you give more users the abilities to create Item Code.  If that is a must for your business, more training will be needed for all those users.
    Thanks,
    Gordon

  • How can I find the item number?

    Good day everyone!
    If I have a drop down list and want to find the number of the selected item, how do I work it out?
    The boundItem method gives me the current data value, but I need the item number. The mission is to add instances to another drop down list with child nodes of the value chosen in the first drop down list.
    I've tried out the currentRecordNumber property, but I can't make it work. In Adobe XML Form object Model Reference they puts up
    xfa.dataWindow.currentRecordNumber
    but without any further reference to the current dropdownlist in that code, I don't understand how it works.
    Please help me out.
    best regards,
    Håkon Helliesen

    Hi!<br /><br />Thank you for your response! <br />I still don't get it right though after trying different methods over and over again and I therefore have two questions.<br /><br />1) Why do you use the <i>getElement</i> method to get an attribute? It would make more sense to me if you suggested the <i>getAttribute</i> method instead. Now, I have been trying out some different combinations of these two methods with the @ symbol, but without success. The getAttribute is described both in this forum and in the Adobe XML Form Object Model 2.2 Reference, but always in combination with recordSet. The recordSet object is a part of the sourceSet model which is used in OLEDB connections. I don't use that and wonder if I could use the getAttribute solely on the dataValue itself. I.e.the loaded XML looks somewhat like this:<br /><cars><br /><carowner carproducer="Ford">Person A</carowner><br /><carowner carproducer="VW">Person B</carowner><br /><carowner carproducer="Lexus">Person C</carowner><br /><carowner carproducer="Ford">Person D</carowner><br /><carowner carproducer="Nissan">Person E</carowner><br /><carowner carproducer="Volvo">Person F</carowner><br /><carowner carproducer="VW">Person G</carowner><br /><carowner carproducer="Ford">Person H</carowner><br /></cars><br /><br />var persons = xfa.resolveNode("$data.car");<br /><br />for (counter=0; counter<a.length; counter++)<br />{<br /><br />if (persons.nodes.item(counter).getAttribute("carproducer").value=="Ford")<br />{<br /><br />listBox1.addItem(persons.nodes.item(counter).value;<br /><br />}<br /><br />};<br /><br />Certainly there would be several faults in the code above, but please comment the getAttribute part.<br /><br />2)<br />All this (the methodology above) is described in the Acrobat JavaScript Scripting Reference for Acrobat 7.0 in the chapter showing the XMLData object (page 639) using a applyXPath and parse. If I use copy&paste from this manual and insert as a function in a script object,it works just fine. Are there any tips on how I can make it work on the nodeList XFA object?<br />The following test is attached to the description of the applyXPath method:<br /><i>NOTE: An exception is thrown when the value of this parameter is a nodeList XFA object instead the root of an XML tree, as required.</i><br /><br />best regards, <br />Håkon

  • Item number in billing document not matching with delivery document-reg

    Hi All,
    In the billing document the item number is coming from Shipment document. ie., there are three deliveries in a shipment. Each delivery has got one line item, ie., 10. These three deliveries are assigned to a shipment, the order in which the deliveries are attached if we take as 10 for first delivery, 20 for th esecond and 30 for the third, In billing document the billing from first delivery is getting the item number as 10, the second delivery's billing document is getting the item number as 20 and the third as 30.
    Can someone please reply where and how this is configured?
    Thanks and regards,
    Tajudeen S.

    Hi,
    first look at IMG/Sales and Distribution/ Billing / Maintain Copying Control For Billing Documents / Copying control: Delivery document to billing document
    There is a field "Copy item number from reference"
    Maybe it helps.
    regards
    Wojciech

  • Purchase order and its item number

    Hi everybody,
    I have a problem in my selection screen: I want that when I choose purchase order the item number is selected (like in MIGO) but It doesn't works.
    SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS :
                  p_cmd TYPE ekBE-ebeln MATCHCODE OBJECT MEKK  MEMORY ID BES,
                  p_poste TYPE ekbe-ebelp MEMORY ID BSP
    SELECTION-SCREEN :  END OF BLOCK b1.
    Any ideas please.
    Thank you

    Hi
    check in the data sour ce level whether the data is available or not
    regards
    hari

  • Get PO and Item number from FI Cleared Items

    Hi,
    I need to retrieve PO and item numbers from FI cleared items.
    So I retrieve the records for a particular GR/IR account from table BSIS.  Based on FI document number, item number, fiscal year and company code, I get the PO and item numbers from table BSEG.
    However, I cannot use BSEG in query i.e. SQ01.
    What is the easiest way for me to retrive PO and items numbers?
    Thanks.

    Hi,
    First of all, cleared items live in BSAS. BSIS is for the items that are still open.
    Goto SQ02 and make a direct table read to BSAS; click 'Extras' icon; on the right part of screen click 'Create' icon; give name BSEG and choose 'Additional table' radio button. The keys suggested by the system should be good.
    Regards,
    Ming

  • Field and table  for PO item number in Invoice(MIR4)

    I have 6lines in PO and when I looked at MIR4 (the invoice) ….It has only 3 lines which are invoiced.
    In mir4, we have a column which says which lines got invoiced …for me 2, 3 and 5. Is there any table which will hold this fields data for invoiced lines.
    That field is called " Item Number of Purchasing Document".
    Please help

    Hi,
    For MIR4, table and field is RSEG-EBELP.
    Cheers !

  • How to have a custom Item Number in Sales Order Items

    Hello Experts,
    We are creating a sales order using IDoc, sales order gets created but, its not taking value what we are populating in Item Number field for Item. Defualtly its filling 10,20 and so on...
    Is there any thing that I need to maintain, so that SAP accepts the custom number for Item number.
    Please help,
    Thanks,
    Suma

    Hi Suma,
    In VOV8, you can see the fields Number system..here u can see sub item increment u can enter 12 here then the next item number will be 500012, 500024 and so on. But if u want to maintain external number range then follow this steps.
    Determine which external number ranges are provided for the relevant
    document type. Choose the function "Maintain number range" of the
    document type (for example: Purchase order -> Maintain number range)
    for this purpose.
    Choose a number range and note its number.
    Enter the number of the desired number range.
    Thanks,
    Raja

  • Internal Item Number " Items not appearing in Sales order Line form

    Hi,
    We are in 11.5.7 vis. While choosing an item in the Sales order form, only the line items with type 'chargemaster' and 'vendor' appear. The items with type 'Internal item number' doesn't appear anymore. The item validation organization is set to the Master Inventory organization.(V1).
    When i checked the pricelist creation screen, with product attribute - item number, the product value field is empty and greyed out for all the items.
    I compiled the system Items flexfield. I tried adding a new product to the pricelist with product attribute-item number,product value - A000 .All the items (with their internal item numbers) appear while choosing the product, but the product description doesn't default and the field remains empty and greyed out.
    After saving the item in the price list and if i query for this particular item, the product description appears but the product value now becomes empty and greyed out.
    Any explanation as to to why this is behaving so and to rectify the same?
    Regards,
    Nithya

    Hi,
    Check item category determination (VOV4) whether the item category is determine with the combination of  material item
    category group,untill the material being read by the system it will not give the line item no,and also check at VOV8 for your doc
    type Item no.increment Ex: 10, is maintained or not ,if not maintain and try.
    Regards
    Ram

  • No goods receipt possible for purchase order Number and Item number.

    Hello experts,
    When I create a Goods Reciept with reference to Purchase Order using BAPI_GOODSMVT_CREATE, the following error message appears.
    No goods receipt possible for purchase order <PO number> <line item number>.
    But the GR is getting created manually using Transaction MIGO for the same PO number.
    I found some blogs to check for deletion indicator and Movement type and quantity, when I searched SDN for the same Issue.
    In my case 
    1.deletion indicator is not set for the Purchase order line items
    2.And Movement type is 101
    3.And gm_code is 01.
    Could anyone please suggest me, what else could be the reason for this error?

    Here is the code what i have written.
      f_gmvt_header-pstng_date = sy-datum.
      f_gmvt_header-doc_date   = sy-datum.
      f_gmvt_header-pr_uname   = sy-uname.
      f_gmvt_header-ref_doc_no = p_ebeln.
      f_goodsmvt_code_tmp        = '01'.
    * Looping the PO details.
      CLEAR: gf_item,f_gmvt_item.
      LOOP AT gt_item INTO gf_item.
    * fill the bapi item structure details
        f_gmvt_item-material   = gf_item-material.
        f_gmvt_item-plant      = gf_sbms-werks.
        f_gmvt_item-stge_loc   = '0001'.
        f_gmvt_item-move_type  = '101'.
        f_gmvt_item-po_number  = p_ebeln.
        f_gmvt_item-po_item    = gf_item-po_item.
        f_gmvt_item-entry_qnt  = gf_item-quantity.
        f_gmvt_item-entry_uom  = 'PC'.
        f_gmvt_item-entry_uom_iso = 'PCE'.
        f_gmvt_item-po_pr_qnt = gf_item-quantity.
        f_gmvt_item-orderpr_un = 'PC'.
        f_gmvt_item-orderpr_un_iso = 'PCE'.
        f_gmvt_item-no_more_gr = 'X'.
        f_gmvt_item-ref_doc    = p_ebeln.
        f_gmvt_item-prod_date  = sy-datum.
        f_gmvt_item-mvt_ind    = 'B'.
        f_gmvt_item-move_reas  = '101'.
        f_gmvt_item-vendor      = gf_lfm1-lifnr.
        APPEND f_gmvt_item TO t_gmvt_item.
        CLEAR f_gmvt_item.
      ENDLOOP.
    * cALL THE bapi fm FOR gr POSTING
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header               = f_gmvt_header
          goodsmvt_code                 = f_goodsmvt_code_tmp
    *     TESTRUN                       = ' '
    *     GOODSMVT_REF_EWM              =
       IMPORTING
         goodsmvt_headret              = f_gmvt_headret
    *     MATERIALDOCUMENT              =
    *     MATDOCUMENTYEAR               =
        TABLES
          goodsmvt_item                 = t_gmvt_item
    *     GOODSMVT_SERIALNUMBER         =
          return                        = t_return
    *     GOODSMVT_SERV_PART_DATA       =
    *     EXTENSIONIN                   =
      IF sy-subrc = 0.
    * For commit the changes use BAPI_TRANSACTION_COMMIT FM.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = 'X'.
    *      MOVE: f_GMVT_HEADRET-MAT_DOC   TO WA_DET-MBLNR,
    *            f_GMVT_HEADRET-DOC_YEAR  TO WA_DET-MJAHR,
    *            f_GMVT_HEADER-REF_DOC_NO TO WA_DET-EBELN.
    *      APPEND WA_DET TO IT_DET.
    *      CLEAR WA_DET.
      ENDIF.

  • Item number in sales order versus delivery not equal

    Hello Guru's,
    Please help me solve this problem, i created a sales order with 6 items in it and save it. Before I create the delivery I deleted the sales order item number 1,2 and 3 so the item that was redy for delivery are sales order items nubmer 4,5 and 6. When i created a delivery for this materials the item number that was in it is not 4,5,6 but 1,2,3 so the item number 4 in the sales order was considered as the 1st item in teh delivery. What will I do in order that when i create a delivery for a sales order it will capture the item number maintained in the sales order.
    example :
    sales order-
    item   material number  material description
    1              123                      abc                           deleted
    2               456                     def
    3               789                     ghi
    delivery
    1               456                     def
    2               789                     ghi
    it should be
    delivery
    2               456                     def
    3               789                     ghi
    please help..
    thanks.

    Hello Ysabella,
    Your requirement is justified since the numbering in the sales order would usually follow the sequence given in the customer's purchase order. If there are a lot of items in the PO, and if this sequence is messed up, then the customer would lose track of what he/she ordered and what he/she received.
    To ensure that the item number from the Sales order is copied to the delivery, all you have to do is set a flag in transaction VTLA at the header level - 'Copy Item number' (V_TVCPLAK-POSVO).
    I hope this helps you solve the problem.
    Cheers
    Nikhil

  • Item Number in Dynamic Table Quirk

    I'm a new LC user, ramping up to speed on this package, thanks to everyone for the useful information here and other places.
    Using the great advice and info here,
    http://www.assuredynamics.com/wp-content/uploads/2010/11/Assure-Dynamics-Building-dynamic- tables.pdf
    I added a dynamic table to a form I've been working on.  Most everything works, except the caption on the Row/Item number.  So, I yanked out the subform with the table on it to create a simpler copy of the form to post here.  Get this...  it works on the simple form.  So, there's something going on on my not so simple form that is preventing my Row/Item number from working. 
    I'm hoping that if I post both forms here, someone can help me fix this thing.
    this is the form that works:
    http://inthequeue.com/adobeLC/Template_excerpt.pdf
    this is the form that does not work:
    http://inthequeue.com/adobeLC/Template_std.pdf
    Thanks in advance
    John Q.

    Hi John,
    Try changing the code in the layout:ready event from;
    this.caption.value.text = (this.parent.index + 1).toString();
    To;
    this.caption.value.text.value = (this.parent.index + 1).toString();
    That is add another ".value".
    Your form that works targets Reader 8.0 or later and the one that doesn't Targets Reader 9.0 or later, I'm guessing that is the difference.
    Regards
    Bruce

  • Populating item number in table control

    I have created a custom table control. It is very similar to the VA01 or Vl01N table controls to add items. When the user enters the material name, the item number column needs to be populated.
    Currently I have something like this
    LOOP at i_items.
    MODULE tblcntrl_modify INPUT.
    ENDLOOP
    MODULE tblcntrl_modify INPUT. "PAI
       posnr = sy-stepl * 10.
       more logic for input validation.
    ENDMODULE
    The issue I have is that when I scroll in the table control, the posnr for each item gets recalculated and they get whacked .. so I get a scenario like this
    10 mat1
    20 mat2
    30 mat3
    10 mat4
    40 mat5
    what is the best way to populate the item number. Thank you

    hi,
    u have to make one module in PAI brtn  <b>LOOP-ENDLOOP, CHAIN-ENDCHAIN</b>
    LOOP AT itab_det.
        CHAIN.
         FIELD itab_det-comp_code.
          FIELD itab_det-bill_no.
          FIELD itab_det-bill_date.
          FIELD itab_det-vend_cust_code.
          FIELD itab_det-bill_amt.
          MODULE <b>tab1_modify</b> ON CHAIN-REQUEST.
        ENDCHAIN.
        FIELD itab_det-mark
          MODULE tab1_mark ON REQUEST.
      ENDLOOP.
    <b>MODULE tab1_modify INPUT.</b>
      IF itab_det-bill_no <> ' ' .
        CLEAR:net_pr,tax,bil_amt,bil_dt.
        SELECT SINGLE fkdat netwr mwsbk FROM vbrk INTO (bil_dt,net_pr,tax)
        WHERE vbeln = itab_det-bill_no .
        bil_amt = net_pr + tax.
        itab_det-bill_date = bil_dt.
        itab_det-bill_amt = bil_amt.
      ENDIF.
      MODIFY itab_det
        FROM itab_det
        INDEX tab1-current_line.
      APPEND itab_det.
    <b>ENDMODULE.                    "TAB1_MODIFY INPUT</b>
    here i am fetching Bill Amount and Bill Date according to Entered Bill Number in Table control.
    So i am checking bill number here in If condition and when i press enter that two value automatically populated...
    reward if useful.....

  • Is it possible to fill item number on a PO autocreated from PR?

    Hi,
    I have created a non-catalog PR (i.e. without item number) and then autocreated to PO.
    On the PO, the item number field is protected. Is it possible for me to fill the item number? Thanks.
    Regards
    Leo

    Hi Leo,
    yes,I think you can modify the requisition lines during "autocreate" process to PO.
    Make sure the profile "PO: Restrict Requisition line modify to quantity split" to NO.
    pls see the note below:-
    Use the Modify Lines window to split an existing requisition line into multiple requisition lines that represent the same or different items. For example, if the requisition line quantity is so large that a single supplier cannot fill the entire order by the need-by date, then you need to fill this order from more than one supplier. On the other hand, if you have a requisition line item that contains parts that you want to order as unique items, you can explode the requisition line into several lines. After you modify a requisition line, you cannot modify the new requisition line(s) again.
    Note: You cannot modify requisition lines for outside processing items and when you are using encumbrance accounting or budgetary control.
    Thanks
    -Arif.

Maybe you are looking for

  • Error In Business Content

    Hi,      I am getting Errors in business content when Installing objects for Infocube. like Object '0DBMKTC01' (CUBE) of type 'InfoCube' is not available in version 'D' Object '0DB_MC01' (MPRO) of type 'MultiProvider' is not available in version 'D'

  • How to verify the chipset used in iPad mini 2

    I Am not sure of the chip in my iPad mini 2? How do I verify?

  • PO Last Purchase Price ??

    Hi ! currently I'm working on a P.O. Report. My query is :- I want to display the last purchase price of the P.O.. For this requirement, I've joined the tables EKKO & EKPO, sorted on material & plant. And now I want to fetch the last purchase price f

  • Namespaces in header vs. tags

    How do I economize on namespace tags; that is, how do I turn this: <env:Body> <SMA_AD:LogonRequest xmlns:SMA_AD="SMA_AD"> <SMA_AD:Logon>123456</SMA_AD:Logon> <SMA_AD:Password>password</SMA_AD:Password> </SMA_AD:LogonRequest> </env:Body> into this: <e

  • Only bursting one mail..

    Hi, According to BIP User Guide 10.3.1.2 (B40017-01). We make a testing for using bursting engine . It work but it only burst one mail out(we expected more...). Is there any problem in our control file ?? The control file(burst.xml): <?xml version="1