"Re-using" functioncalls with SAPNWRFC for Perl

Hello,
I've written a little function module that reads some pay-results from SAP. While iterating through a bunch of personnel-numbers, most of the import-parameters, e.g. date-from, date-to etc, remain the same (obviously not the personnel-number). What changes, is a table of wagetypes, that is passed to SAPNWRFC. So my questions is, do I have create a new function call every time then contents of the wagetype-table changes (and therefor fill the "static" import-parameters again) or is there a way to initialize/clear the table so that I can re-use the functioncall-handle created with the "create_function_call"-method?
cheers Axel

You obtain a function descriptor using function_lookup(), and then create a container for each instance of an RFC call using create_function_call() (the container is generated from the cached function descriptor above).  This is completely inline with how the NW SAP RFC library (supplied by SAP) functions.  The container conveys your input parameters to the partner system, and the returned results, so it should only have the life time of a round trip.  It should be easy enough to create a wrapper to deal with your application specific requirement to encapsulate  the necessary behaviour.
Cheers.

Similar Messages

  • How to delete double contact using icloud with pc for iphone4

    hoe to delete double contact using icloud with pc for iphone4

    Delete Contacts from iPhone the Fast Way, All or Individually

  • TS1702 how do i use microsoft word on my ipad? i cannot use flash on it as well neither do i use it with projector for presentation.

    how can i use microsoft office on my ipad? i can't also use flash to copy and transfer documents into it and neither could i use it with a projector for presentation.

    You can't use MS Office on the iPad as Microsoft haven't made app versions of their programs (you can only use apps that are in the iTunes app store on your computer and the App Store app on the iPad), but there are apps that support word, excel and powerpoint documents. The options include Apple's Pages app for Word documents, Numbers for Excel spreadsheets and Keynote for Powerpoint. And from third-parties apps such as Documents To Go ('premium' version) and QuickOffice Pro HD.
    As to how you then get the file to your chosen app will depend upon what the app supports - different apps will have different ways of copying their content to/from a computer e.g. via the file sharing section at the bottom of the device's apps tab when connected to your computer's iTunes, via wifi, email, dropbox etc

  • Using ALSA with MPD for the NCMPCPP VIsualizer?

    I've just finished setting up ncmpcpp with MPD, and it works great for playing my music and displaying it in the program. I really like the visualizer feature that comes with ncmpcpp, so I looked at the Wiki guide on activating it. On the wiki page, it uses 'mpd.fifo' to send data about the song file (I presume) to enable the visualization. By following the wiki page, I got the visualization working fine, but my audio was no longer working. According to XFCE's Audio Mixer program, I'm using ALSA. I don't really know what this means or why I can't get the visualization working, or if there's another package I could install to bridge the non-working ALSA with the working FIFO (in terms of ncmpcpp's visualizer). How can I enable the visualizations with ALSA?
    Thanks!
    Last edited by Zulfe (2015-01-27 08:44:26)

    th3voic3 wrote:Could you post your mpd.conf? Remember to put it in code tags.
    MPD
    music_directory "/home/damon/Music/"
    playlist_directory "/home/damon/.mpd/playlists"
    db_file "/home/damon/.mpd/mpd.db"
    log_file "/home/damon/.mpd/mpd.log"
    pid_file "/home/damon/.mpd/mpd.pid"
    state_file "/home/damon/.mpd/mpdstate"
    audio_output {
    type "alsa"
    name "My Audio"
    path "/tmp/mpd.alsa" #I just assumed that you could replace mpd.fifo with mpd.alsa to use ALSA with the visualizer
    format "44100:16:2"
    ncmpcpp
    mpd_music_dir = "/home/damon/Music/"
    mpd_connection_timeout = "5"
    mpd_crossfade_time = "5"
    playlist_disable_highlight_delay = "0"
    playlist_display_mode = "columns"
    browser_display_mode = "columns"
    incremental_seeking = "yes"
    autocenter_mode = "yes"
    header_visibility = "yes"
    statusbar_visibility = "yes"
    fancy_scrolling = "yes"
    follow_now_playing_lyrics = "yes"
    display_screens_numbers_on_start = "yes"
    ignore_leading_the = "yes"
    lyrics_database = "1"
    song_columns_list_format = "(10)[blue]{l} (30)[green]{a} (30)[magenta]{b} (50)[yellow]{t}"
    colors_enabled = "yes"
    main_window_color = "white"
    header_window_color = "cyan"
    volume_color = "red"
    progressbar_color = "cyan"
    statusbar_color = "white"
    color1 = "cyan"
    color2 = "cyan"
    active_column_color = "cyan"
    active_window_border = "blue"
    #visualizer stuff
    visualizer_fifo_path = "/tmp/mpd.alsa" #matching the directory configured in ~/.mpd/mpd.conf, visualizer_alsa_path is not a field
    visualizer_output_name = "My Audio"
    visualizer_sync_interval = "30"
    visualizer_in_stereo = "yes"
    #visualizer_type = "wave" (spectrum/wave)
    visualizer_type = "spectrum"
    frank604 wrote:I'm confused. First of all, how do you not know what you installed? Did you run an install script? Next is, did you get the visualization working? Post your ncmpcpp config.
    I know that I installed ncmpcpp and configured it to work with MPD. MPC is also active and managing my local database. I'm only unsure of what I've installed in terms of the ALSA audio driver. When I went through setting up my system, I downloaded all of the dependencies to get Arch up and running, and I therefore may have installed ALSA in the process when it was instead FIFO that I needed to make this work. The visualization worked fine when I set it up with mpd.fifo, but that cancelled out my audio. I could no longer hear my music. Config above.
    Last edited by Zulfe (2015-01-27 18:09:28)

  • Is it possible to use iSight with Messenger for Mac?

    I have been racking my brain on how to get iSight to work with my friends on Window messenger. The video option is not available. I've had my macbook for 2 months now and, after working/giving up and going back again cannot seem to get it to jive. Any ideas would be appreciated!

    Welcome to Apple Discussions, flowerlove
    The answer here will depend on the specifics of what you want to do.
    Both Microsoft Messenger for Mac and the older MSN Messenger for Mac are text only apps. You can not use iSight with either. Please let us know if you mean some different "Messenger" software.
    This Windows Messenger does not appear to offer video, even for PCs. If this is the application your friends are using, no video work with it.
    For a built-in iSight video connection with PC contacts who only connect via Windows Live Messenger or other clients of the MSN Messenger server, you can select from these alternatives:
    (1) Because your MacBook can use Boot Camp or Parallels to run Windows XP software on your MacBook, you can choose which method you want to use, add the required software (if you have not already done so), and then install and use the same Windows instant messenger application that your contacts are using to do video.
    (2) and (3) In addition to Niel's good "aMSN" suggestion, you can also try Mercury Messenger for Mac. Either can work with OS X for video and text chat. They offer the same features, but neither offers audio connections.  Use whichever one of these two you find more reliable or easiest to use if you do not want to add Windows XP to your iNtel Mac,.
    EZ Jim
    PowerBook 1.67 GHz   Mac OS X (10.4.10)    G5 DP 1.8  External iSight

  • [JS][CS5] How can use 'edit with' option for link using sripting

    Hi All,
    I Can edit link using Link.editOriginal () if the default application is as i need it will open it from there, when I try to open it with other application instead of default application of link file I can't (usually we "use edit" with option in manually). Is there any option to do it in scripting.
    Any clue will help us to update the large set of links in a single click.
    Thanks in advance,
    Sankar L

    Hi csm_phil,
    You are exactly catch my point, my requirement is to update math type eps file. If my math type equation default application file is illustrator (say) as below
    it will open in illustrator instead of mathtype if i use editOriginal function...
    Jus i need to open it in mathtype, the link file default application file is whatever it is.
    Thanks,
    Sankar L

  • Updating Infotype 0105 "Communication" with SAPNWRFC and PERL (long !!)

    When I read the SAP-Press Book "mySAP HR: Technical Principles and Programming"
    (actually it was the german edition "Technische Grundlagen und Programmierung")
    I came across Chapter 9.1.3 "Using BAPIs", in which some sample code is provided
    for updating the email-adress in infotype 0105 "communication".
    I just thought: "OK, that could be easily (and better !) done with PERL and SAPNWRFC".
    My PERL-script should do the following:
    1) Read subtypes 0001 and 0010 from IT 0105 via RFC
    2) Compare that data against our LDAP-Server
    3) call the approbiate BAPIs for updating IT 0105 via RFC
    OK, here's the ABAP-code which accomplishes task #1: 
    [code]
    Z_EMAIL_TAB is a customer-defined structure with 3 components:
    component      component-type
    MY_PERNR       PERNR_D
    MY_NICKN       SYSID
    MY_EMAIL       COMM_ID_LONG
    FUNCTION z_read_email.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(MY_DATE) TYPE  ENDDA OPTIONAL
    *"  TABLES
    *"      Z_EMAIL STRUCTURE  Z_EMAIL_TAB
      DATA: sql_date  TYPE begda,
            sql_mandt type mandt.
      DATA: BEGIN OF wa_ldap_out,
                     pernr TYPE pernr_d,
                     nickn TYPE sysid,
                     email TYPE comm_id_long,
            END OF wa_ldap_out.
      DATA: exc_ref    TYPE REF TO cx_sy_native_sql_error,
            error_text TYPE string.
      IF my_date IS INITIAL.
        MOVE sy-datum TO sql_date.
      ELSE.
        MOVE date TO sql_date.
      ENDIF.
    we use native SQL (Oracle), so we have to specify the mandant
    exclude-values for PERSK refer to pensionists etc
    move sy-mandt to sql_mandt.
    EXEC SQL.
      open dbcur for
          SELECT DISTINCT
                pa0001.pernr,
                pa0105_0001.usrid,
                pa0105_0010.USRID_LONG
           FROM pa0000 pa0000,
                pa0001 pa0001,
                pa0105 pa0105_0001,
                pa0105 pa0105_0010
            WHERE
                 pa0000.pernr =  pa0001.pernr and
                 pa0000.begda <= :sql_date AND
                 pa0000.endda >= :sql_date AND
                 pa0001.begda <= :sql_date AND
                 pa0001.endda >= :sql_date AND
                 pa0001.persk NOT IN ('12' ,'13' ,'17' ,'18') AND
                 pa0000.stat2 = '3' and
                 (pa0001.mandt = pa0105_0001.mandt() and pa0001.pernr = pa0105_0001.pernr() and pa0105_0001.usrty() = '0001' and pa0105_0001.begda() <= :sql_date and pa0105_0001.endda(+) >= :sql_date) and
                 (pa0001.mandt = pa0105_0010.mandt() and pa0001.pernr = pa0105_0010.pernr() and pa0105_0010.usrty() = '0010' and pa0105_0010.begda() <= :sql_date and pa0105_0010.endda(+) >= :sql_date) and
                 pa0000.mandt =  pa0001.mandt and
                 pa0000.mandt = :sql_mandt
    ENDEXEC.
    DO.
        EXEC SQL.
            FETCH NEXT dbcur into :wa_ldap_out
        ENDEXEC.
        IF sy-subrc <> 0.
            EXIT.
        ELSE.
            APPEND wa_ldap_out to z_email.
        ENDIF.
    ENDDO.
    EXEC SQL.
      close dbcur
    ENDEXEC.
    ENDFUNCTION.
    [/code]
    Using Native-SQL (we have an Oracle-Backend) saves us from looping through IT0105 twice.
    (I don't like ABAP's Open-SQL, it's too limited)
    Now we have a nice little table with all our employees pernr, userid and email-adress.
    Let's stay on the ABAP-side and have a look at the update-function (task #3):  
    [code]
    FUNCTION z_upd_smtp .
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(MY_PERNR) TYPE  PERNR_D
    *"     VALUE(MY_EMAIL) TYPE  AD_SMTPADR
    *"     VALUE(MY_DATE) TYPE  BEGDA OPTIONAL
    *"  TABLES
    *"      BAPIRETURN STRUCTURE  BAPIRETURN1
      DATA: wa_bapireturn TYPE bapireturn1.
      IF my_date IS INITIAL.
        MOVE sy-datum TO my_date.
      ENDIF.
      CALL FUNCTION 'BAPI_EMPLOYEET_ENQUEUE'
        EXPORTING
          number        = my_pernr
          validitybegin = my_date
        IMPORTING
          return        = wa_bapireturn.
      IF wa_bapireturn-type NE 'E'.
        CLEAR wa_bapireturn.
        CALL FUNCTION 'BAPI_EMPLCOMM_CREATE'
          EXPORTING
           employeenumber        = my_pernr
           subtype               = '0010'
           validitybegin         = my_date
           validityend           = '99991231'
           communicationid       = my_email
         NOCOMMIT              =
         IMPORTING
            return                = wa_bapireturn
         EMPLOYEENUMBER        =
         SUBTYPE               =
         OBJECTID              =
         LOCKINDICATOR         =
         VALIDITYBEGIN         =
         VALIDITYEND           =
         RECORDNUMBER          =
        APPEND wa_bapireturn TO bapireturn.
        CALL FUNCTION 'BAPI_EMPLOYEET_DEQUEUE'
          EXPORTING
            number        = my_persnr
            validitybegin = my_datum
          IMPORTING
            return        = wa_bapireturn.
        APPEND wa_bapireturn TO bapireturn.
      ELSE.
        APPEND wa_bapireturn TO bapireturn.
      ENDIF.
    ENDFUNCTION.
    [/code]
    And finally the PERL-Script (task #2):
    [code]
    ##### Connect to LDAP-server #################################################
    use Net::LDAP;
    use Net::LDAP::Control;
    use Net::LDAP::Constant qw(LDAP_CONTROL_PAGED);
    $pagec = Net::LDAP::Control->new( LDAP_CONTROL_PAGED,
                                      size => 1000);
    --- replace with your company-specific values ------------------------------ #
    $ldap = Net::LDAP->new( 'your-ldap-server' ) or die "$@";
    $mesg = $ldap->bind( 'CN=your-ldap-user,CN=aaaa,DC=bbbb,DC=dd,DC=eeeeeee,DC=fff',
                          password => 'your-password'
    use SAPNWRFC;
    --- Connection to SAP  ----------------------------------------------------- #
    SAPNW::Rfc->load_config("your-config-file");
    $sap_conn = SAPNW::Rfc->rfc_connect;
    --- SAP RFCs --------------------------------------------------------------- #
    SAP_RFCs();
    --- read all Email-adresses from IT0105 ------------------------------------ #
    $rd_handle_eml = $rd_eml->create_function_call;
    $rd_handle_eml->invoke();
    foreach $row_hashref_eml (@{$rd_handle_eml->Z_EMAIL}) {
         $MY_PERNR = $row_hashref_eml->{MY_PERNR};
         $MY_NICKN = $row_hashref_eml->;
         $MY_EMAIL = $row_hashref_eml->;
         $MY_NICKN =~ s/ //g;
         $MY_EMAIL =~ s/ //g;
         if ($MY_NICKN ne '') {
             $strMail_LDAP = nick2email(lc($MY_NICKN));
             if (lc($MY_EMAIL) ne lc($strMail_LDAP) && $strMail_LDAP ne '') {
                 updIT0105("$MY_PERNR","$strMail_LDAP");
                 print "SUCCESS = $i_uit_success, $MY_PERNR $strMail_LDAP\n";
         else {
    do some error-processing here
    $sap_conn->disconnect();
    exit;
    sub SAP_RFCs {
    --- Read E-Mail-Adress from IT0105 ----------------------------------------- #
    $rd_eml = $sap_conn->function_lookup("Z_READ_EMAIL");
    --- Update E-Mail-Adress in IT0105 ----------------------------------------- #
    $rd_uit = $sap_conn->function_lookup("Z_UPD_SMTP");
    sub nick2email {
        $strNickn = $_[0];
        $strEMail = '';
    --- our userid is stored in LDAP-item "mailnickname", just change filter to your needs #
        $filter = qq {
                      (& (mailnickname=$strNickn)
                         (givenName=*)
                         (| (objectCategory=person)
                            (objectClass=person)
        while (defined ($search = $ldap->search(
                                base   => "OU=your-base-OU,DC=bbbb,DC=dd,DC=eeeeeee,DC=fff",
                                filter => $filter,
                                attrs => ['mailNickname','mail','whenChanged'],
                                control => [ $pagec ]
            foreach $entry ($search->entries) {
                $strEMail = $entry->get_value('mail') ;
            ($resp) = $search->control( LDAP_CONTROL_PAGED );
            last unless ref $resp && $pagec->cookie($resp->cookie);
        return $strEMail;
    sub updIT0105 {
        $rd_handle_uit = $rd_uit->create_function_call;
        $rd_handle_uit->MY_PERNR($_[0]);
        $rd_handle_uit->MY_EMAIL($_[1]);
        $rd_handle_uit->invoke();
        $i_uit_success = 1;
        foreach $row_hashref_uit (@{$rd_handle_uit->BAPIRETURN}) {
            if ($row_hashref_uit->{TYPE} ne 'S' && $row_hashref_uit-> ne ' ') {
                $i_uit_success = 0;
    [/code]
    I run this script every Friday on a virtual Windows XP machine (VMWare) scheduled with the AT-Command
    and it works really fine, enjoy !!!
    P.S.: I hope there aren't any typos in the code, but please check
    P.P.S: Thanks again to Piers for SAPNWRC, fantastic.

    Hi,
    I am very interested in your solution. Can you send me the scripts?
    Greeting Jan

  • How to use wsit with jeveloper for developing and testing web servises

    hi, all. Just want to ask one realy simple quastion.
    I'm new with web servises, so my question may be doesn't fall well into this section , but this community looks friendly for me and i hope to get some usefull links and advises.
    First of all could anybody say me if i'm righ or wrong with the following suggestions:
    1. What is the principal difference between axis 2 and wsit products? Do i understand right that they both extend or support so called jax-ws2 API and represent different approaches in that (are they competitors?), or this products serve for different sakes at all and could be used together? I want to understand without much digging how these products correlate with each other...
    2. If i'm right what is oracle favor? And if oas standard supply doesn't include wsit, how to install and use this product for creating interoperable web servises in jdeveloper enviroment? ...or jax-ws 2.1 wasn't included in oc4j v10 and will be the part of v11 only?
    Thanks in advance. Alex.
    Message was edited by:
    Timin
    Message was edited by:
    Timin

    Both Axis and WSIT are not Oracle products - so I'm not exactly sure why would you post the question here.
    JDeveloper has native support for JAX-RPC based Web services development in 10.1.3 and JAX-WS support in 11 - check out the online demos linked from the home page to see these in action.

  • How can I use Dropbox with pages for the iPad?

    TO make a long story short, a thunderstorm fried my desktop iMac which was the computer I was sharing my Pages documents with.  I don't have an AirPrint compatible printer and I need to be able to print documents that I create in Pages.  Since it might be 6 months or more before we can replace the old computer, I would like to use DropBox to share files between my windows computers and the ones at where I volunteer.  I was told that Pages for the iPad was compatible so how can I make this work for me? 
    TIna

    A google search on "pages ipad dropbox" will give you lots of stuff.  One is
    https://discussions.apple.com/thread/3944647?start=0&tstart=0

  • I have been using extensions with V8 for several weeks and with last Firefox update this morning all are gone and I can't get them going again!

    I installed V8.0.1 several weeks ago (or what I thought was V8.0.1) and got Awesome Screenshot (A.S.). Although it was stated that AS was not compatible with V8.0.1 I installed it any way and it worked. I have been using it every day until this morning. Another Firefox update came down this morning. Although I clicked the “Update Later” box, it updated at that time anyway. (This has happened every time I received an update in the past and clicked “Update Later” box, but that another problem; not the issue today.) After today’s update completed and I restarted Firefox. I check the version and it still was V8.0.1. All of my extensions were gone. I followed the instruction for re-enabling. All of the extensions were marked “disabled”. Only two of them had “enable” buttons (Garmin Communicator and InvisibleHand), both of which I didn’t load nor use. All extensions had “Remove” buttons. Is there any way for me to get A.S. working, I use it often. If not, how about “Screengrab”. That’s better than nothing.
    I am using Windows XP Professional SP3.
    Thanks for your help.
    Andy Marino
    [email protected]

    There is a known issue where multiple instances of plugin container open if history or cookies are cleared. Are you, or some utility clearing firefox cookies or history, that could be the reason. This problem continues even if plugins are disabled in Firefox.
    *Are you opening multiple instances of Flash Player ?
    * Is the problem reproducible ? <br/> for instance does it always crash the plugin or cause it to hang if you use a particular site ?
    If you get the FlashPlayer plugin crashing use the option to submit the crash reports, it is then possible to follow them up. It is possible to stop the plugincontainer opening, but that could result in a firefox crash. Of course the firefox crash can also send crash reports out, and that could be useful.
    * see [[plugin crash reports]]
    * [[what is plugin-container]]
    * [[firefox crashes]]
    There are some problems with FlashPlayer currently under investigation, and there may be other threads in the forum about problems. (e.g. Bug 561019 - Plugin waveOutOpen hangs )
    Sometimes using Firefox 3.6 is a workaround that helps with FlashPlayer problems, if you wish to experiment with that consider installing firefox Portable and using Firefox 3.6.23 (or soon 3.6.24) for tests with flash player, whilst keeping firefox 7 for day to day browsing.
    * [[http://portableapps.com/apps/internet/firefox_portable/localization#legacy36]]

  • Anyone use Flex with php for file upload? PHP Notice:  Undefined index:  Filedata

    My code works. It uploads the file and inputs the file name into a database, but I can't shake this php notice. I think php is looking for multipart/form-data from the HTML form tag.
    <form action="upload.php"  enctype="multipart/form-data"/>
    But I am using flex. The multipart/form-data info is sent as the second default argument of the upload() function. Does anyone have experience with this? Thanks.
    PHP Notice:  Undefined index:  Filedata
    $filename = $_FILES['Filedata']['name'];
    public function selectHandler(event:Event):void {
                    request = new URLRequest(UPLOAD_DIR);
                    try {
                        fileRef.upload(request);
                        textarea1.text = "Uploading " + fileRef.name + "...";
                    catch (error:Error) {
                        trace("Unable to upload file.");
                        textarea1.text += "\nUnable to upload file.";

    Hi, Thanks for your reply !
    Im not getting any errors Flex side, as i say i get a alert message saying the file has been uploaded so . .
    I am using a Wamp server on a windows machine, how do i check the file permissions on both the folder and the php file ?
    Also how do i debug a php file ?
    ANy help would be thankful !

  • Using xperia with ps4 for double screen

    So i downloaded the PS4 app and i am tyring to use the dual screens with Battlefield 4 game. I have gone into the ps4 and registered my tablet with the ps4, it sees it when you goig into the settings. I load up the app on my tablet and it sees my trophies and my friends who are on line, but when i try to use it as a second screen it goes black and saids some thing i cant remeber off the top of my head right now but something like screen is not in use, i tried it a nuch of times but cant get it to work, thought for sure the Sony Tablet would work with the Sony PS4, am i missing something here? Any suggestions?

    What about your router, are you Mac address filtering ??? If yes ? Switch of Mac address filtering.. Also check if your firewall is enabled via router ? if it is, disable the firewall. Then try....
    <script charset="UTF-8" type="application/javascript" src="chrome://hdv/content/hdv.js"></script><script charset="UTF-8" type="application/javascript" src="chrome://hdv/content/hdv.js"></script>

  • Using jdbc with oracle-for-win95

    i am using oracle thin driver to connect my java code with oracleforwin95 i think it is called as personal oracle, while getting conection DriverManager.getConection("drivername@host:port(1521):sid","user","password") there is no sid for oracleforwin95 if i keep it blank i get an error connection refused some thing like that even i cannot use dsn for connection what is the problem should i use another driver if yes which one it is and from where it can be downloaded, or should i need to configure my oracle. please help me.

    This is my code given below
    import java.sql.*;
    public class Oconnection
         Connection conn;
         Statement st;
         PreparedStatement pst,pstissue,pstret,pstbook;
         public Oconnection()
              try
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","system","manager");
              catch(Exception ex)
                   System.out.println(ex.getMessage());
                   ex.printStackTrace();
         public static void main(String args[])
              new Oconnection();
    *****************************************************8
    Error
    C:\Library>java Oconnection
    Io exception: The Network Adapter could not establish the connection
    java.sql.SQLException: Io exception: The Network Adapter could not establish the
    connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:211)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:324)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:266)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at Oconnection.<init>(Oconnection.java:17)
    at Oconnection.main(Oconnection.java:39)
    I am using Oracle for win95 or i think it is oarcleforwin98 .
    The sid of my database i found through query given by you was orcl, what changes soulh i do int he code so that it works.

  • Not able to use password with characters for RFC User.

    hi All,
    I have installed SAP SCM 5.0 with MaxDB 7.6and liveCache 7.6.
    I created RFC user and RFC destination to administer liveCache globally as per SAP notes 305634 and 452745. I changed the initial passwords and tested Remote login for RFC User.
    But when I try to start liveCache with startrfc following the link below
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/95/379f3cad1e3251e10000000a114084/frameset.htm
    I got the following error
    RFC Call/Exception: SYSTEM_FAILURE
    Group       Error group 104
    Key         RFC_ERROR_SYSTEM_FAILURE
    Message     Name or password is incorrect (repeat logon)
    Then I logged into the CI with RFC user and try to start the liveCache with RSLVCSTART T-Code SE38..I got the following error.
    Error DBMCLI_COMMAND_EXECUTE_ERROR when starting liveCache LCS on server saplcslc
    Message no. LVC007
    I tried by changing the password for RFC user to numeric [0-9] and special characters [$,:] which worked fine.
    Does anyone faced this issue earlier? I searched notes, sdn and finally google ... but no luck to resolve the issue.
    Your help is much appreciated.
    Thanks,
    Venkat

    Yes I used LCA as liveCache connection. I resolved the issue with RSLVCSTART. Thanks for your suggestion to run connection test. I used wrong password for control user in the LCA connection. Now LCA connection shows everything is fine.
    But I am still not able to use alphanumeric password RFC user to start the liveCache from command line. I get the following when run startrfc command...
    bash-3.00$ /usr/sap/CAT/rfcsdk/bin/startrfc -3 -d LCSCLNT001 -h sapcatci -s 51 -c 001 -u LCSRFC -p Mach1cspsap\$ -l EN -F START_LIVECACHE_LVC -E IV_CON_NAME=LCA
    RFC Call/Exception: SYSTEM_FAILURE
    Group       Error group 104
    Key         RFC_ERROR_SYSTEM_FAILURE
    Message     Name or password is incorrect (repeat logon)
    bash-3.00$ echo $?
    1
    But I can start the liveCache from command line with numeric password successfully.
    bash-3.00$ /usr/sap/CAT/rfcsdk/bin/startrfc -3 -d LCSCLNT001 -h sapcatci -s 51 -c 001 -u LCSRFC -p 19811983\$ -l EN -F STOP_LIVECACHE_LVC -E IV_CON_NAME=LCA
    bash-3.00$ echo $?
    0
    Note the difference between the passwords used. Do i need to change any settings to accept alphanumeric passwords for RFC user.
    Note that I am able to start liveCache server in both cases(alphanumeric password and numeric password) by logging into SAP GUI and RSLVCSTART program. The problem is only when i try to start the liveCache from the commandline.
    Any help will be much appreciated.
    Thanks,
    Venkat

  • How to use sp_msforeachdb with sp_rename for changing two table names in each databases-

    I have around 990 databases on a single SQL server in which I want to rename two tables 'AuditEvent' and 'AuditPropertyEvent' to 'AuditEvent_Archive' and AuditPropertyEvent_Archive table.
    Then I want to transfer lastest 6 months of data from now newly rename archived tables to New created Auditevent tables (Which will have same structure as old),
    For doing it I tried Cursor and SP_msforeachdb as possible solutions but its not allowing me to execute 2 sp_rename statements with go inside a dynamic statement.
    Please suggest any possible solutions on how to rename the 2 tables in all databases using sp_msforeachdb or cursor in a single go.

    exec sp_msforeachdb '
    USE [?]
    IF EXISTS (SELECT 1 FROM ?.INFORMATION_SCHEMA.TABLES WHER TABLE_NAME = ''AuditEvent'')
    EXEC sp_rename ''AuditEvent'',''AuditEvent_Archive''
    IF EXISTS (SELECT 1 FROM ?.INFORMATION_SCHEMA.TABLES WHER TABLE_NAME = ''AuditPropertyEvent'')
    EXEC sp_rename ''AuditPropertyEvent'',''AuditPropertyEvent_Archive''
    SELECT *
    INTO AuditEvent
    FROM AuditEvent_Archive
    WHERE datecolumn>dateadd(month,-6,getdate())
    SELECT *
    INTO AuditPropertyEvent
    FROM AuditPropertyEvent_Archive
    WHERE datecolumn >dateadd(month,-6,getdate())
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for