Use multiple LDB in  a single program

Hi,
I want to use multiple log Database in a single program, is there a way to acheive the same..
Thanx.
Arjun.G

Hi,
You can use function module "LDB_PROCESS" to call a second Logical Database from a program where you already assigned one Logical DB.
There is a documentation and sample program available in every SAP system.
1. Call transaction ABAPDOCU
2. Expand node: Database Access > Logical Databases
3. Double click on node: Calling LDBs using a Function Module
There you will see an example how this can be achieved.
<<text removed>>
Regards,
Ogeday
Edited by: Matt on Feb 17, 2009 5:54 AM - please do not ask for points

Similar Messages

  • How to use multiple hierarchies for a single char in single query

    Hi,
    Is there any way that we can use multiple hierarchies for a single char in single query. I tried and it just allows me to select one hierarchy even if I use hierarchy variable.
    I have a requirement where user wants to see information related to a cost center with different cost center groups in different hierarchies (every year has different cost center group hierarchies).
    Suppose I want to see information related to a cost center from year 2001-2004.in these four year cost center may have been associated to different groups depending upon that year hierarchy. How can I do that?
    Thanks
    Jona

    Nope. Now way to do this.
    There is always just one hierarchy assigned to a characteristic. And even if the hierarchy was time dependent, it only reads it for one key date and not according to transaction data.
    Regards,
    Beat

  • BC4J Problem using multiple EntityObjects in a single ViewObject

    Hi,
    I have found a bug while using multiple EntityObjects in a single ViewObject.
    Considere the following example:
    Table A:
    A_ID
    Table B:
    B_ID
    A_ID (FK) NULLABLE
    TABLE C:
    C_ID
    B_ID (FK) NULLABLE
    For each table there is a corresponding EntityObject : AEntity, BEntity and CEntity.
    Now building a ViewObject based on CEntity, BEntity and AEntity, where AEntity and BEntity are referenced via their corresponding associtaions, the following problem occurs:
    1. As long as both IDs are not NULL everything works fine, but when I set the B_ID attribute of CEntity to NULL I receive a NullPointerException with the detail "null".
    2. If the attribute A_ID of BEntity is NULL the values based on AEntity are not updated at all (they keep the value they had for the last row).
    Any information or feedback on this issue would be very welcome!
    Regards
    Frank

    Here's a sample code that works for a
    LineItem->OrdView->CustomerView case,
      public void setOrdId(Number value)
        //set the boolean if there's a current order.
        boolean hasOrd = (getEntity(1) != null);
        setAttributeInternal(ORDID, value);
        //after the OrdID is set, check if there's a valid Ord Entity in this row.
        if (hasOrd && getEntity(1) == null)
          //if not, then set the Customer Entity to null as well.
          super.setEntity(2, null);
          LinesViewImpl vo = (LinesViewImpl)getViewObject();
          //And force a RowUpdated event for "customer-entity-usage-attributes".
          vo.notifyRowUpdated(findRowSetForRow(null), new oracle.jbo.Row[] {this}, new int[]{6,7});
      } Note that in the above, you have to "override" notifyRowUpdated method in the ViewObjectImpl subclass, so that it's available to the LineViewRowImpl subclass. You can do this
    globally by creating a custom subclass of ViewObjectImpl that all the VOs in your application "extends".

  • How to use multiple tape drive from single client when I want to backup single filesystem?

    Hello All.
    I want to backup 1 filesystem using 4 tape drives for reducing backup time.
    In case of symantec veritas netbackup, they can user "NEW_STREAM" for multi-streaming backup.
    Please anybody let me know that how to do use multiple tape drive for single client.
    1. Backup Source server : Linux (1 client)
    2. Backup Soucre :      /data1  (500GB)
        -> Current directory structure doesn't have sub directory under /data1, just files present under /data1
    If direcotry struceture has a sub-direcotry like( /data1/aaa, /data1/bbb ), Is it availble to use multiple tape drives?
    3. Tape Drive with OSB : LTO6 * 4 drives
    Thank you.

    You would have to create a different dataset for each sub-folder. If you only have files at the top level folder then even the NEW_STREAM option couldn't be used to split the job.
    Organise it into folders and then create datasets in a client folder such as :
    /usr/local/oracle/backup/admin/config/dataset/Linux/data1_aaa
    /usr/local/oracle/backup/admin/config/dataset/Linux/data1_bbb
    Then in the schedule you just specify the Linux folder. In each dataset you list the hostname and the folder name, such as :
    include host Linux
    include path /data1/aaa
    Now it will create a new job for each dataset and therefore each folder.
    Thanks
    Rich

  • How to use multiple tape drive for single filesystem on single client.

    Hello All.
    I want to backup single filesystem with multiple tape drive.
    Incase of Symantec veritas netbackup "NEW_STREAM" for multi-stream backup.
    Backup client has a  single backup filesystem like /data1  directory with 4 LTO6 drives.
    /data1 directory doesn't have a sub-direcotry, just present a files.
    If /data1 directory has a sub-directory like /data1/aaa, /data1/bbb, /data1/ccc , Is it possible to use multiple drives?
    Please anybody answer the questions.
    Thanks advanced.

    See how to use multiple tape drive from single client when I want to backup single filesystem?

  • Using multiple ipods on a single itunes

    I currently have a 40GB ipod and have bought for my wife and daughter 2 2gb ipod nanos'. i have all our music on itunes in one library, how can i download only the songs my wife or daughter want onto their ipods as opposed to downloading every item which is what happens with my ipod currently
    Hope you can help
    Thanks
    Dave

    There are a couple of recommended methods for using more than one iPod on a single computer. Method one is to have individual Mac or Windows user accounts which by definition would give you completely separate libraries. Each account has it's own iTunes folder, Library and iTunes Music folder and you load it with CDs etc just as you did with your original one. Each iPod can be set to update however the owner chooses, sync all, manual or sync specific playlists.
    Method two is to set your preferences so that either one or all iPods get updated with only certain playlists within one library. Have a look at this article and see what you think and go for whichever you feel suits your needs best: How To Use Multiple iPods with One Computer
    Another option when using a single library is to set the iPods to manual update: Managing content manually on iPod
    Choosing the update option "automatically update selected playlists only" (called Sync Music - Selected playlists in iTunes 7) allows you to create a playlist specifically for each iPod and drag the tracks you want into it. If you tire of the list and want to change it, you just add or remove the songs you don't want. The ones you take out out remain in the library to be used by the other iPods. Make your playlist a Smart playlist and limit the size to just below the advertised capacity of your iPod ( for example, around 3700MB for a 4GB or 1800MB for a 2GB Mini or Nano). You can read more about playlists at these links:
    iTunes: Creating playlists of your favorite songs
    How to create a Smart Playlist with iTunes

  • HOW CAN I  USE MULTIPLE INNERJOINS IN A SINGLE SELECT STATEMENT?

    HI,
    I AM SHABEER AHMED,
    I AM GETTING AN ERROR WHILE I ATTEMPT TO EXECUTE A SELECT STATEMENT WITH MULTIPLE INNER JOINS . BECOZ I WANT TO FETCH ITEM DATA, PARTNER DATA  BASED ON HEADER DATA .
    THEN OF COURSE I HAVE FETCH DATA FROM VBAK VBAP VBKD SO LZ SEND ME THE SOLUTION.
    BYE

    Hi,
    1.Just see this:
    SELECT * INTO CORRESPONDING FIELD OF TABLE itab
    FROM t1 INNER JOIN t2 ON t1f4 EQ t2f4
    INNER JOIN t3 ON t2f5 EQ t3f5 AND
    t2f6 EQ t3f6 AND
    t2f7 EQ t3f7.
    2.But better to use for all entries.It increases the performance.
    FOR ALL ENTRIES
    Tabular Conditions
    The WHERE clause of the SELECT statement has a special variant that allows you to derive conditions from the lines and columns of an internal table:
    SELECT ... FOR ALL ENTRIES IN <itab> WHERE <cond> ...
    <cond> may be formulated as described above. If you specify a field of the internal table <itab> as an operand in a condition, you address all lines of the internal table. The comparison is then performed for each line of the internal table. For each line, the system selects the lines from the database table that satisfy the condition. The result set of the SELECT statement is the union of the individual selections for each line of the internal table. Duplicate lines are automatically eliminated from the result set. If <itab> is empty, the addition FOR ALL ENTRIES is disregarded, and all entries are read.
    The internal table <itab> must have a structured line type, and each field that occurs in the condition <cond> must be compatible with the column of the database with which it is compared. Do not use the operators LIKE, BETWEEN, and IN in comparisons using internal table fields. You may not use the ORDER BY clause in the same SELECT statement.
    You can use the option FOR ALL ENTRIES to replace nested select loops by operations on internal tables. This can significantly improve the performance for large sets of selected data.
    Example for ALL ENTRIES
    DATA: TAB_SPFLI TYPE TABLE OF SPFLI,
    TAB_SFLIGHT TYPE SORTED TABLE OF SFLIGHT
    WITH UNIQUE KEY TABLE LINE,
    WA LIKE LINE OF TAB_SFLIGHT.
    SELECT CARRID CONNID
    INTO CORRESPONDING FIELDS OF TABLE TAB_SPFLI
    FROM SPFLI
    WHERE CITYFROM = 'NEW YORK'.
    SELECT CARRID CONNID FLDATE
    INTO CORRESPONDING FIELDS OF TABLE TAB_SFLIGHT
    FROM SFLIGHT
    FOR ALL ENTRIES IN TAB_SPFLI
    WHERE CARRID = TAB_SPFLI-CARRID AND
    CONNID = TAB_SPFLI-CONNID.
    LOOP AT TAB_SFLIGHT INTO WA.
    AT NEW CONNID.
    WRITE: / WA-CARRID, WA-CONNID.
    ENDAT.
    WRITE: / WA-FLDATE.
    ENDLOOP.
    INNER JOINS
    In a relational database, you normally need to read data simultaneously from more than one database table into an application program. You can read from more than one table in a single SELECT statement, such that the data in the tables all has to meet the same conditions, using the following join expression:
    SELECT...
    FROM <tab> INNER JOIN <dbtab> AS <alias> ON <cond> <options>
    where <dbtab> is a single database table and <tab> is either a table or another join expression. The database tables can be specified statically or dynamically as described above. You may also use aliases. You can enclose each join expression in parentheses. The INNER addition is optional.
    A join expression links each line of <tab> with the lines in <dbtab> that meet the condition <cond>. This means that there is always one or more lines from the right-hand table that is linked to each line from the left-hand table by the join. If <dbtab> does not contain any lines that meet the condition <cond>, the line from <tab> is not included in the selection.
    The syntax of the <cond> condition is like that of the WHERE clause, although individual comparisons can only be linked using AND. Furthermore, each comparison must contain a column from the right-hand table <dbtab>. It does not matter on which side of the comparison it occurs. For the column names in the comparison, you can use the same names that occur in the SELECT clause, to differentiate columns from different database tables that have the same names.
    The comparisons in the condition <cond> can appear in the WHERE clause instead of the ON clause, since both clauses are applied equally to the temporary table containing all of the lines resulting from the join. However, each join must contain at least one comparison in the condition <cond>.
    Example for INNER JOINS
    REPORT demo_select_inner_join.
    DATA: BEGIN OF wa,
    carrid TYPE spfli-carrid,
    connid TYPE spfli-connid,
    fldate TYPE sflight-fldate,
    bookid TYPE sbook-bookid,
    END OF wa,
    itab LIKE SORTED TABLE OF wa
    WITH UNIQUE KEY carrid connid fldate bookid.
    SELECT pcarrid pconnid ffldate bbookid
    INTO CORRESPONDING FIELDS OF TABLE itab
    FROM ( ( spfli AS p
    INNER JOIN sflight AS f ON pcarrid = fcarrid AND
    pconnid = fconnid )
    INNER JOIN sbook AS b ON bcarrid = fcarrid AND
    bconnid = fconnid AND
    bfldate = ffldate )
    WHERE p~cityfrom = 'FRANKFURT' AND
    p~cityto = 'NEW YORK' AND
    fseatsmax > fseatsocc.
    LOOP AT itab INTO wa.
    AT NEW fldate.
    WRITE: / wa-carrid, wa-connid, wa-fldate.
    ENDAT.
    WRITE / wa-bookid.
    ENDLOOP.
    Regards,
    Shiva Kumar(Reward if helpful).

  • URGENT:how to generate multiple spools in a single program

    Hi,
           i am currently showing a report which contains different sections using pure write staemnt.
    now the user wants when he runs the same program  there he should be  able create multiple spools.
    iMean one section(paragraph) in one spool  ..another paragraph in another spool i.e there should be two spools .

    Hi,
    DATA: print_parameters TYPE pri_params
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
        IMPORTING
          out_parameters       = print_parameters
          valid                = valid_flag
        EXCEPTIONS
          invalid_print_params = 2
          OTHERS               = 4.
    check sy-subrc = 0 and valid_flag = space.
    NEW-PAGE PRINT ON PARAMETERS print_parameters
                        NO DIALOG.
        WRITE:/ '1'
      NEW-PAGE PRINT OFF.
    NEW-PAGE PRINT ON PARAMETERS print_parameters
                        NO DIALOG.
        WRITE:/ '2'
      NEW-PAGE PRINT OFF.
    NEW-PAGE PRINT ON PARAMETERS print_parameters
                        NO DIALOG.
        WRITE:/ '3'
      NEW-PAGE PRINT OFF.
    Cheers.
    ...Reward if useful.

  • Using multiple EIM tables in single process section

    Hi ,
    Often we come across a situation where in some required columns are mapped in one EIM table and some mapped in the other EIM table mapped to a given base table.
    Is there a way wherein we can utilize multiple EIM table having mapping of a base table under the same process section with only base table parameter poiting to the target table.?
    Regards,
    Ashutosh

    Hi,
    May be I have misinterpreted what has been mentioned in the EIM admin guide.In the page 41 chapter EIM Configuration File the following has been mentioned for the TABLE paramter.Therefore i was wondering if we can use more than one table in a given process section in IFB file.
    [TABLE           Required. Specifies the name of an EIM table used in this process.
                         *Multiple TABLE parameters may be used to define a process using*
                         *more than one table*.
                         Example:
                         TYPE = EXPORT
                         BATCH = 101
                         TABLE = EIM_ACCOUNT
                         EXPORT MATCHES = S_ORG_EXT, (NAME > ‘A’)
    NOTE: For performance reasons, you should limit the number of
    tables to export or merge in a single process section to five tables or
    fewer.]
    Warm Regards,
    Ashutosh

  • Using Multiple Keyboard/Mice on single Mac Pro

    Hi Folks,
    I've tried to search this topic, with no joy.
    Basically, I would like to run a Mac Pro with dual monitors, and 2 users, working simultaneously. In this app, I would like each user to be able to run applications on their own screen and use separate Keyboard/Mouse for the applications on their separate screens. The screens would run as an extended desktop, but the applications on each screen would need to recognize their designated I/O (Keyboard/Mouse) device.
    I see plenty about running 2 systems with 1 keyboard/mouse... but not the other way around.
    Has anyone come across this mode of operation before, I am sure it is possible to do.... but would have to be some software behind it, so that the data streams from the proper I/O makes it to the proper application, even when multiple windows of the same app may be running simultaneously (like 2 windows of Safari).
    Any thoughts?
    Dual G4, 17" PB G4   Mac OS X (10.4.9)  

    To give a bit of background behind my interest.
    I homeschool my 2 children, and am looking to purchase a new Mac. In dual monitor mode, I see the possiblity to limit my purchase to one system, where each user is able to have their own monitor and I/O control. An additional advantage is that in Mirror monitor mode, I can control the system, while they are able watch a lesson. Using this method, I would purchase a higher power system which provides my kids plenty of power, even when they are both using the system, and gives me a higher power system when I use it by myself (sort of like a super-user). Basically the best of both worlds, and the actual price resides around the cost of 2 independent systems, but gives me a high power system for other activities.
    I can envision a lot of applications for such activities. Some I could see in a networked environment. I am actually surprized we have not seen any office applications go to the model of multi-player gaming, where many users can work on the same document simultaneously. There are of course database applications which operate in this manner, but I am not aware of any productivity apps.
    Dual G4, 17" PB G4   Mac OS X (10.4.9)  

  • Can I use multiple devices on a single BIS account?

    I need to buy and use several different Blackberries to test some new software. Can I activate a single BIS account and just swap SIM cards or is the BIS license tied to a specific IMEI?

    you can only have 1 PIN/IMEI oer BIS account, so answer is NO.
    Click on KUDOS to appreciate our efforts and mark the thread RESOLVED if your issue is resolved.

  • How to use multiple visa read in one program

    hi
    i am working at Hameg HM8143 power supply i want to measure voltage and current simultaneiously and use the measured values for further calculations. for this i used two visa read blocks.
    >>>>>>the measured values are shown in the same visa read string however i want it to be shown sepetately,
    >>>>>>One of the VISA read block gives error. so i want to know how to use VISA read to get current and voltage simultaneously in seperate strings
    >>>>>>than how to convert strings to numbers  for using them for my calcultions.
    i am attaching screen shot as well
    Attachments:
    screenshot.JPG ‏164 KB

    you can not use a single serial to send 2 commands simultaniously?
    There is a single serial line so one command has to be before another.  This doesnt mena that you can not read from 2 seperate threads but will have to ensure that there is a locking mechanism to make sure that your queries are atomic.  In labview encapsulating all communications can be done with an action engine which will allow for concurrent execution with automatic blocking of your resource (serial device).
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Using multiple wireless networks with Single sign on?

    The university that I currently work for has switched from one wireless SSID to 2 separate SSIDs that separate the student users from the faculty/staff users. At this time only the Faculty Staff can log into STAFF and students can only log into STUDENT...
    I have a few laptop carts that were setup for student use and have single sign on configured for the STUDENT wireless connection. The laptops are on the university's domain so that students have access to the home drives.
    We run into problems when Faculty try to use a laptop to teach a class. They are unable to log in because their credentials are not authorized for the STUDENT wireless network. 
    So...Is it possible to setup 2 wireless profiles (STUDENT and STAFF) with single sign on and give the user an option to choose from?

    Hi,
    Based on your description, I would like to suggest you use Group Policy to configure Wireless Network Settings:
    Using Group Policy to Configure Wireless Network Settings
    http://technet.microsoft.com/en-us/magazine/gg266419.aspx
    Please follow the information from the link above to check the issue.
    If it doesn’t work, I recommend you initial a new thread in our Windows Server Forum for further assistance.
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?category=windowsserver
    Hope it helps.
    Regards,
    Blair Deng
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Question-DAQmx: Using multiple channels on a single device with a trigger

    The purpose of the attached VI (Switching_Controller.vi) is to wait for a trigger signal from the input and output a pulse whenever it occurs. However, at the same time I want to output and read a single sample from another input and output channel pair (behavior in Main_Controller.vi). I was planning on doing this in two parallel subvi's but I am running into the common error -50103, "specified resource is reserved". I understand that in order to address this issue I need to compress all output channels and all input channels into just two tasks. However, I am having trouble addressing the issue of the trigger, since I want the second set of inputs and outputs to happen continuously and the trigger forces the task to a certain rate of repetition. Is there any way to run a multichannel task in two parallel subvi's?
    Thanks in advance for the insight.
    Solved!
    Go to Solution.
    Attachments:
    Switching_Controller.vi ‏36 KB
    Main_Controller.vi ‏20 KB

    Hello!
    Take a look at the attached screen shot. I wrote a small (and very simple) example that I think you'll be able to modify for your needs. Basically, we can use the start task to avoid getting resources reserved and break the task apart so that we write 1 sample on n channels and then write a waveform on a another channel. 
    You will notice that I needed to enable the "autostart" function of the DAQmx write for the waveform data by writing a true constant to the vi. This way, the vi will start on its own with a start vi.
    Hope this helps!
    Regards,
    Margaret Barrett
    National Instruments
    Applications Engineer
    Digital Multimeters and LCR Meters
    Attachments:
    multi-channel.png ‏24 KB

  • Using multiple tempaltes in a single group space

    I just noticed this and to be honest, I am surprised this was not possible...
    I have a group space and in the resources I have multiple templates.
    This is the scenario that we want to use for our group space:
    Homepage: uses homepageTemplate
    Documents: uses generalTemplate
    Discussions: uses generalTemplate
    so in the resource manager of our group space I have defined both templates.
    Now try to create a new page... You are not able to select the template! The only way to select the template is to set a default one in the group space setting which means that ALL the pages of the group space are required to use the same template...
    The only possible workaround for this is to put the homepage in a separate group space and link that in the navigation model by using a redirect. Without the redirect it would inherit the template of the current space...
    I also tried using EL for selecting the template but that failed as well...

    Hmmm,
    In the spaces 'General Settings', you can write a EL to set the page template that you want to use. The EL expression will check the page you are in and set the id for the page template accordingly. You can get the 'Internal ID' from the Edit -> 'Edit Properties' option for the Page template in the resources page.
    Try this: #{pageDocBean.title == 'Home' ? 'id_of_home_page_template' : 'id_of_other_page_template'}
    I have tried different page templates using navigation model and it works with out of the box templates. But, I had custom coded the navigation model and the navigation items opened with the same template even if they were configured to open in different page-templates. This might be the case for you too.
    Let me know if this works.
    Thanks,
    nandavanan
    Edited by: nandavanan on Feb 27, 2012 12:41 PM

Maybe you are looking for