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

Similar Messages

  • 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 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

  • Function module or BAPI for getting all the Idoc numbers of a sales order

    Hi Folks,
    Is there any function module or BAPI exists for getting all the Idoc numbers which are generated for a Sales order.
    Thanks in advance.
    Regards,
    Sarath.....

    Hi Sarath,
    try this function module...
    BAPI_IDOCAPPL_DISPLAY
    Regards,
    Prabhudas

  • Any Function module or BAPIs are available to get scheme name for the inter

    I have internal order no value in table  AUFK-AUFNR ,  and the internal order corresponding Scheme value is available in IMPR-PRNAM . Now I want to inner join both the tables to extract the data , but there is no common field . Is there any Function module or BAPIs are available to get scheme name for the internal orders?

    look at DB-VIEW  "V_IVP_OR".
    Regards,
    Laurent

  • Is there any function modules or BAPI's

    Is there any function modules or BAPI's that would delete the original partner and then add a new partner.Iam using BAP
    bapi_alm_notif_data_modify
    But iam not able to change partner in notification header
    Please give your input for sovling it

    Dear Rama,
                           In the bapi_alm_notif_data_modify, there are 2 structure
    NOTIFPARTNR STRUCTURE  BAPI2080_NOTPARTNRI OPTIONAL
    NOTIFPARTNR_X STRUCTURE  BAPI2080_NOTPARTNRI_X OPTIONAL
    Pass yr partner value in NOTIFPARTNR, and against the value make it "X" in the NOTIFPARTNR_X  , then u can change the partner value.
    Give point if helpfull
    Thanks

  • Is there any function module or BAPI to create maintenance item.(Urgent)

    Hi Experts,
                       I want to create an RFC which creates the maintenance item in the sap. The RFC is going to receive data from XI. So is there any function module or BAPI to create maintenance item? so that i can call that FM in my RFC.
    Thanks,
    Prasanna
    Helpful answers will be rewarded.

    Check and implement your program accordingly:
    *& Report  ZMRS_BAPI_DEMO_ORDERS
    REPORT  ZMRS_BAPI_DEMO_ORDERS.
    DATA: gs_method     TYPE bapi_alm_order_method,
          gs_header   TYPE bapi_alm_order_headers_i,
          gs_header_up  TYPE bapi_alm_order_headers_up,
          gs_return     TYPE bapiret2,
          gs_numbers    TYPE bapi_alm_numbers,
          gs_return_commit TYPE bapiret2,
          gs_demo_order TYPE objidext,
          gt_demo_order LIKE TABLE OF gs_demo_order,
          gt_method     LIKE TABLE OF gs_method,
          gt_header     LIKE TABLE OF gs_header,
          gt_header_up  LIKE TABLE OF gs_header_up,
          gt_return     LIKE TABLE OF gs_return,
          gt_numbers    LIKE TABLE OF gs_numbers,
          gt_return_commit LIKE TABLE OF gs_return_commit.
    DATA lv_not_successful TYPE c.
    DATA lv_ref_cnt TYPE i.
    IMPORT gt_method FROM MEMORY ID 'MET'.
    IMPORT gt_header FROM MEMORY ID 'HED'.
    IMPORT gt_header_up FROM MEMORY ID 'HUP'.
    CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
      TABLES
        it_methods   = gt_method
        it_header    = gt_header
        it_header_up = gt_header_up
        return       = gt_return
        et_numbers   = gt_numbers.
    CLEAR lv_not_successful.
    LOOP AT gt_return INTO gs_return.
      IF gs_return-type = 'E'.
        lv_not_successful = 'X'.
      ELSEIF gs_return-type = 'W'.
       lv_not_successful = 'X'.
      ELSE.
      do nothing
      ENDIF.
    ENDLOOP.
    IF lv_not_successful <> 'X'.
    commit changes
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait   = 'X'
        IMPORTING
          return = gs_return_commit.
    ELSE.
    rollback changes
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'
        IMPORTING
          return = gs_return_commit.
    ENDIF.
    EXPORT gt_return TO MEMORY ID 'RET'.
    EXPORT gs_return_commit TO MEMORY ID 'COM_RET'.

  • 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 which uses both BAPI's for sales order create and change

    Please name the function module which uses both BAPI's for sales order create and change.
    BAPI_SALESORDER_CREATEFORMDAT2
    BAPI_SALESORDERCHANGE

    Yup.
    you must write a piece of code for this.
    with if else condition.first check if SO is exsist than use second FM to change it else create new SO from first FM.
    logic somethig like this.
    Amit.

  • Sales order, Delivery and Invoice changes history tables

    Dear All,
    I want to know how to find out the changes done in Sales Order, Delivery and Invoice.
    As far as sales order is concerned, I know CDHDR and CDPOS are tables can be used to find out the changes.
    But I am not sure about the "Object ID". Where we need to find out this Object ID?
    In the Data element "VBELN_VA" "Change Document" option has been checked under "Further Characteristics" tab.
    Please confirm about the "Object ID".
    Similarly give inputs for Delivery and Invoice change history also.
    Regards,
    Mullairaja

    Hi,
    Could you please explain, how to use these programs?
    Regards,
    Mullairaja

  • Function Module or BAPI to get inventory turnover in abap

    Hello,
    is there a possibility to get the information of inventory turnover of an material with help of a function module oder BAPI?
    Like the transaction MC44. But I need it in an ABAP-Report. A simple calculation is easy, but not an exact calculation of the inventory turnover (Umschlagshäufikeit).

    Hi,
    http://hoopsdoc.hillyard.com/images/inventory%20management/MC44.htm
    http://www.erpgenie.com/sap-technical/abap/bapi-step-by-step-example
    Hope these links may help you.
    Thanks.

  • 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

  • What is the relation between delivery num , sales order num and invoice

    what is the relation between delivery num , sales order num and invoice

    Look at VBFA Table
    goto VBFA table ,enter order number number vbelv ,vbtyp_n is C,then VBELN is the delivery
    if you enter delivery number in vbelv ,vbtyp_n is J,then vbeln is Invoice.
    here VBTYP_N is the import.
    VBFA is the sales document flow table,and very important table
    Thanks
    seshu

  • Function module or BAPI to get the sales order details.

    Hi,
    Can any one revert back with the FM or BAPI to get the sales order details.
    I tried using BS01_SALESORDER_GETDETAIL, in my driver program of smartform but when i execute the form using VA03 -> Sales Document -> Issue output to -> Print preview, I am getting the required output.
    if i see the print preview in the overview of the sales order (enter sales order and press enter), the above specified FM is not populating any data.
    Thanks,
    Prathap

    Hi Prathap,
    The above specified FM BAPISDORDER_GETDETAILEDLIST should work. As you need the item conditions,
    Fill the I_BAPI_VIEW with header = 'X', item = 'X' and sdcond = 'X'.
    Fill the SALES_DOCUMENTS-vbeln = sales order number.
    Regards,
    Shylaja

  • Urgent help for a function module or BAPI to get the standard price.

    Hi,
    I want to know whether there is any existing <b>funcion module or bapi</b> to get the standard price (STPRS) which is updated in the table MBEW during the execution of a costing run for standard cost through the transaction ck40n.
    helpful answers will  be rewarded !!!

    Hi,
    You can use the BAPI BAPI_MATERIAL_GET_DETAIL
    Thanks
    Naren

Maybe you are looking for

  • Create a PDF. with Illustrator that Adobe Reader Can Edit

    How do I export a file to .PDF with a single line of text that can be edited with Adobe Reader. I'm Creating a sign template and the their is a spot for the price that needs to be changed every week with Adobe Reader. Is this possible

  • Is there a size limit to embedded photos in Leopard Mail?

    Whenever I paste a photo into an email using Mail, the size of the picture is reduced to a very small file. Using Entourage, the same paste embeds a photo of the size I intended. Is there some setting to change the limit on size in Mail? or am I doin

  • Is this the product I should get?

    I'm a student who's starting video production next year, and I wanted a software like adobe after effects to add special effects to film. But after effects is expensive. I'm wondering if final cut express offers the same sort of technology? Also, con

  • EDI Output not triggerring

    Hi, I have created an output ZINL in NACE tcode to generate an IDoc assigned partner type LS. This output should be automatically assigned when i change any invoice list (VF22). Parnter name is ZLSPAR. Logical system ZLSPAR was created first in BD54

  • How do I create a transparent image (cutout) on top of a solid one?

    Hello. I am trying to use Pathfinder>Minus front to create transparent rays over text outlines, but am having trouble. Here is a link to how it should appear: http://graphicmechanic.com/IMAGES/ingen.png. It's nearly exactly how I'd like it to look bu