How to update cgicmd.dat file during runtime?

I'd like to know how do update cgicmd.dat file during runtime. For example, I run a report one.jsp as
http://<machine>:<port>/reports/rwservlet?one.jsp&USERID=uid/pwd@db&DESTYPE=cache&mode=bitmap&desformat=htmlcss
within this report there is a hyperlink to open another report named two.jsp.
before creating this hyperlink, I'd like to update cgicmd.dat file with passed in userID, pwd, and connection, so two.jsp can use this key for userinfo
so I can create hyperlink as follows
srw.set_hyperlink('/reports/rwservlet?report=two.jsp'||
'&cmdkey=userinfo&DESTYPE=cache&mode=bitmap&desformat=htmlcss');
Thanks

To my knowledge the cgicmd.dat is only read when the OC4J starts, so you would have to come up with another solution. Using Single-Sign-On (SSO) is quite a good idea, and it's there for cases like this.
Regards,
Martin Malmstrom

Similar Messages

  • How to run a Jar file during runtime

    Runtime.getRuntime().exec("javaw -jar MYJAR.jar");was what I used to run the jar originally, and it worked. Recently I created an installer for my program, where the user runs a batch-file shortcut which launches the main application. Because the main application is launched from the desktop, rather than directly, the "user.dir" property is different which makes the above code not work. How do I get the name of the folder that contains the running java application?
    Thanks

    You don't. You fix the installer so that it puts the correct working directory into the shortcut that it creates.

  • Cgicmd.dat file usage

    Hi,
    I am generating my reports using the cgicmd.dat file in pdf format and my application is in web-based html.
    I have a report which passes 4 paramters and 2 of it is considered imortant (and dynamic according to user interaction in the begining) and should not be changed by the users. I have found out that by using the parameter forms like %P, %PT and %PC entry in the cgicmd.dat file would means that I cannot use other user parameters in the file entry, and so also in the reverse situation.
    But when I tried to put both of them (%P and %1..%4 for user parameters) together, then call up the reports with the parameter values included in the entry (like http://server/repserver/?repname+value1+v2+v3+v4), I seems to be able to pass the important values to the displayed parameter form while hiding them and asking the users to enter only the other 2 parameters which they may change.
    But then, when I submit the form, it gave me an error:
    ======================================================
    Error: The requested URL was not found, or cannot be served at this time.
    Oracle Reports Server CGI - Error occurred while parsing the Reports Server command line.
    ======================================================
    May anyone assist me on how I can make use of the parameter form and also passing in some values that are dynamic and cannot be changed by the users?
    Thank you in advance for your assistance!

    FYI...
    Our dev and prod are at the same levels. I was able to narrow the problem down further, however. It appears to be a row size problem. If I force a rownum < 1500 in my report's query, then it works fine on dev and prod. If I force a rownum < 2000, then it crashes the engine on prod. The reason it works on dev and not on prod is that the amount of data on dev is far less than prod. Also, I ran the report locally on my PC against the prod database and it gave me a little more info. The report appears to query all of the rows fine, but it gets an ArrayIndexOutOfBounds exception. Since the report comes back with all rows just fine using a DESFORMAT other than DELIMITED, I believe it's a bug with applying the delimiter when formatting the report. The admins say that we are a few patchsets behind, so I'm guessing it is a fixed bug already.
    Thanks.

  • Manupulation in  cgicmd.dat file...!

    Hi all I'm using Forms/Reports 9.0.1 ..My question is wether is it possible to make a key in cgicmd.dat file for "HOST" i.e.
    mykey:http://local11:8888/reports/rwservlet
    can i make a key like that ...???? If yes, then how to use it ... I have referred the mannual for that it says 'Key must be defined for parameters after the "?" sign in URL '...
    I want to hide the HOST path in URL of web.show_document command..
    Anybody,
    Thanx in advance
    Regards
    Percy

    Thanx for reply ..
    can i make key for whatever written on LEFT of "?"...
    Let me tell u first why i want to do this .. It might be possible that my host server might get changed in future & if it happens i ve to change the host name in every form where i wrote the web.show_document statement ... that could be a big headache...i dont want to do that..... So instead of modifying the statement in every form can i make a KEY in cgicmd.dat so that i will modify only the KEY and subsequent changes will reflect in every form...!!

  • How to update the data in sqlserver table using procedure in biztalkserver

    Hi,
    Please can any one answer this below question
    how to update the data in sqlserver table using procedure in biztalkserver
    while am using executescalar,typedprocedure getting some warning
    Warning:The adapter failed to transmit message going to send port "SendtoSql1" with URL "mssql://nal126//MU_Stage2?". It will be retransmitted after the retry interval specified for this Send Port. Details
    Please send me asap....
    Thanks...

    Hi Messip,
    A detailed error would have helped us to answer you more appropriately but
    You can follow the post which has step by step instructions, to understand how to use Stored Procedure:
    http://tech-findings.blogspot.in/2013/07/insert-records-in-sql-server-using-wcf.html
    Maheshkumar
    S Tiwari|User
    Page|Blog|BizTalk
    2013: Inserting RawXML (Whole Incoming XML Message) in SQL database

  • How do I move data files from old iPhone? Specifically, the password files for the App mSecure from my old iPhone 3Gs to iPhone 4S?

    How do I move data files for mSecure (a password saver app) from old iPhone 3GS to new iPhone 4S?

    That article is about using your iPod as an external hard drive, to move files from one computer to another computer.  It is not related to your question.
    You can't use iTunes to move song files from iPod to computer, except for songs you purchased from the iTunes Store (and you can also re-download purchases).  However, there are third-party methods and utilities that can move song files from iPod to computer.  If you do a Google search on something like "ipod transfer," you should get some links.
    Once the song files are on your current computer, add them to that computer's iTunes library by dragging the files (or folder containing the files) to the iTunes window.  After confirming everything is there (and fixing the data issue you mentioned) you can sync the iPod.  You may want to do a Restore on the iPod, if it might have a data corruption issue, which will erase the iPod's hard drive, re-install the latest software, and set it to defautl settings.

  • How to update transaction data automatically into MySQL database using PI

    Dear All,
    With reference to subject matter I want a sincere advice regarding how to update transaction data automatically into MySQL database using PI. Is there any link available where I can get step-by-step process.
    Ex: I have a MYSQL database in my organization. Whenever a delivery created in SAP some fields like DO Number, DO quantity, SO/STO number should get updated in MYSQL database automatically.
    This scenario is related to updation of transactional data into MYSQL DB and I want your suggestions pertaining to same issue.
    Thanks and Regards,
    Chandra Sekhar

    Hi .
    Develop a sceanrio between SAP to Database system,When the data updates in SAP Tables read the data and update it in DATA Base using JDBC adapter,but there will be some delay in updating data in MySQL.
    serach in sdn for IDOC-TOJDBC sceannario,many documents available for the same.
    Regards,
    Raja Sekhar

  • How to add new data file

    Hi Friends,
    We have 4 below file systems.
    Sybase/TST/sapdata_1
    Sybase/TST/sapdata_2
    Sybase/TST/sapdata_3
    Sybase/TST/sapdata_4
    Already we have added one data file each in sapdata_1 and 2.  Sapdata3 and 4 are emptry.
    How to add new data file in sapdata3 or 4.
    Please provide syntax for creating a new data file and steps for the same.
    Regards,
    Karthik.

    Just for the record: you have here the DBACockpit documentation:
    https://websmp201.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000571562012E
    And this is a sample of the extend to be executed:
    Regards,
    Victoria.

  • How to UPDATE MASTER DATA RECORD PA0377 using FM HR_INFOTYPE_OPERATION

    How to UPDATE MASTER DATA RECORD IN INFOTYPE 0377 DIRECTLY using function module HR_INFOTYPE_OPERATION ? When i use operation = 'MOD'  im getting an ERROR as NO DATA STORED FOR 0377 IN SELECTION PERIOD.
           Can anyone please help me how to use HR_INFOTYPE_OPERATION to UPDATE MASTER DATA RECORD.
    Thanks,
    Karthi.

    Hi,
    please check this code
    it is very useful
    infotypes: 0105.
    parameters: p_pernr type p0105-pernr,
                p_subty type p0105-subty,
                p_begda type p0105-begda,
                p_endda type p0105-endda,
                p_opera type pspar-actio,
                p_usrid type p0105-usrid,
                p_commt as checkbox.    "Useful only when NO_COMMIT is 'X'
    data: w_return type bapireturn1,    "Error handling data
          w_key type bapipakey,         "If record has been created or changed the created/ changed
                                        "record's key (PSKEY) will be populated
          v_message type string.        "For printing returned messages
    call function 'BAPI_EMPLOYEE_ENQUEUE'
      exporting
        number = p_pernr
      importing
        return = w_return.
    if w_return is initial. "Employee is not locked
      p0105-pernr = p_pernr.
      p0105-subty =
      p0105-usrty = p_subty.
      p0105-begda = p_begda.
      p0105-endda = p_endda.
      p0105-usrid = p_usrid.
    *Calls Internally HR_MAINTAIN_MASTERDATA
      call function 'HR_INFOTYPE_OPERATION'
        exporting
          infty         = '0105'
          number        = p_pernr
          subtype       = p_subty
          validityend   = p_endda
          validitybegin = p_begda
          record        = p0105
          operation     = p_opera
          dialog_mode   = '0'
          nocommit      = 'X'
        importing
          return        = w_return
          key           = w_key.
    endif.
    if w_return is not initial.
      message id w_return-id type w_return-type number w_return-number
              with w_return-message_v1 w_return-message_v2 w_return-message_v3
              w_return-message_v4 into v_message.
      case w_return-type.
        when 'A' or 'E'.
          format color col_negative. write:/ v_message.
        when others.
          format color col_heading. write:/ v_message.
      endcase.
      call function 'BAPI_EMPLOYEE_DEQUEUE'
        exporting
          number = p_pernr.
    else.
      format color col_positive. write:/ 'Record Updated Successfully.'.
      if w_key is not initial.
        write:/ 'Key contains',
              / 'Personnel Number:', w_key-employeeno,
              / 'Subtype (absence type):', w_key-subtype,
              / 'Start date of Absence:', w_key-validbegin,
              / 'End date of Absence:', w_key-validend.
      endif.
      commit work.
    endif.
    Thanks and regards
    durga.K

  • How to update additional data for a premise in ISU?

    Hi Experts,
    Does any1 have any ideas about how to update additional data (Such as number of premises, flat area) for a premise? I mean not use ISU_DB_EWA_VBS_UPDATE directly. I tried to use ISU_S_PREMISE_CHANGE to update the data, but I do not konw how to use the parameters, can any1 help?
    Thx in advance, points will be rewarded.
    Vincent.

    Hi Vincent,
    Here is an example coded by me. Hope this is useful to you. If so, please reward points.
    l_premise = '0000004454'.
    CALL FUNCTION 'ISU_S_PREMISE_PROVIDE'
      EXPORTING
        x_vstelle            = l_premise
        x_wmode              = '1'
      X_TEILOBJ            =
    IMPORTING
      Y_OBJ                =
       y_auto               = x_auto
    EXCEPTIONS
       not_found            = 1
       foreign_lock         = 2
       general_fault        = 3
       not_authorized       = 4
       invalid_wmode        = 5
       OTHERS               = 6.
    IF sy-subrc <> 0.
    ENDIF.
    x_auto-evbsd-haus_num2 = '99999'.
    CALL FUNCTION 'ISU_S_PREMISE_CHANGE'
      EXPORTING
        x_vstelle            = l_premise
        x_upd_online         = 'X'
        x_no_dialog          = 'X'
        x_auto               = x_auto
      X_OBJ                =
      X_NO_OTHER           =
    IMPORTING
      Y_DB_UPDATE          =
      Y_EXIT_TYPE          =
      Y_NEW_EVBS           =
    EXCEPTIONS
       not_found            = 1
       foreign_lock         = 2
       input_error          = 3
       general_fault        = 4
       not_authorized       = 5
       OTHERS               = 6.
    IF sy-subrc <> 0.
    ELSE.
      COMMIT WORK.
    ENDIF.
    Thanks,
    Pranjal.

  • How to update additional data for Premise in ISU?

    Hi Experts,
    Does any1 have any ideas about  how to update additional data (Such as number of premises, flat area) for a premise? I mean not use ISU_DB_EWA_VBS_UPDATE directly. I tried to use ISU_S_PREMISE_CHANGE to update the data, but I do not konw how to use the parameters, can any1 help?
    Thx in advance, points will be rewarded.
    Vincent.

    Hi Vincent,
    Here is an example coded by me. Hope this is useful to you. If so, please reward points.
    l_premise = '0000004454'.
    CALL FUNCTION 'ISU_S_PREMISE_PROVIDE'
      EXPORTING
        x_vstelle            = l_premise
        x_wmode              = '1'
      X_TEILOBJ            =
    IMPORTING
      Y_OBJ                =
       y_auto               = x_auto
    EXCEPTIONS
       not_found            = 1
       foreign_lock         = 2
       general_fault        = 3
       not_authorized       = 4
       invalid_wmode        = 5
       OTHERS               = 6.
    IF sy-subrc <> 0.
    ENDIF.
    x_auto-evbsd-haus_num2 = '99999'.
    CALL FUNCTION 'ISU_S_PREMISE_CHANGE'
      EXPORTING
        x_vstelle            = l_premise
        x_upd_online         = 'X'
        x_no_dialog          = 'X'
        x_auto               = x_auto
      X_OBJ                =
      X_NO_OTHER           =
    IMPORTING
      Y_DB_UPDATE          =
      Y_EXIT_TYPE          =
      Y_NEW_EVBS           =
    EXCEPTIONS
       not_found            = 1
       foreign_lock         = 2
       input_error          = 3
       general_fault        = 4
       not_authorized       = 5
       OTHERS               = 6.
    IF sy-subrc <> 0.
    ELSE.
      COMMIT WORK.
    ENDIF.
    Thanks,
    Pranjal.

  • How to update a dbf file with gui_upload???

    hi friends,
    i would like to know how to update a dbf file with gui_upload???
    as i hve already know that it's easy to convert dbf to tab formatted text fle and thn upload it.but i want the direct uploading way.i don't let my user's bsy with converting existing dbf to txt.so pls help me asap!!!!!i will be thankful to you!!!!!

    its very easy you can search other forum!!!

  • Using the cgicmd.dat file

    In using the 9i report (pdf) format as a portlet
    for portal we are required to supply the OID resource
    under the ssoconn parameter . Since the numbers of users
    are high and there seems to be no way other assigning programatically the resources ..
    am wondering if i could use the cgicmd.dat file
    i have seen examples for thing for jsp's but i dint see one for the rdf( pdf) formats run via rwservlet..
    any pointer examplese would greatly help..
    deepa

    Hi Deepa,
    Take a look at the cgicmd.dat file that comes with the iAS installation
    ORACLE_HOME/reports/conf/
    This file has examples for rwservlet as well as for jsp's. To quote from this file:
    ; Oracle9iAS Reports Services ;
    ; CGICMD.DAT ;
    ; Example CGICMD.DAT Mapping file ;
    ; Syntax:
    ; KEY : VALUE
    ; Where:
    ;     KEY - the first argument of the rwservlet URL request (case insensitive).
    ;     VALUE - command line parameters and/or special parameters.
    ; Keys can be referenced in the following ways:
    ; 1. Parameter on command line to the reports servlet
    ; e.g. http://machine/servlet/rwservlet?KEY
    ; 2. Parameter on command line to a reports jsp
    ; e.g. http://machine/mydir/myreport.jsp?KEY
    ; 3. Within a reports jsp - in the rw:report custom tag
    ; e.g. <rw:report parameters="KEY">
    Also, you could take a look at the Publishing reports manual, Section 8.9
    http://otn.oracle.com/documentation/reports.html
    Navneet.

  • How do I transfer data files (word, Quickbooks, pdf, etc.) to the ipad?

    How do I transfer data files (word, Quickbooks, pdf, etc.) to the ipad for safe store and possible reading and manipulation of some key files (word and Pdf)?

    You first need an app, or apps, that are capable of reading/storing, and possibly editting them - without the app(s) there is nowhere to copy them to. As to how you then get the files onto the iPad depends upon the app(s) that you are using : iBooks (free app which can store/read PDFs) is via iTunes and the Books section of your computer's iTunes library. Other apps can use the file sharing section at the bottom of the device's apps tab on your computer's iTunes, some apps have wifi capability so that you can copy to/from them via your wifi network, and you may also be able to transfer email attachments into the app.

  • How to update the data  the transparent table CKMLMV013 ?

    How to update the data  the transparent table CKMLMV013 ?
    can you please replay asap.
    thanks,
    samba

    Hi,
    if you do a "where used" search of the table CKMLMV013 you will see that it is updated in several places:
    e.g. fm CKML_ORDER_CONNECTION_UPDATE
    Have a look at those places where the table is updated.
    Best regards.

Maybe you are looking for