Query to get batch GLBATCH name for the invoices of AP and AR

Please provide a query to get GLBatch name for an invoice of AR and AR.
From one cursor iam getting invoice number and invoiceID of AP and AR.
I have written query but it is taking much time
select distinct gjb.NAME
from gl_je_headers gjh,
gl_je_lines gjl,
gl_je_batches gjb
where gjl.REFERENCE_2=to_char(:p_invoiceid)
and gjh.JE_HEADER_ID=gjl.JE_HEADER_ID
and gjh.JE_BATCH_ID=gjb.JE_BATCH_ID
so iam getting performance problem.
Please suggest if iam wrong.
Waiting for your valuable suggestion.
Thanks
ganesh

Hi,
the version of Oracle E-Business Suite is R12
and ORacle Database IS 11I
Thanks & Regards
ganesh

Similar Messages

  • Find the SAP Script name for the Output type RD00 and Appli V3

    Hi Gurus,
    My requirement was to copy the Std SAP Script for the output type RD00 and application name V3 and to do some modification.
    Please any one suggest me how to find the Std SAP script based on the above Output type and Appl ?
    Regards
    paul

    Hi,
    The script Name is LB_BIL_INVOICE
    You can find byNACE>V3>Output Types>RD00-->Processing Routines
    In thje output type Press Change button and select New entries.
    Regards
    Sandipan
    Edited by: Sandipan Ghosh on Mar 31, 2008 12:06 PM

  • Query to Get next Highest Value for the given value passed

    Hello Gurus
    i want help with a query that would get me the next highest value from a table for a given value passed. Let say these are the values in col of a table
    col
    6000
    5000
    4000
    3000
    2000
    1000
    if i pass 2000 then the output should be 3000 or if i pass 4000 then query should result 5000. Please help

    May be this:
    WITH t AS (SELECT 6000 val FROM DUAL
               UNION ALL
               SELECT 5000 FROM DUAL
               UNION ALL
               SELECT 4000 FROM DUAL
               UNION ALL
               SELECT 3000 FROM DUAL
               UNION ALL
               SELECT 2000 FROM DUAL
               UNION ALL
               SELECT 1000 FROM DUAL)
    SELECT min(val)
      FROM t
    WHERE val > &YourVal

  • How to specify file names for the generated code in wscompile

    Hi,
    We want to follow a certain file naming conventions for the artifacts generated by wscompile.
    How is it possible to set the name for the service interface file, service implementation file etc....
    This is possible in AXIS ant task Wsdl2Java. How do we do it for wscompile.
    thanx

    Thanks Chris and c. Under Description I'm presented with three Names for the profile: ASCII, UniCode and Mac Script. ASCII and Mac Script are the same name for the profile, with nothing being in the UniCode Name box. Which do I change -- both?
    Am I going to screw things up in Photoshop if I change these names to something I can comprehend? Looks like I may just have to make a sticky-note list of the cryptic profile names with my own descriptive name as a reference. Thanks.

  • Program name for the query generated using sq0102-03

    Hi Folks,
    How can we know the proggram  name for the query generated using sq01 and all?
    K.Kiran.

    Hi Kiran,
    U can get program name of nay transaction code by following this procedure
    after entering tcode it will direct u to the related screen then on the tool bar select system then go for status there u can find program name
    Rewards if helpfull
    Regards,
    Pavan

  • 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

  • How to get the owner name for the file in ftp using abap ?

    Hi folks ,
    How to get the owner name for the file in ftp using abap ? please help me very ugernt . I tried with all standard FTP commands
    but doest work out me . Helping in this regard highly appreciated ...
    Thanks and regards,
    Swarupa Vanarchi

    Hi
    dont you  have used the os user while calling the FTP_CONNECT FM?
    Hope you are not talking about the user executing the FTP program.
    Else If you are talking about the FTP file creator then its not related to abap as you can handle it by maintaining the user in file name itself.
    May be i am going too far with if and elses here as your question possesses no  clarity.
    Plz elaborate your requirement  before anybody can help.
    Regards
    sateesh

  • Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Not a lot of details here, but my guess is this isn't working for you because you are wiring in the task to the Active Channels Property and not the actual Channel Name. I have attatched a screenshot of what I believe you are trying to do. The Task has 2 channels in it, so I need to index off one of the channels and wire it into the active channels input of the Channel Property node. Then I can read information about that channel
    Attachments:
    channel_name.JPG ‏69 KB

  • SecLDAP plugin failed to get name for the entry XIR2 SP2

    When a user who is in the ldap store attempts to log into InfoView, after about 10 minutes, he gets a message as follows:
    Account Information Not Recognized: An error occurred at the server: the secLdap plugin failed to get the name for the entry with dn=cn= with what appears to be appropriate information. This user does not appear to have a presence in BO (does not have an inbox, favorites, etc) nor does he appear in the ldap userlist in the CMC.
    Can you describe the functionality contained in this plugin ? It's function ?
    Thank you,
    Vicki Stanfield

    Hi,
    if you need a functional overview, check this SAP Note:
    https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3133383439313526
    You need a S-User for Login.
    Regards
    -Seb.

  • Not getting Selection(Prompt) option for the WebI Query.

    Hello Experts,
    I built WebI query for the custom query of SAP BI.I am not getting an selection or prompt for the WebI Query even though there is a selection in BI Query.If i develop WebI report for the standard query of the Bex i am getting selction options.
    Please suggest how can i do this.
    Thanks in Advance,
    Shiva Kumar G.C

    Hi Shiva,
    Where in the Query Designer are the selections defined?
    Selections defined under Characteristic Restrictions should show up when you run the webi report.
    Additional selections created under Default Values won't show running a webi report (that is just an additional filter on the data retrieved from the data warehouse).
    Regards,
    Harry

  • Table names and field names for the PO item details

    Hi,
    I want table names and field name for the below fields.
    I have PO number i want to get below fields for PO.
    <b>Confirmed Ship Date (or actual ship date if already shipped) – PGI Date
    Quantity of Product to be shipped (base unit of measure) Sales Order Qty
    Shipped Quantity of Product (normally zero)
    Shipped From Plant Name</b>
    Excellent reward is compulsary.
    reagrds,
    vijay

    Hi,
    Please find below the some of tables and fields for the PO. But from your query hope you are refering some other PO.
    Table : EKPO
    Fields
    KTMNG - Target Qty
    MENGE - Open Qty
    WEPOS - Goods Receipt
    LEWED - Latest GR date
    Table : EORD
    Fields
    RESWK - Procurement plant
    FRESW - Fixed Issuing plant
    LIFNR - Vendor
    FLIFN - Fixed vendor
    Regards,
    BK

  • Table name & field name for the tab Document in Marketing Planner

    Anybody knows what is the table name and field name for the "Document" in Marketing Planner and Account Planner.  In this tab we attach relevant Campaign or Coupon or reference advertisement document.  I am not able to find out in which table and field it is storing.

    like yogesh has suggested
    you have to use the table RESB only to get the total qty by using the field BDMNG
    or create the query using the same table and get total qty report.
    use logical database RMM

  • Print program name for the dunning form F150_FR_DUNN_01 in sapscript

    Hi,
          I am not getting the exact print program name for the dunning form F150_FR_DUNN_01 in sapscript. After an extensive search I have come across few names of print program like SAPF150D2 and SAPLF150. But still I am not understanding which one to use for the form and also how to use it. I am unable to understand which include I should use to write my code.
    Kindly help me.
    Thanking you.
    Pujarini Patra

    Hi,
    Yes, you should be able to assign F150_FR_DUNN_01 in Dunning Forms customizing:
    and yes, I too would absolutely try to go for either a Smartform or even a PDF Form (if i'd have all the necessary setup for them, like Adobe Document Services, in the system already). I have Basis 702 SP  0011and FINBASIS 600 SP 0021, so all the following technicalities refer to those releases:
    The corresponding SAP sample Forms are:
    - F150_DUNN_SF for Smartform; and
    - F150_DUNN_SF for pdf Form (don't let the name confuse you )
    I'm not entirely sure if it's a good idea to try to convert/migrate Sapscript to Smartform and the Smartform to PDF Form - have never done that  myself and don't know how good/usable the migration result is. I just take the interface of Smartform from SAP and do the rest from scratch or by copying over the common parts of our existing custom forms.
    There are the SAP Standard wrapper FMs for SF and PDF forms already in the System:
    - FI_PRINT_DUNNING_NOTICE_SMARTF calling PRINT_DUNNING_NOTICE_SF and
    - FI_PRINT_DUNNING_NOTICE_PDF calling PRINT_DUNNING_NOTICE_PDF.
    So, theoretically, all you had to do to replace SapScripts (or even to enable all three form types) is to assign a custom BTE Event handler FM to event 1720 (for correct Application), which could detect, what type of form is assigned in Customizing and call the corresponding wrapper FM.
    As a sample for coding PDF form wrapper call one could take FI_PSO_EVENT_00001720_PDF (if you have IS-PS) in the system. I'd take out the IS-PS specific "business logic" like posting dunning charges (if it does not apply to my solution) and add the logic to decide, which wrapper to call.
    The confusing part about the customizing (Table T047E) to me is that there seems to be no form type defined anywhere in there... just the FORNR field for form name, which should apparently take the names of all three form types... I'd  try to extend that table with custom Form type field and try to regenerate Table Maintenance dialog for  view Cluster VC_T047_F... That would save the whole effort to try to detect the type for  form assigned...
    Another tip, in case you didn't know it already: you should be able to see all the Customizing paths, where T047E is involved, when you enter table name in SM30 and press "Customizing" and then "Continue w/o Specifying Project":
    The selected entry is the one you are looking for to assing your custom forms, I believe.
    cheers
    Janis

  • The product that I purchased is not working!!!! I need help and I've been stuck in your "Contact us loop" for the last few days and I'm getting frustrated. How do I contact you for HELP!

    The product that I purchased is not working!!!! I need help and I've been stuck in your "Contact us loop" for the last few days and I'm getting frustrated. How do I contact you for HELP!

    Probably the best place to start is the right forum for your product. This is the forum for Distiller Server, a long dead product used by big companies, and probably not what you have. If you can't find the right forum, please let us know the FULL name of what you paid for (please check your invoice, as Adobe have many similar products), and we can perhaps direct you. Good luck!

  • How to get a server name through the load balancer

    Hi.
    I'd like to get the server name where is my application installed. There are some servers and clients access there throuth the load balancer. When I try to get it with request.getServerName(), I get the virtual address of the load balancer.
    Any suggestions?
    Thanks.

    Dear Sikindar;
    THanks for your cooperation, but I believe that these Tcodes will eb helpful if I know the table name, actually we don't know its name and that's what I'm asking about, how can I get the table name for the ABAPer?
    Appreciating your cooperation.
    Best Regards;
    Lobna

Maybe you are looking for

  • Blocking the filling of a cost center in the creation of a Purchase Order

    Hi All, I've some cost center which are obsolete and mustn't be used in the creation of a Purchase Requisition (or Purchase Order). Could anyone suggest me how to do it? Thanks a lot G. Edited by: Jeyakanthan A on Jun 2, 2011 1:28 PM

  • Button component

    hi every body, i m on a project that allows user to select a button instance from a list (list of pictures or buttons) and once the user selects it, i am supposed to build a user interface with the button they selected. i have already written my code

  • Problem in Installing Oracle 10g on Linux Enterprise Edition RHEL 3

    Hi All, I am trying to install Oracle10g Rel 2 on RHEL 3, but the installer fails for some OS packages (rpms I think) for being of older edition like gcc etc. Whats the workaround for this or do I need to install for a more latest Version of Red Hat

  • I need help down loading photoshop elements 11 - PLEASE HELP

    I have purchased the Adobe Photoshop Elements 11 and I have the serial number.  I have attempted to down load it twice and each time when it said down load complete, I click open and it takes me to the app store.  When searching my computer for it, i

  • Crashing Indesign writing 5 letters

    Hi, I'm trying to write this 5 letters combination: ÌÍ5GÓ Always causes the crash of indesign. Just write this in a new document with the text instrument. I have test it with indesign CC 2014 and indesign CS6 (italian versions), with mac and windows.