Direct Delivery Sales Order - Function Module for Purchase Requisition

Hello Experts,
When we creat a Direct Delivery Sales Order at Production Plant  then one Direct Delivery Purchase Requisition automatically gets generated at the Distribution Warehouse. If anyone knows the function module which actually generates this Direct Delivery PReq, then request him/her to please let us know.
Thanks and Regards
Joseph

Hi,
   Whatever Function Module's given are for or  above 4.6C versions.
   I want for 4.6B version.
  At the same time, the returned tables should return more than 1 Pur.Req number as the FM's mentioned returns only 1.
Thanks,
Mich

Similar Messages

  • Is there any function module for purchase order change

    Hi Experts,
    Is there any function module for purchase order change or i need to do new recording in me22n.
    Thanks,
    Senthil

    Hi
    Function module <b>BAPI_PO_CHANGE</b> enables you to change purchase orders. The Change method uses the technology behind transaction ME22N.
    Regards,
    Viven

  • Fetch Sales Order number VBELN from Purchase requisition number BANFN

    Hi,
    I'm not able to find a suitable method to fetch the sales order number(VBELN) from the purchase requisition number(BANFN).
    I tried using VBEP table to fetch the data, but it is giving serious performance issues, as in for fetching one record it is taking approx 20 seconds!!!
    Kindly suggest a suitable method for this.
    I've used the query as folllows:
    select single vbeln banfn
    from vbep
    into (wa_vbep-vbeln, wa_vbep-banfn)
    where banfn eq wa_eban_zdd1_x-banfn.
    where: wa_vbep is the workarea having two fields vbeln and banfn, and wa_eban_zdd1_x-banfn is the reference preq number.
    Scenario in brief described below:
    Whenever a direct delivery sales order is created on a supply chain plant, a dummy purchase requisition without source of supply is created automatically at preferred supplying plant for the customer in the sales order. Direct Delivery Sales Orders which are still in Open status and for the associated dummy purchase requisitions with these sales order, the deletion flag set has to be unchecked.
    in this case, only one sales order is created corresponding to a preq..
    BAPI: BAPI_PR_GETDETAIL is not giving entries for the table as this is a special case of direct delivery from the production plant directly to the customer, bypassing the warehouse / distribution center...
    selection screen has input fields preq, matnr(product) and plant. we fetch entries depending on the data filled in selection screen and also they should be of document type(BSART in EBAN table) ZDD1 and deletion indicator is set(LOEKZ in EBAN).
    then we check if the sales order corresponding to the preq is in open status...
    for this i need to programmatically fetch the sales order number corresponding to the preq...
    this is causing a performance issue as i could find only one way -- fetching sales order number from VBEP table corresponding to BANFN... indexing for easier also didnt work...
    no other way i could find to fetch sales order number corresponding to the preq number....
    there is a bapi: BAPI_PR_GETDETAIL, but this is not fetching entries to the changing tables related to sales order...
    also EBKN table doesnt have any entries as this is a special case of direct delivery preq..
    Guess i couldnt find anyother way...
    Thanks.

    I'm not sure as to why the select query was still throwing performance issues. I could see that the index had been created on only BANFN in the DB. Prior to creating the index, it was taking approx 20 seconds per entry, but after creating the index, it took 13seconds approx.
    I used the select query as follows:
    select single vbeln banfn
    from vbep
    into (wa_vbep-vbeln, wa_vbep-banfn)
    where banfn eq wa_eban_zdd1_x-banfn.
    where: wa_vbep is the workarea having two fields vbeln and banfn, and wa_eban_zdd1_x-banfn is the reference preq number.
    I tried a few other combinations also, but  those also didnt work effectively:
    select vbeln banfn
    from vbep
    into (wa_vbep-vbeln, wa_vbep-banfn)
    where banfn eq wa_eban_zdd1_x-banfn.
    without using SINGLE in the select query as the select query would implicitly pickup only a single record,
    select vbeln banfn
    from vbep
    into wa_vbep
    where banfn eq wa_eban_zdd1_x-banfn.
    and another query where the INTO statement was directed directly to a workarea.
    But unfortunately, nothing seemed to be working.
    The index i had created was on BANFN alone in the VBEP table.

  • Sales Order function module to retrieve the item availability values

    Hi,
      Is there any function module to retrieve the item availability schedule line values.
    Navigation:->
    Go to sales order (Change Mode) -> Schedule lines tab ->  In application toolbar you can find Item availability icon.
    When this is pressed, next screen you can find the split up of schedule line values. I am developing an ALV report and is required to retrieve the Split up of the schedule line values.
    Is there any function module to retrieve the same.
    BR/ Josh

    HI,
      I have found one function module ATP_EXPLANATION. I am not able to figure out the parameters that needs to be inputted to this function module. If anyone has used this before, could you kindly help me out.
    This function module returns the Split up for Schedule lines in the tablea 'MDVEX'.
    BR/ Josh

  • Sales order item text to purchase requisition

    Hello Team,
    we have scenario in which we create the sales order and while creating the sales order we put the production memo text at the item level under text tab in it.
    We have define copying rules for the production memo text under PR customizing text types to get it copied from the sales order. But when we are creating the PR for the sales order then the production memo text is not flowing into the purchase requisition.
    I checked some OSS notes and found recently released note 448814 which says that text does not gets copied to PR when PR is created manually from the sales order ( question no 24 and 25 in the note ) due to technical reasons and it gets copied only when the PR gets created directly from the sales order.
    Could you please help me to know if this is standard problem or some other settings exists and if anyone have other solution to it. ?
    Thanks and Regards,
    Deepak Gupta

    Hi Jurgen,
    Thanks for the reply. I was expecting to know if others have came across similar kind of issue and after following up with SAP, if they have provided some other solution.
    Thanks
    Deepak

  • Sales order - automatic creation of purchase requisition - cost assignment

    Hi
    When the sales order is released, we have an automatic creation of Purchase requisation. We have given "internal order" as the cost obect in the sales order. But when the system has created automatic purchase requisition, it has not picked internal order. What could be the reason?
    Thank you for the help.
    Thanks
    Ram

    Hi
    I feel that it is abug in the development you have carried out for creation of Purchase requisition when a sales order is relased,
    Please check the enhancement, you need to pass the values to the correct table after derivation.
    Thanks & Regards
    Kishore

  • Sales order - automatic creation of purchase requisition - CO assignment

    Hi
    When the sales order is released, we have an automatic creation of Purchase requisation. We have given "internal order" as the cost obect in the sales order. But when the system has created automatic purchase requisition, it has not picked internal order. What could be the reason?
    Thank you for the help.
    Thanks
    Ram

    Hi
    I feel that it is abug in the development you have carried out for creation of Purchase requisition when a sales order is relased,
    Please check the enhancement, you need to pass the values to the correct table after derivation.
    Thanks & Regards
    Kishore

  • Function Module for open Purchase Order & Sales Order?

    Hi, commonly I read the data from tables and calculate the open quantity for sales order and purchase order, but I want to know, are there any standard function modules for getting the list of open "purchase order" and "sales order" respectively?
    Thanks and Regards.

    hi Ren,
    u can check all these bapi's related to salesorder
    BAPI_SALESORDER_CHANGE Sales order: Change Sales Order
    BAPI_SALESORDER_CONFIRMDELVRY Sales Order: Confirmation of Delivery; Document Flow Update
    BAPI_SALESORDER_CREATEFROMDAT1 Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA Create Sales Order, No More Maintenance
    BAPI_SALESORDER_GETLIST Sales order: List of all Orders for Customer
    BAPI_SALESORDER_GETSTATUS Sales Order: Display Status
    BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order
    May be this FM can help you
    MB_ADD_PURCHASE_ORDER_QUANTITY (Reading and adding open purchase order quantities)
    Regards,
    Naveen

  • Function module for Delivery and billing based on sales order

    Hi Friends
    I am developing an object which has to create the sales order, delivery for that sales order and billing for it at the same time.
    I have tried for few function modules to create the delivery and billing but I am not able to achieve.
    Would you please help me by providing the correct function modules for these 2 activities?
    Thanks
    Praveen

    Hi Nikhil
    Thanks for reply,
    i am creating the sales order using the BAPI "BAPI_SALESORDER_CREATEFROMDAT1" only, but the billing document bapi
    "BAPI_BILLINGDOC_CREATE" is for online creation, it will call the t-code 'VF01'.
    I need to create the billing document with out calling the t-code like using bapi for sales order. Please suggest me if there are function modules to achieve this.
    Thanks
    Praveen

  • Urjent-Any function module for finding Sales order, Delivery and Invoic

    Hi Experts,
    I am having selection screen like
    Sales order
    Delivery
    Invoice
    Customer
    If i give sales order
             Delivery and Invoice should pull
    If i give delivery
             sales order and Invoice should pull
    If i give Invoice
             sales order and delivery should pull
    If i give customer
               all customer related data should pull
    Do we have any function modules to meet this reqirement?
    If we have please provide function modules.
    Thanks,
    mahe
    Edited by: Rob Burbank on Mar 30, 2009 4:17 PM
    Edited by: mahahe on Mar 31, 2009 9:12 PM

    You can use VBFA table, right? in the FM also, you can find the same logic, like pulling from VBFA table.
    thanq

  • Function module for open sales order and open PO

    hi all,
    can anyone please tell me that is there any function module to get open sale order  and also for open purchase order?
    regards saurabh.

    Hi ,
    In EKPO Table u select this fields  Purchase Document no and Item no of Purchsing Document , Material no , and Purchase Order Qty.
    In MSEG Table u select this fields Purchase Document no and Item no of Purchsing Document , Material no , and  Qty.
    Both Tables having  Purchase Document  no , So  Purchase Doucment no throguh  u will get the Material and qty , Finally u Subract the both Material Qty's .
    u will get the Open Po For particular Material.
    If ur not getting ,Inform me .
    Regards ,
    Shankar GJ

  • BAPI / Function Module for Sale order updation

    Hi,
         I need to update sale order details(Reason for rejection)..Can you please tell me any of the existing BAPI's / Function modules to do the same.

    hi,
      try bapi_salesorder_change
        <b>allocate points if useful</b>
    regards,
    pavan

  • Function module for reteriving Purchase order values

    hi,
    I there any function module for reteriving the Purchase order Values

    better to put ur logic /requirement on table EKKOEKPOEKBE.
    Regards
    Prabhu

  • Function Module For Item Level Details of a Sales Order

    Hi Guys,
    I have to get the item level details for a particular sales document no ..I want to know if there is any function module existing for the same.
    Also I need any function module for getting the contact information such as contact form (KNVK-ANRED),contact name(KNVK-NAM1),contact name(KNVK-NAMEV),Contact number (KNVK-TELF1).
    Please let me know if anyone is aware of it.
    Thanks in Advance,
    Mayank

    <b>SD_SALES_DOCUMENT_READ</b> Reads sales document header and business data: tables VBAK, VBKD and VBPA (Sold-to (AG), Payer (RG) and Ship-to (WE) parties)
    <b>SD_SALES_DOCUMENT_READ_POS</b> Reads sales document header and item material: tables VBAK, VBAP-MATNR
    <b>SD_DOCUMENT_PARTNER_READ</b> partner information including address. Calls SD_PARTNER_READ
    <b>SD_PARTNER_READ</b> all the partners information and addresses
    <b>SD_DETERMINE_CONTRACT_TYPE</b>
    In: at least VBAK-VBELN
    Exceptions: NO CONTRACT | SERVICE_CONTRACT | QUANTITY_CONTRACT
    <b>SD_SALES_DOCUMENT_COPY</b>
    <b>RV_ORDER_FLOW_INFORMATION</b> Reads sales document flow of sales document after delivery and billing
    SD_SALES_DOCUMENT_SAVE create Sales Doc from the copied document
    SD_SALES_DOCUMENT_ENQUEUE to dequeue use DEQUEUE_EVVBAKE
    RV_DELIVERY_PRINT_VIEW Data provision for delivery note printing
    SD_PACKING_PRINT_VIEW
    SD_DELIVERY_VIEW Data collection for printing
    called from RV_DELIVERY_PRINT_VIEW, SD_PACKING_PRINT_VIEW
    RV_BILLING_PRINT_VIEW Data Provision for Billing Document Print
    regards
    vinod

  • Function module for sales order VC characteristics

    Hi All,
    Is there any function module for fetching sales oder VC characteristics.
    Regards

    Please use FM: VC_I_GET_CONFIGURATION.
    Please pass "VBAP-CUOBJ"  in the exporting parameter INSTANCE and it should return you configuration in the Table parameter 'CONFIGURATION'.
    Let me know if this works.
    Thanks,
    Neeraj

Maybe you are looking for

  • Movie clip resize not working when image is loaded

    Hello, I'm having some strange luck in building an image slide show. I load the image paths into an array from an XML page and then step through the array elements w/ forward and back buttons. I have an empty image clip on the stage where I create an

  • Insert into JComboBox....

    I am trying to insert another option into a JComboBox, however, I do not wish to append it. I need to insert it in between two other options. I cannot seem to find a method to do this. I know this is possible with JLists as you can specify an int and

  • FM in SAP

    Where can I fine the name of all FM used in SAP, can anyone help me please?

  • [svn] 3312: Adding support for documentation of HostComponent metadata.

    Revision: 3312 Author: [email protected] Date: 2008-09-23 09:48:02 -0700 (Tue, 23 Sep 2008) Log Message: Adding support for documentation of HostComponent metadata. If a comment is added to the metadata declaration it should appear with the generated

  • Clip Marker Issue

    I have 3 clips in the timeline in premier on different channels. I want to sync them. I think I have the markers set up correctly, but I'm not quite sure. When I try to sync, the sync by clip marker option is greyed out. Could this be an issue with t