Stock booking for sales orders using APO gatp

Hello Experts,
We are having similar case as YR, for which I'm searching for a solution. > (Putting this in a separate thread so that I can reward points)
We have certain sales orders (which are created on portal) for which we need to book stocks. These orders have different ord type. We want to give priority to these sales orders against existing/upcoming stocks. (For these orders, no customer master exists, kind of one-time).
Requirement is - Portal orders are placed according to the updated stock on portal (frequent run programs). But at the time of actual delivery creation, it happens that no stock available for the order and existing stock 'robbed' by other sales orders/deliveries meanwhile. We want to give 'portal orders' more priority than other normal orders/STOs.
We have receipt elements in Purchase orders only and no production orders. Also, portal orders are not subjected for gatp check, once the order is saved, a sales order is triggered & created in ECC (XI/PI) against dedicated Plants/Warehouses.
We have gatp and trying to find solution for it. Could you please guide how to book stocks for these 'priority orders' against existing unrestricted-use stock & against upcoming purchase orders?
Thanks a lot!

Hello Babu,
Thanks for your inputs. I would like to get into more details of what you mentioned about delivery priority. In my case, any customer places online order on webportal (based on current stock on portal which we frequently update through programs) and once the order is saved, a Sales order is created in ECC for a "one time customer" (there are hardly 2-3 customers for the e-orders), for which gatp check happens and stock is assigned as per availability and delivery date is assigned. So basically issues are
1. Order in ECC should be placed with successful gatp check & confirmation - chances are of stealing stocks in between the 'time gap' of stock update on portal & order placing till order creation in ECC with gatp check >> for this we are working on stock update programs.
2. Once delivery date is assigned to the order after successful gatp check, during the time of delivery creation, there are other STOs which steal stocks & create outbound deliveries before the portal order. Here we want to stop the 'robbing'.
So looking at this aspect, could you please elaborate the point of -
"Since you have a different sales document type, why don't you assign a higher delivery priority to these orders during ATP check ? You can influence the default delivery priority that comes from customer master to a very high delivery priority just before the ATP check ( use field catalogue user exit ) and pass the high delivery priority to APO"
And how can we use field cataloguser exit?
And ya, we may not need ROC, as there will be no one ready to 'Donate' But thanks for highlighting the option as well..
Thanks

Similar Messages

  • Upload the data for sales order using BAPI

    hi experts,
    how to upload the data for sales order using BAPI.
    what is the FM?
    it would be much helpful if i have the sample code as i am very new to BAPI.
    thanks and Regards
    Shyam

    Hi  Shyam
    Its very useful for u
    BAPISDORDER_GETDETAILEDLIST
    BAPI_ACC_SALES_ORDER_CHECK
    BAPI_ACC_SALES_ORDER_POST
    BAPI_ACC_SALES_QUOTA_CHECK
    BAPI_ACC_SALES_QUOTA_POST
    Reward all the helpful answers..
    With Regards
    Navin Khedikar

  • Down Payment processing for Sales orders using Milestone Billing Plan

    Hi,
    The business scenario is as follows.
    The delivery for the sales orders are to be created only after the pre payment( a percentage of the total sales order value) is made by the customer.
    Hence the sales orders while creation are blocked for delivery creation using credit block by means of a userexit.
    The credit manager checks the blocked sales orders using VKM1 transaction and verify if there are any payments made by the customer to cover this pre payment to be made.
    If it is enough to cover then he releases the sales order manually for delivery creation.This is a complex process since there are too many sales orders and the payments made by the customer may not match the amount to be paid(it can be greater or lesser).The customer just pays a huge amount which is to be distributed among the sales orders for pre payments.
    Later, when the invoice is created, the customer account is cleared manually using F-32 transaction for the oldest open invoices.
    Here again there is a huge manual effort involved since he need to distribute the amount against the invoices using oldest open item principle.
    As a solution we are planning to implement "Down Payment processing for Sales orders using Milestone Billing Plan".
    Is this the right solution?
    Can you please give the steps in detail to implement this functionality for above scenario?
    We are using SAP 4.7 version without Project Systems.
    Thanks in advance.
    Regards,
    Ragesh

    Hi Ragesh
    Check the links where you will get the entire down-payment configuration
    [https://forums.sdn.sap.com/post!replydownpayments ]
    Regards
    Srinath

  • Stock reserver for sales order

    Dear All
    1. MMBE-Check the stock with batch no 6000000340 with 200 qty
    2. Sale Order Created-
    3. MB1B - Used Movement type 412 E with Inputs such as Sales Order,[warning message: sales order is not provided for this goods movement] after pressing the document is posted
    4. In MMBE When i check the stock under batch no 6000000340  with 150 qty in unrestricted stock and Sales order Stock  i can see the 50 quantity stock
    Query is
    1. Why the 50 quantity stock which is reserved for Sales order stock is seen under unrestricted stock and not under  Reserved tab
    2. When i create delivery  with the same material and  batch no, the stock is reduced from unrestricted stock[150 -10delivery qty] = its showing 140 qty, but stock should be reduced from 50 quantity which i have reserved for Sales order.
    Please guide
    Regards
    Sandeep Bhowmick

    Hi Sandeep
    Visualize this scenario
    Material is pen in MMBE unrestricted stocks is 100
    Sales order created with item cat TAN with special stock indicator E not marked and the order no is say 55 for 10 qty
    Now you are reserving stocks in t code MB1B with movement type 412 E inputting the order no xx and saving it
    Now in MMBE put the material as pen and input plant and storage location etc press F8
    unrestricted stocks will be 90
    Sales order stocks will be 10
    If you click on the details of this sales order stocks you will see the order no xx and qty will be 10
    (read your first post exactly the same of this)
    now are delivering the sales order and doing the pgi
    Now in MMBE
    unrestricted stocks will be 80
    Sales order stocks will be 10 (this exactly is your problem)
    that means the system having a reservation in MMBE for a particular sales order xx not utilizing those stocks and still takes the stocks from the unrestricted and this is wrong
    This is happening because the item cat TAN is not marked with special stock indicator E during order creation of xx
    Now mark the item cat TAN with special stock indicator E and create a fresh cycle say order no yy
    When you do PGI for order no yy the unrestricted will be 90 and there wont be any sales order stocks as the stocks are already PGIed
    That means the system picks up the correct stocks for delivery
    The system behaves very perfectly When there is sales order stocks in MMBE i dont  understand ,what is the reservation you are talking about
    Regards
    Raja

  • Stock destroy for Sales order

    Dear All,
               We are using MB1B - movement type 411 E for stock destroy of sales order. But we want to destroy all the sales order in only one transaction.
               Is there any way to do it ?
    Regards,
    Sandip

    I don't feel there is any mass transaction for this.
    Try LSMW.
    Thanks & Regards
    JP

  • FM to get purchase requisiton created for Sales order in APO

    Hello experts,
    I want to know is there any FM or BAPI exists in APO to get Purchase requisiton created for a sales order created in R/3 using sales order number? and FM or BAPI to get the sales order config data. if the mapping of sales order and purchase requisition is in Table, Please mention those tables also.
    Many thanks,
    Senthil

    Hi,
           Please see the below link for useful SCM BAPIs....
    http://wiki.sdn.sap.com/wiki/display/SCM/SCM+BAPIs
    For sales order config data, BAPI_SLSRVAPS_GETLIST2  is available.
    Regards,
    Saurabh

  • Creating Billing Plan data for sales order using BAPI

    Hello,
    Someone ones if there is any way to create a sales order (BAPI) and then create a billing plan (by means of another BAPI)?
    Or is there any way to create both at the same time?
    Kind Regards.

    Hi David and Nisha here is the code for creating sales order with bapi
    *& Report  YOBJ_BAPI_SALESORDER
    *& REPORT : CREATING SALES ORDER USING STANDARD BAPI
    *& AUTHOR : S.PAVAN KUMAR INUMARTHY
    REPORT  YOBJ_BAPI_SALESORDER.
    DATA : ORDER_HEADER_IN LIKE STANDARD TABLE OF BAPISDHD1 WITH HEADER LINE.
    DATA : ORDER_ITEMS_IN LIKE STANDARD TABLE OF BAPISDITM WITH HEADER LINE.
    DATA : ORDER_PARTNERS LIKE STANDARD TABLE OF BAPIPARNR WITH HEADER LINE.
    DATA : RETURN TYPE STANDARD TABLE OF BAPIRET2 WITH HEADER LINE.
    DATA : SALESDOCUMENT LIKE BAPIVBELN-VBELN.
    *APPENDING VALUES FOR HEADER.
    ORDER_HEADER_IN-DOC_TYPE = 'TA'.
    ORDER_HEADER_IN-SALES_ORG = '1000'.
    ORDER_HEADER_IN-DISTR_CHAN = '10'.
    ORDER_HEADER_IN-DIVISION = '00'.
    ORDER_HEADER_IN-SALES_GRP = '130'.
    ORDER_HEADER_IN-SALES_OFF = '1030'.
    APPEND ORDER_HEADER_IN.
    *APPENDING VALUES FOR ITEM
    ORDER_ITEMS_IN-MATERIAL = 'M-13'.
    ORDER_ITEMS_IN-PLANT = '1000'.
    ORDER_ITEMS_IN-SALES_UNIT = 'ST'.
    ORDER_ITEMS_IN-DIVISION = '07'.
    ORDER_ITEMS_IN-GROSS_WGHT = '28000'.
    ORDER_ITEMS_IN-NET_WEIGHT = '28000'.
    ORDER_ITEMS_IN-UNTOF_WGHT = 'KG'.
    ORDER_ITEMS_IN-VOLUME = '0.780'.
    ORDER_ITEMS_IN-VOLUNIT = 'M3'.
    APPEND ORDER_ITEMS_IN.
    *APPENDING VALUES FOR PARTNER
    ORDER_PARTNERS-PARTN_ROLE = 'AG'.
    ORDER_PARTNERS-PARTN_NUMB = '0000001000'.
    ORDER_PARTNERS-COUNTRY = 'DE'.
    ORDER_PARTNERS-TRANSPZONE = 'D000080000'.
    APPEND ORDER_PARTNERS.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
    *   SALESDOCUMENTIN               =
        ORDER_HEADER_IN               = ORDER_HEADER_IN
    *   ORDER_HEADER_INX              =
    *   SENDER                        =
    *   BINARY_RELATIONSHIPTYPE       =
    *   INT_NUMBER_ASSIGNMENT         =
    *   BEHAVE_WHEN_ERROR             =
    *   LOGIC_SWITCH                  =
    *   TESTRUN                       =
    *   CONVERT                       = ' '
    IMPORTING
       SALESDOCUMENT                  = SALESDOCUMENT
      TABLES
       RETURN                         = RETURN
       ORDER_ITEMS_IN                 = ORDER_ITEMS_IN
    *   ORDER_ITEMS_INX               =
        ORDER_PARTNERS                = ORDER_PARTNERS
    *   ORDER_SCHEDULES_IN            =
    *   ORDER_SCHEDULES_INX           =
    *   ORDER_CONDITIONS_IN           =
    *   ORDER_CONDITIONS_INX          =
    *   ORDER_CFGS_REF                =
    *   ORDER_CFGS_INST               =
    *   ORDER_CFGS_PART_OF            =
    *   ORDER_CFGS_VALUE              =
    *   ORDER_CFGS_BLOB               =
    *   ORDER_CFGS_VK                 =
    *   ORDER_CFGS_REFINST            =
    *   ORDER_CCARD                   =
    *   ORDER_TEXT                    =
    *   ORDER_KEYS                    =
    *   EXTENSIONIN                   =
    *   PARTNERADDRESSES              =
              IF SY-SUBRC = 0.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    *           EXPORTING
    *             WAIT          =
    *           IMPORTING
    *             RETURN        =
               ENDIF.
    WRITE : 'SALES ORDER IS :', SALESDOCUMENT.
    I have tested and go it.
    please go through it

  • Update Delivery Text - As done for Sales order using RTEXT-SELKZ

    Dear all,
    We have to update the delivery header texts. But could not find the exact field name for the BDC .
    The similar field name for Sales order is RTEXT-SELKZ.
    Thanks in Advance,
    Regards,
    Vivek K

    Hello,
    if you need to update delivery header texts ,then you can get text data from input file .& then find out what's the text id where you have to insert text data.
    Text id,object,language,Text name ,these 3 fields can help you from delivery.
    Delivery-> display->header-> select particular text-> presss details icon->goto->header.This path will give text id ,object name details of the required text.
    Then use function save_text to load this data for each delivery .
    Hope this helps.
    Thanks.

  • Stock reservation for Sales Order

    Dear Friends,
    My requirement is to reserve the stock for a particular sales order.
    Material is Make to Stock.
    I tried with transaction code MB1B/MB1C/MB1A with movement type 412E/561E/232E for a particular sales order.
    If I view stock overview with transaction code MMBE,I can see the stock is reserved for a particular sales order.
    Now when I am creating delivery for this reserved stock with reference to another sales order,delivery is created.Logically it should not happen.Delivery should create only with reference to particular sales order for which stock is reserved.
    Here I checked OVZ9 and ensured tick is for include sales reqmts.
    Special stock is blank for sales order item category.Transaction code is VOV7.
    If I make the sales order item category as E and if I am trying to create a delivery for sales order for which stock is not reserved system does not allow to create delivery.
    Please suggest me how to meet my requirement.I want to reserve the stock (Make to stock) only for particular sales order.
    Thanks in advance.
    Regards,
    Shrikant

    Dear santosh/Kapil,
    Thank you very much for your immediate reply.
    Santosh stock is getting reserved but still I can despatch this reserved stock against a sales order for which this stock is not reserved.
    Details are as below,
    Material---- ABC,Batch is xyz,batch quantity is 2 TO
    Sales orders are 111,112,113,114 and so on.
    Now as per your advise I have done the reservation for SO 111 for material ABC for batch xyz.
    When I checked MMBE it shows that material ABC of batch is reserved but I could not see SO number here but yes in reservation I could see the sales order number.
    Now I tried to create the delivery for SO 113 for which the batch xyz is not reserved it is reserved for SO 111.But still I could create delivery for SO 113 for batch xyz.
    I mean batch xyz is reserved for SO 111.
    Am I missing anything here.
    Dear Kapil,
    I do not want to reserve the entire order quantity of sales order.I mean only on few ocasions I want to reserve the stock.
    I mean today I want to reserve partial quantity of sales order.
    Regards,
    Shrikant

  • Stock allocation for sales orders with batch job

    Hi Friends
    We have  a batch job to allocate stock for sales orders which runs every week , currently this batch job is meant for plant 1000 with availability check procedure Z1 .
    I need to incorporate for same batch job plant 1000 with availability check procedure Z2
    Just I need to know that there is any  potential impact and it  causes any problem ?
    Thanks In Advance
    Rusheek

    Hi,
    Check what difference is between procedure Z1 and procedure Z2.  As we cant see this, you will  have to analyze what Z1 was doing and what Z2 is expected to do.  Broadly speaking this is preety subjective to your project.
    You analyze and try to find out the impacts.  If needed take help of abaper.
    Rgds,
    SB

  • Outbound idoc process for sales order using message control

    Hi All,
        I am changing sales order using VA02 , while saving sales number IDOC is creating but I am unable to see the data filling into segments. I think idoc is triggaring in background.
      Can you please tell how I can see the data filling in to segments
    Thanks in advance,
    SN

    keep the break point in the program RSNAST00
    at this particular code.
    perform (tnapr-ronam) in program (tnapr-pgnam) using returncode
                                                             us_screen
                                                             if found.
    and also Activate update Debugging , before pressing the save button in VA02.

  • Stock determination for sales order stock

    Hi all,
    for our SAP retail solution - we have requirements for moving Consignment stock to Sales order stock for home delivery . Then Sales order stock needs to be withdrawn for inter company 643 movement . The stock determination is maintained as K first & then F with relevent settings in SPRO & article master, for consignment article -when sales order stock exist & delivery is created for intercompany PO with sales order on account assignment to transfer stock from Store to DC, SAP error message is not allowing to post Goods issue.
    What settings do we need to maintain for this to happen to withdraw from Sales order stock for consignment article ? Any help or information is highly appreciable.
    Thanks
    Krish

    This is the error message :-
    After calling stock determination, a quantity of                                               1.000 EA remains open
    Message no. WRF_CONS013
    Diagnosis
    During consignment processing in SAP Retail, the system called stock determination in order to decide which stock category should be used to take material 000000001000009740. However, the stock determination routine did not find enough stock in the relevant stock categories (as defined in the strategy). A quantity of                                               1.000 EA remains open.
    Please note that stock determination ignores the Negative Stocks Allowed setting.
    Procedure
    Check your stocks and settings for stock determination for material 000000001000009740 in plant 3001. Post stock transfers if necessary

  • Urgent : Availability check in CRM sales order using APO system

    Hi,
    When we create sales order in CRM while entering vendor in the line item alongwith product and quantity, it goes for a Quantity Allocation check in APO system. Is there any standard BADI or User Exit to receive the information from APO to CRM system, so that using that we can provide the error msg in case of order quantity is more than with the allocated quantity.
    Thanks in advance.
    Kartavya

    Hi,
    You can use BADI CRM_AV_CHECK_APO_01 for the purpose.
    You can make use of any of the 2 methods of this badi:
    CHANGE_APO_RESULT_CRM_FORM   
    CHANGE_APO_RESULT_NATIVE_FORM
    kindly reward with points if helpful
    sharif.

  • Vendor consignment stock return for Sales order

    Hi,
    For Home delivery Sales order- Sale is being performed from Vendor consignment stock & it works good with 601K movement .For Return in this case, Return sales order is created & PGR is performed against delivery.While doing this - the returned consignment material goes to unrestricted blocked stock. But we need this to go back to Consignment stock.
    Can any one suggest a solution on this ?
    Thanks in advance for quick solution, sharing your inputs
    Krish

    Hi,
    You can always use the 412 K mvt to do a manual posting back into consignment stock.
    Regards,
    MdZ

  • Creating Billing Plan data for sales order using BAPI_SALESORDER_CREATEFROM

    Hi All,
    We are using BAPI_SALESORDER_CREATEFROMDAT2 to create the sales order.We are unable to get the fields for billing plan tab in this BAPI.
    Kindly let me know the fileds in BAPI that corresponds to the fileds of billing plan in sales order.
    Thanks in Advance,
    Kiran I.

    Hi kiran
    hi Dhanapal
    i ahve the same problem which u posted..
    My scenarion is to create billing plan while creation of order using the BAPI_SALESORDER_CREATEFROMDAT2 but could not find any structure to pass billing plan details
    pls can u let me know if u found any solution for this if so can u send me detailed mail..
    i want to populate in both way header level and item level (by removing check header plan in the billing plan tab)
    Pls let me know ASAP..
    Thanks
    anil

Maybe you are looking for

  • Can't scan from my HPC4280 with new Snow Leopard

    I downloaded the new snow leopard and now my HPC4280 All In One scanner is not working. Printer and copier works fine. I've tried the 3 fixes from the HP support but nothing is working. I went to System Preference clicked on printer/fax, click on the

  • What are the basic difference in the putting a variable in Query

    what are the basic difference in the putting a variable in 1. Characteristic Restrictions Vs 2. Default Values

  • Constructors in Inheritance.

    Hi, REPORT  Z_INHERITANCE_CONSTRUCTOR. CLASS demo DEFINITION.   PUBLIC SECTION.   CLASS-METHODS main.   ENDCLASS. CLASS vessel DEFINITION.   PUBLIC SECTION.   METHODS : constructor IMPORTING i1 TYPE string                                             

  • Epson to iPad wifi setup? Help.

    I am having issues just connecting my xp-200 wifi printer to my iPad 2. I do not have a laptop or desktop computer...just my iPad. For my router, it's a Comcast with wifi. All is working and connected but for my Epson printer. When searching for the

  • TREX: default search language

    Hi, When accessing documents in the TREX, the application seems to be defaulting to DE. The documents in the KPRO are indexed under EN. Therefore when I search in the e-recruitment application the search is looking under docs in DE, is there a way I