Assign carton numbers for deliver

Hi,
here i have two tables itab_vbfa_hu which will contain all the delivery orders and their handling units. 'X' denotes handling units.
Itab_vekp will have handling units and  weight.
I am trying to assign carton number basing on handling units.
I am using loop in loop to achieve this.
when the program pick single delivery order it is working fine.. problem i swhen i pick multiple delivery orders.. i need to differentiate the delivery orders and assign the carton number to that particular delivery orders.. same manner it should apply for all delivery orders..
hope i am clear with my doubt..
  LOOP AT itab_vbfa_hu INTO str_wvbfa_hu
                        WHERE vbtyp_n = 'X'.
    CLEAR l_carton.
    LOOP AT itab_vekp INTO strt_wvekp
                     WHERE vbelv EQ str_wvbfa_hu-vbelv.
      l_sy_tabix = sy-tabix.
       IF str_wvbfa_hu-vbeln EQ str_wvekp-venum.
         l_carton = l_carton + 1.
         str_wvekp-carton = l_carton.
         MODIFY itab_vekp FROM str_wvekp INDEX l_sy_tabix.
       ENDIF.
  ENDLOOP.
ENDLOOP.

Hi
Achieved the solution with
LOOP AT itab_vekp INTO str_wvekp
l_sy_tabix = sy-tabix.
l_carton = l_carton + 1.
str_wvekp-carton = l_carton.
MODIFY itab_vekp FROM str_wvekp INDEX l_sy_tabix.
AT END OF vbelv
Clear l_carton.
endat.
endloop.
this way i got the desired result of assigning carton numbers basing on handling units. with innner join statementi have got vbelv field in itab_vekp.

Similar Messages

  • Assigning sequential numbers for every lines within a group of records

    The scenario is:
    This set of records with group number, lets say 100(group number) contains 7 lines/records. How to assign line numbers (sequential) for each line within these groups on the fly during the mapping process before inserting these set of rows in the target. I know it is easy to achieve in a procedure, but not sure how to do this in the mapping.
    please advice.
    Thanks,
    Prabha

    Use Rank function
    SQL> select empno,ename,deptno,(rank() over (partition by deptno order by empno)) seqno from emp;
    EMPNO ENAME DEPTNO SEQNO
    7782 CLARK 10 1
    7839 KING 10 2
    7934 MILLER 10 3
    7369 SMITH1 20 1
    7566 JONES 20 2
    7788 SCOTT 20 3
    7876 ADAMS 20 4
    7902 FORD 20 5
    7499 ALLEN 30 1
    7521 WARD 30 2
    7654 MARTIN 30 3
    7698 BLAKE 30 4
    7844 TURNER 30 5
    7900 JAMES 30 6
    1111 Test 40 1
    1222 test 1
    1333 2
    17 rows selected

  • User-exit for delivery while assigning serial numbers(urgent)

    hi all,
    can u plz tell me the specific user exit for delivery (VL01n) while assigning serial numbers?
      i am getting the serial numbers for material in database table OBJK .i am also getting these serial no.s in IQ01.
       while doing delivery,i am going for extra-->serial number.at this time one screen for serial number is comming.those serial numbers which are stored in objk will transfer to this screen of delivery automatically.
      for this , i want a specific user-exit for delivery so that i can transfer the serial nos from objk to that screen of delivery.plz suggest .(urgent )
    any idea is highly appreaciated
    Regards
    pabitra

    You can find from below list of user exists
    V02V0001            Sales area determination for stock transport order          
    V02V0002            User exit for storage location determination                
    V02V0003            User exit for gate + matl staging area determination (headr)
    V02V0004            User Exit for Staging Area Determination (Item)             
    V50PSTAT            Delivery: Item Status Calculation                           
    V50Q0001            Delivery Monitor: User Exits for Filling Display Fields     
    V50R0001            Collective processing for delivery creation                 
    V50R0002            Collective processing for delivery creation                 
    V50R0004            Calculation of Stock for POs for Shipping Due Date List     
    V50S0001            User Exits for Delivery Processing                          
    V53C0001            Rough workload calculation in time per item                 
    V53C0002            W&S: RWE enhancement - shipping material type/time slot     
    V53W0001            User exits for creating picking waves                       
    VMDE0001            Shipping Interface: Error Handling - Inbound IDoc           
    VMDE0002            Shipping Interface: Message PICKSD (Picking, Outbound)      
    VMDE0003            Shipping Interface: Message SDPICK (Picking, Inbound)       
    VMDE0004            Shipping Interface: Message SDPACK (Packing, Inbound)

  • Researching Serial Numbers for MTO Production

    Hello,
    I work for a make-to-order manufacturing company.  We currently use Project Systems and PP for production.  We use the Project Definition + WBS Element as the serial number of our finished, sellable product (FERT).
    I am trying to investigate using SAP serial number feature instead, but everything I am reading (SAP Help Files) seems more geared toward mass-production.  Can anyone direct me to some information on a MTO scenario for serial numbering?
    Thanks very much!
    Timothy

    Hi Timothy,
    Serial number functionality is more applicable to MTO. In typical Mass production (Make to stock ) PP implementation , Batch management will be sufficient to identify if there is any quality issue for finished goods. But most MTO PP implementation would require Serial number functionality as you will need to track it for warranty( What has been revsion level for FG) .
    You are using Project+WBS number as serial number which measn you have to use external serial numbers.  There are user exist available to configure Serial number suffix. Projects have Project ID which can be Serial number suffix.
    There is possibility of doing Delivery from Project( Not very commonly used) , but if you need to generate serial numbers for each project delivered, you need to create DO from project & assign serial number (First time in system). This is because Projects are compleleted without any FG number assigned anywhere in header & Project package is delivered & it don't have stock functionality.
    Hope it helps,
    Jatin

  • Serial Numbers for Raw Materials

    Hello All,
    We are not using serial numbers at the moment, but we would like to assign a serial number to each material that enters the warehouse. So not on finished goods, but on raw materials. If we for instance order 10 boxes of a material, we would like to create 10 different serial numbers for these boxes (in MIGO).
    Batch management is not the solution, since the 10 boxes would receive the same number, whereas we want a unique number per box.
    Is this possible?
    Regards, Marc
    Edited by: japie303 on May 12, 2009 1:08 PM

    Thanks for your replies.
    We already have storage unit types, one of them is "Box". So in the warehouse mgmt 2 tab, an entry has been made which looks like:
        LE quantity          Un         Sut
    1. 100                     Ea         Box
    This works nicely when goods are putaway: the system suggests that if there are 1000 materials ready for putaway, 10 boxes are delivered and thus 10 storage bins are required.
    The only thing that fails is that there will be 1000 serial numbers generated, instead of 10. Handling Unit management is no option, because that brings a lot of workload with packing and unpacking goods. Changing the base unit of measure to box is not an option, since a box is no unit of measure.
    Regards,
    marc.

  • Bapi to be used  for delivering data of outbound delivery to LDL

    Hi,
    I am new to ABAP development and I need to do some enhancements for standard bapi BAPI_OUTB_DELIVERY_SAVEREPLICA .
    I have to use bapi for delivering data of outbound delivery to LDL.
    I have created segments with additional fields for order header and item header in we31.
    The additional fields should be implemented in created segments.After creating segments the additional fields data should be assigned to Idoc structure OBDLV.
    This is the requirement I need to deliver  by tomorrow.Please help me by providing step by step procedure and how to do?
    Thanks in advance
    Raj

    Dear Venkat,
    for cancelling GI/GR you may use BAPI_GOODSMVT_CREATE with GM_Code 06
    for cancelling confirmations you may use BAPI_PRODORDCONF_CANCEL
    Regards, Andreas

  • What is difference between Numbers for Mac and for iPod Touch?

    Trying to decide pros/cons of getting Numbers for my iMac vs. just for my iPod Touch? Obviously, one is cheaper than the other.  Dumb question, but I guess I cannot use Numbers downloaded from App Store on my iMac; just on my iPod Touch?  And, can I just buy Numbers for iMac; seems only option is to buy as part of package under iWorks (don't need Pages or Keynote for the home).

    (1) Numbers for iOS and Numbers for OSX are completely different products building files using the same format.
    (2) You may buy Numbers as a single application thru Mac App Store. The application Mac App Store is delivered with Lion.
    Yvan KOENIG (VALLAURIS, France) samedi 14 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan

  • Different  document  numbers  for  cash  receipt  and  cash  payment

    Dear  ALL
    can  we   get  different document  numbers   for  cash  payment  and  cash  receipt
    regards
    sheena

    Dear  Jigar ,
    i am  not able  get separate  document number   for  cash  receipt and cash payment 
    though  i assigned  in fbcjc0.can  you elaborate  on what  you  have  told  .
    further  cash receipt  and cash  payment  for  gl  account s  it  is taking consecutive  numbers  only
    can  you  give  me your  gmail  id
    regards
    sree

  • Update TIN numbers for BP Customer and Vendor Records

    Hi experts
    Needed to update the TIN numbers for existing vendors and customers in SAP B1,please let me know the  templates and necessary field to update the same
    Regards
    Srinivasan

    Hi Bishal
    Taxpayer Identification Number (TIN) and Employer Identification Number (EIN) are defined as a nine-digit number that the IRS assigns to organizations. The IRS uses the number to identify taxpayers who are required to file various business tax returns. TIN/EIN are used by employers, sole proprietors, corporations, partnerships, nonprofit associations, trusts, estates of decedents, government agencies, certain individuals, and other business entities.
    there is a option to enter TIN numbers for BP master records---> accounting -
    > Select Radio Button ---> TIN numbers i want to update these numbers through DTW
    Regards
    Srini

  • Sync MM & FI Doc Numbers for GR

    Hi,
    I am able to sync MM & FI Document Numbers for Invoice Receipt (MIRO). I want to have same sync for GR (MIGO) also. Can somebody suggest the way?
    I tried following same way what I did for IR (maintaining same number ranges for MM & FI and making FI document numbering external) but that doesn't work for GR (MIGO).
    Cheers!
    Amit

    Hi,
    You want WE  numbering will be same on material/accounting document creation.
    Use t.code: OMBT, Click Financial Accounting Number ranges
    Example: number range available is  48
    4800000000 to 4899999999
    Now again back use t.code: OMBT, Click Financial Accounting Document type > click WE > enter number Range 48 in properties TAB & save.
    Now use t.code: OMBA
    Click Group in menu bar-- > maintain -- > again click Group in menu bar --> Insert
    Enter Text as GR Docs
    Year  u2026u2026From u2026u2026u2026u2026u2026u2026u2026u2026TO
    9999u2026u2026.4800000000 u2026u2026u2026u2026u2026. 4899999999
    Now Double click WE & select check box of GR Docs and click Element/Group & save
    (See the WE is assigned to GR Docs after assigning)
    Also need to assign WE document type  in MIGO_GR t.code in by using  t.code: OMBT by double clicking Goods Receipt Document Type & save.
    Now try ur transaction GR.
    Regards,
    Biju K

  • I have the Photoshop Photography Program and every time I try open Photoshop CC it asks me for a Serial Number. It keeps saying my trial period has ended. How can I get this working since Adobe doesn't issue Serial Numbers for CC.

    I have the Photoshop Photography Program and now every time I try open Photoshop CC it asks me for a Serial Number. It keeps saying my trial period has ended. How can I get this working since Adobe doesn't issue Serial Numbers for CC.

    Jodie84,
    I have just checked your account and found that you indeed have bought a Creative Cloud for Teams subscription but you have assigned the single seat to another user hence you ( If you are using your own Adobe ID ) are getting the trial error message.
    Two options : Either reassign the seat to your self or add an additional seat and invite your self in the same Team.
    Cheers,
    Kartikay Sharma

  • Sales BOM: Quantity correlation for deliv.group 001

    When creating a delivery for a sales BOM material assigned to delivery group, I'm getting a partial quantity. 
    Example is sales BOM material A requires 4 EA of subitem B.  Order created for 1 EA of material A, which requires 4 EA subitem B but there are only 2 EA of B in stock.  The corresponding delivery is created with a quantity of .5 for material A.  I get the following message in the delivery log:
    "Quantity correlation for deliv.group 001 from sls.order 0004831194 for deliv.item 000010"
    I'm expecting the quantity to be 1 on the sales order.  Any help is appreciated.

    Hi,
    I guess not. Obviously, if you don't have enough to deliver in full, then you can do one of the two; either deliver less (in this case half), or deliver none (maybe you can't deliver half because it is impossible).
    Here's something from the online documentation:
    Correlating Delivery Groups
    Items in delivery groups can be combined in the sales order to synchronize their delivery. You will receive a warning message when creating a delivery for a sales order if all items belonging to such a group cannot be delivered. If you then create deliveries using a delivery due list, all orders whose delivery groups cannot be completely delivered will be ignored in this process. In this case, the log supplies all appropriate information. If the delivery quantity is changed or if such an item is deleted in a delivery item belonging to a delivery group, you will receive a warning message. For further information on delivery groups, refer to Combining Sales Document Items for Delivery.
    In addition, the system will carry out a quantity correlation for groups of items when they are classified together by one of the following requirements:
    the items belong to a common delivery group
    the items have a bill of material structure
    If the order structure arose from a bill of material explosion, the relations in quantity of the items is based on component quantity. If this is not the case, it is based on the relation of the order quantities. The system does not correlate items classified as having fixed quantities.
    When creating deliveries, the system automatically carries out a quantity correlation. If you change a higher level itemu2019s quantity, the quantities in the dependent items will be adjusted on all levels if necessary. When you change a dependent itemu2019s quantity, the system generates a warning message. When you delete a higher level item, all subordinate items are deleted as well. When you delete a dependent item, the system generates a warning message. If the dependent item contains a quantity to correlate and is the main item of a batch split, you receive a note. You must decide manually for which batches the quantity change is to take place.
    The question really is, from a business point of view, in your example what would you like to do? Deliver 1 A or none?
    Regards,
    Mario

  • (HR) - BADI to assign personal numbers in a range depending on ?

    Is there any BADI to assign personal numbers in a range depending on the type or measurement in infotype 0?
    Thank you.

    I apologize but my scholar English don't allow me to be more clear than iWork Formulas and Functions User Guide.
    What aren't you understanding ?
    Yvan KOENIG (VALLAURIS, France) samedi 11 juin 2011 12:32:55
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Interface: Populating serial numbers for materials in idoc

    Hello All,
    Do you know how can we transfer serial numbers in idocs and then updating them in sales orders agains materials......
    Lets say, i have 10 materials as 10 line items in my sales order so i would get these details in idocs and then we need to create one sales order with these 10 line items and assign serial numbers to all of them......
    Could you please reply me at the earliest if you know how to do this.....
    Thanks,
    Patil.

    Hi Shankar;
       I am unaware of any function module, I searched for it high and low a few months ago...  This website describes the process of getting the serial numbers using WM if it is of any help to you...
    http://www.sapgenie.com/sapfunc/serialnumbers.htm
    Cheers,
    John

  • External HU Numbers for Packaging - Numerics have issues

    Hi,
    We pack our raw materials into packing materials as per customer requirement .
    We have created the packaging material and had it assigned to use -- "Any external number can be entered (no HU functionality)"
    The total needed is 20 digits,.
    Issue:
    if we enter the HU id as --> 0001234556 --> Sap takes it as 123456 by truncating zeros.
    if we have atleast one alphabet in the ID entered then it works fine.SAP doesnt truncate the id.
    Is there a possible solution to acheive this !!!
    We want SAP to keeep all the numerics as entered, it should not truncate any digits eventhough its numeric !!!
    Thanks,
    Srikanth.

    Can you tell me how you receive the handling units ?.If you are receiving material from PO then using an idoc then in idoc function module put the logic crete the inbound delivery with external HU number for receipt.
    You can use HID dummy delivery type susyem should create the delivery with customer handling unit numbers for receipt.
    I think you need to develop custom program which you need to insert HU number ,material qty ,plant and storage location then system will generate packing lable in background to receipt the material.

Maybe you are looking for

  • Data recovery after filesystem change ntfs- ext4

    so here's my story: i wanted to instal arch on a friend's machine and it was a success. BUT i accidentaly used a wrong partition and changed the filesystem from ntfs to ext4. normally i would use something to recover my data but the filesystem change

  • Despite problems I'm fairly happy

    I've read a lot of complaints, so maybe another perspective will be help some of you to feel better. I, too, got an error during the 1.1.1 update and got to learn about restore. Annoying, but the restore worked. Despite this error and the occasional

  • Select For all entries with multiple keys

    Dear Developers, im writing a program which reads the last the last mseg entry with bwart 101 and bwart 201 an writes it into different fields of a table. In dependance of the bwart the max-value of mkpf-budat should be moved into field wedat or wada

  • No Manual iCloud Backup in 8.1?

    Sigh, I love updates.  But when something is gone that we have gotten used to using it is quite annoying, especially when I spend my time searching for it.  Where is the manual backup to iCloud?????  It used to be in Settings, iCloud.  Now it is not

  • Historical Data Maintenance

    Dear Members, This is my second post in the forum. Let me explain the scenario first, "We have 2 Tools -Tool1 and Tool2 which points to 2 different databases - db1 and db2 respectively. currently, the db1 performance is very poor due to huge data. we