Retrieve Multiple Serial Numbers for given Delivery Document and Item

Hello Experts,
                      I am currently working on a 2Lis datasource to extract Delivery information.Now it is required to append the
datasource with field (say ZZSERNO) which should extract ALL Serial Numbers from OBJK table for a given Delivery Item.
I know that there is a link between table SER01 and OBJK to retrieve the same.However, my concern is- C_T_Data table is
already providing the Delivery Information and along with that I want to display ALL Serial numbers for a given Delivery Item.
A delivery Item can have more that one serial number linked to it as what I see in VL03N for a Delivery document.
So currently in RSA3, I retrieve say 1 record for a given Delivery Document and Item .Now an Item has say 10 Serial Numbers
associated with it, so i should see 10 Records for that Delivery Document and Item, after executing RSA3.
Please provide me with the CMOD logic to do so.

Hi,
You can Link LIPS and OBJK tables with Delivery and Del Item.........refer below for the code.
1) Declare an Internal table of type OBJK with fields DEL DOC, DEL ITEM and ZZSERNO .
2) Declare another Internal Table ITAB_LIPS of type LIPS with required fields say in your case *DEL DOC, DEL ITEM and ZZSERNO....etc.
3) Use below select statement to extract records from LIPS into ITAB_LIPS that you have declared for to fetch LIPS data.
Select DEL DOC, DEL ITEM ( here i have included only few fields but as per requirement please add fields here)   from
LIPS into corresponding fields of Table ITAB_LIPS.
4) write one more select statement to fetch Serial number data.
Select DEL DOC, DEL ITEM ZZSERNO  from OBJK into corresponding fields of TABLE ITAB_OBJK for all entries in ITAB_LIPS
where DEL DOC = ITAB_LIPS-DEL DOC and
            DEL ITEM = ITAB_LIPS-DEL ITEM.
Loop at ITAB_OBJK.
Read table ITAB_OBJK into ITAB_LIPS with keys DEL DOC    DEL ITEM.
ITAB_LIPS-DEL DOC = ITAB_LIPS-DEL DOC
ITAB_LIPS-DEL ITEM = ITAB_OBJK-DEL ITEM.
IF SY-SUBRC = 0.
ITAB_LIPS-ZZSERNO = ITAB_OBJK-ZZSERNO.
ENDIF
ENDLOOP.
Hope the above code helps
Sujan

Similar Messages

  • Serial numbers for packaging - Delivery\Invoice

    Hello experts!
    I know there is no standart way in SBO for Serial numbers for packaging association
    ( associat s/n in every package of Delivery\Invoice)
    Is there another way to do it??
    Thank You!
    Meital

    Hi meitalmo,
    You can use packaging form avaialble on Delivery to pack the product as per serial no.
    and you also get the standard report of package content with serial no.
    revert in case need more clarrification.
    Regards,
    Datta Kharat

  • Scan of multiple serial numbers in outbound delivery

    Hi gurus,
    I need to record several serial numbers in an outbound delivery (VL02N) at the picking time into "Extras" / "Serial Numbers". At that time, a pop up appears to record SNs.
    To achieve this, I'm using a scanner for better efficiency.
    My problem : when I scan one serial number, system does not put the cursor on the next line, but go out of the pop up even if remaining SN need to be enter.
    It is true my scan simulate an "enter" after each scan and in this transaction "enter" means go out of the pop up.
    This is a different behavior as in MIGO, because in this transaction after a scan of a SN, the cursor directly goes on the next line, much more like a tabulation behavior.
    Does anybody know how to change the "enter" behavior in the recording of SN in outbound delivery to match with this one from MIGO?
    I have no possibility to change the behavior on the scanner itself.
    Txs
    Hi,
    Does anybody have an answer?
    Txs

    Hi,
    Does anybody have an answer?
    Thanks in advance.

  • Table name for open delivery document and open billing document.

    Can any body tell me what are the table names where we can get the the open delivery document numbers and open billing document numbers?

    HI
    Table S066 (Open orders)
    S067(Open deliveries and billing)
    Those 2 tables helpful only to know the credit exposure not for open deliveries and open billings document numbers
    Solution: Mr.Prakash Already suggested table and field names
    Regards,
    Prasanna

  • Report on delivery document and item

    Hi experts,
    I have some report requirements where i need delivery document number and item in the report. I wanted to hear some opinions on how to model this, i mean, should i add document number and item to the cube (0SD_C04) or should i build a DSo before and make the reporting over it?
    thanks in advance,
    Nuno
    @points assigned

    Hi,
    as usual it all depends on your requirements and the environment you are dealing with.
    a) how many documents are created daily/weekly/monthly? --> check the data volume
    b) what are the reporting requirements? --> will users expect lots of drill down/thru possibilities and short response times
    c) what is the time frame for keeping the doc numbers/items for reporting?
    I already added the doc no. to the cube for smaller companies creating may be a 2nd and 3rd cube after some time (2 - 3 years) combining them via multicube. In case you will have lots of drill downs/thrus this is may be the only performant solution because on a ods you might have to build tons of indexes to enable fast reporting. In case the documents are only relevant for a short period (e.g. the last 3 - 6 months) you might think about creating a ods and do selective deletions of the older data......
    regards
    Siggi

  • Where do i go to get my serial no  for adobe elements 12  and priemere

    where do i go to retrieve my serial number for my adobe 12 and adobe priemere 12

    To locate the serial number:
    http://helpx.adobe.com/x-productkb/global/find-serial-number.html
    http://helpx.adobe.com/x-productkb/policy-pricing/serial-number-retrieval-process-faq.html
    https://redeem.licenses.adobe.com/getserial

  • Serial numbers in Inbound delivery for Handling units

    Hello Experts,
    I have the following scenario:
    Purchase order + Inbound delivery + GR
    Inbound delivery is used because I need to create handling units, the materials included in these handling units are serialized and I am getting from the vendor an excel document with Handling unit number and the serial numbers included in each handling unit.
    So I would like to use this document to do the packing process in my inbound delivery instead of manually typing the serial numbers.
    What would be the best option to do this?
    I also need to do the same for MIGO when no HU are needed.
    Any Ideas??
    Thanks a lot in advance for your comments.

    Thanks a lot for your quick answer.
    I would like to avoid creating my own Z transaction, is there any point in packing process where I can include some enhancement to upload the serial numbers, I gues the HU and packing process can be done manually by the user.
    I was planning to enhance MIGO for the same process without handling units and I know that  there a tab can be added at item level. But I do not know where or how to do it while packing.
    Any suggestions?
    Thanks a lot for your time!

  • Serial numbers for packaging in Delivery

    Dear Mr Meitalmo,
    I have investigated about the Crystal Report and as it stands the Crystal report only pulls information that is already in the application, so it will not create the serial number.
    I am trying to understand what you normally do to find an alternative for you.
    So far I have come up with some ideas:
    - if you need the serial number on the packaging only (and the items are not either batches or serial numbers) then you can change the items to batch and when you create the package be careful to take the items from the same batch.
    - if you need serial numbers for the items, plus an extra one for the packaging, then do the following:
    Create the UDF field in the packaging window and every time you create a new package write manually the serial number. Then modify the printing of the packaging so that this value has been included.
    Alternative, you can create a UD table to store this information.
    Please, let me know if one of my suggestions help and let me know what the scenario is.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

    Dear Meitalmo,
    Now you should change the template of the packaging.
    To do this please go to Business One and open the Delivery and then the packaging window.
    Then go to the Print Layout Designer (PLD - you can click the pen on the toolbar) and choose the template.
    The template must be modified in order to add the information you need.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • Serial Numbers for delivery

    Hi,
    i am cerated serial no. But it created only one no.
    when i am cerated outbound delivery, serial no. is assigned.
    But when i am trying to PGI showing the following error
    Pls help me out
    Item 000010 requires exactly 5 serial numbers for the asset
    Regards,
    Rao P

    Hi Mr. Rao,
    Looks like your material configure in that way, it requires 5 serial number.
    You do one thing --> Go to IQ04 --> Give your maerial number --> Then in the field "No. serial numbers" give the figure how many serial number you want --> Like one you have already created --> Give 4 in the field "No. serial numbers" --> Enter
    If your serial number require equipment view also --> then click at "View selection" --> Click at equipment --> Enter --> Save
    After that go to delivery and assign your serial number to your materials.
    Regards,
    MT

  • Creation of sub item with serial numbers in outbound delivery

    Hi All,
    We need to create a sub item for an Outbound Delivery main item in change mode with serial numbers for sub item.
    Process flow:
    1. Sales order item created with main item
    2. Outbound Delivery created with main item
    3. Outbound Delivery interfaced to external logistics sytem
    4. External logistics system pick the main item and a sub item (packaging) from warehosue and ship to customer
    5. External logistics sytems send delivery pick confirmation interface with main item details and serial numbers for sub item
    Now we have to create a sub item with serial numbers in the delivery referencing the same main item.
    NB: Delivey can have multiple similar main items but there is only material number in SAP for sub item. Hence the requirement to identify relevant sub item serial numbers to each delivery main item.
    Can you kindly tell me in what possible ways we can create sub item with serial numbers for a deliveyr main item in change mode.
    Thanks in advance
    Best  Regards
    Veer

    Hi,
    Does anybody have an answer?
    Thanks in advance.

  • Serial Numbers for Production Orders

    Hi All
    Can anyone tell me the table in which the serial numbers are stored for the production orders?  I have created a production order and have assigned serial numbvers to it.  Now I want to extract these serial numbers from the table.
    Thanks in advance.
    Tom

    Hello Jack,
    In table SER05, the list of serial number details can be obtained.key the order noin ser05 table, get field OBJKNR, then pass this OBJKNR in table OBJK .
    Some useful table for serial numbers
    SER00 Generic table for serial numbers
    SER01 Serial numbers assigned to a delivery
    SER02 Serial numbers assigned to a guarentee
    SER03 Serial numbers assigned to a material document
    SER04 Serial numbers assigned to an inspection lot
    SER05 Serial numbers for a production order
    SER06 Serial numbers for Handling Units
    SER07 Serial numbers for Stocktaking
    SER08 serial numbers for Orders (SD)
    The assignment of serial numbers to a production order can be done either via transaction CO02 or at the latest when the GR from Production is made.
    I hope that this information clarifies the issue.
    Regards,
    R.Brahmankar

  • Serial Numbers for Sales Orders

    We have a business Process where we do not maintain any serial numbers for the products. How ever one of our customer maintains serial numbers for the products that come to their warehouse.
    This customer will send in the serial numbers for each material and quantity in the inbound 850 Idoc and he wants those serial numbers to be printed on top of the boxes. so that he can scan them while receiving the GR and do automatic posting at thier system.
    we have to store this serial numbers against this sales order and print them in the shipping tags for the finished products  that are to be sent to  this customer.
    Now
    1) we do not want to use serial number profiles because it effects every sales order / delivery created for that material. the serial numbers should be assigned only to the orders from this specific customer.  Is there any way to acheive this?
    2) in the sap idoc 850 ( message type ORDERS05) how do we store the serial numbers. what segment and fields are available for this purpose. 
    3) how to save this serial numbers in the sap system against the sales order created for this customer.
    Your answers will be highy appreciated.
    Thanks,

    Thanks for all those wonderful replies..
    I am looking more at  a standard solution. with minor changes..
    Storing the serial numers in text items is possible but not practical, the more the quantity the more difficult and time consuming is this process for ex if this customer orders 10,000 qty. then it would be tough.. and again to solve that problem we have to break   the qty into multiple line items and this is only a alternatve but not a good solution i guess.
    I thought  this scenario should be more in practice because, customers can request us to put their serial numbers on the packing boxes that we send them.
    So just wondering if any our colleagues have already worked in this scenario.. While doing a search I saw a couple of questions regarding the same situations back in 2005 and 2007  but the questions were marked as answered without mentioning the solution they approached to solve this problem.
    Can any of you suggest me whether is this scneario a standard one ?

  • 'Maintain serial numbers for total quantity error in bapi_goodsmvt_create

    HI Experts,
    I am doing a goods movement programatically by using BAPI_GOODSMVT_CREATE.
    Though I am passing the serial no. for the document item still I am getting an error: 'Maintain serial numbers for total quantity'.
    My code goes like this:
    *-- Read all the items for the item category belonging to the plant
         loop at lt_lips into lw_lips where pstyv is not initial.
    *-- Process the goods movement -  Fill the data
              lw_gmvt-material = lw_lips-matnr.
              lw_gmvt-plant = lw_cat-werks.
              lw_gmvt-stge_loc = lw_cat-lgort.
              lw_gmvt-batch = lw_lips-charg.
              lw_gmvt-move_type = lw_cat-bwlvs.
              lw_gmvt-customer = <st_xvbpa>-kunnr.
              lw_gmvt-s_ord_item = lw_lips-posnr.
              lw_gmvt-entry_qnt = lw_lips-lfimg.
              lw_gmvt-entry_uom = lw_lips-meins.
              lw_gmvt-entry_uom_iso = lw_lips-meins.
             lw_gmvt-ref_doc = xlikp-vbeln.
              lw_gmvt-quantity = lw_lips-lfimg.
              lw_gmvt-base_uom = lw_lips-meins.
              append lw_gmvt to lt_gmvt.
              clear: lw_gmvt.
    BOC for serial numbers
              if lt_ser02 is not initial and lt_objk is not initial.
                clear: lw_ser02,
                       lw_objk.
                read table lt_ser02 into lw_ser02 with key sdaufnr = cvbak-vbeln
                                                           posnr = lw_lips-posnr
                                                           sd_postyp = lw_lips-pstyv binary search.
                if sy-subrc = 0.
                  read table lt_objk into lw_objk with key obknr = lw_ser02-obknr binary search.
                  if sy-subrc = 0.
    *-- Check if serial number is populated
                  if lw_objk-sernr is not initial.
    *-- Fill the serial number table for BAPI movement
                      clear: lw_sno.
                      lw_sno-matdoc_itm = lw_lips-posnr.
                      lw_sno-serialno = lw_objk-sernr.
                      append lw_sno to lt_sno.
                  endif. "Serial number not initial
                  endif. "OBJK read
                endif. "SER02 read
              endif. "SER02 and OBJK is not initial
    EOC for serial numbers
            endif. "Category table read
            clear: lw_cat, lw_lips.
         endloop.
    *-- Execute the BAPI only if item table is filled on the above condition
         if lt_gmvt is not initial.
    *-- Fill the header details
            lw_header-pstng_date = xlikp-erdat.
            lw_code-gm_code = lc_03.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
              EXPORTING
                GOODSMVT_HEADER               = lw_header
                GOODSMVT_CODE                 = lw_code
               IMPORTING
                MATERIALDOCUMENT              = lv_mblnr
                MATDOCUMENTYEAR               = lv_mjahr
              TABLES
                GOODSMVT_ITEM                 = lt_gmvt
                GOODSMVT_SERIALNUMBER         = lt_sno
                RETURN                        = lt_return.
    Please suggest.
    Regards,
    Sangeeta.

    Hi Banerjee,
    Actually we are trying to use the same bapi from se37, we are passing all the details which is required to process the bapi_goodmvt_create. But still the bapi returning the same error what sangeeta got in the above. Can you please guide me how to achieve this.
    how the values has to pass to the Serial Number?
    What exactly meant by Counter Values ?
    Regards,
    Siva

  • Missing Serial Numbers for CS4 COmponents & Acrobat X Pro

    Greetings!
    I installed CS5.5 on my 32-bit system, which means I had to install the included "complimentary" CS4 copies of After Effects & Premiere Pro.  As stated in one of the Adobe troubleshooting sections I read, the CS4 components require a separate CS4 serial number.  As also stated in that same section, Acrobat and CS products have different serial numbers.  Unfortunately, I was only given one serial number, and that one was for CS5.5.  See image below for related screenshot collage.
    The serial number has been intentionally rendered unreadable for obvious reasons, but it's sufficient to show that there's only one serial number associated with my products.  I need serial numbers for the 32-bit CS4 components and for Acrobat X Pro.  How do I get them?  I tried chatting with an Adobe support agent a couple weeks ago, and he told me he couldn't help me.  He said I needed to get the serial numbers from the company that provided me with the CS5.5 serial number (Identit-E, who evidently gets involved with providing serial numbers for validated student license purchases).  They said they couldn't help me, and that I had to get with Adobe!  So I'm being run around in circles with nobody taking responsibility!  And when I tried to follow instructions and a link that I thought MIGHT give me some answers (on this page:  http://kb2.adobe.com/cps/517/cpsid_51791.html)...
    "In North America: If you're a student or educator, look in the Adobe Student Licensing website"
    ...I got a warning from my browser that it's an untrusted site:
    I'm not into taking that kind of risk.
    So I've done about all I can think to do, including contacting the actual reseller who sold me the software (no word from them yet).  Nobody's claiming responsibility, and they're pointing at each other.  That leaves me in the middle with no answers and only partially working, very expensive software!
    If there are any ideas from folks on this forum, I'm all ears!
    Thanks!
    Scott

    ScottSutherland can you please private message me with your contact information.  So we can work on resolving your difficulties.

  • DI-Error: You cannot select batch or serial numbers for a closed row

    Hello Experts,
    I have several B1-Systems connected to R/3-Systems via B1iSN.
    In B1 for example I have 2 rows in Purchase Order. One row was closed by a goods receipt - 1 row is still open.
    From our R/3-System we send Order-Acknowledgements to B1. Because line 1 is already closed we want to ignore row 1 and update only information in row 2. By using KeyExpansion I could solve that requirement (check in B1-System if row is already closed -> insert row in IDoc only with LineNum). For example:
    <Document_Lines>
      *<row>* <!-- ignore -->
        *<LineNum>0</LineNum>*
      *</row>*
       <row> <!-- update -->
        <LineNum>1</LineNum>
        <ItemCode>ABCDEFGHIJK</ItemCode>
      </row>
    </Document_Lines>
    Unfortunately DI-API does not allow to update each row separated. I always have to send all rows in IDoc even if one row is closed.
    For one B1-Company batchnumbers on every transaction is required. When creating Goods Receipt we have to define a batchnumber for item. But now if I want to update a open row (as described above) I get an B1iSN-Error:
    DI Error: (-10) You cannot select batch or serial numbers for a closed row
    Any ideas to solve that Error? Thanks.
    Regards,
    GB

    Hi Bastian,
    I have still one open question. How to tread Document Lines Additional Expenses?
    If I use the logic of visual order I still get the error "You cannot select batch or serial numbers for a closed row".
    Example:
    <Document_LinesAdditionalExpenses> 
    -      <row>
               <LineNumber>4</LineNumber>*no expenses*
    </row>
    -      <row>
               <LineNumber>0</LineNumber>*no expenses*
    </row>
    -     <row>
               <LineNumber>1</LineNumber>*no expenses*
    </row>
    -     <row>
               <LineNumber>2</LineNumber>*no expenses*
    </row>
    -     <row>
               <LineNumber>3</LineNumber>*expenses correct*
               <ExpenseCode>3</ExpenseCode>
               <LineTotal>10.00</LineTotal>
    </row>
    </Document_LinesAdditionalExpenses> 
    How can I solve that?
    Thanks and regards,
    GB

Maybe you are looking for

  • Execute SQL Task: Cannot assign value to the variable

    DECLARE @PartitionDate varchar(8), @Date int SELECT @PartitionDate = MAX(PartitionDate) FROM PartitionLog (NOLOCK) SELECT @Date = MIN(DateKey) FROM DimDate WHERE CAST(DateKey as varchar(8)) > @PartitionDate IF NOT CONVERT(varchar(8),GETDATE(),112) =

  • Running Payment Program before Due Date

    Hi Gurus, I have a problem. I want to run the payment program -Tcode F110- before the due date and I need the document posting date to be the same as the due date. How could I sort it out? Please help, Samuel

  • Beryl 0.2.0 + KDE 3.5.6: No new windows appear

    I am using KDE 3.5.6 (currently with the KWin window manager, but I'm hoping to use Beryl instead). When I run startx, everything runs fine. I then open a Konsole window and run beryl-manager, and the Beryl window manager takes over. Moving windows (

  • Outlook freeze when loading an VSTO Addin

    Hello, I have a problem with the VSTO Runtime. Sometimes, when Outlook loads an VSTO Addin, the CPU-Load of the Outlook process goes up to 25% and Outlook freeze. Then I must delete some assemblies in the GAC folder: Microsoft.Office.Tools* Microsoft

  • 10g Linux Listener

    Received and installed 10g database on Linux (RH 2.1) - configured the listener for a 10g database, started it and can tnsping and connect to it with the @database extenstion - BUT - can't get my windows (9.1 client) to connect! Error below: Please H