Query Header note of a billing invoice

Hello,
In a query for billing invoices I need to add the Header note. I cant find a way to do that. Is there a table or a logical Database that has that item included?
regards Andreas

Hi
So in your query you have to add an additional field and some abap code in order to fill it.
If you go to header of the text, you can find out the keys: ID, OBJECT, NAME and SPRAS
The ID and OBJECT can be hardcopyed in your code (because they'll be constants), the NAME is the invoice number (perhaps it can be the client (mant) too, the language should be depend on the language of customer.
Just as I said, u can use fm READ_TEXT, now the problem will be transfer a text saved in a table (so many rows) to a single string (your additional field for output): that means this field has to be sufficiently long to display the header note, but probably the last part of the note sometimes can be truncated
Max

Similar Messages

  • Query header not to display

    Hi
    I am using BW 3.1 version
    Is that possible to not display Report header in WORKBOOK,
    Do we have any setting to take off header level
    i mean to say when we execute Report it displays the filters and Characteristics and Key figures whet ever we use in our report that i don't want to display directly i want display only RESULT
    Thanks,
    gal
    Edited by: GAL BI on May 7, 2010 4:55 AM

    Hi
    Open your query in analyzer-> go to design mode and you will be able to see some text boxes [ image with T symbol] remove those text boxes and save it and exit from design mode.
    Let me know if not works
    -Ashwin

  • EMMA Not Working for Billing & Invoicing Cases

    Hi
    I have configured case type and case category for Billing Block - Message type AJ063. Cases are not getting created through EMMA. Where as in ECC 6.0 EHP 0 the same was working. Is there any Note required for ECC 6.0 EHP 2. To be precise Current version is SAPK-60202INISUT. Also to add this we see message that jobs preapred. But when we looked into EMMA executed with Radio button Prepared Jobs enabled then No relavant jobs shown. Same thing happened with AJ098 also.

    Hi PRESII,
             This problem is generally observed in ECC 6.02 support level 03 and below. after you upgrade it from ECC 6.0.  SAP has done the chnages and incorporated the same in ECC 6.02 support level 04. I suggest that you upgrade your support level 4 or later and your problem should be solved.
    Cheers,
    Amin

  • How to check if a user fills a header text in billing invoice

    Hi everybody and thanks in advance.
    My consultant wants to oblige all users to fill a header text when they create the billing invoice (vf01).
    I was looking for several user exits when I can manage this requisite.
    My problem is that when the user creates the invoice and push save button, I try to look for in the table STXH if the user created the header text. But I have not found anything, because the invoice has not created yet.
    Only when the billing invoice has saved, the header text is stored in the table STXH.
    I has been trying to find a structure wich contains the header data like xvbrk contains the data about type of invoice, etc.
    I have studied this user exits:
    userexit_number_range (module pool saplv60A, program rv60afzz)
    userexit_account_prep_komkcv (same module)
    userexit_account_prep_kompcv (same module)
    userexit_fill_vbrk_vbrp (same module)
    v60A0001 (Customer functions in the billing document).
    My question is: In which structure is the header text of billing invoice manage before push the save button?
    If I knew where it is, I could manage the data and check if the user filled the header text.
    Thank you very much, and sorry for my pour English.

    David,
    Place this code into USEREXIT_NUMBER_RANGE:
    DATA: CATALOG LIKE TCATALOG OCCURS 0 WITH HEADER LINE,
          MEMORY_ID(30).
    data: c_MEMORY_ID(30) VALUE 'SAPLSTXD'.
    DATA l_head type THEAD.
    DATA wa_head type THEAD.
    data: l_lines type table of TLine.
    data: l_line type TLine.
    DATA l_CATALOG type TCATALOG.
    IMPORT CATALOG FROM MEMORY ID 'SAPLSTXD'.
    loop at catalog into l_catalog.
       if  l_catalog-IS_REFTEXT is initial
       and l_catalog-keep is initial.
         concatenate c_memory_id l_catalog-id into memory_id.
         import thead to l_head
                tline to l_lines
           from memory id memory_id.
         loop at l_lines into l_line.
           message i000(zz) with l_line-TDLINE.
         endloop.
       endif.
    endloop.
    It will expose the text entered into the text ids in a message box (for now).  You will want to replace the MESSAGE statement with your own logic.
    You may also need to change the message numver/class from ZZ - as seen here "message i000(zz) with l_line-TDLINE."  with an appropriate message on your system.
    DON'T forget those points.

  • Export Indicator in the Billing Invoice Header

    How does the Export Indicator field gets populated in the billing invoice doc. (from what specific source)?   I have an invoice where the accounting doc. didnu2019t generate ... it referenced 'foreign trade data incomplete', yet both are for DOMESTIC customers.  In the header for the invoice the Export Indicator was marked w/ an u2018Xu2019.  I'm trying to determine how that field could get populated since the invoice for domestic customer (where would it be pulling from)?

    Siva
    When you create a UDF at the Marketing document header, it creates it for all marketing document both AR and AP.
    You could Open the AR document Press CTRLShiftB and uncheck VISIBLE on the user field.
    The formatted search query would be
    SELECT T0.CARDCODE, T0.CARDNAME FROM [DBO\].[OCRD\] T0 WHERE T0.CARDTYPE = 'C'
    Suda

  • Exchange rate accounting (FI) in header of billing invoice

    Hello.
    I have got a question about the exchange rate accounting (FI) in the header of the billing invoice.
    Situation:
    When creating the billing document: on item level the exchange rate type B is correctly taken for the date of billing as determined in the customer master data and the copy control.
    BUT what can I do to fix in the header of the billing invoice the exchange rate accounting M from the month of the sells document (usually they issue the sells document one month and the billing document a month later)??
    I tried to put the correct exchange rate accounting in the sells document VBKD-KURRF, but the value is not taken automatically in the header of the billing document.
    Pressing F1 I get the message: Exchange rate for FI postings
    The exchange rate that the system applies when you create an invoice.
    Use
    Your system is configured in such a way that it expects:
    No prefix (leading sign) for direct rates
    No prefix for indirect rates
    Can anyone help please??
    Thank you.
    Regards,
    Maike

    If you are maintaining the exchange rate in sale order in the field VBKD-KURSK (Exch.rate-acct. in header accounting tab) then this rate will be passed on to the billing document header Exchange rate-accntg field.
    Check whether the PricingExchRate type field is maintained as blank in the copy controls from delivery to billing.
    Regards,
    GSL.

  • Invoice Header Notes 1

    Hi all,
    we seem to have an interesting issue when a header text from one order gets onto a header text of the billing document (invoice) of a completely different order, completely different customer and created by a completely different person. Does not seem to happen all the time, so it is hard to reproduce. But there have been quite a few like that.
    It seems like the billing document should accept the notes from the order, correct? Is there a some kind of routing I should check to make sure that it is routing the generation of the invoice texts to the correct order?
    Thanks in advance,
    Sergiy

    Thanks for your help. I am not much of an ABAPer. Could you give me some hints on how to find out where the custom code would be.
    Would I use a regular debugger and run the generation of the invoice through it?
    I tried finding userexits in SE80 and there are a few for delivery generation but none appear to be dealing with notes. It appears that it starts grabbing the wrong notes when the delivery is created since the delivery for the order also has the same incorrect notes as the invoice does. 
    As far as the copy control I am not sure. In SPRO, under logistics execution ->shipping I found copying control for deliveries. Can't seem to make sense of it quite yet, but will keep looking. Any help on this would be appreciated.
    Thanks a lot for your help,
    Sergiy
    Edited by: Sergiy Mysyk on Apr 30, 2008 10:19 PM

  • Deliveries Showing as 'not relevant for billing' after Invoice Cancellation

    Hi,
    We have a plants abroad scenario, where the billing document (plants abroad invoice)  had to be cancelled because of wrong profit centres. After correction of data, when we are trying to invoice these deliveries, the system shows these as 'not relevant for billing'. Any idea what could have caused this and/ or how to correct this?
    Thanks in advance for the help,
    Regards,
    alok

    HI Alok,
    Could you please recheck the delivery document flow again, its only Billing document is cancelled or PGI reversal is also done or not.
    As per my knowledge G/L correction is nothing to do with 'not relevant for billing' or "relevant for billing".
    Try again there might be a case where delivery might have been reversed or billing document has not been cancelled or Document might have been blocked.
    Regards,
    Nagesh

  • SQL Query to find Receipt No.s which are not matched to AP Invoices

    Hi
    Please help me to frame a query to find list of Receipt No.s which are not matched with AP Invoices.
    Please refer to the below query .
    SELECT
    poh.segment1 "PO No.",
    aps.vendor_name "Supplier Name",
    pol.item_description "Item Description",
    rcvh.receipt_num "GRV No.s",
    rcvl.quantity_received "Quantity",
    pol.unit_price "Rate/Unit",
    rcvtl.tax_name||' - '||initcap(rcvtl.tax_type) "Tax",
    (rcvl.quantity_received * pol.unit_price) + nvl(rcvtl.tax_amount,0) "Amount"
    FROM
    po_headers_all poh,
    po_lines_all pol,
    po_distributions_all pod,
    ap_suppliers aps,
    rcv_shipment_headers rcvh,
    rcv_shipment_lines rcvl,
    rcv_transactions rcvt,
    jai_rcv_line_taxes rcvtl
    WHERE
    poh.po_header_id = pol.po_header_id
    AND poh.po_header_id = pod.po_header_id
    AND pol.po_line_id = pod.po_line_id
    AND aps.vendor_id = poh.vendor_id
    AND aps.vendor_id = rcvh.vendor_id
    AND rcvh.shipment_header_id = rcvl.shipment_header_id
    AND poh.po_header_id = rcvl.po_header_id
    AND pol.po_line_id = rcvl.po_line_id
    AND rcvh.shipment_header_id = rcvt.shipment_header_id
    AND rcvl.shipment_line_id = rcvt.shipment_line_id
    AND poh.po_header_id = rcvt.po_header_id
    AND pol.po_line_id = rcvt.po_line_id
    AND aps.vendor_id = rcvt.vendor_id
    AND rcvh.shipment_header_id = rcvtl.shipment_header_id
    AND rcvl.shipment_line_id = rcvtl.shipment_line_id
    AND rcvt.transaction_id = rcvtl.transaction_id
    AND aps.vendor_id = rcvtl.vendor_id
    AND rcvt.transaction_type = 'RECEIVE'
    AND poh.authorization_status = 'APPROVED'
    AND poh.segment1 = '210001079'
    I have'nt included the Invoice Tables in the above query.
    Please help me in that area.
    This is bit urgent.
    Please help me.
    Regards
    Nakul Venkatraman

    I am using ORACLE 11gR2 If you're licensed for Diangnostics pack then you might want to look at the AWR tables, e.g. DBA_HIST_SQLSTAT and cross-reference with DBA_HIST_SNAPSHOT.
    By this will i get the top 5 consumed queries of DEV user in the whole session or its just the top 5 queries at that particular time. The "executions" columns in this query, does it mean that the no. of. times the query has executed... This will get you a random 5 queries that were first parsed by DEV. Depending on your application code/structure, it may well be that all code (except for system-recursive sql) executed by DEV is parsed by DEV, and all code parsed by DEV is executed by DEV but this isn't true for all.
    In terms of top N queries, you need to ORDER BY and then restrict by ROWNUM at an outer level to the ROWNUM otherwise the ROWNUM filter is applied before the ORDER BY.
    i.e.
    SELECT *
    FROM
    (SELECT ...
    FROM ...
    WHERE
    ORDER BY...)
    WHERE ROWNUM <= ....
    The "executions" columns in this query, does it mean that the no. of. times the query has executedYes.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e25513/dynviews_3064.htm#REFRN30259
    Edited by: Dom Brooks on Oct 24, 2011 9:45 AM

  • FOC items with bill rate as "0" are not appearing in project invoice

    Customer has a unique requirement of billing resources working on the project for free due to business reasons.
    The issue is that the FOC items with bill rate as "0" are not appearing when the invoice is generated.
    Please let me know if any one has come across this kind of a requirement and please share if you have any workaround.

    Hi
    You may try setting the bill rate for those cases as 0.01.
    That way the items will be included in the invoice, but not affect dramatically the amount billed to customer.
    Dina

  • PDF file is not generating for Billing Document for Invoice

    Hi all,
    We have upgraded our system into ECC6.0 from 4.7 version. During our Testing time, we have found the following Bug:
    Bug: Not possible to get output in pdf format for Invoice type(TR code: VF02) except for all it is generating PDF output.
    Can anybody help me out to find the route cause for this problem.
    Regards,
    Murali

    Hi,
    For one Billing-Invoice type , PDF is not generating. But it is generating for other Invoices.
    So should i need to go through the Printer settings?
    Regards,
    Murali.

  • Error while SO Invoice 'The Item Is Not Relevant For Billing'

    Hi Colleagues,
    I have created a Time and Material Project and when I am trying to Invoice the SO related to particular Project request getting below Error.
    Errro Description :-
    "The item is not relevant for billing"
    Schedule Line Number 0044
    Counter in Control Tables 00
    Message Identification VF
    System Message Number 044
    Output Type I
    Message Variable 01
    Message Variable 02
    Message Variable 03
    Message Variable 04
    Group Type F
    Background :-
    I created a Project
    Entered the time sheet
    Run CATS :- Transfer to Project system
    Display actual cost line items
    Run RRB and created billing request
    In the time of Invoicing SO getting error.
    I have checked all the configuration but unable to sort out the problem.
    Please suggest me if I missed something or need to change the configuration.
    Thanks in Advance
    Regards
    Manoj Bansal

    Hi Venu,
    Thanks for you reply..
    1. I have maintained Billing Relevance "C"
    2. Copy Control Setting is sound good.
    3. There is no billing block on SO.
    4. We have CndType line item :- EKO2 and Billing Type :- 02.
    Please let me know if any further setting is required.
    Regards
    Amitesh

  • Apply credit memo to an invoice header (not to a line) using Autoinvoice

    Hi,
    Does anyone know if it's possible to apply a credit memo to an invoice header, as opposed to an invoice line using autoinvoice? I know how to apply on account and at invoice line level, but can't get it to apply at the invoice header. I don't even know if it's possible.
    Thanks

    Hi,
    Does anyone know if it's possible to apply a credit memo to an invoice header, as opposed to an invoice line using autoinvoice? I know how to apply on account and at invoice line level, but can't get it to apply at the invoice header. I don't even know if it's possible.
    Thanks

  • Acctg document not created for cancellation invoice

    Hi all,
    We have a vehicle sales order created with payment card. The SO contains one item for vehicle and one item for parts. The items were delivered and invoiced separately. Hence, SO has one vehicle sales invoice (VSI) and one parts sales invoice (PSI).
    The standard procedure was to post VSI first before the PSI. Accounting documents have been created when both invoices were posted. However, there was a need to cancel the PSI. When this was done, cancellation invoice was created but there was no accounting document posted for the cancellation.
    I tried simulating the scenario in our test server and cancelled VSI 90000081 first before cancelling PSI 90000082 to test if this can be an alternative solution. Cancellation for VSI was posted successfully but error persists for PSI cancellation.
    Order 67 06/19/06 Completed
    . Delivery 80000081 06/19/06 Being processed
    .. Picking request 20060619 06/19/06 Completed
    .. GD goods issue:delvy 4900000293 06/19/06 complete
    .. Invoice 90000081 06/19/06 Completed
    ... Accounting document 2000077 06/19/06 partly cleared
    .. Invoice cancellation 90000084 06/19/06 Completed
    ... Accounting document 2000079 06/19/06 partly cleared
    . Delivery 80000082 06/19/06 Completed
    .. Picking request 20060619 06/19/06 Completed
    .. GD goods issue:delvy 4900000294 06/19/06 complete
    .. Invoice 90000082 06/19/06 Completed
    ... Accounting document 2000078 06/19/06 Not cleared
    .. Invoice cancellation 90000083 06/19/06
    .. Invoice 90000085 06/20/06 Blocked
    Accounting status of 90000083 (where error occurs) in VF03->Header->Details is set to K or <b>Accounting document not created (authorization lacking)</b>.
    Any inputs? Thanks in advance.

    Hello Sheila,
    sorry - my first answer was in mistake - Status K means:
    "The transaction is processed using payment cards. The order, however, does not contain valid authorization.
    This problem occurs in billing documents for follow-up deliveries."
    Could you check this ? Last way would be to set a breakpoint into the FM 'RV_ACCOUNTING_DOCUMENT_CREATE'
    and trigger this via VF02 -> Release to accounting.
    Regards Wolfgang

  • Error while creating Credit Memo Request for Milestone billing invoice

    Hi All,
    I have a scenario where i have Milestone billing(% based) at header level in Contracts. I create Invoice for that and then try to create Credit Memo Request with reference to the Invoice.
    Problem comes when we try to change the qty in the credit memo request. we are able to change the qty but the value is not changing. It remains the same constant value of that milestone.
    In my copy control from Invoice to Credit memo request for the item category i have maintained the pricing type as "C" because i want to copy and manual conditions.
    So kindly let me know which config setting should be done so that whenever i change the qty the value should also be changed.
    Please Note : This is happening only when my billing plan is at header level. For Billing plan at Item level its working fine.....
    Thanks.....

    Hiiii.....
    Can anyone please advise on the below issue of mine.....
    Thanks alot for the help.......in advance

Maybe you are looking for