How to write nested queries using DB Adapter?

I want to write following nested query using DB Adapter can any one help...
SELECT INVOICE_ID,FILE_NAME FROM  BILLING_INVOICE_PDF_V where FILE_ID =(
(SELECT MAX(FILE_ID) FROM  BILLING_INVOICE_PDF_V WHERE  (INVOICE_ID = ‘12345’)));
Thanks,
Ram.

Hi Ram,
Most likely it is the semicolon at the end of the SQL statement that's causing the db adapter to throw the error; just enter the custom sql statement without a semicolon at the end.
SELECT INVOICE_ID,FILE_NAME FROM  BILLING_INVOICE_PDF_V where FILE_ID = (SELECT MAX(FILE_ID) FROM  BILLING_INVOICE_PDF_V WHERE INVOICE_ID = '12345')

Similar Messages

  • How to Write a PDF using File Adapter

    Hi All,
    Can anyone please let me know how to create a PDF file at the receiving end using a File Receiver Adapter. The source is an XML file. The scenario is as follows.
    XML-File ---> XI --->PDF-File.
    Any help would be highly appreciated.
    Thanks in Advance
    Anil.

    hi ,
    if u r using pi7.1 you  can  use agents concept.
    please find the links.
    http://help.sap.com/saphelp_nwpi71/helpdata/en/43/fc39c16bfb025ee10000000a1553f7/frameset.htm
    How to get started using Conversion Agent from Itemfield
    More on the SAP Conversion Agent by Itemfield
    Integrate SAP Conversion Agent by Itemfield with SAP XI
    Conversion Agent a Free Lunch?
    How to get started using Conversion Agent from Itemfield
    https://websmp102.sap-ag.de/~sapdownload/011000358700001090982006E/ConvAgentDocSP16.zip
    https://websmp102.sap-ag.de/~sapdownload/011000358700004921152005E/ConversionAgent.pdf
    XI: Generate PDF file out of file adapter
    XI: Read data from PDF file in Sender Adapter
    The specified item was not found.
    regards,
    navneet

  • How to write join queries in Smartforms

    how to write join queries in Smartforms pls give me sample

    just as u write it in normal reports u can do the same in smartforms but it is suggested tht i u havve a custom print program do it thr and pass it thru interface
    кu03B1ятu03B9к

  • How to write a file using mod pl/sql

    hi,
    i am having a submit button in my procedure. which should inturn create .sql file in a file path.
    is there any way to create a fileusing htp and htf methods.
    Thanks in advance
    Hari

    >
    i am having a submit button in my procedure. which should in turn create .sql file in a file path.
    is there any way to create a file using htp and htf methods.
    >
    Why are you wasting your time coding from scratch using the PL/SQL Web Toolkit instead of the APEX framework?
    From Re: how to write a file using mod pl/sql it appears that you are not using APEX, so a number of the approaches APEX offers are not relevant. You appear to be looking for a file download solution using the <tt>wpg_docload.download_file</tt> method, such as:
    create or replace procedure download_file (
        p_filename  in     varchar2
      , p_mimetype  in     varchar2
      , p_content   in out nocopy blob)
    is
    begin
      -- Set up HTTP header.
      -- Use "application/octet" as default MIME type.
      owa_util.mime_header(nvl(p_mimetype, 'application/octet'), false);
      -- Set the size so the browser knows how much to download.
      htp.p('Content-length: ' || dbms_lob.getlength(p_content));
      -- Filename will be used as default by the browser in "Save as..."
      htp.p('Content-Disposition: attachment; filename="' || p_filename || '"');
      -- Close header.
      owa_util.http_header_close();
      -- Stream the file content to the browser.
      wpg_docload.download_file(p_content);
    end download_file;

  • How to write a application using WDJ with the adobe form ?

    Hi, experts,
    I don't know how to write a application using !!webdynpro for java!! with the adobe form so that I can fill data to the adobe form and get data from the adobe form.
    Note: I have configed the ADS(adobe document services),and I can create a application with a interactiveform in webdynpro for abap and run it successfully, so that I can  fill data to the adobe form and get data from the adobe form.
    Do you give me some hint?
    Thanks a lot.
    Best regards,
    tao
    Edited by: wang tao on Sep 9, 2008 8:59 AM

    Hi,
    Refers the following links.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4fd2d690-0201-0010-de83-b4fa0c93e1a9
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5f27e290-0201-0010-ff82-c21557572da1
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c9a954-aa20-2a10-64bb-ea0835204e03
    Thanks
    Abhilasha.

  • How to read pdf file using file adapter

    Hi..
        How to read pdf file using file adapter?
    regards
    Arun

    Hi
    This may help you
    /people/sap.user72/blog/2005/07/27/xi-generate-pdf-file-out-of-file-adapter
    /people/alessandro.guarneri/blog/2007/02/21/sap-xi-acting-as-a-huge-file-mover
    ---Ram

  • How to write SELECT statement using tables ekko,ekpo and eket?

    Hi,
    I got a problem in  performance tuning using below tables?
    how to write SELECT statement using tables EKKO,EKPO and EKET and in conditon ( WHERE clause)  use only fields 
                        ekko~ebeln       IN ebeln
                       ekko~loekz       EQ ' '
                       ekko~lifnr       IN lifnr
                       ekko~ekorg       IN ekorg
                      ekko~ekgrp       IN ekgrp          
                       ekpo~werks       IN werks
                       ekpo~pstyp       EQ  '3'
                       ekpo~loekz       EQ  space
                       ekpo~elikz       EQ  space
                       ekpo~menge       NE  0
                     eket~rsnum       NE space.
    Thanks in Advance.
    bye.

    Hi,
    ekko~ebeln IN ebeln
    ekko~loekz EQ ' '
    ekko~lifnr IN lifnr
    ekko~ekorg IN ekorg
    ekko~ekgrp IN ekgrp
    ekpo~werks IN werks
    ekpo~pstyp EQ '3'
    ekpo~loekz EQ space
    ekpo~elikz EQ space
    ekpo~menge NE 0          " Remove this from where clause
    eket~rsnum NE space.    " Remove this from where clause
    ' instead delete the entries after fetching into the table
    DELETE it_itab WHERE menge EQ '0' AND rsnum EQ ' '.
    Regards
    Bala Krishna

  • How to write a log using abap mapping

    Hi all.
    in PI 7.1 environment I need to use abap mapping and I wish to write some XML data into a table that I created for logging the data.
    I know that using the abap mapping I can parse an XML file. My question is how to write this table defining a specific method, if it is necessary.
    Any help or suggestion is well appreciated.
    Many thanks in advance for your kind cooperation.
    Regards,
      Giovanni

    hi,
    >> My question is how to write this table defining a specific method, if it is necessary.
    just like to normal table (insert statement)
    parse XML and get the data you need and just insert into the DB table
    there are many tutorials showing how to parse xml file inside abap mapping
    so just do a little search on sdn
    Regards,
    Michal Krawczyk

  • How to create a scenario using RFCsender adapter

    Hi,
    I'd like to create an RFC to RFC scenario. Just for a test. I can use receiver RFC adapter, but I don't know, how the sender one works. I even can't understand how to call it. Using the receiver side - I import RFC's metadata and call the FM. No problem with this. But what about the sender side? Should I create an empty FM, and int's importing parameters will be my Outbound interface, and exporting parameters my inbound interface (in case of a sync scenario)? If yes, when I call this FM, how does it know, that it should not run the (empty body?) of the function, but send the request to XI using RFC connection?
    Thank you for clarification,
    Olian

    Hi,
    How to Trigger BAPI From R3 ToXI
    /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
    RFC Sender
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009
    How to test the RFC to Flat File scenario
    Regards
    Seshagiri

  • Multiple BPEL/ Mediator payloads how to store in DB using DB adapter.

    I have huge XML which is XSD define for the same and have complex types which required around > 50 DB tables to store the entire XML.
    Have one parent table which has reference ID to child tables.
    Now first I want store the parent table and get the ID and use the same ID to store child tables (it has parent child relationship up to 5 or 6 levels)
    How can I define / use the BPEL process.
    I want to use the file adapter to read the XML file.
    And I need to define BPEL process with mediators if required?
    And use the DB adapter to store the data.
    My questions are how can I define BPEL process with huge XSD which had multiple elements?
    How can I use db adapter to store more than 50 tables and getting parent ID for child tables?
    Any help is appreciated.
    Edited by: user8539507 on Feb 29, 2012 7:35 AM

    Sridhar thanks for replay,
    I did the same, Few mapping tables i have ,
    say A-->B , A-->C-->D (Master Child relations) map is B-->E & D-->E (map table) for this type of tables i have following error.
    Exception [EclipseLink-48] (Eclipse Persistence Services - 2.1.3.v20110304-r9073): org.eclipse.persistence.exceptions.DescriptorException
    Exception Description: Multiple writable mappings exist for the field [TABLE5_MAP.ID]. Only one may be defined as writable, all others must be specified read-only.
    And also other question i have by doing this is - won't it be heavy pay load, due to complex transformation don't we get any issues in long run?
    is there way to insert sequentially from the XSD element parts wise?
    Say i have File XSD(#1P1) to DB xsd(#2T1). return the ID next sequence
    File XSD(#1P2) to DB xsd(#2T2,T3,T4,T5).
    File XSD(#1P3) to DB xsd(#2T6,T7,T8).
    File XSD(#1P4) to DB xsd(#2T9,T10,T11,T12).
    File XSD(#1P5) to DB xsd(#2T13,T16,T14,T15).
    from Leftside(exposed service) Fileadapter have the XSD(#1) and rightside External Refences(DB adapter(s)) have the XSD(#2)
    In this scenario would it be possible to use one DB adapter? do i have use multiple ? if i use multiple how the transaction will work?
    Thanks

  • How to send Excel File using file adapter

    Hello,
    Please could you tell how i can send an excel file using the file adpater?
    thank you.

    Hi hassiba ,
    If u want to doc on creating modules just check the wonderful document.
    How To Create Modules for the J2EE Adapter Engine at service.sap.com. It will clear all the basics of creating Adapter module.
    https://websmp102.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000582377&
    Thanks ,
    sekhar.

  • How to get file name using File adapter Sync read

    Hi All,
    I am using SOA 10.1.3.3 and JDEV 10.1.3.3.
    I have an async bpel process.
    I have to read file name in this process... so i have used file adapter sync read operation.
    How can we get the file name with out payload using sync read.
    For normal read (Inbound Spec)we have UseHeaders="true" property.
    Is there any property for sync read to read the file name.
    Please help me
    Regards
    PavanKumar.M
    Edited by: [email protected] on Oct 27, 2009 11:23 PM

    Hi Eric,
    The info in the link provided by you is for a normal read.
    I need to read he file name using Sync read operation.
    Regards
    PavanKumar.M

  • How to write Block ALV using Object-oriented methodology?

    Hi all,
    How to write a Block ALV without using 'Reuse_ALV.....' FMs? I want to use the CL_GUI....' methods. What is the procedure? Any sample block ALV?
    Thanks,
    Charles.

    Currently there is not an OO method of implementing the block ALV, it is only available using the REUSE function module.
    Regards,
    RIch Heilman

  • How to transmit data securely using MLLP adapter

    I am looking for options how we can securely transmit hl7 data using MLLP adapter to third party. I read in books saying MLLP is used within LAN, Is that true or can this be used across internet.
    Is it possible to add SSL  certificate for data encryption before send data via MLLP adapter. Can you please advise. Thanks you very much.

    Short answer: No, SSL cannot be used with MLLP.
    Long answer: There is no specific provision for over-the-wire encryption in the MLLP specification.  So, technically, the TCP channel can be encrypted with SSL, but there are no implementations, such as the BizTalk MLLP Adapter, that I'm aware of that
    would actually do this.
    To secure the communications between two MLLP endpoints, you would have to use either a tunneling protocol (VPN) or a secure IP connection (IPSEC).  The difference between the two is minimal.
    MLLP was developed to satisfy an internal, to the organization, requirement where secure communications was not an issue.

  • How to write the query using Index

    Hi All,
    I have to fetch the records from Database table using Index, how can i write the query using Index. Can any body plz send me the sample code.
    Help Me,
    Balu.

    Hi,
    See the below Example.
    select * from vbak up to 100 rows
    into table t_vbak
    where vbeln > v_vbeln.
    sort t_vbak by vbeln descending.
    read table t_vbak index 1.
    Regards,
    Ram
    Pls reward points if helpful.

Maybe you are looking for

  • How do I get OT fonts to stop distorting on Web pages (in Internet Explorer)?

    I created a great-looking newsletter in Adobe InDesign CS4 (I work for a very large organization and am still waiting for newer software, sorry). It used Adobe OpenType fonts including Myriad Pro, Myriad Pro Black, and Adobe Caslon Pro. I selected "O

  • Why I have to "sudo rmmod iwl3945 | sudo modprobe iwl3945" when start.

    my iwl3945 dosen't work if i not "sudo rmmod iwl3945 | sudo modprobe iwl3945" first when I start the dmesg |grep iwl3945 results are following sda: sda1 sda2 < sda5<6>iwl3945: Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux, 1.2.

  • Best way to increase network or broadband coverage...

    Hi, hoping someone can help me out with a networking question. I have BT infinity coming into a bungalow, the hub is centrally located in the house and we get good wireless signal in all rooms. I have an external garage with back office adjacent to t

  • Stacked bar combination

    Hi All, I have built a stacked vertical bar chart in one of my applications and now am trying to have a line on these stacked bars. Is there any chart type available for the stacked bar combination. Please advice. Thanks, Prasanthi.

  • [JSF] com.sun.faces.saveStateFieldMarker

    hi iam using folllow libraries - myfaces 1.5 and tomahawk 1.5 - trinidad 1.0.0 - richfaces 3.0.0 over the pages i am navigate with panelTabs. if start the weba-app i get at the end of first page i get the message "com.sun.faces.saveStateFieldMarker"