Automatic STO-Delivery & PGI

Hi Guys,
The material have been extended to both the receiving and supplying company code(Plant).
Supplying company is created as vendor in receiving company(Plant).
Receiving company is created as customer in receiving company(Plant).
All inter company STO settings have been made.
Our requirement is we need to do auto delivery and PGI ,as we will get material delivered and qty from third party software at weigh bridge.
We need to avoid using VL10D and VL02N. This should happen automatically.
We have initially tried working out this doing some more configurations.
# SPRO > Purchasing > Purchase Order > Set up Stock Transport Order > Activate Automatic Delivery Creation and CRM Billing
# Activate Automatic Delivery Creation for PO Type and Shipping Point
We need to know what is the steps to do automatic delivery & PGI. I don't have idea on what the steps involved in this process.
1069448 - Outbound delivery not created automatically in ME21n for STO
986195 - No scheduling in automatically created replenishment deliv.
Have read these two notes,but could not able to get clear idea on it.
Is it possible in standard or any ABAP development is needed. Kindly advise.
Thanks,
Subbu

Hi,
   Please set the configurations in the path, for your shipping point, PO doc type and plant:
1. OLME - Purchase Order - Set up Stock Transport Order - Activate Automatic Delivery Creation and CRM Billing
2. OLME - Purchase Order - Set up Stock Transport Order - Activate Automatic Delivery Creation for PO Type and Shipping Point
   Now maintain the settings in VL10CUC transaction as below:
   Now, create the PO with correct document type and check the shipping tab for the shipping details. You may also check the ATP by selecting the item and click and the ATP button in ME21N. Also check whether any warning message is issued in PO.
   If you save the PO, the delivery will be created automatically while you save the PO. No need to schedule any background job. Please note that the system wont do PGI automatically, as of my knowledge.
   If its not created, check whether you are able to create delivery in VL10B and revert back with your SAP release details.
Regards,
AKPT

Similar Messages

  • Automatic Delivery, PGI and Billing

    Hi SD gurus,
    Will appreciate the feedback on this. In standard SAP, upon creating and saving of sales order, we need to create outbound delivery ( and do picking for picking-relevant item ), then do PGI. Upon that, create billing document and save.
    My question is, if upon creating and saving of sales order, I want to make the subsequent processes runs automatically, how can it be done ?
    The triggering part from saving the sales order - can that be done via userexit ? If so, which userexit can I look into ?
    For the automation of delivery, PGI issue and billing, are there any BAPI or userexit that can accomodate that ? If so, can anyone be kind enough to pinpoint to me how to locate it and if possible, what are the key things I need to look into ? I believe it can be done via BDC as well but I'm not too sure how to go around it.
    Really looking forward to some valuable feedbacks here. Many thanks way in advance.
    Warmest Regards,
    Janice

    Hi Janie,
       You can also create a BDC program where everything would be created on its own.You can take the help of ABAPer for this purpose.
    It will also do the availability check and in your program you can create the logic that PGI would be done only if the confirmation date in the schedule line is today's date.
    We ourselves have created the same scenario in our own project and it has worked really well.
                                               OR
    Configure the sales order such that the delivery is created on saving the document. This can be achieved in sales order type.
    Create a Batch job which does the subsequent steps.
    On creation of delivery, use the function module 'ws_delivery_update' or 'SD_DELIVERY_UPDATE_PICKING_1' or 'BAPI_OUTB_DELIVERY_CONFIRM_DEC' [take the Help of an ABAPer] to perform the PGI. In the end use the transaction for billing due list to create the billing documents.
    Reward points if it works.
    Regards
    Karan
    Message was edited by:
            Karan Bhatia

  • Automatic creation of delivery ,pgi and billing as soon as ordrer  is creat

    Hai gurus,
                Can we do automatic creation of delivery,pgi and billing as soon as order is saved.
    Plz explain ?
    Thanks in Advance
    sameer

    Hi sameer,
    unless the standard program is modified you cannot do auto pgi. However batch jobs can help creating a delivery afer sales order. But incase WM is implemented then we can for the required delivery movment types create an automatic transfer order and confirmation. This brings us closer to some extent in the task. Then schedule again a job that does PGI.
    can you please however explain the business need for auto pgi. It helps us to learn something as well.
    regards
    sadhu kishore

  • PGI reversal issue for STO Delivery

    Friends,
    While I am trying to reverse the PGI using VL09 for a STO delivery, I get an error " E M7 022: PU withdrawn quantity exceeded by xx Ton : Material, plant and storage location".
    Looked at the OSS notes but could not arrive at the correct one.
    Please help as this is an urgent issue.
    Thanks and Regards,
    Ram
    Edited by: Ram Murthy on Apr 25, 2008 2:13 AM

    If you are shipping from, for example, plant 100 to plant 200 then when you PGI in100 the inventory is immediately placed into plant 200 inventory in special stock "in transit". If the two plants are in different company codes then it is placed into "In transit CC".
    Please check in transit stock is sufficient to be reduced by the cancellation of the PGI.
    Regards,
    Brian

  • STO Delivery (NL) Automatic Pickup Billing Type in VF01

    Dear friend,
    I have created PO for STO and delivery (Delivery Type NL) through billing VF01, working fine.  But when I create the Billing VF01, billing type (JEX) is not coming automatically. I am selecting manually the billing type. 
    I have already maintained the copy control (T-code - VTFL) against Delivery document to billing document.  I canu2019t create the sale order type.
    Is there any configuration or option to automatic pick up of billing type STO delivery(NL).
    Useful answers duly rewarded
    Devendra

    Devendra,
    We have achieved teh same using USer Exit in Delivery (MV50AFZ1)
    Form : FORM USEREXIT_MOVE_FIELD_TO_LIPS
    Created one Z Table - ZBLTYP
    with fields: Delivery type, WERKS, Prposed Billing Type
    Codes for picking up as below:
    SELECT SINGLE * FROM zbltyp
    WHERE werks = lips-werks
    AND lfart = likp-lfart
    IF sy-subrc EQ 0.
    likp-fkarv = zbltyp-fkarv.
    ENDIF.
    We have achieved automation based on Plant. If you do not need Plant as criteria then u can drop the logic accordingly.
    Your techical person will help you in the same.
    Sandeep

  • MM flow(PO,delivery,pgi,invoice)

    Hi all,
    i want to create PO,delivery,pgi,invoice in MM flow .
    can any any body tell me transaction code.
    and also is there any bapi for MM Document flow?
    thanks in advance.

    Follow STO Process for this;
    1.Create a vendor for the company code of receiving plant, using account group :0007 using T-Code XK01.
    2. Assign this vendor to Delivering plant
    Go to XK02 >Purchasing view>Extras>Add. Purchasing data>Plant
    3. Create internal customer with the sales area of the vendor. Go To XD01
    4. In Pricing procedure determination relevant to STO, assign document Pricing Procedure and customer pricing procedure appropriate for STO to get the pricing in the invoice.
    5. Maintain condition records for the relevant pricing condition.
    6. Some more setting for STO: Go to MM> Purchasing > Purchase Order > Set up STO > define shipping data for plants > Go to Receiving plant >assign customer here & Supplying SA (for billing) to Receiving plant here
    7. Go to MM > Purchasing > Purchase Order > Set up STO > define shipping data for plants > Go to Supplying plant and assign the sales area of receiving plant.
    8. Go to MM > Purchasing > Purchase Order > Set up STO > assign delivery Type & Checking rule
    Assign the delivery type to document type. In this case, Delivery type NLCC is assigned to Document type NB
    9. Go to MM> Purchasing > Purchase Order > Set up STO > Assign document Type, One step Procedure, Under delivery tolerance
    Assign the document type NB to supplying plant and receiving plant
    10. After all settings , Create the STO using T-Code:ME21N and maintain pricing conditions of freight and Save.
    11. Create Delivery :VL10G
    Click on the Background Button after selecting line item
    A message is flashed : See log for information> next Click on Log for delivery creation Button >click on line item>click on document button to get Delivery document No
    12. Picking, PGI:VL02N
    13. Billing:VF01
    Save the document and its done
    14. J1IIN - Outgoing Excise Invoice
    15. MIGO - Goods Receipt against outbound Delivery
    16. J1IEX - Capture & Post Excise Invoice
    Pricing configuration for STO: -
    In SPRO > MM > Purchasing > Conditions > Define Price Determination Process > Define Schema Determination > Determine Schema for Stock Transport Orders > Here assign Calculation Schema "RM2000" i.e. Stock Transfer Document to Schema Grp Pur. Org, STO Type (For e.g. UB) and Supplying Plant.
    Calculation Schema "RM2000" has condition type P101 which will pick up the MAP of supplying plant automatically during creation of STO in ME21N ("Conditions" Tab).
    You can create new freight / delivery cost conditions in M/06 and assign in pricing procedure "RM2000" in M/08 and also assign the Accrual Key to this and do the Account Determination for this Accrual Key in OBYC
    At the time of PGI, following accounting entry will get generated;
    Stock A/c - Dr - 110 INR (Receiving Plant)
    Stock A/c - Cr - 100 INR (Supplying Plant)
    Freight Clearing A/c - Cr - 10 INR (Supplying Plant)

  • Possiblity of STO delivery in foreground

    Hello Friends.
    Point 1
    I am creating delivery against STO in background after getting the due list from VL10B. Client is insisting not to do the background delivery. They are asking for the same kind of option of creating delivery as against VL10E.
    Is it possible to create STO delivery in fore ground. If yes, then please guide me how to do it. If not, can I get any sap note which confirms this thing which I can show to my client.
    Point 2
    I am determining batch during the delivery creation. During batch splitting system is giving the batch no & corresponding batch qty. while doing the picking I am entering manually the picking quantity against respective batch no & batch qty. From few threads in forum I noticed that this manual entry of pick qty has to be done. But client is insisting to have automatic entry of pick qty against batch qty.
    If this manual entry of pick qty is the standard sap practice, can I get any write up or note from SAP which I can show to my client.
    Regards
    Debesh

    Hi All,
    Can you please advice on this issue. is there any SAP note regarding this issue.(I tried but could not find anyone)
    Thanks.
    S J

  • Not able to do GR for STO delivery with packing.

    Hi All,
    Hi All,
    I am not able to do GR for STO delivery.
    I am getting the following error:
    Data for creating a delivery is incomplete (Vendor)
    Message no. M7279
    Business scenario:
    STO between two plants of same company code with packing material.
    Sales Org(Supp)-4444
    Sales Org(Rec)- 3333
    Plant(Supp)-2003
    Plant(Rec)-2002
    ME21N->VL10B->PGI->VF01(Proforma)->MIGO w.r.t outbound delivery(error)
    Note: PGI with packing material-separate line item generated for packing material-movement type for main material-641 and for packing material-601)
    with regards
    Azeez.Mohd

    Hi,
    When the stock is going to be moved between two plants or two storage locations that are under single company code called as stock transfer order business process. Receiving plant raises the purchase order with supplying plant; supplying plant delivers the goods to the receiving plant by raising sales order.
    Config Steps
    Create Vendor: Transaction code: XK01
    Assign Plant to Vendor
    Go to change mode of Vendor [XK02]
    Specify Vendor number that we created in the previous step
    Define shipping data for plants
    Create material by maintaining u201CPurchasingu201D view: Transaction code: MM01
    Extend the material from XXXX to YYYY plants
    As we are extending material from plant XXXX into YYYY plant, system copies all the data into the new plant.So that we have to change the delivering plant in delivering plant field as YYYY in Sales: Sales organization data 1 view.
    Create Purchase order: Transaction code: ME21N
    Activities due for Shipping (Purchase order fast display): Transaction code: VL10B
    Display stock in transit: Transaction code: MB5T
    Goods receipt: Transaction code: MIGO
    Stock movement types: INTRAand INTER
     INTRA
    Stand order type (Document type) = UB
    Delivery type = NL
    Determination of document type:
    Supplying plant + Receiving plant = UB
    Supplying plant + UB = NL
    Movement types:
                      Issuing plant Receiving plant
    Single step    647                        101
    Two step        641                        101
     INTER
    Standard order type (Document type) = NB
    Delivery type = NLCC
    Determination of document type:
    Supplying plant + Receiving plant = NB
    Supplying plant + NB = NLCC
    Movement types:
                            Issuing plant Receiving plant
    Single step              645               101
    Two step                 643                101
    PBXX is the Gross price condition type for Stock Transfer Order
    Vendor = Supplying plant
    Customer = Receiving plant
    NOTE: In single step method updations takes place in both plats simultaneously.
    In two-step method updations should takes place manually.

  • Error in Batch determination in STO delivery

    Hello Gurus,
    When i m doing batch determination in STO delivery, system is throwing error "Batch determination is not possible because there is no search procedure."
    I think search procedure is assigned to sales doc types. Please correct me if i m wrong. This is working fine in case of normal sales cycle(Order-delivery-Billing). As the scenario is STO, the delivery is made against PO so this should not be reason for this error.
    Also i have maintained Auto batch deter. at delivery item category level, but still getting the same error.
    Please advice.
    Thanks in advance,
    Kind regards

    All,
    I have the same issue with my stock replenishment deliveries.  One question I have is what module should the configuration be for Auto Batch Determination on deliveries from STPO's, is it SD or MM?  The reason I ask is because I have the SD side working just fine for example if I enter a customer order for this material and issue a delivery against it I get a batch automatically assigned according to your search/sort criteria.  I know with a Stock Transport you have different item categories etc. and I have flagged them as relevant for ABD.  I have been racking my brain regarding this and I have went through the configuration for both Inventory Management and Sales and Distribution.  I have went through the steps several times.  I am not seeing what I am missing any help in this arena would be helpful I am getting the following error message when I go to the batch tab on the replenishment delivery "Batch determination is not possible because there is no search procedure".  I am at a loss to what configuration is needed.  I keep going through the steps and I am not finding whats missing.  Any help in this area would be most grateful.
    Thanks,
    Jeremy

  • Automatic Invoice and PGI after salesorder(userexit_document_save)

    Hi All,
    Here my requirement....
    I need to do automatic Invoice and PGI for cash sales in Sales order.
    For this, I coded inside the userexit_save_document, in this userexit i'm getting the sales order number to create Invoice and delivery number to create PGI but the issue before this userexit the sales order and delivery are created but not yet committed. So, when I am trying to create pgi and invoice in this exit.... it says the document doesn't exit.
    Could anyone suggest me an methos to do that.
    fyi: in my current approach for PGI im executing the standard report 'WS_MONITOR_OUTB_DEL_GDSI' using submit by passing the delivery number .............output says 'document don't exist'
    for Invoice : I recorded the transaction 'VF01' and updating using bdc in funtion module, this function module is called from userexit_document_save using 'call function zffucn IN UPDATE TASK'..........this creates runtime error and shortdumb. when I looked in sm13 error says '00 671: ABAP/4 processor: POSTING_ILLEGAL_STATEMENT' , short text says 'Statement "CALL TRANSACTION" is not allowed in this form.'.
    is there any better way to do this???
    any suggestion will be appreciated
    Regards.

    Hi,
    I tried using perform ...ON COMMIT....
    Now i can clearly see that the sales order and delivery is created (message is displayed in the status bar)..
    when i debug the code.....this is executed at last i.e  but still it shows that 'Document xxx does not exist'. SO, I believe it is not yet committed to database.
    If I exit from that screen and enter into vf01 or standard report then it works...so its getting committed only getting out of that transaction ....i think there is some small change is missing...could anyone give suggestion.
    regards.
    Edited by: Shankar Raju Devadoss on Mar 17, 2011 11:07 PM

  • Intercompany STO Delivery Creation

    Hi  Experts
    Scenario: Intercompany STO Delivery creation.
    When delivery creation though Tcode - VL10B, in the shipping side if no enough stock, is it possible stop creating delivery orders and  to throw error.
    I dont want to use the P.O side ATP check settings, as P.O raising shouldn't be stopped.
    Appreciated your help.
    Regards
    GJ

    Hi
    OVLP - Avilablity Check Indicator is Set Blank already.
    However, currently even if no stock also still the delivery order able to be created by VL10B. Just only can't do PGI.
    Requirement is First place the delivery creation in VL10B itself to stopped by showing error as deficit of stock for the material.
    All the settings in Purchasing --> Purchase Order --> Setup stock transport order seems it relevant to the Purchase Order not to control the delivery creation.
    Appreciated further advise.
    Regards
    RG

  • Automatic billing after PGI

    Dear Friends,
    I want the billing to be generated automatically after clicking PGI (not after saving the delivery).
    How can this be achieved?
    Thanks & Regards
    Ratna Kumar

    Hi,
    You can use the BAPI for the same to create the invoice after PGI. I think you can use BAPI_BILLINGDOC_CREATEMULTIPLE. You need to take help of the ABAPer who will be able to pass on the right parameteres into this BAPI so that the invoices get created when PGI is done.
    Also, you can try with BAPI: BAPI_INCOMINGINVOICE_CREATE
    I have attached a couple of links which may help you and your technical person to resolve this issue.
    Call BAPI to Create Invoice During PGI(VL01N) via BADI
    BAPI to Create a invoice after PGI
    Hope this helps.
    Thanks
    Mukund S

  • PO to delivery, PGI and Invoice(profarma) in Background

    Hello experts,
    when I am saving the PO(purchase prder), In background (Automtically) should create Delivery, PGI and Invoice(Profarma Invoice).
    In PO Base price should pick  from Legasy system, same price should reflect Invoice, But in Invoice Excise duties should pick from sap R3 system based on Condition Records. with reference to profarma invoice we can create the Excise invoice.
    Could any one please help me for this.
    Is any standard settings available for this, or shell we have any standard progrm/ exits?
    please explain how to reach this requirment.
    Thanks
    Ravindra

    Hi Ravindra,
    Why do you need to do all this automation?
    Have you thought that how much technically complicated will it become?
    How your Picking will be updated with Batch or Serial number data?
    If any changes needs to be done then how will it be happened?
    How you will manage other special scenarios related to your cycle?
    Client will just assume saying that when they had said automation you are already considering all the scenarios related to business and they all will be executed properly.
    It is easy for users to ask for end to end automation, but it is tough for Functional and Technical consultant to make it happen with all the scenarios of Client running properly with exact results.
    I will suggest convince them to do process in part basis. You can think to create Delivery automatically, but tell them to Do Picking / PGI manually. (All complex scenarios will come while Picking and PGI only)
    You can create BDC for Invoice creation.
    Regards,
    MJ.

  • Block the Material at Item level in Sales Order automatically for delivery

    Hi!
    My business scenario needs a material to be Ckecked for Inspection after raising the Sales Order by thirdparty person. So, I need to block that particular material at Item level automatically for delivery and rest of the line items can get delivered. I can do this by selecting the reason for Block at Item level manually, but I want the system to get detemine this block. And one more thing is that there is NO Quality Management module for this. So, let me know what I need to configure for this effect.   Thank you.....

    hi,
    pl check the user exit " userexit_save_document_prepare" or "userexit_save_document".
    Take the help of your abaper to see if the logic written here can affect the item level block in the sales order for inspection. Create new reason for the item level block and have it triggered with this exit. Instead of hard coding which might require regular intervention of abaper for code changes for the business to be able to manage it, maintain a master data in the material master against some field with a key.
    now use that key to identify if these materials require to be blocked at the sales order level for inspection. To release this item again the user has to go in VA02 mode to release the block. Let this be done after the inspection of that material.
    regards
    sadhu kishore

  • Issue in creating a STO Delivery

    Hi
    We are trying to create STO delivery for a particular product.
    There is enuf stock for the product in the supplying plant, however there is no  STO delivery created and control returns back to R/3 with  BAPI_APO_ATP_CHECK error.
    One peculiar thing abt the product is that the product has a field SATNR( Cross reference plant - which is populated with a configurable product.
    The configurable product is maintained in APO.
    Can you provide any leads what possibly could be the reason and if anyone has faced this kind of issue.
    Thanks
    Amruta

    Hi Amruta,
    There could be reasons like mismatches in stock, mismatches in sto between ECC and APO which can leads to non-delivery creation.  Also, please check whether the stocks are placed in storage location which will be recognized by APO for delivery creation.  The error you have received indicates that either the stock or the sto is not available at ATP during ATP check performed during delivery creation.
    Regards
    R. Senthil Mareeswaran.

Maybe you are looking for