Issue with Delivery Grouping in Sales Order

Hello Gurus,
I have a problem in Sales Order (VA01 & VA02). The issue is as follows.
We have created a material called “FREIGHT” to calculate the Shipping & Handling cost in a Sales Order. This material has no ATP CHECK, so the Material Av. Date (MAD) is determined as immediate or the current date.
But the business process we want to implement is, the FREIGHT material should not be delivered separately, but should be grouped with one the line items in the sales order which has the earliest material available date and copy the corresponding dates to FREIGHT line item and delivery grouping should be done.
1. Say 1st line item is a BOM Material, next item is a standalone material (Non-BOM), and 3rd item is FREIGHT material.
POSNR   Matnr           Qty     DlvGrp  DlvDt  MAD  LoadingDt
10     BOM (Parent)     1    1   x-date   09/11/2006    x-date
11     SKU1 (Child)     x        x-date   09/11/2006    x-date
12     SKU2 (Child)     x        x-date   09/11/2006    x-date
20     Non BOM    1     2        x-date   09/06/2006    x-date  
30     FREIGHT      1      2        x-date   09/06/2006    x-date  
I know the above example may not be that clear, but this is the space available when you post your topic.
Based on the above example, the earliest material available date is for Line item 20 i.e. 09/06/2006 and assume FREIGHT is also tied to the above line item (20) i.e. line item 20 & 30 are delivery grouped.
Say if I delete line item 20, now FREIGHT should be tied to line item 10 and delivery grouping should also take place get changed to 1 for FREIGHT item.
I need to achieve this using user-exits, but HOW?
Appreciate your views and the solution for the scenario.
Thanks.
Regards,
Suresh Ganti

Hi Suresh,
I guess you can accomplish this using SAVE_DOCUMENT_PREPARE in MV45AFZZ. In table xvbap you will find all order items with an update indicator. If an item has indicator 'D' (deleted) and field GRKOR (delivery group) filled you should find the corresponding FREIGHT line having the same value for GRKOR. Then find the remaining non-FREIGHT item with the earliest material availability date and set the value of GRKOR for this item to the same value as the FREIGHT item.
Regards,
John.

Similar Messages

  • How to clear the delivery group in sales order?

    Dear All: 
          My sales order is auto created from CRM by BAPI, but in vbap table, the GRKOR field is 001, only one order ,  how to clear the delivery group in the sales order ?
    Regards
    Peter.

    Thread Locked - Reason Duplicate Post
    How to clear the delivery group in sales order?
    Please dont post the same query twice.  Continue all your queries in one thread
    G. Lakshmipathi

  • Subcontract Purchase Order with delivery address from Sales Order Ship-to?

    Hi
    My client has a Sales order for a subcontracted product.  The subcontractor should send the product directly to the customer that is on the sales order.  Currently, the delivery address on the PO is the home address of the client.
    My first option is to create a vendor address matching the ship-to and enter that manually in the Delivery Address field in the PO. But, i would like this to populate automatically.  Is this possible?
    thanks for your suggestions.
    Oll

    >
    Oll wrote:
    > Hi
    >
    > My client has a Sales order for a subcontracted product.  The subcontractor should send the product directly to the customer that is on the sales order.  Currently, the delivery address on the PO is the home address of the client.
    >
    > My first option is to create a vendor address matching the ship-to and enter that manually in the Delivery Address field in the PO. But, i would like this to populate automatically.  Is this possible?
    >
    > thanks for your suggestions.
    >
    > Oll
    a mixture of third party order (vendor ships directly to customer) and subcontract is not possible. third party order would need a S as item category in the PO, while subcontract order needs a L at the very same field.
    We created a storage location and a shipping point for the subcontractor. The sales order is created as a standard sales order that makes use of this storage location and shipping point.
    MRP run then creates a request to produce that material, based on the special procurement indicator in material master it is known that the material is to be procured via subcontract order.
    We then receive the finished good into this storage location that represents the subcontractor.
    Then we create a delivery in VL01N to ship this material to the customer.

  • Issue with qty confirmation in sales order

    Dear All,
    Earlier when i used to create the sales order and even if i confirm 1 qty also, i was able to deliver  the entire qty mentioned in the sales order. But now. I am unable to do it.
    System is asking me to confirm the entire qty mentioned in the sales order. Unless i do it system is not allowing me to do the delivery.
    Pls help

    Hai,
    In the particular customer master,
    Check
    Sales area data
    Partial delivery per item     (Entry blank) Partial delivery allowed
    Then try new sales order.
    Regards,
    Mani

  • Credit group in sales order

    Hi
    How we link credit group to sales order ?
    Regards
    Prabudh

    hi,
    it is done through ova6 Transaction code.  more over i am sending you the screen shot of credit check managment stps. follow this u will not get any error while u r determining the order.
    pl. follow the steps of credit check.
    1. Define the credit control area under img=definition=financial accounting= define cr.control area.
    2.assign it your company code and ur sales area under assignment under img screen.and assign it your sales document types and delivery types and pgi.
    3. create the credit groups for your customers. it can be determined or happen in three stages either in Sales order , or else in delivery or in Post goods issue (PGI).
    the menu path for credit groups as IMG= SD=BASIC FUNCTIONS= CREDIT MANAGEMENT AND RISK SETTINGS= DEFINE CREDIT GROUPS.
    ex: Z1 - credit groups for sales order
    Z2 - credit groups for delivery
    Z3 - credit groups for PGI
    4. define the risk categories. it is required b'coz the customer is of high risk, or medium risk, or low risk customer.
    it is under IMG= FINANCIAL ACCOUNTING= FINANCIAL ACCOUTING AND GLOBAL SETTINGS= DEFINE RISK CATEGORIES.
    ex: Z1- LOW RISK CUSTOMER
    Z2 - MEDIUM RISK CUSTOMER
    Z3- HIGH RISK CUSTOMER.
    5.maintain automatic credit control check for ur credit control area and credit groups of the customer and risk categories. so that the credit check will determines automatically. menu path is IMG=SD=BASIC FUNCTIONS= CREDIT MANAGEMENT AND RISK CATEGORIES= DEFINE AUTOMATIC CREDIT CONTROL.
    6. while u r creating automatic credit control, pl. copy from the std. one and make changes. so that all the existing details will copy and fine tuning have to be done by the SD consultant. basically this is integration with FICO.
    So copy it from any one of the 1000 credit control area and make changes like
    dynamic credit as C and activate the open for order and deliveries and save
    i.e maintain credit control area + risk categories+ credit groups for the customer.
    7. finally maintain the credit limit thru FD32 for ur customer. activate everything on that screen.
    if you follow those rules, definetely cr. limit will determine for you.
    pl. reward point if it is helpful.
    regards
    KR

  • How to create a single delivery for two sales orders?

    Hi Experts,
    I need to create one delivery for two sales orders. But it fails.
    The route, shipping point, ship to party are same for both orders but INCOTERMS are different.
    Delivery date, Good issue date, loading date,material availability date, transportation planning date for 1st order is 12/07/11 and for second order is 14/07/11.
    I have created delivery on 14/07/2011 but the delivery is created for 1st order only, the second order is missing in the delivery.
    It not happened because of incoterms.? different dates
    Kindly help regarding this.
    Thanks
    Raghu

    Prerequisite for Grouped delivery
    1. Header data should be same like Inco terms,Payment terms
    Go to VL10A
    Enter the sales order Numbers and execute
    Select the sales order Nos  for the group delivery and select "Background"  Tab in Tool Menu Bar
    If delivery is created coloured line items will get generated
    Check the log for delivery docuements
    Check and confirm
    Senthils

  • How  to create one delivery for two sales orders?

    Hi Experts,
    I need to create one delivery for two sales orders. But it fails.
    The route, shipping point, ship to party are same for both orders but INCOTERMS are different.
    Delivery date, Good issue date, loading date,material availability date, transportation planning date for 1st order is 12/07/11 and for second order is 14/07/11.
    I have created delivery on 14/07/2011 but the delivery is created for 1st order only, the second order is missing in the delivery.
    It not happened because of incorterms.? different dates
    Kindly help regarding this.
    Thanks
    Raghu

    Hi
    To understand splitting behavior, see SAP Note 546668 - FAQ: Delivery split when creating deliveries. And yes, incoterms happens.
    I think that with the help of question 6 you can try to force the merging of SO. Then, see SAP Note 166397 - Delivery split according to customer field ZUKRL, and handling the field ZUKRL in a VOFM in the copy rule I think that you can try to do it.
    Finally See  Note 4505 - Duprec when adding delivery (VL04, VL01, VL10*) to avoid problems while you are merging.
    Regards
    Eduardo

  • Automating delivery blocks in sales orders

    Hi,
    We have a delivery made with ref to a sales order. The goods are third party warehouse managed.When the goods are no longer needed, a third party warehouse sends an idoc in our system. This idoc deletes the delivery in our sap system and as soon as the delivery is deleted, the system also puts a delivery block(VBAK-LIFSK) in sales order at header level so that no further deliveries are made with ref to sales order.
    There is an issue at present that this delivery block is not set in sales order when the delivery is deleted.
    could anybody pls help where the code might have been written to automatically put the delivery block in sales order when the delivery is deleted.
    regards

    Hi,
    Just code the delivery block logic in DO user exit MV50AFZ1 routine "userexit_delete_document".
    Thus, when DO deleted then system will auto set delivery block to SO.
    Hope this help.
    Cheers,

  • Pros and Cons not determining / having a Delivery Plant in Sales Order?

    Hi Mates
    Here I have come-up with one more (weired?) requirement from my client.
    We have two plants manufacturing same product and supplying to all customers (some time in same sales order with two different line items).
    At the timeof creating a sales order, marketing does't know from which plant the material will move and hence they don't want to fill the Delivering Plant field (VBRP-BUKRS at Shipping tab) for each Item.
    They are insisting me to map it as above though I had explained about various pros and cons for not determining a mandatory delivery plant
    in sales order like the requirements and shipping stuff.
    Yet, yet they want this.
    Has anyone come across this kind of requirement before? What best you had done for that?
    Can I ask you what are the Pros and cons on not having a Delivery Plant at Sales Order level?
    what if I could determine it Delivery level?
    Any comments, suggestions, replies and advices are taken humbly.
    Cheers
    Ajay Kumar Veeranki

    Dear Mahulenka
    Thanks a lot for the reply. It do have helped me.
    Yest it is VBAP-WERKS (typo error ).
    Infact I had given the same solution for the issue.
    Interstingly, they are insisting on a better solution fit for their requirement. Anyway shall 'highlight' the points again to them try to get it solved
    Just wondering has anyone faced the same situation before.
    Thanks again for the reply and good luck
    Best Regards
    Ajay Kumar Veeranki

  • About account assignment group in Sales Order.

    Hi gurus,
    I am working in SD for the first time and I am facing below problem
    1. Material code was created  with account assignment group (MVKE-KTGRM)  as blank (Sales Org 2 view)
    2. Later this material was entered in Sales Order.
    3. Subsequently Sales Order BOM and Production Order were made against this material.
    4. We maintained account assignment group in material master after creation of Sales order but account assignment group was not updated in Sales Order.
    5. Now the field is gray out or non-editable is there any way by which we can maintain account assignment group in the sales order.
    6. As the field is non editable we are unable to do Invoice by VF01.
    Is there any way by which we can maintain account assignment group in Sales Order??
    Edited by: Deepak Kulkarni on Mar 6, 2012 2:09 PM

    Hi
    As you have mentioned that you have maintained the acct assignment grp in the material master after the order was created, it will not appear in the sales order item already created and it will only reflect in new orders and changes to existing orders for that material.
    Proposed solution:
    If it is order related billing that you are doing, then goto VA02 and delete and re-enter the item with same material and qty.
    The account assignment group will appear.
    If the item is delivery related and if the delivery has already been created but PGi not done, then delete the delivery and then delete the item in the sales order and re-enter the item as told above. If PGI also done, then reverse the PGI, delete the delivery and re-enter as suggestd in above scenarios.
    The account assignment group will appear in the billing document document tab in item level.
    Regards
    Madhu

  • Purchase requisition with reference to blocked sales order

    Hello,
    we are creating purchase requisitions (PR) manually with reference to a sales order (account assignment Z). When this sales order is blocked, we still can issue the purchase requistion.
    What can we do to avoid this? I think in 2 solutions:
    - use enhancement MEREQ001 to show error message when SO is blocked, so PR is not created. Is this possible?
    - create a release strategy for PR created in that plant (tr. OME6). The problem is that release strategy refers to an amount in the PO, and not to other factor, like SO blocked. Maybe in the former enhancement we can set the field EBAN-GSFRG to 'X'?
    Thanks for your help.

    Many thanks for your answer. It help me to solve the issue.
    So applying note 738171, with transaction OVB5 (or VOFM, requirements->subsequent functions->Purch.requisitions) we create one new requirement, ie RV07A900, and then we apply the rule that if we have delivery or billing block, that is, VBAK-LIFSK or VBAK-FAKSK not empty, then we set an error with a code similar to this:
                da_sy-msgid = 'Z1'.    (message class)
                da_sy-msgno = '001'.  (message number)
                error_exception = true.
    and then the PR is not created.
    Regards.

  • Removing of Delivery block in Sales Order using Authorization

    Hello,
    I have a urgent requirement on removing a Delivery block using authorization.
    The object V_VBAK_AAT is assigned to me and the ACTVT : 43 is permitted so I can release the block.
    As this was  not working I have created my own object with values ACTVT as 01, 02 , 43 and LIFSK : 1-10,11,12-99 .
    I am trying to remove the block from VA14L from VA14L I select my order with respect to delivery block and it navigates to VA02.
    From VA02 I am trying to remove the block.
    As this requirement may be simple but it is blocking my development.
    Thanks.

    Please correct whether I understood your issue correctly or not.
    You have developed the program only to put delivery block to Sales Order. This block should be approved by Authorized people for allowing the users to create delivery else Sales order delivery should not be possible. Is that program has any other additional functionality other than setting Delivery block??
    To keep delivery impossible till the Authorized person approves Sales order, you have the option of User Status. Process for creation of User Status for your requirement
    Create User Status Profile in OIBS
    Keep BLCK (Blocked for Delivery) & APPR (Approved for Delivery) as 2 statuses (No. of status can be as per your requirement. Here, simply I have 2 statuses)
    Assign Object types as "Sales Order Header" (if you want the Authorized people to approve at header level) or "Sales Order Item" (if you want the Authorized people to approve at Item level, may be for partial delivery)
    Keep BLCK as Initial status & Double click on BLCK status & click New entries on "Business transactions"
    There are many Business transactions such as "Create Delivery" / "Create Goods Issue for delivery". As per your requirement, select Forbidden option in one of the above mentioned business transaction
    Create Authorization Key in BS52 for Authorized People, say, as MNGR (Manager)
    Assign that Authorization Key to APPR user status in User status profile
    Using PFCG, you can create separate role by assigning this Authorization key
    This can be different kind of solution from your way. For reference, you can refer below document. Document content points some other space & transaction. But you can relate to above steps mentioned.
    User Status in SAP

  • Inbound Delivery from repair sales order is wanting to do a delivery split

    I have a strange issue.  I created a sales order for repair using notification, sales order.  When trying to do a receipt it is giving me an error that says delviery split due to different shipping points.  There is only one line item on this order...This part is not set up at all in our other plant just the one it is coming into.  The dlivery plant is set to the same plant.....customer master does not read two different addresses....other material seems to work fine...it is just on this one material....can anyone advise what is happening?

    Hi Kimberly,
    In these type of scenario, generally company maintain the two plants.
    One for delivery and second for receipt the goods from customer (Which are coming for servicing or maintenance).
    I think you are directly go to VL01n and enter the shipping point, date and order, when you enter then system shows you this error.
    Do one thing,
    Go to VA02 --> Enter your order number --> Enter --> On overview screen --> Click at "Sales document" (Menu) --> Click at "deliver"
    it will directly take you the delivery overview screen.
    Please try and revert back with your findings.
    Regards,
    MT

  • Outbound delivery creation - one sales order

    Hi,
    We have an issue on locking of delivery processing of sales orders with two plants.  Is it possible for the two plants to create/change the outbound delivery at the same time? If yes, how?

    Hi,
    This is because plant 2 is processing delivery -2 with reference to sales order.
    So when you want to process deliver -1 then same already created with reference to sales order. it means both delivery cant be accessed one time because reference is sales order, so it lock
    If you want to pick both at same time,
    Then assign one shipping point to both plants, so when you create delivery both item will copy in delivery,then pick both at same time.
    kapil

  • Outbound delivery document from Sales order

    Hi ,
    While creating the outbound delivery document from Sales order, all the line items of the Sales order are populated in the Delivery document. The line items where stock is not available, the line is still populated in the delivery document with zero quantity.
    Pls suggest the way in config, so that at the time creation of the delivery document system to populate only the lines with the available stock.
    Thnx

    Hello Soumya
    I could not able to find any std transaction or config via you could restrict it. However you also no till 'Picking' not completed user is not able to make postings... so i couldnt see any issue in this.
    Still you need to restrict this, you to configure User Exit via you can restrich the lin items to come in delivery for no stock item.
    Amol

Maybe you are looking for

  • Info record Po text not printing in Po

    Hi all,          Info record po text not printing in po print out. Info record po text showing in po at item level but it was not printing in po. In info record No matl text checked. In material master no text maintained. please help on this         

  • JAVA to retrieve MDM data

    Hi, Can any one point me the step by step to connect, retrieve data from SAP MDM with NetWeaver Developer studio.. I have installed NWDS and MDM 5.5 SP06 .. I tried by importing jar files in to NWDS preferences.. But I am unable to connect to MDM.. I

  • Deleting large numbers of photos

    I shot a high school football game last night with my D3. Using 9 fps, I quickly ended up with lots of pictures to sift through. Being very selective to print only the best, I am throwing away 90% of what I now have in Lightroom 2. I have a slow old

  • Solution Manager 3.2: SLD server connection is inactive SCDT_LIS_IF011

    Trying to execute an automatic data transfer from SLD to Solution Manager 3.2 with transaction SMSY_SETUP, I have recieved the update log message: The SLD server connection is inactive Message no. SCDT_LIS_IF011 SLD Connection Test displayed: No busi

  • Outbound Interface(Applicaion server)

    Hi all, currently iam working on outbound interface,in which i have the data in one internal table,now i need to download this to application server with this path '/usr/sap/ED1/file.txt',can anyone give me the logic or code to do this. Points assure