How to create Delivery from VA01 wich split on the basis of line item count

Hi Frnds,
I have this requirement where I have to split a single sales order into multiple deliveries whenever the line items count exceeds 10.
Kindly advice if there is any routine/ any exit for this OR any other soln to this...
Note : Splitting only takes place when the Line items count exceeds 10.
for eg : In VA01, for a sales order having line items
             01, 02, 03, 04, 05, 06, 07, 08, 09, & 10 ---> One delivery
             11, 12, 13, 14, 15............................ 20 ---> second delivery
Your help will be truely appreciated..
Thanks,
Kamal Sehrawat

These are called copying requirements. If you open VOFM, you will understand better.
The routine is a 3 digit number which corresponds to one particular scenario. There are many standard routines for each scenario. Ex : sales orders, deliveries, partners etc.
There are 2 cases:
1. copying the data from one scenario to other. Ex: orders to delivery, delivery to billing etc
2. Moving the data while creation.
You can choose anything which depends on your scenario.
To code, copy the routine and create a custom routine. Select the routine and Press F5 (Second Icon to see the source text) to write the code. You can write/modify the code in the copied standard include it takes.
If the standard routine is not suffice, you can also create a new custom routine which starts with 9XX.
You need to explore more to understand better.
Thanks,
Vinod

Similar Messages

  • How to create delivery from a sales order?

    Hi friends,
    Can you tell me how to crete a delivery from a sales order?
    First, I would like to know which transaction we use to create and how?
    Appreciate your input.
    Thanks,
    Krishen
    P.S. Points assured for helpful answers and thanks in advance for your time.

    VL01 is the transaction for the creation of Delivery
    VL01   SAPMV50A       Create Delivery
    VL01N  SAPMV50A       Create Outbound Dlv. with Order Ref
    VL01NO SAPMV50A       Create Outbound Dlv. w/o Order Ref.
    Message was edited by: Gopi Narendra

  • Need to have a Delivery split based on number of line items

    What are best possible ways to have a control on the delivery creation based on the no. of line items.
    Scenario : Suppose if i have a sales order with say 1200 lines (same to ship to party, same del date & Same Shipping point) and suppose if i want to have a deliveries created for this order that should not exceed 400 lines (hence 3 deliveries for the same order), how can i proceed?. Kindly Advice.
    Thanks & Regards
    Ilango

    hi
    there are  2 options
    If you are creating delivery manually then you can give the no of line items on the first screen of VL01N.
    second option is to use field LIKP-ZUKRL.  You can popluate this field with some logc that for first 400 line itmes the value is 1 and beyond that it is 2 and next 400 it is 3.  The system will split the delivery according to the field ZUKRL.  It the values are different at header it will split the deliveries. you can do this at the time of copy control or user exit.  Please chek the best feasbility with the technical consultant
    Regards
    Yatin Thakkar

  • Create delivery from Purchase order

    Hi all,
    I want to know the TCode to create a delivery from a Purchase Order
    Harini

    HI HARINI KESANI,
                                 IN ORDER TO CREATE DELIVERY FROM PO CAN DO THRU THE T.CODE
    VL10B( BATCHES). ENTER THE PURCHASE DOCUMENT IN THE PURCHASE ORDERS TAB PAGE, CLICK ON EXECUTE
    YOU WILL ENTER INTO ANOTHER SCREEN , SELECT THE LINE ITEM AND CLICK ON EXECUTE BACKGROUND.
    YOU WILL GET THE DELIVERY NO., GO TO VL02N AND DO THE POST GOODS ISSUE.
      YOUR CAN ALSO CHECK THE DELIVERY NO. IN THE P.O , PURCHASSE ORDER HISTORY TAB PAGE, THERE U CAN SEE THE STATUS OF THE GOODS ALSO , WHETHER MATERIAL DELIVERED ,ISSUED AND GR.
    REGARDS,
    RAM

  • PS: WBS is not flowing for a Material, while creating delivery from Project

    Hi,
    While creating delivery from Project thro CNS0, WBS is not flowing for a Material in delivery, in turn WBS is not flowing in Billing document for same material, in turn not allowing to Post the Billing document to Accounting.
    Error while releasing Billing to the Accounting: Accounting Entry is not generated. Error Message:Assign Condition type
    YMRG in COPA.
    Pls let me know, what can be the reason ?
    Thanks.
    Amit.

    Hi Kuldeep,
    Check this note,
    Note 159387 - Message BP603: incorrect line item is displayed
    Its valid only till 4.6. Might give you some idea but.
    Regards,
    Gokul

  • Budget error while creating delivery from sales order

    hi Gurus,
    System is throwing error PB603 "Item 004 WBS element ABC-XXX budget exceeded" while creating delivery from sales order.
    I am picking material from unrestricted plant stock (not in project stock).
    I am also confused as sales order has 3 line items & error shows Item 004 !

    Hi Kuldeep,
    Check this note,
    Note 159387 - Message BP603: incorrect line item is displayed
    Its valid only till 4.6. Might give you some idea but.
    Regards,
    Gokul

  • BAPI Create delivery from scheduling agreement

    Hello,
    Does anyone have code to create a delivery referencing a scheduling agreement?  
    Thanks,
    Evan

    I dont think there is a BAPI to create delivery from the schedule lines .
    You can get the details of schedule lines from the VBEP  table and use the FM BAPI_OUTB_DELIVERY_CREATE_SLS.
    This becomes very cumbersome in case there are partial deliveries per schedule line.

  • How to create database from .sql file

    how to create database from .sql file..?? i put the sintax query in a sql file.. and i want to call it in java code..
    ho to do it..??

    why do you want to do this from java?
    i just don't see the point.
    find your dba and have him/her run it for you

  • How to create data_block from procedure ?

    hi all
    can anyone to help me :
    how to create data_block from procedure ?
    i want to join 2 or 3 table and use order by
    then show some field in my form
    i can not use view because order by can not use in view
    please send sample code for this procedure
    thanks.

    1) >i can not use view because order by can not use in view
    SQL>create or replace view V_test as
      2  select * from (
      3  select 1 id from dual union
      4  select 2 id from dual union
      5  select 3 id from dual union
      6  select 4 id from dual union
      7  select 5 id from dual union
      8  select 6 id from dual ) t
      9  order by t.id
    10  /
    View created.
    SQL>select * from v_test;
            ID
             1
             2
             3
             4
             5
             6
    6 rows selected.2). >how to create data_block from procedure?
    You must create procedure and use ref cursor.

  • How to create report from report painter??

    Hi,
    how to create report from report painter?? from transaction code GRR1

    Select the library that you want report to create.  GRR1
    You select what to list in coulumns and what to lisr in rows. You could select characteristics or key figures.
    You can use variable both in defininig row and coulmn or in general selection.
    You can also use sets as variable or as constant. These sets can be your master data groups or sets in GS02.
    You can use formulas.

  • How to create Delivery

    Hi,
    I have requirement to create delivery from salesorder. I need to use BAPI for this.
    BAPI_DELIVERYPROCESSING_EXEC is not working in 4.7 version.
    Please let me know any alternate BAPI for this.
    Thanks in Advance

    Hi,
    You can go to transaction SE37 and search for the relevant BAPIs using the search pattern BAPIDELIVERYCREATE* and the pressing F4.
    Try these FM.
    RV_DELIVERY_CREATE
    RV_DELIVERY_CREATE_SINGLE
    RV_DELIVERY_PICK_UPDATE
    SD_DELIVERY_UPDATE_PICKING
    BAPI_SALESORDER_CREATEFROMDAT2.
    BAPI_IBDLV_CREATE_ FROM_OBDLV
    BAPI_DELIVERYPROCESSING_EXEC
    BAPI_GOODSMVT_CREATE
    BAPI_OUTB_DELIVERY_CREATENOREF
    Regards
    Gokul

  • How to Create PDF from Illustrator CS3 by using applescript?

    Hi Guys,
    Do some one knows how to create PDF from Illustrator CS3 by using apple script. If know, please give me the scripting.
    HARI

    Have you tried File>Scripts>SaveDocsAsPDF? There should be a folder of sample scripts installed in your AICS3 folder and a folder of documentation which contains an Illustrator AppleScript Reference which has examples.

  • Create delivery from a PO

    Hi,
    I need to create a new Z transaction that creates a delivery from a purchase order.
    So far I found two FM's (GN_DELIVERY_CREATE and RV_DELIVERY_CREATE) but they only seem to work with sales orders.
    There also BAPI's to change deliveries but none to create deliveries.
    Is there a way to automatically create a new delivery from a PO? FM, BAPI, ...
    If possible I would like to do in in foreground
    Thanks in advance!
    Bert

    Hi Bert,
    Use code similar to the below to create delivery from PO.
      data:lt_request      like bapideliciousrequest
               occurs 0 with header line,
           lt_createditems like bapideliciouscreateditems
               occurs 0 with header line,
           lt_return       like bapiret2
               occurs 0 with header line.
      if px_infile-type = 'PO' . "If Purchase order
        lt_request-document_type      = 'B'.
        lt_request-document_numb      = lv_ebeln.
        lt_request-document_item      = lv_posnr.
      else.                      "If Sales Order
        lt_request-document_type      = 'A'.
        lt_request-document_numb      = lv_vbeln.
        lt_request-document_item      = lv_posnr.
      endif.
      lt_request-material           = lv_matnr.
      lt_request-plant              = lv_werks.
      lt_request-stge_loc           = lv_lgort.
      lt_request-quantity_base__uom = lv_base_uom_qty.
      lt_request-delivery_date      = sy-datum.
      append lt_request.
      call function 'BAPI_DELIVERYPROCESSING_EXEC'
      EXPORTING
        DELIVERY_EXTEND       =
        TECHN_CONTROL         =
        tables
          request               = lt_request
          createditems          = lt_createditems
          return                = lt_return.
      loop at lt_return where type = 'A'
                          or  type = 'E'.
        call function 'BAPI_TRANSACTION_ROLLBACK'.
        exit.
      endloop.
      if sy-subrc <> 0.
    Use the BAPI for Commit
        call function 'BAPI_TRANSACTION_COMMIT'
             exporting
                  wait = 'H'.
      endif.
    Hope this helps.
    Thanks,
    Ramakrishna

  • How to create "convert from PDF to Word?"

    How to create "convert from PDF to Word?"

    Good day,
    To use the ExportPDF service, simply visit http://exportpdf.acrobat.com and click 'Sign in' at the top right corner.  Enter your Adobe ID (email address) credentials to log into the service.  As ExportPDF is web-based, you simply utilize the tool through your web browser.  After you're logged in, you should see the ExportPDF interface, with a button saying 'Select PDF file..' to get the process started.
    Please let us know if you have any questions.
    Kind regards,
    David

  • Creating inbound delivery for the purchase order line items

    Hi Experts,
    Please let me know how can I create inbound delivery for the purchase order line items?  Say, I have a purchase order with 5 line items in it.  I wanted to create an inbound delivery for only 2 line items at this point of time.  Which SAP Standard transaction I have to use and what all  data I need to populate?  I would appreciate any help on this and will reward the right answer.  Please let me know.
    Thank you in advance.
    with regards,
    Muthu Ganapathy.

    Hi,
    While creating the inbound delivery (VL31N), intially all the items will be shown, see the advance shipping notfication - from the vendor for which he has send confirmation & rest items you can delete simply & save. & next time when the vendor sends rest advance shipping notifcation (confirmation), you can receive them.
    Hope this answers your query.
    Regards
    Irfan.

Maybe you are looking for

  • Is it possible to mailmerge a form letter to recipients identified in a database (names, addresses, etc.)?

    Is it possible to mailmerge a form letter so that the mailmerge process produces separate pdf files, one for each recipient identified in a database (names, addresses, etc.)? Or is is  it possible to mailmerge a form letter so that the mailmerge proc

  • Valuation type with CK11N

    Hallo Friends, It's possible to run material cost Estimate  (CK11N) with Valuation Type Means I want One Material Standard Cost Extimate with Different Different Value so Please tell me It's Possible If Yes than Guide me Because I also Assign Materia

  • Copy of the Attachments from a Opportunity to a Activity

    Hello SAP Experts!!! I have a requirement when creating a Activity as an Follow-Up Document from an Opportunity that the Attachments of the Opportunity have to be copied to the Activity. I have looked at BADI: CRM_COPY_BADI but I found out that the S

  • Sprint Iphone 5 no 4g/LTE

    My sprint phone is not picking up LTE! Before i got this phone, even at home i would get 4G but nothing is picking up on my iphone! it's really starting to bother me. Anywhere i go im stuck with 3G in the status bar! How stone age is that?! I've done

  • Import phone number

    Dear community, I am trying to import data regarding account and lead and I have some problems regarding phone number format. Although in the csv file I formatted the phone number based on the documentation +country code followed by space but after t