Problems with parameter

Hello guys , I have a parameters no modifiable ,but I want to change it to modifiable, I change the name of the parameter already and it works , but i want to know why my parameter p_file have the propierty of no modifiable. ?

EPORT zpb_eng_cont_fich_bk .
  Titulo ....: ZPB_ENG_CONT_EXTRAI_FICH_BK
  Descrição .: Copia todos os dados contidos na tabela de energia de
               contador (ZPB_EN_CONT_CSMO) e gera um ficheiro de
               backup
  Autor .....: Helena Silva
  Data   ....: 06-03-2008
  Módulo.....: BILLING
  Modificação:
  Data ......:
Declaração de Variáveis
DATA: nome_fich LIKE tpfht-pffile VALUE 'ZPB_EN_CONT_CSMO_'.
DATA: file_unix LIKE tpfht-pffile.
DATA: file_local LIKE rlgrap-filename.
DATA: directoria LIKE tpfht-pffile.
DATA: ficheiro_existe TYPE c.
DATA: data LIKE sy-datum.
DATA: continuar(3) TYPE c VALUE 'SIM'.
DATA: it_zpb_en_cont_csmo LIKE STANDARD TABLE OF zpb_en_cont_csmo
            WITH HEADER LINE.
Para validar se o ficheiro local já existe
DATA: it_data_aux TYPE STANDARD TABLE OF zpb_en_cont_csmo
      INITIAL SIZE 0.
DATA: p_commit(5) TYPE n VALUE '1000'.
Ecrã de Selecção
SELECTION-SCREEN BEGIN OF BLOCK bloco1
                 WITH FRAME
                 TITLE text-001.
SELECTION-SCREEN SKIP 1.
PARAMETERS: p_unix RADIOBUTTON GROUP grp1 DEFAULT 'X'
                  USER-COMMAND ucomm,
            p_local   RADIOBUTTON GROUP grp1.
SELECTION-SCREEN SKIP 1.
PARAMETERS: p_path_u LIKE rlgrap-filename MODIF ID fil OBLIGATORY
DEFAULT '/home/sgcd/batch/'.
PARAMETERS: p_path_l LIKE rlgrap-filename MODIF ID fil OBLIGATORY
DEFAULT 'C:'.
PARAMETERS: p_file2 LIKE rlgrap-filename MODIF ID fil OBLIGATORY.
SELECTION-SCREEN END OF BLOCK bloco1.
INITIALIZATION.
Mês de Processamento é o mês anterior ao actual
  CALL FUNCTION 'HR_PT_ADD_MONTH_TO_DATE'
       EXPORTING
            dmm_datin = sy-datum
            dmm_count = '1'
            dmm_oper  = '-'
            dmm_pos   = 'END'
       IMPORTING
            dmm_daout = data
       EXCEPTIONS
            unknown   = 1
            OTHERS    = 2.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
Nome do Ficheiro tem o mês de processamento
CONCATENATE nome_fich data+4(2) data(4) '.txt'
  CONCATENATE nome_fich data+4(2) data(4)
      INTO p_file2.
CONCATENATE file_local nome_fich INTO file_local.
CONCATENATE file_unix nome_fich INTO file_unix.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path_l.
  DATA: fich LIKE rlgrap-filename.
  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
   EXPORTING
  PROGRAM_NAME        = SYST-REPID
  DYNPRO_NUMBER       = SYST-DYNNR
  FIELD_NAME          = fich
   static              = ' '
    mask                = '*.txt'
    CHANGING
      file_name           = fich
   EXCEPTIONS
     mask_too_long       = 1
     OTHERS              = 2
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
Separar o ficheiro da directoria
  CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'
    EXPORTING
      full_name           = fich
   IMPORTING
  STRIPPED_NAME       =
     file_path           = p_path_l
   EXCEPTIONS
     x_error             = 1
     OTHERS              = 2
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  file_local = fich.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path_u.
  DATA: lv_dline       TYPE dline,
        lv_file_path   TYPE text300,
        lv_file_name   TYPE text300,
        lv_server_path TYPE text300,
        prog           LIKE sy-repid.
  prog = sy-repid.
  CALL FUNCTION 'GET_DYNP_VALUE'
       EXPORTING
            i_field = 'P_PATH_U'
            i_repid = prog
            i_dynnr = sy-dynnr
       CHANGING
            o_value = lv_server_path.
  TRANSLATE lv_server_path TO LOWER CASE.
  IF lv_server_path IS INITIAL.
    lv_server_path = '/home/sgcd/batch/'.
  ENDIF.
  CLEAR: lv_file_name,
         lv_file_path.
  CALL FUNCTION 'ZF4_SERVER_FILE_PATH_NAME'
       EXPORTING
            x_server_path     = lv_server_path
       IMPORTING
            y_file_name       = lv_file_name
            y_file_path       = lv_file_path
       EXCEPTIONS
            no_file_on_server = 1
            OTHERS            = 2.
  IF sy-subrc NE 0.
    MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ELSE.
    p_path_u = lv_file_path.
  ENDIF.
  lv_dline = lv_file_name.
  CALL FUNCTION 'SET_DYNP_VALUE'
       EXPORTING
            i_field = 'P_FILE'
            i_repid = prog
            i_dynnr = sy-dynnr
            i_value = lv_dline.
CONCATENATE p_path_u lv_file_name INTO file_unix.
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name EQ 'P_FILE'.
      screen-input = '0'.
    ENDIF.
    IF screen-name CS 'P_PATH_U'.
      IF p_unix = 'X'.
        screen-active = '1'.
        screen-invisible = '0'.
      ELSE.
        screen-invisible = '1'.
        screen-active = '0'.
      ENDIF.
    ELSEIF screen-name CS 'P_PATH_L'.
      IF p_unix = 'X'.
        screen-invisible = '1'.
        screen-active = '0'.
      ELSE.
        screen-active = '1'.
        screen-invisible = '0'.
      ENDIF.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.
START-OF-SELECTION.
  PERFORM valida_ficheiro.
  IF continuar = 'SIM'.
    PERFORM carregar_ficheiro.
  ENDIF.
*&      Form  valida_ficheiro
      text
-->  p1        text
<--  p2        text
FORM valida_ficheiro.
  IF p_unix = 'X'.
    CONCATENATE p_path_u p_file2 INTO file_unix.
Verificar se o ficheiro unix já existe, se existir cancela o
processamento
    CALL FUNCTION 'PFL_CHECK_OS_FILE_EXISTENCE'
         EXPORTING
              fully_qualified_filename = file_unix
         IMPORTING
              file_exists              = ficheiro_existe.
    IF ficheiro_existe = 'X'.
      MESSAGE i344(zpb) WITH p_file2 p_path_u.
      continuar = 'NAO'.
    ENDIF.
  ELSE.
Verificar se o ficheiro local já existe, se existir cancela o
processamento
    CALL FUNCTION 'WS_UPLOAD'
     EXPORTING
     CODEPAGE                      = ' '
       filename                      = file_local
     FILETYPE                      = 'ASC'
     HEADLEN                       = ' '
     LINE_EXIT                     = ' '
     TRUNCLEN                      = ' '
     USER_FORM                     = ' '
     USER_PROG                     = ' '
     DAT_D_FORMAT                  = ' '
   IMPORTING
     FILELENGTH                    =
     TABLES
       data_tab                      = it_data_aux
     EXCEPTIONS
       conversion_error              = 1
       file_open_error               = 2
       file_read_error               = 3
       invalid_type                  = 4
       no_batch                      = 5
       unknown_error                 = 6
       invalid_table_width           = 7
       gui_refuse_filetransfer       = 8
       customer_error                = 9
       OTHERS                        = 10.
    IF sy-subrc = 0.
      MESSAGE i344(zpb) WITH p_file2 p_path_l.
      continuar = 'NAO'.
    ENDIF.
  ENDIF.
ENDFORM.                    " valida_ficheiro
*&      Form  ler_tabela
      text
-->  p1        text
<--  p2        text
FORM carregar_ficheiro.
Carregar o ficheiro local ou unix com os dados que estão na tabela
  SELECT * INTO TABLE it_zpb_en_cont_csmo
   FROM zpb_en_cont_csmo.
  IF p_unix = 'X'.
    OPEN DATASET file_unix FOR OUTPUT IN TEXT MODE.
    IF sy-subrc <> 0.
      MESSAGE i356(zpb).
      EXIT.
    ENDIF.
TRANSFERE o CONTEÚDO da tabela Interna
    IF NOT it_zpb_en_cont_csmo[] IS INITIAL.
      LOOP AT it_zpb_en_cont_csmo.
        TRANSFER it_zpb_en_cont_csmo TO file_unix.
      ENDLOOP.
    ENDIF.
    CLOSE DATASET file_unix.
    IF sy-subrc = 0.
      MESSAGE i345(zpb).
    ENDIF.
  ELSE.
    CONCATENATE p_path_l p_file2 INTO file_local.
    CALL FUNCTION 'WS_DOWNLOAD'
     EXPORTING
     BIN_FILESIZE                  = ' '
     CODEPAGE                      = ' '
       filename                      = file_local
       filetype                      = 'DAT'
     mode                          = ' '
     WK1_N_FORMAT                  = ' '
     WK1_N_SIZE                    = ' '
     WK1_T_FORMAT                  = ' '
     WK1_T_SIZE                    = ' '
     COL_SELECT                    = ' '
     COL_SELECTMASK                = ' '
     NO_AUTH_CHECK                 = ' '
   IMPORTING
     FILELENGTH                    =
     TABLES
       data_tab                      = it_zpb_en_cont_csmo
     FIELDNAMES                    =
     EXCEPTIONS
       file_open_error               = 1
       file_write_error              = 2
       invalid_filesize              = 3
       invalid_type                  = 4
       no_batch                      = 5
       unknown_error                 = 6
       invalid_table_width           = 7
       gui_refuse_filetransfer       = 8
       customer_error                = 9
       OTHERS                        = 10
    IF sy-subrc = 0.
      MESSAGE i345(zpb).
    ELSE.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
  ENDIF.

Similar Messages

  • Problems with Parameter Mapping

    Hi All,
    I have problems with parameter-mapping. For me its a black box, sometimes it works sometimes not.
    Lots of times my mappings doesnt work, and I dont know the reason.
    For example: I want to map my Execution-CO to the Display-CO. For that I map the in the affected Action.
    But it doesnt work, although I do have the same Context Structures, because its the same CO. The technical Name is also the same.
    What could it be?
    Thanks for answering me
    Bye Steve

    Hi Andre,
    sorry for my late answer, but I'm writing my diploma thesis and wasnt at work since wednesday and so I dont have a access to our GP-System.
    Hope I understood you right.
    The Use Case of parameter mapping is that Users of further steps has the possibility to see the Input of previous steps.
    When I dont map the parameter inside one action, it isnt possible. I tried it out with the SAP example "Time-off-process". I took the CO "Create Request" and add it in one Action (as Display &  Execution). When I understand you right mapping inside an action is not necessary, to see the Inputs from further Actions --> But this way I cannot see the Inputs.  
    The mapping of my application works before I changed it.
    I know never touch a running system, but It was necessary, we need a new Input and Output Parameter.
    Cause I have 20 parameter the mapping was very time-consuming, to map every single parameter. I read a method to reduce the time: Adding a structure requires only mapping of the two structures. But now the Mapping doesnt work.
    Hope you can help me
    Bye Steve

  • Problems with parameter button in Crystal Report Server  2008

    Dear all,
    I have problems with parameter button in Crystal Report Server 2008.
    when I created some parameters and groups in Crystal Report 2008, they showed both parameters in 'Parameter button' and group in 'Group button'  on the left, so I can choose or type without clicking 'Refresh button' But when I added it to Crystal Report Server 2008 and I click parameter button , it doesn't show any parameter. Only click refresh button to choose them. On the other hand, for 'Group Tree' is ok. When go to Default Setting-> Parameter, all parameters are in 'Unused parameter'  First time I think I had problems with my installation, but when I reinstalled it again, it was like before.
    Could any one help me with this?
    I appreciate looking forward to your reply
    Ketya

    Try posting your questionin the correct forum, this is for SAP Business One, not Crystal reports Server

  • Problem with parameter and sql query

    I've a problem with te query of my report. The query is:
    SELECT [DESCRIPTN]
          ,[LOGTIME]
          ,[STATUS]
          ,[CARDNO]
          ,[LOGDATE]
    FROM [Granta5P0].[dbo].[TIMELOG32]
    where cardno in ({?cardNo})
    the parameter as multiple values checked so I can query for more than one card.
    If i put just one parameter everything works fine but when I put 2 or more I have his error
    [http://www.megagaleria.com/pictures/Pic_10074_25.jpg]
    I realized that the field as no ' delimiting the parameters, I have a function that already does it but I don't know how to put it in my sql command.
    If anyone can help I appreciate

    Yes, because your parameter is only looking for one card.
    where cardno in ({?cardNo})
    Will you only be creating querys on two cards or less ?
    Are you trying to create an Array?
    If two or less you could
    where cardno = ({?cardNo}) or cardno = ({?cardNo2})

  • LastYearMTD and LastYearYTD problem with parameter

    <p><br />Hi Friends,<br />I use crystal report ver 8.4 for generating reports with sql server.<br /> I have three tables </p><p>table1</p><p>id name orddate  ordid<br />1   A    2006-01-01 1234<br />2   B  2006-05-30 5678<br />3   C    2006-12-31 9077</p><p><br />table2</p><p>orddate  itemid   sper amount1<br />2006-01-01  1      1 30<br />2006-05-30       2      1 40<br />2006-12-31       3      2 50</p><p><br />table3<br />id invoicedate amount2<br />1  2005-01-01   10<br />2  2005-05-30   20<br />3  2005-12-31   30 </p><p><br />now i want to generate report group by sales persone and <br />customer name at the same time i want last year current month status of customer<br /> within given date range parameter.</p><p>sr ordid saleMTD(amount2)  amount1</p><p><br />I have tried everything but not getting exact answer.<br />the main problem in this is date range parameter.<br />I am not getting how i can use LastYearMTD with date range parameter.<br />Please help me.</p><p>Thanks in advance</p><p>crystal</p><p>&#160;</p><p>&#160;</p><p>&#160;</p>

    Yes, because your parameter is only looking for one card.
    where cardno in ({?cardNo})
    Will you only be creating querys on two cards or less ?
    Are you trying to create an Array?
    If two or less you could
    where cardno = ({?cardNo}) or cardno = ({?cardNo2})

  • Problem with Parameter on stored procedure for in() condition

    Hello,
    I would like to pass a parameter to a stored procedure like :
    procedure sps_country(zones varchar2)
    is
    begin
    select * from country where zone in (zones);
    end sps_country;
    My problem is : when i have one value in "zones" parameter all is OK but when i have 2, 3 ... values in zones with this format : ##, ##, ## there is no error, but there is no results found.
    have you a solution please ?
    Thanks

    Also this document has some suggestions.

  • RWRUN60: Problem with parameter value containing space between single quote

    Hi All
    I'm using RWRUN60 to generate my report by following way:
    C:\orant\BIN\RWRUN60.EXE userid=DBUser/dbpasswor@db BACKGROUND="NO" BATCH="YES" DESFORMAT="pdf" DESNAME="C:\report.pdf" DESTYPE="FILE" ORIENTATION="LANDSCAPE" PARAMFORM="NO" P_REPORTID="2431" P_REPORTNAME="Report Name" report="C:\report.rdf" P_WHERE="StartDate>=to_date('2011-07-14 10-37-00','YYYY-MM-DD HH24-MI-SS')"
    When I tried to run given command above nothing was executed executed and any log didnt created.
    I found out that problem occurs when text between two single quotes contains spaces. In my case it is a parameter P_WHERE. I need to keep such format because it is part of report query.
    When I removed last parameter from command RWRUN60 successfully genereate pdf document.
    Further I added new test parameter P_TEST(it is ignored by rdf) in the end of command line following:
    P_TEST="test '11'" - rwrun60 generates report
    P_TEST="test '1 1'" - rwrun60 doesn't; generate report
    Can somebody help how to resolve given problem. Is it parsing bug or what else?

    Spaces on command lines a very often a bad idea. Get rid of them by changing the command, e.g.:
    to_date('2011-07-14:10-37-00','YYYY-MM-DD:HH24-MI-SS')

  • Problem with parameter of stored procedure....

    HI,
    I've this stored procedure:
    CREATE OR REPLACE procedure ST_DAT (NAME_IN VARCHAR2) as
    BEGIN
    insert into REP_NAME
    select COD_ID,DESCR_ID,AREA, NAME_IN, sysdate
    from REP_TAB;
    COMMIT;
    END ST_DAT;
    this procedure is called from an external program
    It run correctly, but I have any problem when I tried to insert into tab REP_NAME one value of NAME_IN
    with apostrophe.
    for example if I write (from external program) Mary run correctly, but If I write Mary's Bar I get
    this error:
    ORA-01756: quoted string not properly terminated.
    I tried with REPLACE:
    insert into REP_NAME
    select COD_ID,DESCR_ID,AREA, REPLACE(NAME_IN,'',''''), sysdate
    from REP_TAB;
    BUT I GET SAME ERROR:
    How can I call this procedure with apostrophe?
    Thanks in advance!

    You need to handle this in the calling program by escaping the apostophe with another apostrophe...
    exec st_dat('Mary''s Bar')Of course that's easy to do when I'm typing in a literal. It's a bit trickier to automate :)
    Cheers, APC

  • Chaining 2 Ecatt Scripts Problem with Parameter

    Hi,
    I'm trying to chain two scripts VA01 and VA02 using a new script via REF command.
    The result of VA01 (Sales Order number) is being passed as export parameter to VA02 but in the replay I can see it go into VA02 but subsequently being replaced with the default value from the VA02 script i.e. the value used when recording this script in the first place. The script then fails.
    Any help thanks

    Venkat,
    Thanks for the reply but still no joy with your suggestions
    In VA01 I have export parameter E_SALES
    In VA02 I have import parameter I_SALES
    In the 3rd linked script I have local parameter V_SALES
    I pass E_SALES value to V_SALES and then V_SALES to I_SALES in the 3rd linked script
    The value of I_SALES in VA02 does not come from the linked script as it should do. In the replay I can see the correct value go into VA02 but then overwritten with the value of parameter I_SALES in VA02 script.
    any other ideas?
    thanks

  • GoNav, problem with parameter

    there are 2 dashboards d1 and d2
    in d2 there is filter with "is prompted" clause
    in d1, in column format
    @[html]"&lt;font class=Nav onclick=\"JavaScript:GoNav(event,'/users/administrator/test_drill/d2','DIM_CURRENCY','CURR_NAME','"@"');\"&gt;"@"&lt;/font&gt;";;@
    but d2 not filtered.
    I don't understand what is reason
    Edited by: elunin on Dec 3, 2008 10:26 AM

    Ashutosh,
    I checked the OSS note, but it talks about the SP9 with Patch1 ( Handling Paralel Dynamic block ) and I am using the SP10 and I have created the process with sequential block and created 2 actions, one with the BAPI and other with the webdynpro display form, I am trying for parameter consolidation from the BAPI output the parameter for the WebDynpro display form. When I selected this 2 required parameters the "Group" button is not appearing as visible.
    Regards,
    Velu

  • Problem with parameter type in stored procedure

    Hi,
    create or replace TYPE NUMTABLE AS TABLE OF INTEGER;
    SELECT group_id, value_id, parent, sort_order
    INTO v_groupid, v_valueid, v_parent, v_sortord
    FROM req_details
    WHERE detail_id = parent_in(i);
    I'm trying to pass v_valueId, v_parent, v_sortOrd into testcase_add(valueId, parentIn sortOrder);
    but the parameters in the testcase_add procedure are of NUMTABLE type.
    How can these values be passed into the testcase_add procedure.
    Thanks in advance.

    Oracle version number is?
    Post the results of the following query:
    SELECT position, argument_name, data_type, type_name, type_subname, in_out
    FROM all_arguments
    WHERE object_name = 'TESTCASE_ADD'
    ORDER BY 1;I am not sure, from your example, I understand precisely what you are asking.

  • Problem with setting oracle type parameter in viewobject query

    Hi There,
    I am facing a problem with JDev1013. I have a view that has JDBC positional parameters that are supposed to be in parameters for function like:
    SELECT x.day, x.special_exact_period_only
    FROM (
      SELECT x.day, x.special_exact_period_only
      FROM (
        SELECT
          x.day,
          rb.special_exact_period_only
      FROM TABLE (
        RentabilityPkg.findMarkerSlots(
          'start',
          ? /* dchannel */,
          NULL,
          ? /* resorts */,
          'special',
          NULL,
          ? /* code */,
          NULL,
          TRUNC(SYSDATE),
          TRUNC(SYSDATE + 365 * 2),
          NULL
      ) x
        JOIN resourcebase rb USING (rentabilitymanager_id)
        UNION
        SELECT
          x.day,
          rb.special_exact_period_only
        FROM TABLE (
          RentabilityPkg.findMarkerSlots(
            'start',
            ? /* dchannel */,
            NULL,
            ? /* resorts */,
            'composition',
            NULL,
            ? /* code */,
            NULL,
            TRUNC(SYSDATE),
            TRUNC(SYSDATE + 365 * 2),
            NULL
        ) x
        JOIN resourcebase rb USING (rentabilitymanager_id)
      )x
      ORDER BY x.day
    ) x
    WHERE ROWNUM <= 30now the JDBC positional parameters take our custom defined list type defined as:
    CREATE TYPE NumberList AS TABLE OF NUMBER;
    we are setting the parameter in the views with the help of oracle.sql.ARRAY class like:
       * Set parameters.
      public void setParams(Integer dchannelId, Integer[] resorts, String specialCode)
        try {
              System.out.println(this.getClass() + ".setParams()");
              ARRAY arrParam1 = ((NWSApplicationModule)getApplicationModule()).toSQLNumberList(Arrays.asList(resorts));
              ARRAY arrParam2 = ((NWSApplicationModule)getApplicationModule()).toSQLNumberList(Arrays.asList(resorts));
              System.out.println("arrParam1 - " + arrParam1);
              System.out.println("arrParam1 - " + arrParam1);
              System.out.println(this.getClass() + " ARRAY - " + arrParam1.getArray());
              System.out.println(this.getClass() + " -- " + arrParam1.length());
              System.out.println("arrParam2 - " + arrParam2);
              System.out.println("arrParam2 - " + arrParam2);
              System.out.println(this.getClass() + " ARRAY - " + arrParam2.getArray());
              System.out.println(this.getClass() + " -- " + arrParam2.length());
              Object[] params =
                   { dchannelId,
                        arrParam1,
                        specialCode,
                        dchannelId,
                        arrParam2,
                        specialCode
              setWhereClauseParams(params);
              System.out.println("DONE WITH " + this.getClass() + ".setParams()");
        catch(Exception ex)
              ex.printStackTrace(System.out);
      }the toSQLNumberList() method is defined in our App module baseclass as follows:
      public ARRAY toSQLNumberList(Collection coll)
           debug("toSQLNumberList()");
           DBTransaction txn = (DBTransaction)getTransaction();
           debug("txn - " + txn + " : " + txn.getClass());
           return NWSUtil.toSQLNumberList(coll, getConnection(txn));
      public static ARRAY toSQLNumberList(Collection c, Connection connection)
        //printTrace();
        debug("toSQLNumberList()");
        try
          ArrayDescriptor numberList = ArrayDescriptor.createDescriptor("NUMBERLIST", connection);
          NUMBER[] elements = new NUMBER[c == null ? 0 : c.size()];
          if (elements.length > 0 )
            Iterator iter = c.iterator();
            for (int i = 0; iter.hasNext(); i++)
              elements[i] = new NUMBER(iter.next().toString());
          return new ARRAY(numberList, connection, elements);
        catch (Exception ex)
          ex.printStackTrace();
          return null;
      protected Connection getConnection(DBTransaction dbTransaction)
        //return null;
        debug("Inside getConnection()");
        CallableStatement s = null;
        try
           * Getting Conenction in BC4J is dirty but its better
           * as otherwise we might end up coding with connections
           * and the Transaction Integrety will be
          s = dbTransaction.createCallableStatement("BEGIN NULL; END;", 0);
          debug("DOING s.getConnection()...");
          Connection conn = s.getConnection();
          debug("DONE WITH  s.getConnection()...");
          /*try
                throw new Exception("TEST");
           catch (Exception ex)
                ex.printStackTrace(System.out);
          debug("conn CLASS - " + conn.getClass());
          return conn;
        catch (Exception ex)
          ex.printStackTrace();
          return null;
        finally
          try { s.close(); }
          catch (Exception ex) {}
      }Whenever we try setting the parameters in view using setParams() and use this view to set the model of a java control it thorws the following exception :
    [2006-10-10 12:34:48,797 AWT-EventQueue-0 ERROR] JBO-28302: Piggyback write error
    oracle.jbo.PiggybackException: JBO-28302: Piggyback write error
         at oracle.jbo.common.PiggybackOutput.getPiggybackStream(PiggybackOutput.java:185)
         at oracle.jbo.common.JboServiceMessage.marshalRefs(JboServiceMessage.java:267)
         at oracle.jbo.server.remote.PiggybackManager.marshalServiceMessage(PiggybackManager.java:343)
         at oracle.jbo.server.remote.PiggybackManager.marshalServiceMessage(PiggybackManager.java:316)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processMessage(AbstractRemoteApplicationModuleImpl.java:2283)
         at oracle.jbo.server.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:7509)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.sync(AbstractRemoteApplicationModuleImpl.java:2221)
         at oracle.jbo.server.remote.ejb.ServerApplicationModuleImpl.doMessage(ServerApplicationModuleImpl.java:79)
         at oracle.jbo.server.ejb.SessionBeanImpl.doMessage(SessionBeanImpl.java:474)
         at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:53)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.StatefulSessionEJBObject.OC4J_invokeMethod(StatefulSessionEJBObject.java:840)
         at RemoteAMReservation_StatefulSessionBeanWrapper906.doMessage(RemoteAMReservation_StatefulSessionBeanWrapper906.java:286)
         at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    java.io.NotSerializableException: oracle.jdbc.driver.T4CConnection
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
         at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)
         at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
         at oracle.jbo.common.SvcMsgResponseValues.writeObject(SvcMsgResponseValues.java:116)
         at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
         at oracle.jbo.common.PiggybackOutput.getPiggybackStream(PiggybackOutput.java:173)
         at oracle.jbo.common.JboServiceMessage.marshalRefs(JboServiceMessage.java:267)
         at oracle.jbo.server.remote.PiggybackManager.marshalServiceMessage(PiggybackManager.java:343)
         at oracle.jbo.server.remote.PiggybackManager.marshalServiceMessage(PiggybackManager.java:316)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processMessage(AbstractRemoteApplicationModuleImpl.java:2283)
         at oracle.jbo.server.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:7509)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.sync(AbstractRemoteApplicationModuleImpl.java:2221)
         at oracle.jbo.server.remote.ejb.ServerApplicationModuleImpl.doMessage(ServerApplicationModuleImpl.java:79)
         at oracle.jbo.server.ejb.SessionBeanImpl.doMessage(SessionBeanImpl.java:474)
         at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:53)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.StatefulSessionEJBObject.OC4J_invokeMethod(StatefulSessionEJBObject.java:840)
         at RemoteAMReservation_StatefulSessionBeanWrapper906.doMessage(RemoteAMReservation_StatefulSessionBeanWrapper906.java:286)
         at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)This is a typical interaction between 2 server-side components (view-object and app module). Now the question is why is this exception thrown? Any answers?
    This application is one that we have migrated from 904 to 1013 and are trying to get it running in 3-tier.
    Regards,
    Anupam

    Sorry I missed out some semicolons, the script follws:
    -- The following TABLE was created to simulate the issue
    CREATE TABLE TEST_OBJECT
         ASSET_ID NUMBER,
         OBJECT_ID NUMBER,
         NAME VARCHAR2(50)
    INSERT INTO TEST_OBJECT VALUES(1,1,'AAA');
    INSERT INTO TEST_OBJECT VALUES(2,2,'BBB');
    INSERT INTO TEST_OBJECT VALUES(3,3,'CCC');
    COMMIT;
    SELECT * FROM TEST_OBJECT;
    -- The following TYPES was created to simulate the issue
    CREATE OR REPLACE
    TYPE DUTYRESULTOBJECTTAB AS TABLE OF DUTYRESULTOBJECT;
    CREATE OR REPLACE
    type DutyResultObject as object
    ( ASSET_ID number,
      OBJECT_ID number,
      NAME varchar2(150)
    -- The following PACKAGE N FUNCTION was created to simulate the issue
    CREATE OR REPLACE PACKAGE TESTOBJECTPKG
    IS
         FUNCTION OBJECTSEARCH(P_RESOURCE IN NUMBERLIST) RETURN DUTYRESULTOBJECTTAB;
    END;
    CREATE OR REPLACE PACKAGE BODY TESTOBJECTPKG
    IS
         FUNCTION OBJECTSEARCH(P_RESOURCE IN NUMBERLIST) RETURN DUTYRESULTOBJECTTAB
         IS
           BULKDUTYRESULTOBJECTTAB DUTYRESULTOBJECTTAB;
         BEGIN
           SELECT DUTYRESULTOBJECT(ASSET_ID, OBJECT_ID, NAME)
           BULK COLLECT INTO BULKDUTYRESULTOBJECTTAB
           FROM TEST_OBJECT;
           RETURN BULKDUTYRESULTOBJECTTAB;
         END;
    END;
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problem with Date Parameter

    Hi
    I am new to reporting services/report designer but have created a number of simple reports with Parameters using data from queries that have worked but I have a problem with this using Date and Time. 
    I am using MS Visual Studio 2008 (BIDS) and our SQL Server is Windows Server 2008 R2
    I need to allow the users of the report to choose a start date and an end date
    The Start Dates are held in a field called PhaseStartDate
    The End Dates are held in a field called PhaseEndDates
    I have tried multiple ways to try to get this to work with no success and with the latest attempt I get the message  
    "An error occurred during local report processing. The definition of the report 'JKVoidLoss' is invalid. The report parameter 'StartDate' has a default value or ValidValue that depends on the report parameter"Startdate". Forward dependancies
    are not valid"
    I will explain how I set up the Startdate. The EndDate is set up the same with the relevant values and fields.
    I created a new data source called StartDate. Under QUERY I have Select PhaseStartDate from QLHRA_VoidPhases. This runs okay when tested in Query designer and RUN.
    Under FIELDS I have Field name as PhaseStartDate and Field Source as PhaseStartdate
    Under PARAMETERS I have Parameter Name as PhaseStartDate and Parameter Value as [@StartDate]
    I set up a Parameter called StartDate with Data type as Date/Time
    Under Available Values I selected Get values from a query with Dataset being StartDate, Value field being PhaseStartdate and Label field being PhaseStartDate
    There are no Default Values
    I have tried moving the parameters up and down using the blue arrows under report data. I have tried multiple different methods to resolve this by changing values in the Properties screens.
    I also tried removing the DataSets and just using the Parameters with default settings. in preview, this ran the report but no matter what dates where entered the output was always the same.
    Any assistance will be greatly appreciated as I have spent hours on this so far
    Regards
    John

    Hi
    I am new to reporting services/report designer but have created a number of simple reports with Parameters using data from queries that have worked but I have a problem with this using Date and Time. 
    I am using MS Visual Studio 2008 (BIDS) and our SQL Server is Windows Server 2008 R2
    I need to allow the users of the report to choose a start date and an end date
    The Start Dates are held in a field called PhaseStartDate
    The End Dates are held in a field called PhaseEndDates
    I have tried multiple ways to try to get this to work with no success and with the latest attempt I get the message  
    "An error occurred during local report processing. The definition of the report 'JKVoidLoss' is invalid. The report parameter 'StartDate' has a default value or ValidValue that depends on the report parameter"Startdate". Forward dependancies are not valid"
    I will explain how I set up the Startdate. The EndDate is set up the same with the relevant values and fields.
    I created a new data source called StartDate. Under QUERY I have Select PhaseStartDate from QLHRA_VoidPhases. This runs okay when tested in Query designer and RUN.
    Under FIELDS I have Field name as PhaseStartDate and Field Source as PhaseStartdate
    Under PARAMETERS I have Parameter Name as PhaseStartDate and Parameter Value as [@StartDate]
    I set up a Parameter called StartDate with Data type as Date/Time
    Under Available Values I selected Get values from a query with Dataset being StartDate, Value field being PhaseStartdate and Label field being PhaseStartDate
    There are no Default Values
    I have tried moving the parameters up and down using the blue arrows under report data. I have tried multiple different methods to resolve this by changing values in the Properties screens.
    I also tried removing the DataSets and just using the Parameters with default settings. in preview, this ran the report but no matter what dates where entered the output was always the same.
    Any assistance will be greatly appreciated as I have spent hours on this so far
    Regards
    John
    As I understand what you need to do is to just remove parameter from the dataset query for populating the date values and then it should work fine
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Problem with GET PARAMETER in "O4K_LICENSE" Transaction

    Hi folks,
    I am facing a problem with the usage of "GET PARAMETER ID" in the transaction O4K_LICENSE (IS-oil).
    I have written a BDC which feeds in the License Type, External License type and a few other Mandatory fields to the Transaction, and on saving the transaction, SAP generates an "Internal License Number". This field has a Parameter ID "OIH", and I am using the command
    GET PARAMETER ID 'OIH' FIELD lw_licin.
    For the first pass of the loop, there is a value coming into lw_licin, but in the later loops this Value is not refreshing and the value which is coming into lw_licin is not changing. But the Database table OIHL is getting updated with the correct Internal License number values.
    So, my question is, is there anyway by which i can refresh the SAP Global Memory after every loop pass?
    Or, is there any way out to get the new generated values into lw_licin ?
    Thanks in advance,
    Vijay.

    Hi
    If you clear the parameter, you should transfer a blank value to it:
    DATA: NO_VALUE.
    SET PARAMETER ID <ID> FIELD NO_VALUE.
    Now the problem is this statament should be into loop and i think the transaction only does the GET PARAMETER.
    If transaction doesn't do the SET PARAMETER yuo can do anything.
    In your standard program there should be something like:
    LOOP...
    IF SY-TABIX > 1.
      SET PARAMETER ID <ID> FIELD NO_VALUE.
    ENDIF.
    ENDLOOP.
    but I think it's very hard there is a piece of code like that, and you can do nothing, because you can only set the parameter before calling the transaction (in bdc mode) and after calling the transaction but not while the transaction is working.
    You should change the standard program to do this.
    Max
    Message was edited by: max bianchi

  • Out parameter problem with mssqlserver4v70rel510

     

    for 5.1, you can get it off our download pages.
    Joe
    ker joe wrote:
    Yes I am getting the same error. Can you point to the latest driver.
    Joseph Weinstein <[email protected]> wrote:
    Hi. I'll bet you're either running MS SQLServer 7 SP3 or SQL2000.
    If I'm right, let me know, and I'll send you the latest driver,
    which has new stuff to adapt to a change MS put in their DBMS for
    these versions.
    Joe
    Greg Williams wrote:
    I'm having a problem getting back out parameters from a stored procedureusing the
    Weblogic jDrivers with weblogic server 5.1.
    I get the exception:
    java.sql.SQLException: Invalid column number (1). Use next() to fetchthe data before
    calling any getXXX method.
    when I attempt to call a getInt on an out parameter. Here's the code:
    CallableStatement cstmtSubmit=null;
    String SubmitSQL="{ call ascs_submit_schd_pmt
    cstmtSubmit = con.prepareCall(SubmitSQL);
    cstmtSubmit.registerOutParameter(1, java.sql.Types.INTEGER);
    cstmtSubmit.setInt(2, Integer.parseInt(paymentId));
    cstmtSubmit.setString(3,co_id);
    cstmtSubmit.setString(4,pol_no);
    cstmtSubmit.setString(5,sub_pol);
    cstmtSubmit.setString(6,bus_div);
    cstmtSubmit.setString(7,agent_id);
    cstmtSubmit.setString(8,chg_start_dt);
    cstmtSubmit.setString(9,chg_stop_dt);
    cstmtSubmit.setString(10,pmt_freq);
    cstmtSubmit.setString(11,max_pmts);
    cstmtSubmit.setString(12,pmts_made);
    cstmtSubmit.setString(13,comm_amt);
    cstmtSubmit.setString(14,comm_reason);
    cstmtSubmit.setString(15,rec_flag);
    cstmtSubmit.setString(16,rec_rate);
    cstmtSubmit.setString(17,change_by);
    cstmtSubmit.setString(18,trans_dt);
    cstmtSubmit.registerOutParameter(19, java.sql.Types.INTEGER);
    cstmtSubmit.execute();
    spReturnCode=cstmtSubmit.getInt(1);
    iPaymentId = cstmtSubmit.getInt(19);
    This code should work according to the JDBC 2.0 API documentation andin fact works
    with no problems with a JdbcOdbcDriver.
    I originally wrote the stored procedure to return an int and have thelast parameter
    as an integer out parameter. Like this:
    String SubmitSQL="{? = call ascs_submit_schd_pmt
    This also works with the JdbcOdbcDriver but doesn't work with the Weblogictype 4
    driver for mssqlserver. It gives a different sqlException:
    java.sql.SQLException: Invalid column number (19). This table has 1columns (a valid
    index is 1 trough 1).
    This example works fine to return a integer, but as soon as you tryto access the
    out parameter it throws the sqlException.
    I've tried this with two versions of the mssqlserver4v70rel510 driver:
    5.1.0 for SQLserver 7.0 04/03/2000 17:05:44 #66825
    and
    5.1.0 Service Pack 9-EARLY_RELEASE for SQLserver 7.0 01/17/2001 14:01:00#96383
    - internal build by joe on client joe.nt
    Any ideas? Is this a bug in the driver or are out parameters not supportedin the
    type 4 jDriver?
    Greg--
    PS: Folks: BEA WebLogic is expanding rapidly, with both entry and advanced
    positions
    for people who want to work with Java, XML, SOAP and E-Commerce infrastructure
    products.
    We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and San Jose
    CA.
    Send resumes to [email protected]

Maybe you are looking for