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

Similar Messages

  • Function module for deleting the perticular sales order

    Hi Experts
    I wanted a function module name for deleting the perticular sales order document ,when i enter the import parameter as sales order no  and some value as export parameters so that i can use that for the program (message :successfully deleted ).

    Hi Satya,
    Use BAPI BAPI_SALESORDER_CHANGE as follows:
    DATA: T_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    DATA: BAPISDH1X LIKE BAPISDH1X.
    PARAMETERS: P_VBELN LIKE VBAK-VBELN.
    *SET THE DELETION FLAG
    BAPISDH1X-UPDATEFLAG = 'D'.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    salesdocument = P_VBELN
    order_header_inx = BAPISDH1X
    tables
    return = T_RETURN
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    Hope this will help.
    Regards,
    Nitin.
    Edited by: Nitin Karamchandani on Dec 8, 2008 8:36 AM

  • Function Module for Incompletion Log in Sales Order

    Hello All,
    Can anybody provide me the function module when the sales order is incomplete due to Incompletion log.
    Thanks,

    HI,
    Use the functional module:   RV_MISSING_DOCUMENT_DATA.
    Goto SE37 and press F7, input the material/order number etc in the import data field  VBCOM.
    And then execute the module. By using this module we will get all the incomplete items in an order.
    If you want list of incomplete orders, use V.02 transaction code.
    Regards,
    Satya.

  • Any function module or bapi to get sales order number and invoice number?

    hi all,
    with delivery order number provided, do we have any function module or bapi to get sales order number
    and invoice number?
    thanks.

    Hi,
    Check
    BAPI_SALESORDER_CREATEFROMDAT1
    BAPI_REMUREQSLISTA_CREATEMULT  Agency Business: BAPI Create Invoice Lists from Vendor Billing Documents
    BAPI_REMUREQSLISTB_CREATEMULT  Agency Business: BAPI Create Invoice Lists from Payment Documents
    BAPI_REMUREQSLISTC_CREATEMULT  Agency Business: BAPI Create Invoice Lists from Posting Lists
    BAPI_REMUREQSLIST_CHANGEMULT   Agency Business: Change Invoice List Documents BAPI
    BAPI_REMUREQSLIST_GETLIST      Agency Business: BAPI Determine Detailed Data for Invoice List Documents
    BAPI_REMUREQSLIST_RELEASE      Agency Business: BAPI Release Invoice List Documents to FI
    Edited by: Neenu Jose on Nov 26, 2008 8:53 AM

  • Function Module or BAPI to update Sale Order Quantity (VBAP-kwmeng)

    Hi,
    I have a requirement to use a Function Module or BAPI to update Sale Order Quantity (VBAP-kwmeng), which one (Function Module or BAPI) should I use? is there any sample codes?
    Thanks a lot!!

    Hi,
    *& Report  ZTEST
    REPORT  ztest.
    DATA : wa_header TYPE bapisdh1x,
                i_item TYPE TABLE OF bapisditm WITH HEADER LINE,
                i_itemx TYPE TABLE OF bapisditmx WITH HEADER LINE,
                i_return TYPE TABLE OF bapiret2.
               wa_header-updateflag = 'U'.
               i_item-itm_number = '000010'.
               i_item-target_qty = '4'.
               APPEND i_item.
              i_itemx-itm_number = '000010'.
              i_itemx-updateflag = 'U'.
              i_itemx-target_qty = 'X'.
              APPEND i_itemx.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument               = '1234567890'
        order_header_inx            = wa_header
      TABLES
        return                            = i_return
        order_item_in                 = i_item
        order_item_inx               = i_itemx
    Hope this will help you.
    Regards,
    Anand.

  • 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

  • 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 Open Sales Orders.

    Can u any one tell me is there any standard function module to
    retrieve OPEN-SALES orders. I tried to debug VA05 but not of use...
    Thanks in advance,
    Sanjay.

    hi
      you can get open sales orders from vbuk and vbup
        SELECT
             A~VBELN
             A~GBSTK
             B~GBSTA FROM VBUK AS A
             INNER JOIN VBUP AS B
             ON AVBELN = BVBELN  INTO TABLE T_OPENS
             FOR ALL ENTRIES IN T_VBELN WHERE A~VBELN = T_VBELN-VBELN
            AND  A~GBSTK IN ('A','B')
             AND B~GBSTA IN ('A','B').
    in t_vebeln table is haveing sales orders by user selection you can get it like this
    regards,
    varma

  • *SD:Payment Cards: Use of Payment Gift card for a purchase on Sales Order*

    I have to implement the use of GIft card on the SAP Sales Order. The scenario is listed below.
    1.Customer Calls the Call center and want to use the Gift Card issued for Purchases which he/she is making.
    2.The asscoiate should be able to enter Gift card Number in the Credit card field of the SAales Order and should be able
    to Process the transaction.
    3.The authunticity of Gift Card will be checked by the thirdparty Provider ( Like Moneris, Paymetric,etc).
    Can this Gift card scenario can be implemented in SAP on Sales Order?.
    During the phase of the Saving the order, the Card Funds checking and final purchase need to be completed.
    My Questions are:
    1.Can this scenario be Implemented on SAP Sales Order.
    2.Can we use the current card type and Credit card fields on the Sales order.
    3.Can we write the new function Modules to achive this.What Function Modules can be used as basis for this devlopment
    4.This scenario is just like a Debit card Transaction( where the Gift Card has certain amount of money on it and when used, the money will be debited from Gift card and transaction is processed).
    5.How the settlement is done in this case, will after the Sales order is successfully used this Gift Card, will we need to generate  invoice for our account purposes and send the settlemnt file to the thirdparty proviedrs(Moneris,Paymetric ).
    6.Did SAP implemented this any where?.
    I have full idea of Credit card, but not sure if we can implement this for Gift Card use on sales Order.
    Any help is Greatly appreciated and rewarded with many points.
    Regards,
    Raj
    Edited by: RAJENDAR REDDY on Jul 24, 2009 10:04 AM

    Hi Raj,
    You can process gift cards just like debit cards. You will still have to create billing for it for settlement process.
    If your gateway is Moneris, you will still need a middleware such as Paymetric solution to connect to Moneris. My team work with Paymetric to help clients implementing credit card and gift card solutions. We have implemented several gift card solutions though each project has a slightly different solution due to the difference in business requirements.
    Hope this helps,
    Noriko

  • Function Module or BAPI to update Sales Order (delivery Block)

    Hi,
    Is there a Function Module or BAPI available that can update the Delivery Block for a looping Sales Order?
    Thanks,
    John

    Hi,
    check this sample code to update delivery block..
    DATA: BAPISDH1X LIKE BAPISDH1X.
    DATA: BAPISDH1 LIKE BAPISDH1.
    PARAMETERS: P_VBELN LIKE VBAK-VBELN OBLIGATORY.
    PARAMETERS: P_LIFSK  LIKE VBAK-LIFSK OBLIGATORY.
    * Header
    BAPISDH1-DLV_BLOCK = p_lifsk.   " Delivery block
    * header X
    BAPISDH1X-DLV_BLOCK = 'X'.   " Delivery block
    BAPISDH1X-UPDATEFLAG = 'U'.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    salesdocument = P_VBELN
    order_header_in   = BAPISDH1
    order_header_inx = BAPISDH1X
    tables
    return = T_RETURN
    LOOP AT T_RETURN WHERE TYPE = 'E' OR TYPE = 'A'.
      EXIT.
    ENDLOOP.
    * Check for error messages.
    IF SY-SUBRC = 0.
      WRITE: / 'Sales order not updated', T_RETURN-MESSAGE.
    ELSE.
    * Successfully updated
      WRITE: / 'Sales order updated'.
    ENDIF.
    COMMIT WORK.
    Thanks
    Naren

  • User exit or functional module for multiple GR of Production order.

    Hi All,
           I have done a enhancement in CO11N so that batches can get created in production order  confirmation.
    Now When I go to MIGO to do GR I have option to enter the nulitple batches against the production order.
    But what I am looking for is there any exit or functional module which reads the production order and fecth batches which were created from CO11N.
    Regards.

    Hi,
    A few options:
    1. User Exit - MBCF0002
    2. BADi - MB_MIGO_BADI, MB_DOCUMENT_BADI
    3. A Z program by calling BAPI_GOODSMVT_CREATE
    Regards,
    Vivek

  • Function modul for a material  throufh production order

    hi,
    Is there any function modul available in SAP for production order for a material
    ie passing input as production order to get the material no and production order date .

    Hi ..
       No ya these 4 func.modul is not in 4.6c can you pl send a right fun.mod. for 4.6 c ver.  so that i can use it.
    regards,
    Lakshman

  • Function Module for adding components to Production Order

    Is there a function module that can add components to an existing production order ?I believe CO_BC_INSERT_CMP_OF_ORDERS can do the trick but seems this alone would not suffice .Your feedback is very much appreciated

    Sudhir,
    U r right. we need to call the function module CO_BC_INSERT_CMP_OF_ORDERS with flg_banf_create  = X and apt entries in the component details table resbb_ins. Doing this is enough. I guess u have a problem passing correct data in the internal table. For the data you do not know, you will have to pass default data.
    Hope this helps.

  • Function module for Opening Balance day wise

    Hi,
    I am preparing vendor ledger report for day wise .
    For example : i/p fields are : Lifnr , Budat,Bukrs
    O/p fields are : Opening balance ( Before the date of lifnr Closing balance ).
                          Debit
                          Credit
                          Closing Balance ( Opening balance + D/C).
    For this Opening balance i require the function module .
    Please help me .
    Regards
    Nandan.

    Hi,
    My requirement is Vendor balance Report according to Posting date wise.
    o/p fields are
    blart budat augdt belnr openingbalance  ClosingBalance Credit Debit
    Credit is when schkz is 'H'.
    Debit is when schkz is 'S'.
    Closing Balance = Opening Balance + Credit / Debit
    Regards
    Nandan.

  • Function modules for open quantity

    Hi Experts,
    I am having requirement,i have to calculate the open quantity for particular item in the range of dates like 01/02/2008 to 28/02/2008 and 05/03/2008 to 05/04/2008(depending on the user input).
    I have searched function modules:
    MONTHS_BETWEEN_TWO_DATES
    FIMA_DAYS_BETWEEN_TWO_DATES
    Please suggest me,Which of this function modules suits for my requirement?
    Is there any bapi for calculating open quantity for particular period of time?
    Regards,
    Bharath.

    Hi ,
    Open Qty of  particular item  ? is that PO or SO?...
    regards
    Prabhu

Maybe you are looking for

  • InDesign CC (2014) Crashing

    InDesign keeps crashing for me when I 'change leading or cut and try and paste'. Please find Apple Crash Report Log below. I have already signed in and out of creative cloud, restarted my computer, uninstalled adobe programs, restarted my computer th

  • Are enums and inner classes allowed in taglib function signatures??

    Hi, I have a taglib with the following function definition: <function>         <description>Determine if viewing a patient attribute is allowed</description>         <name>isViewingPatientAttributeAllowed</name>         <function-class>com.example.ad

  • ICloud Calendar I created and share with a organization.

    I am not longer with this organization. They want to keep the calendar that we share via iCould and I want to "un-subscribe". As the creator of the calendar am I able to transfer the "ownership" to another person? Please help, Cotton

  • I need updated drivers for Intel HD Graphics 4000

    Hi, this is the laptop: SATELLITE L50-A-170 PSKJNE-03L00MIT Microsoft Windows 8.1  6.3.9600 (64bit) I need the last drivers for Intel HD Graphics 4000, 64-bit version 15.33.32.64.4061 (10.18.10.4061). I downloaded the driver but I can't install becau

  • Ad-Hoc Query reporting off of Payroll Results Infotypes

    Dear Experts, Has anyone used the Payroll Results Infotypes (IT0448 - IT0464) to create Payroll Results reports using Ad-hoc query? I would appreciate it if someone could enlighten me as to how to get the Cluster Data into these Infotypes. Cheers, Ve