Can i get a report using join conditions

please provide me some sample reports using join conditions.
thanks

Hi,
You may use the sample code:
PARAMETERS: p_cityfr TYPE spfli-cityfrom,
            p_cityto TYPE spfli-cityto.
DATA: BEGIN OF wa,
         fldate TYPE sflight-fldate,
         carrname TYPE scarr-carrname,
         connid   TYPE spfli-connid,
       END OF wa.
DATA itab LIKE SORTED TABLE OF wa
               WITH UNIQUE KEY fldate carrname connid.
SELECT ccarrname pconnid f~fldate
       INTO CORRESPONDING FIELDS OF TABLE itab
       FROM ( ( scarr AS c
         INNER JOIN spfli AS p ON pcarrid   = ccarrid
                              AND p~cityfrom = p_cityfr
                              AND p~cityto   = p_cityto )
         INNER JOIN sflight AS f ON fcarrid = pcarrid
                                AND fconnid = pconnid ).
LOOP AT itab INTO wa.
  WRITE: / wa-fldate, wa-carrname, wa-connid.
ENDLOOP.
Regards,
Renjith Michael.

Similar Messages

  • Very urgent (using join conditions in PI)

    Hi PI gurus.
    My scenario is SOAP to JDBC(Portal Webdynpro screen to Oracle database).
    I have a requirement to fetch some complex data from the database using complex nested queries.How can i go ahead using join conditions in PI.Here the client is insisiting only on queries and rejected all other methods for solving this like
    1)Java proxies
    2)stored procedures written in the database system
    3)Create a logical view in database system .
    The following option is permitted for me by the client to follow
    ·  Using the SQL_QUERY as a query method in the JDBC Receiver Channel in XI
    · Trying out JOIN conditions to make multiple query into a single query:- Here need to check the feasibility of the JOIN Condition
    Please help me to complete our task.
    points will be rewarded for helpful answers.
    Thanks & Regards
             Veena

    Define the data structures (Request & Response)
    A JDBC Synchronous scenario, the response message type name is dependent on the request message type name
    i.e., if request is
    Dear Raj,
    This is my scenario SOAP-to-JDBC(syn) with out using BPM's.
    4datatypes & message types,
    MT_JDBCRequest
    --->Statement1
    My response msg type
    MT_JDBCRequest_response
    >Statement1_response
    >row
    twoMessage Interfaces, two mappings (for request & response) and one interface mapping 
    Configure the Objects In Integration directory.
    Define the Web services and save the WSDL file After completion of configuration.
    WSDL file is used for the integration of Portal - PI scenario.
    Process Flow:
    1.     User requests for a report from the available list of PSMA reports by providing required set of input parameters.
    2.     Portal forwards the request with these input parameters to PI using web service model through SOAP protocol and the required results are derived from PI
    3.     Report is viewed on portal screen.
    Thanks & regards,
       Veena

  • Where can i get the report server name in Reports 10g

    Where can i get my report server name in 10G ?

    Thanks ..
    When i opened the bat file :
    i did not find any report server name ...
    This is my file :-
    @echo off
    REM $Header: rwdiag.bat 13-may-2005.03:21:21 sunaraya Exp $
    REM
    REM rwdiag.bat
    REM
    REM Copyright (c) 2005, Oracle. All rights reserved.
    REM
    REM NAME
    REM rwdiag.bat - rw diagnostic tool
    REM
    REM DESCRIPTION
    REM Script to run the diagnostic tool used to locate servers / monitor packets on the network
    REM
    REM NOTES
    REM Usage: rwdiag.bat -find <server name> | -findAll [-conf <config file>] [-timeout <timeout in sec>]
    REM
    REM Usage: rwdiag.bat -monitor [-log <logfile>] [-conf <config file>]
    REM
    REM MODIFIED (MM/DD/YY)
    REM sunaraya 05/13/05 - Added rwrun.jar to the classpath for bug 4361664
    REM sunaraya 04/22/05 - Provided execute permission to the script for bug 4323789
    REM sunaraya 04/14/05 - sunaraya_bug-4221172
    REM sunaraya 04/14/05 - Creation
    REM
    set ORA_HOME=C:\ORANT
    if "%ORA_HOME%"=="" goto ERROR
    set CLASSPATH=%ORAHOME%\jlib\zrclient.jar;%ORA_HOME%\reports\jlib\rwrun.jar
    %ORA_HOME%\jdk\bin\java -DORACLE_HOME=%ORA_HOME% -classpath %_CLASSPATH% oracle.reports.utility.DiagServerLocator %*
    goto END
    :ERROR
    echo "ORACLE_HOME is not set"
    echo.
    :END

  • I created a new apple id for my iphone and ipad which work great and allow me to access Icloud. on my macbook air can't get it to use my new apple id for icloud. Help?

    I created a new apple id for my iphone and ipad which work great and allow me to access Icloud. on my macbook air  I can't get it to use my new apple id for icloud. It keeps going back to my old apple id and doesn't afford me to alter it. I use system preferences-icloud and it just wants to verify the old apple id but doesn't afford me the opportunity to delete teh account or edit it like the iphone5 and ipad. Help?

    Welcome to the Apple Community.
    You need to use the sign out option on the left side.

  • Problem:I can't get oracle MajorVersion using jdbc in 9.2.0.1.0!

    I can't get oracle MajorVersion using jdbc in 9.2.0.1.0,how can i do and how many oracl version can't get MajorVersion?
    thanks,erveryone! online waiting

    What errors are you getting? Can you post the codew you are using to get MajorVersion.

  • How can I get Launching report directory in report trigger??

    how can I get Launching report directory in report trigger??
    pls help me :'<
    I can run this function in forms.
    "how can I get Launching report directory in report trigger??"
    does reports have same function???

    Click the little down arrow/+ symbol  next the + - in the folders bar.

  • How can I get computer to use external DVD drive?I have a HP dvd640 plug in play drive I want to ude but my iMac dosen't see it as connected.

    How can I get *computer* to use external DVD drive? (1.8 GHz PowerPC G5 Version 10.3.9)

    Place cd/dvd in drive.  cd/dvd icon will show on desktop.
    How can I get computer to use external DVD drive?I have a HP dvd640 plug in play drive I want to ude but my iMac dosen't see it as connected.
    What is ude?
    How is it connected?  firewire or usb?
    When connected it should appear in system profiler.
    blue apple > about this mac > more info button. Click on the hardware line. It has a little triangle in front of the work hardware.
    look for firewire or usb.
    Robert

  • Can't get pan to use more than 4 connections/server

    My ISP has a news service that I users can access with a max of 20 connections per user.
    I've been trying to use pan to download some file from this server, but I can't get it to use more than 4 connections.
    On the pan web site it says to go to the NNTP menu,but I just can't find it.
    What's up? Am I blind?

    Have you overriden the doPost() method in ViewFormData? If not I think that you get this error message as a default
    doGet() and doPost() should do the same thing so have one call the other

  • Can't get authorized to use CS5; PS 6.0; PS 7.0 on new computer

    Can't get authorized to use CS5; PS 6.0; PS 7.0 on new computer.

    Sorry, failure to authorize was an earlier problem (I think.)
    PS 7 is now uploaded.
    Current question is to determine and download the latest version of
    Bridge/Raw converter that will work with my PS 7.0 software. What
    version(s)?  Also, not clear on my CS version: It's dated 9/3003.
    All this for Win 8  64bit
    Thanks

  • Have tried to restore settings due to problems, now Iphone shows Sim Failure, how can I get back to using my phone? Please help, its a business phone. :(

    Hi, I have tried to restore settings on my Iphone due to problems I was having with the phone cutting out when talking on the phone, now Iphone shows Sim Failure, how can I get back to using my phone? Please help, its a business phone.

    Hi jclarke64, 
    Thank you for contributing to the Apple Support Communities. 
    I'm sorry to hear that your iPhone 4s was lost, and glad that you were able to upgrade. 
    If your iPhone 4s was backed up to iCloud or using iTunes, you can restore the backed up data to your new phone. 
    See the steps in this article for help with restoring from a backup:
    Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support
    All the best,
    Jeremy 

  • I have a recorder that outputs wma files. How can I get garageband to use my wma files?

    I have a recorder that outputs wma files. How can I get garageband to use my wma files?

    I don't think that GarageBand can use wmas, but there's always good old conversion, and GarageBand can definitely use mp3s. Personally, I recommend media.io for stuff like this, but of course it depends on the size of your files. Otherwise I don't know that there's anyway to get GarageBand to work with them...

  • Mail application is still there. All of my emails and folders are gone since iCloud. How can I get them back using Snow Leopard? Or can I? Do I have to wait for Mountain Lion?

    Mail application is still there. All of my emails and folders are gone since iCloud. How can I get them back using Snow Leopard? Or can I? Do I have to wait for Mountain Lion?

    I need to check a few other things...
    Click on 'Mail' in the upper left corner next to the Apple ()
    Click Preferences
    Click the 'Accounts' tab
    Make sure your iCloud account is highlighted in the column on the left.
    In the account information section what does it say next to:
    Incoming Mail Server?
    Outgoing Mail Server?
    Also, did you use MobileMe before the iCloud?

  • HT5622 What does this mean?  "can't get email being used by another device."

    What does this mean?  "can't get email being used by another device."

    Goto Finder > Help > type in Trash...
    From Finder Help Trash...
    " Empty the Trash
    Command (⌘)-Shift-Delete
    Empty the Trash without any warning or when it contains locked files
    Command (⌘)-Shift-Option-Delete
    Hold down the Option key, and then choose Finder > Empty Trash "
    See here
    http://support.apple.com/kb/HT1526
    http://www.thexlab.com/faqs/trash.html

  • How can i get system variable using java

    Hi,
    I just want to know how can i get system variables using java code.
    for example i want to get the the date for today or i want to get the number of processes that's running.
    Thanks alot

    Hi,
    I just want to know how can i get system variables
    using java code.
    for example i want to get the the date for today or i
    want to get the number of processes that's running.
    Thanks alotSome generic "system variables" are available though Java, usually through the System class.
    Date today = new Date();
    is instantiated with the current date and time.
    Other system values, like environment values, should be passed to java through the command line (-D option) by setting system properties.
    Finally, platform specific values like the number of processes running will have to be written in platform specific code and executed by JNI (java native interface).
    Java is platform or system agnostic. Common system values, like time, are implemented. Hopefully you won't need platform specific values.

  • How can I get a report to use a DSN instead of a database name?

    DSNs are great things.  By using a DSN in a database connection string, you don't have to worry about what happens if you have to look at a different database, or if a database name changes.  All you have to do is change the database the DSN points to, and everything that was built using that DSN still works.
    Everything, that is, except Crystal Reports.
    I am using CR XI.  Our customer's database is named "Anneal", and it uses PostgreSQL.  I have several copies of that database, taken at different times and for different purposes, on my machine:  "Anneal", "AnnealTest", "Anneal_2_8_10", and on and on.  I also have a DSN named "WinCaps".  The reorts I have developed for this customer were set up to use an ODBC connection based on the WinCaps DSN.  But if WinCaps pointed to the "AnnealTest" database when it the report was created, and then I delete the AnnealTest database and change the WinCaps DSN to point to a database named "Anneal", and then try to open the report, I get a complaint that the AnnealTest database does not exist!  Yes, I know it doesn't exist.  I am expecting CR to use the DSN I told it to use, which should get me to the Anneal database.
    The fact that CR complains about the AnnealTest database tells me that internally, CR is retrieving the actual name of the database and storing that instead of storing the DSN name, completely defeating the purpose of the DSN.
    Is there any way I can set up my report to use whatever database the DSN happens to be pointing to, instead of the database the DSN pointed to at design time?
    Thanks very much!
    Rob Richardson

    Hi Rob,
    Crystal assumes you are setting location to the database and it stays that way when run. Yes we do keep the connection info in the RPT file.
    There's a few options that may help. First, can you upgrade to CR XI R2? It' still supported...
    Go to this link: http://www.sdn.sap.com/irj/boc and download the trial version of CR XI R2 and use your XI keycode, then apply the patches which you can get to by clicking on the BusinessObjects tab above, then Downloads.
    Direct link to the Trial version: http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    Second, in the report itself check on the Verify on first refresh, save the report and then test it on another PC connecting another database.
    Next option to to try these registry key changes, usual warnign about altering the registry:
    HKEY_CURRENT_USERSoftwareBusiness ObjectsSuite 11.0Crystal ReportsDatabaseOptions - VerifyWhenDBDriverUpgraded = Yes
    And try changing this one also - DontAutoConvertODBC = Yes
    Close the Designer first or your changes won't stay.
    THey may have to simply verify the data manually and then save the report so the updated location info is saved in the Report.
    Crystal is very database dependant obviously so asumming changes made to the DSN are automatically updated can cause a lot of issues for the end user also but it depends on your point of view. We consider this working as expected.
    Thank you
    Don

Maybe you are looking for