Service for vf02 permanently locks the invoice number

Hi,
I have created one service for VF02 transaction as given in this path:
default_host
--->sap
--->bc
--->gui
--->sap
--->its
--->VF02
I am calling this service in an external window browser from my Web Dynpro application.
Problem is => if I cloase the browser window by using close button, it permanently locks the invoice number used.
How to resolve this?
Thanks
-Haresh

Hi,
Use ~SINGLETRANSACTION=1 parameter on your ITS service. This parameter closes your invoice properly.
Hope this helps,
Iván.

Similar Messages

  • Service for vf02 locks the invoice number

    Hi,
    I have created one service for VF02 transaction as given in this path:
    default_host
           --->sap
                   --->bc
                          --->gui
                                  --->sap
                                          --->its
                                                 --->VF02
    I am calling this service from my Web Dynpro application.
    But the problem is => if I cloase the window by using close button, it locks the invoice number used permanently.
    How to resolve this?
    Thanks
    -Haresh

    Hi Suman,
    I am calling Service for VF02 from Web Dynpro application as an external window, so definitely it'll lock the invoice.
    So when I close that window by close button of browser, it should unlock the invoice number, but it is not releasing the lock.
    I think It is not required to code any unlocking logic in my web dynpro application as I am opening this service in external window.
    Any further help will be appreciated.
    Thanks
    -Haresh

  • To get the invoice number of amount applied in view prepayment applications

    hi all
    In AP abc Manager-Invoices--when we give invoice number in the invoice number field we get to see supplier name etc in the same Invoices Form there is a
    tab called General from which we can get Amount Paid ,
    Similarly there is a tab called View Prepayment Applications ,when clicked on this tab we can see Amount Applied and invoice number corresponding to that amount applied
    KIndly help me from which table or view this invoice number can be obtained
    i got amount applied from the view AP_UNAPPLY_PREPAYS_V,but i cant find the invoice number.
    kindly guide
    thanking in advance
    Edited by: makdutakdu on Dec 19, 2011 11:29 AM

    Thanks Robin,
    i was able to get a work around for this. For the time being i am using the following code snippet, i will try using the one u sent an will see if this works too.
    // create nodeinfo object for the node that table will bind to
    final IWDNodeInfo nodeinfo = wdThis.wdGetContext().node<NODENAME>().getNodeInfo() ;
    //get the structure of the node
    final IStructure struct = nodeinfo.getStructureType() ;
    Iterator iter = nodeinfo.iterateAttributes() ;
    if (null != struct)
    totalFields = struct.getNumberOfFields();
    else
    for ( Iterator i = nodeinfo.iterateAttributes(); i.hasNext(); i.next() )
              totalFields++;
    for(count = 1; count <= totalFields; count++)
         fieldName = nodeinfo.getStructureType().getField(count).getName();

  • Use SQL function to get the original order number using the invoice number

    Hi All,
    wondering is someone can help me with this challenge I am having?  Often I need to return the original order numbers that created the resulting invoce.  This is a relatively simple seriese of joins in a query but I am wanting to simplify it using a SQL function that can be referenced each time easily from with in the SELECT statement.  the code i currently have is:
    Use SQL function to get the original order number using the invoice number
    CREATE FUNCTION dbo.fnOrdersThatMakeInvoice(@InvNum int)
    RETURNS nvarchar(200)
    AS
    BEGIN
    DECLARE @OrderList nvarchar(200)
    SET @OrderList = ''
    SELECT @OrderList = @OrderList + (cast(T6.DocNum AS nvarchar(10)) + ' ')
    FROM  OINV AS T1 INNER JOIN
          INV1 AS T2 ON T1.DocEntry = T2.DocEntry INNER JOIN
          DLN1 AS T4 ON T2.BaseEntry = T4.DocEntry AND T2.BaseLine = T4.LineNum INNER JOIN
          RDR1 AS T5 ON T4.BaseEntry = T5.DocEntry AND T4.BaseLine = T5.LineNum INNER JOIN
          ORDR AS T6 ON T5.DocEntry = T6.DocEntry
    WHERE T1.DocNum = @InvNum
    RETURN @OrderList 
    END
    it is run by the following query:
    Select T1.DocNum, dbo.fnOrdersThatMakeInvoice(T1.DocNum)
    From OINV T1
    Where T1.DocNum = 'your invoice number here'
    The issue is that this returns the order number for all of the lines in the invoice.  Only want to see the summary of the order numbers.  ie if 3 orders were used to make a 20 line inovice I only want to see the 3 order numbers retuned in the field.
    If this was a simple reporting SELECT query I would use SELECT DISTINCT.  But I can't do that.
    Any ideas?
    Thanks,
    Mike

    Thanks Gordon,
    I am trying to get away from the massive table access list everytime I write a query where I need to access the original order number of the invoice.  However, I have managed to solve my own problem with a GROUP BY statement!
    Others may be interested so, the code is this:
    CREATE FUNCTION dbo.fnOrdersThatMakeInvoice(@InvNum int)
    RETURNS nvarchar(200)
    AS
    BEGIN
    DECLARE @OrderList nvarchar(200)
    SET @OrderList = ''
    SELECT @OrderList = @OrderList + (cast(T6.DocNum AS nvarchar(10)) + ' ')
    FROM  OINV AS T1 INNER JOIN
          INV1 AS T2 ON T1.DocEntry = T2.DocEntry INNER JOIN
          DLN1 AS T4 ON T2.BaseEntry = T4.DocEntry AND T2.BaseLine = T4.LineNum INNER JOIN
          RDR1 AS T5 ON T4.BaseEntry = T5.DocEntry AND T4.BaseLine = T5.LineNum INNER JOIN
          ORDR AS T6 ON T5.DocEntry = T6.DocEntry
    WHERE T1.DocNum = @InvNum
    GROUP BY T6.DocNum
    RETURN @OrderList 
    END
    and to call it use this:
    Select T1.DocNum, dbo.fnOrdersThatMakeInvoice(T1.DocNum)
    From OINV T1
    Where T1.DocNum = 'your invoice number'

  • Reports Generated From The Invoice Number

    Hello All,
    Firstly, thank you for this website, and also those who make contributions by asking questions and also answering.
    So my question is, can SAP be generate a report from an invoice number which will then show which voucher for reimbursement includes that invoice number?  And if so, how?
    At this moment, the only way I can know this happens is by running a report for the specific reimbursement voucher which in turn will show me the invoices that is being paid for.  However, I would like to input the invoice number which will show me which voucher the bill was paid for and which check number paid it.
    I look forward to your replies, and thank you.

    I should add, I do not mean a journal voucher, I'm talking about a public voucher for reimbursement from the government.
    Thank you.

  • Increase the invoice number printed on document

    the invoice number printed on invoice documents must be 10 digits. 
    how to increae the number
    can any body help
    chakri

    Dear Chakri,
    I doesn't under stand clearly about your requirement.
    As per my under standing about your requirement !
    Do You want to maintain the invoice number range must be 10 digits ?
    Then you can go to number range maintanence through VN01 transaction maintain the number range for the billing documents with 10 digits.
    Same thing you can capyure in to the output of the invoice through script or smart form with the help of ABAPer.
    I hope this will help you,
    Regards,
    Murali.

  • Is there a way to create a password protected folder for pictures or lock the photos app? For Ipad Air and Iphone 5s.

    Is there a way to create a password protected folder for pictures or lock the photos app? I want to do this for Ipad air and Iphone 5s. I have other family members that use my Ipad and Iphone and do not want some pictures to be able to be viewed.
    Thanks

    Use 3rd party apps like Photo Manager Pro.

  • How to find the invoice number from accounting document number?

    Hi
    I am using the bapi BAPI_AP_ACC_GETSTATEMENT and trying to get the invoice numbers of all the payments.
    but i am unable to find the link between the accounting document number from the bapi and the vendor invoice number.
    i have tried the tables BSE_CLR, BSEG and BKPF. the field AWKEY in BKPF has the combination of BELNR & BUKRS & GJAHR when the document type is anything other than RE.
    How can i get the invoice numbers from the accounting doc. numbers?
    Regards
    Sujai

    I am unable to find the link between BKPF-BELNR and RBKP-BELNR from the bapi return values.
    XBLNR is blank when i check the table.
    the output of the bapi is something like this                                                                               
    COMP VENDOR   CLEAR_DATE CLR_DOC_NO ALLOC_NMBR   FISC   DOC_NO     ITE
                                                                                    1000    1100 ........ .........................................  20020123           2002 1900000202   002
    1000    1100 ........ .........................................20020123           2002 1900000203   002
    1000    1100........ .........................................20020123           2002 1900000204   002
    1000    1100........ .........................................20020123           2002 1900000205   002
    now i try passing the doc_no (1900000XXX) and the fiscal year (2002) and company code to BKPF
    the XBLNR field is blank. This document number sequence doesn't seem to be the accounting document number of the invoice coz that starts with 51XXXXXXXXX.
    If i try passing the number with sequence 51XXX... to BKPF i get the invoice number there in the AWKEY field.
    I am not sure what this sequence (19___) represents.
    Sujai
    Edited by: Sujai S on Nov 5, 2008 7:22 PM
    Edited by: Sujai S on Nov 5, 2008 7:22 PM

  • How to make the invoice number a hotpsot in Payment program F110

    Hi,
    In the standard Automatic Payment Program F110 when we do a payment run and see the list of proposed Invoices that will be cleared - the requirement is to allow the user to double click on the invoice number and it should go to FB03 or MIR4 depending on if it is a Non-PO or a PO invoice. Is there a way to do this with out doing an implicit enhancement point.
    Regards
    Ravi

    Hi Ravi,
    I don't think it so it is possible in F110. You can copy the document number from F110 and go to FB03--Document list, paste all the document number from there you can double click on the document to see the full details.
    Br,Vivek

  • I get an Invalid Certificate notice when I try to access my https site for my printer. The serial number is the same as used by another certificate. In IE I was able to proceed to this address, but Firefox won't give me that option

    I get an Invalid Certificate notice when I try to access my https site for my printer. The serial number is the same as used by another certificate. In IE I was able to proceed to this address, but Firefox won't give me that option

    Hello,
    Thanks for contacting Mozilla Support!
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • I can't activate my serial number for adobe indesign cs5 "The serial number is not valid for this product"

    I can't activate my serial number for adobe indesign cs5"The serial number is not valid for this product"

    Alright- I am working on escalating this to our senior Volume Licensing team to help, but in the meantime, please ensure that you've tried the steps here: Error "The serial number is not valid for this product" | Creative Suite

  • Contact name disappears on querying the invoice number

    hi ,
    While creating an invoice ,i created a contact
    then saved the transaction and requeried entering the invoice number the contact disappears
    please help.

    what is the apps version ? OS ? and module name?
    thanks

  • How can find the Invoice number for GL journal in SQL?

    Dear all:
    I want to ask:
    If I know the GL journal number and also know the journal comes from AP, how can I use the SQL to find out the ap invoice number ,which relevant with this journal?
    my environment is : ORACLE EBS 11.5.9
    Regards
    Terry

    Hello Terry.
    Use the following query:
    SELECT h.doc_sequence_value "Journal Num", l.reference_5 "Invoice Num"
    FROM gl_je_lines l, gl_je_headers h
    WHERE l.je_header_id = h.je_header_id
    AND h.doc_sequence_value = <document number of your journal>
    AND h.je_source = 'Payables'
    AND l.set_of_books_id = <your set of books id>
    Hope this helps.
    Octavio

  • Batch job creation for sending email if the invoice is aged

    Positive confirmation: Send system notification to the requestor if:
    a) An invoice is received and GR is not yet posted in the ECC system.
    b) An 'aged' invoice and GR is not yet posted in the ECC system.
    This requirement is for USA only. i.e., we have only one company code which is 8960.
    Identifiers of the invoice are
    Company Code = u20188960u2019
    Invoice Document Type = u2018R9u2019
    Use table EKBE for relationship between Invoice, Goods Receipt and Purchase Order.
    The field EKPO-BEDNR contains the Shopping Cart Number
    Implementation Strategy
    1. To send email if the invoice is aged.
    Create a program that will run as a job. This job will frequently check for invoices related to SRM Shopping Carts received from E2OPEN. If an invoice is aged and there is no Goods Receipt posted through confirmation from SRM, then an email will go out from ECC system to the requestor. Using the Shopping Cart number on PO, find the requestor information (email ID) from SRM through an RFC call. This job will run once in a day and should have a parameter in the program for the age of the Invoice.
    Both the emails should contain a link (To be taken from SRM system, to be supplied) to log into SRM system. The email will also contain the Shopping Cart number and the Description of the item, and a message to Confirm this, including age of the invoice if aged.
    Please let me know how to create the batch job.
    Regards,
    Venkat
    Edited by: VenkatG on Sep 1, 2009 3:14 PM

    Do not pass the COMMIT_WORK flag... Leave it blank. Any transaction for the data integrity, one should never use COMMIT WORK related statements. Normally SAP transactions will have the COMMIT WORK at the end of transaction which is enough for any thing that is added part of the customer exits...
    Hope this helps.
    Regards
    Anjaiah

  • Table for price produced in the invoice-SD module

    hi friends is there any table(not structure) from which i can find the value for
    total Basic price(without any tax of frieght etc)
    of an item in the invoice.like if the per unit value is 100/- nd qty is 10/- then total =1000/-
    i want this basic  total. in where clause i can use vbeln and posnr , i mean i have biiling document no and the item no
    like in vbrp  i am having the total net value for the billing document no and item no. but i want the total basic value for that item .
    Edited by: achalmehra on Jan 20, 2010 11:29 AM

    First go to table T685 anf findout the condition type(like ZPBP = base price) for basic price. then  take VBELN  goto table VBRK  get the value for field KNUMV  based on this value goto KONV table get the base price( field KAWRT or KBETR) using the basic price condition type.....

Maybe you are looking for