How to fetch invoice details based on service notification

Hello,
      How to fetch the invoice deatils for a service quotation.
Wat are the tables used for this purpose.
Thanks in advance.
Regards,
Umasankar.

Hi
Use the table VBAK and VBAP  for the Quotation details use VBTYP = B
and pass the VBAP-VBELn and VBAP-POSNR to VBRP-AUBEL and VBRP-AUPOS  and take the VBRP-VBELN  which is the Invoice Number
take the details from VBRK and VBRP details
<b>Reward points for useful Answers</b>
Regards
Anji

Similar Messages

  • How to getLine Details from Invoice Details window inside Service Contracts

    Working on 11.5.10.2 Service Contracts Module.
    Trying to retrieve Line Details from Invoice Details tab. Service Contracts Authoring > Invoice Details > Line Details. I have tried creating a join to oks_bill_transactions but this returns too many records, thousand of records for one contract. I then tried a join to oks_bill_sub_lines obsl,
    OKS_BILL_TXN_LINES obtl but this was returning too many records as well. Seeing if these are the correct tables to pull the line detail for Invoices from in the Service Contract module or if I may be setting up my joins incorrectly and that is why I am getting so many records returned?
    FROM OKC_K_HEADERS_B OKHB,
    OKC_K_PARTY_ROLES_B OKPRB,
    HZ_PARTIES P,
    OKX_CUST_SITE_USES_V C_BILL_TO,
    OKX_CUST_SITE_USES_V C_SHIP_TO,
    ra_customer_Trx_all rcta,
    okc_contacts oc,
    OKC_K_LINES_B oklb,
    OKC_K_LINES_B oklbs,
    --oks_bill_sub_lines obsl,
    --OKS_BILL_TXN_LINES obtl,
    oks_bill_transactions obt,
    okx_resources_v orv
    WHERE OKHB.ID = OKPRB.CHR_ID
    AND OKPRB.JTOT_OBJECT1_CODE = 'OKX_PARTY'
    AND OKPRB.OBJECT1_ID1 = P.PARTY_ID
    AND okhb.id = oc.dnz_chr_id(+)
    AND oc.jtot_object1_code (+) = 'OKX_RESOURCE'
    AND oc.object1_id1 = orv.ID1(+)
    AND OKHB.ship_to_site_use_Id = C_SHIP_TO.ID1(+)
    AND OKHB.bill_to_site_use_Id = C_BILL_TO.ID1(+)
    AND C_SHIP_TO.SITE_USE_CODE(+) = 'SHIP_TO'
    AND C_BILL_TO.SITE_USE_CODE(+) = 'BILL_TO'
    AND OKHB.SHIP_TO_SITE_USE_ID = C_SHIP_TO.ID1(+)
    AND OKHB.BILL_TO_SITE_USE_ID = C_BILL_TO.ID1(+)
    AND OKHB.STS_CODE = 'ACTIVE'
    AND p.party_id = C_SHIP_TO.party_id
    AND okhb.contract_number(+) = rcta.interface_header_attribute1
    AND rcta.cust_trx_type_id(+) = oklbs.attribute8
    AND oklbs.cle_id = oklb.id
    -- and oklbs.id = obsl.cle_id(+)
    -- and obsl.id = obtl.bsl_id(+)
    and obt.trx_number = rcta.trx_number(+)
    and oklb.line_number||'.'||oklbs.line_number <> '1.1'
    and nvl(okhb.contract_number_modifier,'-') = nvl(rcta.interface_header_attribute2,0)
    and OKHB.CONTRACT_NUMBER = 'VO-7128'

    You can redirect the resultos to a txt file:
    Open a command prompt as Administrator
    Enter the command and redirect it to a file, here is an example:
    tasklist /v > c:\results.txt
    When you Open the file, you should able to see the Process name, PID, User, etc.
    Good luck on that.

  • BAPI to get Invoice Details based on PO Number

    HI,
    Is there any BAPI to get Invoice Details based on PO number. If so could you pls let me know that.
    Regards,
    Ramesh

    Hi Ramesh  ,
    there is no Direct BAPI to get the List of Invoices ,But based on the Vendor list u can get the List .
    pass Vendor list , Document Dates.
    <b>BAPI_INCOMINGINVOICE_GETLIST</b> for more info check the Documentation of this FM.
    Regards
    Prabhu

  • How to find out the service conformation details based on service order

    Hi.
    I open the CRMD_ORDER
    In this i open a service order.
    I got all the information of that particular service order number in the CRM_ORDER_READ program.
    But i unable to find out conformation details of that particular service order.
    In CRM_ORDER_READ we have DOC_FLOW. But in that i did not find Conformation data. like Conformation number.
    Can anybody explain me regarding finding the conformation details based on the service order.
    I want service conformation number based on the service order.
    Is there any other function module to get all the details of service order with the service conformation also.
    Thank You.
    Regards,
    B. Krishna.

    Hi Krishna,
    You can get the confirmation order guid based on service order number from CRM_ORDER_READ.
    Under ET_DOC_FLOW structure where OBJTYPE_B=BUS2000117 ,OBJKEY_B=Confirmation guid.
    Then from guid you can get the confirmation number.
    Hope this resolves your querry.
    Regards,
    PePe

  • Fetching Invoice details from BSEG

    Hi experts,
                    I  fetched  details like BUZEI BUZEI KOART SHKZG MWSKZ DMBTR PSWBT PSWSL HWBAS KTOSL HKONT KUNNR MATNR TXJCD from Bseg . program execute  well in development server but very slow  in production server. Coding is given below , kindly provide solution for this.
    input.
    1.MANDT
    2.BUKRS
    3.VKORG
    4.FKDAT
    First i fetch invoices based on input from vbrk and vbrp table and  passed  in bseg.
    SELECT VBRKMANDT VBRKVBELN VBRKVKORG VBRKFKDAT VBRKBUKRS VBRPGSBER
      INTO TABLE ITAB
      FROM VBRK
      INNER JOIN VBRP ON VBRKVBELN = VBRPVBELN
      WHERE
       VBRK~MANDT IN S_MANDT AND
            VBRK~BUKRS IN S_BUKRS AND
            VBRK~VKORG IN S_VKORG AND
            VBRK~FKDAT IN S_FKDAT.
      RANGES : R_VBELN FOR VBRK-VBELN.
      LOOP AT ITAB.
        R_VBELN-SIGN = 'I'.
        R_VBELN-OPTION = 'EQ'.
        R_VBELN-LOW = ITAB-VBELN.
        APPEND R_VBELN.
      ENDLOOP.
      LOOP AT ITAB.
        ITAB-FYEAR = ITAB-FKDAT+0(4).
        MODIFY ITAB INDEX SY-TABIX.
      ENDLOOP.
      DATA : BELNR LIKE BSEG-BELNR.
      SELECT BELNR GJAHR BUZEI KOART SHKZG MWSKZ DMBTR PSWBT PSWSL HWBAS KTOSL HKONT KUNNR MATNR TXJCD
      FROM BSEG INTO TABLE GTAB FOR ALL ENTRIES IN ITAB
      WHERE BUKRS IN S_BUKRS AND
            BELNR IN R_VBELN AND      
            GJAHR = ITAB-FYEAR .
    Thanks & regards
    G.Vendhan

    Hi Vendhan,
    SELECT VBRK~MANDT VBRK~VBELN VBRK~VKORG VBRK~FKDAT VBRK~BUKRS VBRP~GSBER
    INTO TABLE ITAB
    FROM VBRK
    INNER JOIN VBRP ON VBRK~VBELN = VBRP~VBELN
    WHERE
    VBRK~MANDT IN S_MANDT AND " Not required so comment it...
    VBRK~BUKRS IN S_BUKRS AND
    VBRK~VKORG IN S_VKORG AND
    VBRK~FKDAT IN S_FKDAT.
    RANGES : R_VBELN FOR VBRK-VBELN.
    LOOP AT ITAB.
    R_VBELN-SIGN = 'I'.
    R_VBELN-OPTION = 'EQ'.
    R_VBELN-LOW = ITAB-VBELN.
    APPEND R_VBELN.
    ENDLOOP.
    LOOP AT ITAB.
    ITAB-FYEAR = ITAB-FKDAT+0(4).
    MODIFY ITAB INDEX SY-TABIX.
    ENDLOOP.
    DATA : BELNR LIKE BSEG-BELNR.
    As you are interesed to get the data for the billing document only select data from vbrk only...
    and use that internal table in for all entries with BSEG rather then join of vbrk and vbrp while
    IF ITAB[] IS NOT INITIAL[]. " Check this condition before using For all Entries alwayse...
    SELECT BELNR GJAHR BUZEI KOART SHKZG MWSKZ DMBTR PSWBT PSWSL HWBAS KTOSL HKONT KUNNR MATNR TXJCD
    FROM BSEG INTO TABLE GTAB FOR ALL ENTRIES IN ITAB
    WHERE BUKRS IN S_BUKRS AND
    BELNR IN R_VBELN AND  " Wrong... You are supposed to pass vbrk-VBELN to BSEG-VBELN as BELNR and VBELN are different and contains diff data as well..
    GJAHR = ITAB-FYEAR
    AND KOART =  'D'. " Include it for customers
    ENDIF.
    Also I would like to suggest you if you can use below tables if possible...
    BSAD                           secondary Index for Customers (Cleared Items)
    BSID                             secondary Index for Customers
    So you need to change the logic to get correct data first...
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • How to fetch MIR4 data based on MB51 refrence number

    hi Experts.
    i want to fetch MIR4 data based on MB51 refrence number.
    I want to fetch below fileds in MIR4 TCODE.
    1.  RBKP-BELNR (Invoice Document NUMBER)
    2. DRSEG-MENGE ( quantity )
    3. DRSEG-WRBTR ( Amount in document currency)
    As mentioned above DRSEG is structure.
    please help me how to fetch 3 data fileds based on my MB51 refrence.( mkpf-xblnr ).
    In MIR4 , Number of External Delivery Note( DRSEG-XBLNR ) is same as my MB51 refrence ( mkpf-xblnr).
    This is the only link avilable to fetch above 3 fields.
    kindly give any suggestions .
    thanks & regards,
    hari priya

    Hi ,
    can anybody give me suggestions .
    What is the table name for fetching above 3 fileld data  . 
    DRSEG  is structure .
    Thanks & regards,
    Hari priya

  • How to call an ABAP based web service from a web page (form)

    Hi,
    I am trying to figure out how I can call my own developed ABAP based web service. I was able to successfully test it in the WS navigator and am now wondering what I need to do to embed the service call in a plain simply web page (form). Basically I'd like to create a web form allowing to specify the parameters and with a 'Submit' button pass the parameters to the web service and launch it.
    Is this possible or do I need some kind of SDK to accomplish this?
    Thanks for any hints and tips.
    Wolfgang

    Hi,
    refer the following link and this is for cosuming the web service form Web dynpro Java
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50d70a19-45a3-2b10-bba0-807d819daf46&overridelayout=true
    and please go throught the following link if you want to cosume it through web dynpro abap and find the answer given by the Moderator Thomas Jung
    regards
    Manohar

  • How to report Invoice details and also the related Purchase order details

    Hello,
    Any suggestions on How to Report both Invoice details and the related Purchase Order details.
    Ex:
    INvoice Line items Amounts /Qty
    PO Line Items Amounts /Qty
    Thanks in advance
    Jagadish

    Hello,
    Any suggestions on How to Report both Invoice details and the related Purchase Order details.
    Ex:
    INvoice Line items Amounts /Qty
    PO Line Items Amounts /Qty
    Thanks in advance
    Jagadish

  • PDF Form to XML. How to handle invoice detail lines

    I am using LC Designer 7.x on a PDF form that has a submit button that loads a ColdFusion MX7 page that will save the XML in a MS SQL 2005 XML field.
    My source of confusion is how to handle the invoice detail lines on the PDF invoice form.
    The XML that I want is
        5 All Season Tires
        400.02
        A car with 5 wheels
        20400.00
    My question is how do I setup the form fields to do this.
    What I did prior to XML was have fields whose name included the line number and store them as FDF.
    eg
        description01 amount01 description02 amount02
    But that will not work, or I dont know how to translate that to the desired  XML.
    Any thoughts you might have would be appreciated.
    Thanks
    Archie Campbell

    Archie,
    You want to create a subform called "invoiceLine" which you've set to repeat for each data item using the Binding tab of the Object palette. This subform must be contained within another (e.g. "invoiceLines") whose content is set to be "Flowed" on the Subform tab of the Object palette. So your object hierarchy looks like:
      invoiceLines = subform with flowed content
        invoiceLine = subform repeated for each data item
          description
          amount
    Rob Gabbard
    Cardinal Solutions Group
    www.cardinalsolutions.com

  • How to get Invoice Details in 11i ?

    Hi All,
    Can anyone please suggest a query to get Invoice Details consisting PO Number and requester Name that are shown in notification of Oracle Apps Version 11i. I have created a query to get all other details consisting of Invoice Number, Supplier, Supplier Site etc except Po Number and Requester Name.
    Currently I am getting following values for PO:
    PO Number: Multiple POsCan anyone please suggest from where 'Multiple Pos' is fetched?
    Regards,
    Meghana

    HI Meghana,
    Can anyone please suggest a query to get Invoice Details consisting PO Number and requester Name that are shown in notification of Oracle Apps Version 11i. I have created a query to get all other details consisting of Invoice Number, Supplier, Supplier Site etc except Po Number and Requester Name.please see if this can help you
    http://www.oracleerp4u.com/2010/06/ap-po-technical-link.html
    http://www.club-oracle.com/forums/invoice-payment-query-t2336/
    to get PO number against invoices at header level only
    ;) AppSmasTi ;)
    Sharing Is Caring

  • How to retrieve invoice details from the sales order .. urgent..

    hi,
    i am retrieving  vbak-vbeln with this i should retreive invoice details
    how to relate vbak with abrk table
    i have vbak -vbeln,erdat,VBAK- VKORG,VBAK-KUNNR,VBAK-VTWEG,VBAK- SPART.
    its urgent..

    Hi
    U can see the sales order number in VBRP table, fields:
    VBRP-AUBEL and VBRP-AUPOS.
    But if u have the sales order number it's better to use VBFA table.
    SELECT * FROM VBFA WHERE VBELV = VBAK-VBELN
                         AND VBTYP_N = 'M'
      SELECT SINGLE * VBRK WHERE VBELN = VBFA-VBELN.
      IF SY-SUBRC = 0.
        WRITE: 'Bill number:', VBRK-VBELN.
      ENDIF.
    ENDSELECT.
    U have to make sure to use the right document type:
    M = Invoice
    N = Invoice cancellation
    So the bill type depends on the sales order type
    Max

  • SAP Cloud Application Studio How to retrieve the details based on OVS in Product ID

    Hi Experts,
    I have small requirements in AdvanceListPanel. I have custom BO as mention below,
    businessObject Demo {
                   element ID : ID;
                   node Sporoduct [0,n] {
                        element P_ID : ProductID;
                        element P_DES :   SHORT_Description;
                        element P_QTY : Quantity;
                        element P_NET :  Amount;   
    I have attached the OVS on Product ID (P_ID) element.
    I want to auto-fill the details under the AdvanceListPanel ( Product Desc , Product Net value ( Price) ) 
    1) How to get the details of Product ( Prod Descr, Product Price etc ).
    Please anyone have idea about this share your thoughts.
    Many Thanks,
    Mithun

    Hi, Mithun
         What you want is to auto-fill the related details when you select a product from your OVS.
         That means you have to write your codes in Event After Modify.
         We normally use QueryByElements or some other query options given for a particular standard BO.
         It would be like that.
         var query=Product.QueryByElements;
         var selParams=query.CreateSelectionParams();
         selParams.Add(query.ProductID ,"I","EQ",this.P_ID );
         var result=query.Execute(selParams);
         for(var product in result){
         this.P_DES =product.Description;
    What I have just written is just a sample code. You have to find the exact name of the attributes of a standard BO in Repository Explorer.
    Hope this helps,
    Fred.

  • How to avoid automatic data change in service notification from work order

    Hi,
    when I change work order address data the address data from the service notification connected to the order is changed too, how can I avoid this change? Is there anything on customizing to control whichs fields are updated automatically.
    Thanks,
    Juan.

    Hi,
    You can trying using Books of Business.
    Create a book and add that particular user to that book and at the time of task creation, through a workflow you can assign it to the corresponding book.
    This might resolve the access issue you are facing.
    hope it helps,
    Mayank

  • How to fetch the data based on header in detail.

    Hi,
    Below is my requirement:
    I need to create a two non-database control blocks(header and detail) with multirecord.
    When i press the one button i need to fetch the data header block.
    If i select the any record i need to get the detail record values in detail block.
    Please suggest in which trigger i need to write the code. Please explain clearly.
    Regards,
    M. Satish

    hello
    I agree with Mr. Andreas Weiden . use the standard function for the blocks.
    First if you have any PK or FK relationship with the two tables then you can use the table wizard then just follow the procedure and be sure you click the checkbox which is default, automatically create relationship.
    If you dont have PK/FK then just follow again the table block wizard ... just unclick the check box for autocreate relationship then press button to create base on the SQL join.
    on the create join editor :
    deptno = empdepno
    the press okey. forms wizards will create all the rest... you can now notice a new object RELATIONSHIP below the DEPARMENT BLOCK and some forms genareted triggers.
    And CHANGE THE BLOCK PROPERTIES TO UPDATE ABLE,INSERT ABLE, DELETE to NO.. IF YOU WANT ONLY ON DISPLAY
    OR BETTER CREATE A 2 VIEWS CORRESPONDENT TO YOUR QUERY ON YOUR CURSOR.... and follow the procedure i gave above.
    In your button:
    go_block(your.block);execute_query(no_validate);

  • How to get invoice price based on order date or delivery date?

    Hi,
    Our system is configured to create invoices with pricing based on date of delivery.
    But we have a number of customers who get pricing based on date of order.
    Right now, people are manually changing the price and then generating the invoice.
    Is it possible to:
    1) add a ZZ field in the customer master that indicates which pricing date to use?
    2) have SAP generate the invoice with the correct pricing date based on this selection?
    Thx.
    Andy Jacobs

    Hi Andrew,
    We do have the exact same problem.
    One solution would be to create a new order type. Within that new type you can specify what date should be proposed as pricing date by SAP.
    Unfourtantely, here we are not able to add a new type. Does anyone know how this can be solved in another way?
    Thanks,
    Tim

Maybe you are looking for

  • LM13: Verification field not cleared after [Enter] key

    Hi Experts, I'm facing the issue as stated in the OSS note 916654 - LM13: Verification field not cleared after [Enter] key. My current system is ECC, that is why the OSS is already applied to the ECC version. But the problem is, i still faced the pro

  • Maintain multiple address for vendor

    User purchase article from vendor A at addess#1 but returned article back to vendor A via address#2. Vendor has 2 different departments handling delivery and returns. How can I configure 2 adddress for the same vendor code? If I had to used a partner

  • HT2822 Why doesn't a network list appear anymore yet Apple TV says I'm connected to the internet?

    Since updating Apple TV I lost the usual main menu. Now I can't even see Network lists like I did before the update. The main menu show options for Computer Sharing and Settings. Apple informs me that I am connected to the Internet through built in e

  • IPad mini stucks in recovery mode afte iOS 8

    We tried to update iPad mini to iOS 8 via wifi yesterday. Now it shows the recovery mode screen and pressing home and power button in various ways does not help. We are on vacation without access to iTunes Or any other PC. We need iPad. Can anyone he

  • ACR 6.3rc

    I just installed ACR6.3rc to read some NEF files taken by Nikon D7000.  Everythings appear ok except that the Bridge App can only preview first 18 pictures in a folder.  Is this my system's problem, or a bug in the new ACR?  My system is Win7 (64bits