GET/SET parameter

Hi ,
I have a very basic question.What does the following mean ?
SET PARAMETER ID '/ORGIT/PAM_TY' FIELD space.Thanks for your time in advance.

>
Abhilasa Sarma wrote:
> Hi ,
>
> I have a very basic question.What does the following mean ?
>
> SET PARAMETER ID '/ORGIT/PAM_TY' FIELD space.Thanks for your time in advance.
Hi, Sarma,
Please Search Before Posting Basic Questions
Regards,
Faisal

Similar Messages

  • Urgent : GET/ SET Parameter

    Hi All,
    I want to use an internal table of one program in another in runtime only, Program A will call Program B and the internal table in Program A have to be used in Program B.
    Can anyone tell me how to use the complete internal table in that way if it is at all possible?
    Please help ASAP.
    Regards
    Siddhartha Sengupta

    Hi
    the name is the variable, I don't know.
    The comands you need to use are:
    -1) Export the table to memory:
    EXPORT <TABLE> TO MEMORY ID <LABEL>.
    -2) Import the table from memory:
    IMPORT <TABLE> FROM MEMORY ID <LABEL>.
    In my code I've export the table in report Z1 and import it in the report Z2.
    The table ITAB to be exported/imported has to be defined in both reports.
    DATA: BEGIN OF ITAB OCCURS 0,
            FIELD1,
            FIELD2,
          END   OF ITAB.
    EXPORT ITAB TO MEMORY ID 'ZMY'.
    SUBMIT Z2 AND RETURN.
    REPORT Z2.
    DATA: BEGIN OF ITAB OCCURS 0,
            FIELD1,
            FIELD2,
          END   OF ITAB.
    IMPORT ITAB FROM MEMORY ID 'ZMY'.
    It's important you assign a label to the memory area to be used, here I've used ZMY, but you can use every label you want.
    I don't get any error in my system.
    Max

  • SET PARAMETER AND GET PARAMETER

    What is the difference between Set parameter and Get parameter?

    Hi,
    Set parameter is used to put some value into ABAP memory area, get paramter is used to retrive values form ABAP memory.
    refer the below sample code.
    here i am taking one material number and i am passing that mateial number by using 'set parameter id', the material number will be stored in ABAP-memory area 'MAT', and then i am calling the Tcode 'MM03', after executing the Tcode  (from program) automatically 'MM03' will reads that material number from that ABAP-memory area and it will displays the 'MM03' tcode along with material number.
    you can find the parameter-id's from data element of that field.
    parameters: p_matnr like mara-matnr.
    set parameter id 'MAT' field p_matnr.
    call transaction 'MM03'.
    Reward if useful.
    Thanks,
    Sreeram.

  • Report  using Set parameter & get parameters.

    Hi,
           My requirement is from select query  the list of PO will be display. Now i want when i click on one of the purchase order .
    i want to diaplay PO using CALL TRANSACTION 'ME23N'  with the help of set and get parameters .  or can i do it with interactive report.
    Regards,

    Hi,
    1) Write a Report to show the Output(Use HIDE statment for PO filed while outputing the list).
    2) In the event AT LINE-SELECTION write logic.
    GET CURSOR FIELD field VALUE val.
    SET PARAMETER ID 'BES' FIELD dobj.
    CALL TRANSACTION ME23N.
    Regards,
    J.

  • Get and Set Parameter ID in BDC Call transaction

    Hi all
    I have written this BDC program to run a transaction eg33  to install meter. After meter get installled System generates  Device location number. I need to use this device location number in calling another transaction il03.  but my data fetching using get and set parameter id is not giving accurate result. Kindly check my code and suggest where should I improve. Or whatelse can I do to fullfill this type of requirement other than GET and SET PARAMETER ID.
    REPORT  ZAC_EG33 NO STANDARD PAGE HEADING
                     LINE-SIZE 100.
    TABLES: EABL,
            BUT000,
            ZISUH0003.
    DATA :
          XYZ LIKE IFLO-TPLNR.
    DATA: IT_STATUS TYPE ZISUH0003.
    DATA: G_INDEX TYPE I,
          G_START_COL TYPE I VALUE '1',      "start column
          G_START_ROW TYPE I VALUE '14',      "start row
          G_END_COL   TYPE I VALUE '18',     "maximum column
          G_END_ROW   TYPE I VALUE '75',  "maximum row
          G_TEXT(20),                         "stores error messages
          G_PAGES        TYPE I,
          G_CURRENT_PAGE TYPE I,
          G_COUNT LIKE SY-DBCNT.
    data: l_file   type file_table,
          file1    type string,
          l_title  type string,
          LENGTH   TYPE I,
          FILES    type filetable,
          SUBRC    type i,
          STR_FILE type STRING,
          D_FILE   type RLGRAP-FILENAME,
          filename TYPE String,
          L_itab_date(10).
    FIELD-SYMBOLS : <FS>.
    DATA: IT_EXCEL LIKE STANDARD TABLE OF ALSMEX_TABLINE WITH HEADER LINE,
          IT_MESS TYPE STANDARD TABLE OF BDCMSGCOLL WITH HEADER LINE.
    TYPES: BEGIN OF TY_OPEN,
            HAUS LIKE REG30-HAUS,
            EADAT(10),
            GERAETNEU LIKE REG30-GERAETNEU,
            MESSDRCK LIKE REG30-MESSDRCK,
            ZWSTANDCE LIKE REG30-ZWSTANDCE,
            END OF TY_OPEN.
    DATA : T_ANLAGE LIKE EANLD-ANLAGE,
           VSTELLE LIKE EVBS-VSTELLE,
           S_ANLAGE LIKE EANLD-ANLAGE,
           temp_c(7).
    DATA: IT_OPEN TYPE STANDARD TABLE OF TY_OPEN WITH HEADER LINE.
    DATA: BDCDATA TYPE STANDARD TABLE OF BDCDATA WITH HEADER LINE.
    SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN SKIP 2.
    PARAMETERS: P_FILE like RLGRAP-FILENAME OBLIGATORY.
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN END OF BLOCK 1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE  .
      PERFORM GET_FILE_NAME.
      MOVE FILENAME TO P_FILE.
    START-OF-SELECTION.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        FILENAME                      = p_file
        I_BEGIN_COL                   = 1  "VF_START_COL
        I_BEGIN_ROW                   = 2  "VF_START_ROW
        I_END_COL                     = 5  "VF_END_COL
        I_END_ROW                     = 10000  "VF_END_ROW
      TABLES
        INTERN                        = IT_EXCEL
      EXCEPTIONS
        INCONSISTENT_PARAMETERS       = 1
        UPLOAD_OLE                    = 2
        OTHERS                        = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF IT_EXCEL[] IS INITIAL.
      G_TEXT = 'No Data Uploaded'.
    ELSE.
      SORT IT_EXCEL BY ROW COL.
      LOOP AT IT_EXCEL.
        MOVE : IT_EXCEL-COL TO G_INDEX.
        ASSIGN COMPONENT G_INDEX OF STRUCTURE IT_OPEN TO <FS>.
        MOVE IT_EXCEL-VALUE TO <FS>.
        AT END OF ROW.
          IF NOT IT_OPEN IS INITIAL.
          APPEND IT_OPEN." TO IT_LINE.
          CLEAR IT_OPEN.
          CLEAR IT_EXCEL.
          ENDIF.
        ENDAT.
      ENDLOOP.
    ENDIF.
    REFRESH IT_EXCEL.
    ULINE.
    FORMAT COLOR 3 ON.
    WRITE: /1 sy-vline ,
           2 'Material No.' ,
           25 sy-vline,
            2 'Logs' ,
            100 sy-vline.
    uline.
    FORMAT COLOR OFF.
    PERFORM BDC_OPEN_READING.
    MESSAGE S013(ZPS).
    *&      Form  GET_FILE_NAME
          text
    -->  p1        text
    <--  p2        text
    FORM GET_FILE_NAME .
    REFRESH FILES.
    call method cl_gui_frontend_services=>file_open_dialog
                exporting
                  window_title            = l_title
                changing
                  file_table              = files
                  rc                      = subrc
                exceptions
                  file_open_dialog_failed = 1
                  cntl_error              = 2
                  error_no_gui            = 3
                  others                  = 4.
              check sy-subrc = 0.
              loop at files into l_file.
                str_file = l_file.
                move str_file to filename.
                exit.
              endloop.
    ENDFORM.                    " GET_FILE_NAME
    *&      Form  BDC_OPEN_READING
          text
    -->  p1        text
    <--  p2        text
    FORM BDC_OPEN_READING .
    LOOP AT IT_OPEN.
    REFRESH BDCDATA.
    clear : temp_c.
    move it_open-MESSDRCK to temp_c.
    condense : temp_c.
    PERFORM MAP1.
    CALL TRANSACTION 'EG33' USING BDCDATA MODE 'A' MESSAGES INTO IT_MESS.
    +***changes by added on 28/02/08 +
    get parameter id 'IFL' FIELD XYZ.
    PERFORM MAP2.
    set parameter id 'IFL' FIELD XYZ.
    ++*
    CALL TRANSACTION 'IL03' USING BDCDATA MODE 'A' MESSAGES INTO IT_MESS.
    +****end change added on 28.02.08+DATA: G_INSNO LIKE IT_OPEN-HAUS.
    IF NOT IT_MESS[] IS INITIAL.
      G_INSNO = IT_OPEN-HAUS.
      PERFORM GET_MESSAGES  TABLES IT_MESS USING G_INSNO." IT_LINE.
    ENDIF.
    READ TABLE IT_MESS WITH KEY MSGTYP = 'E'.
    IF SY-SUBRC NE 0.
    READ TABLE IT_MESS WITH KEY MSGTYP = 'S'  MSGNR = '622'.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE VSTELLE FROM EVBS INTO VSTELLE WHERE HAUS = IT_OPEN-HAUS.
    SELECT SINGLE ANLAGE FROM EANL INTO T_ANLAGE WHERE VSTELLE = VSTELLE.
    MOVE T_ANLAGE TO IT_STATUS-ANLAGE.
    MOVE 'X' TO IT_STATUS-RFC.
    *perform get_date_format using IT_OPEN-EADAT.
    MOVE IT_OPEN-EADAT TO IT_STATUS-ADATE.
    SELECT SINGLE ANLAGE FROM ZISUH0003 INTO  S_ANLAGE WHERE ANLAGE =
    T_ANLAGE.
      IF SY-SUBRC EQ 4.
        INSERT ZISUH0003 FROM IT_STATUS.
      ELSE.
        UPDATE ZISUH0003 FROM IT_STATUS.
      ENDIF.
      ENDIF.
      ENDIF.
      REFRESH IT_MESS.
      CLEAR   IT_MESS.
    ENDLOOP.
    ENDFORM.                    " BDC_OPEN_READING
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = PROGRAM.
      BDCDATA-DYNPRO   = DYNPRO.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
    ENDFORM.
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
      IF FVAL <> SPACE.
        CLEAR BDCDATA.
        BDCDATA-FNAM = FNAM.
        BDCDATA-FVAL = FVAL.
        APPEND BDCDATA.
      ENDIF.
    ENDFORM.
    *&      Form  MAP1
          text
    -->  p1        text
    <--  p2        text
    FORM MAP1 .
    perform bdc_dynpro      using 'SAPLE30D' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'REG30-GERAETNEU'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'REG30-HAUS'
                                  IT_OPEN-HAUS.  "'100000000033'.
    perform bdc_field       using 'REG30-EADAT'
                                  IT_OPEN-EADAT.  "'18.02.2006'.
    perform bdc_field       using 'REG30-GERAETNEU'
                                  IT_OPEN-GERAETNEU.  "'66a'.
    perform bdc_dynpro      using 'SAPLE30D' '0220'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'REG30-TEMP_AREA(02)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SAVE'.
    perform bdc_field       using 'REG30-MESSDRCK'
                                   temp_c. "IT_OPEN-MESSDRCK'0.0125'.
    perform bdc_field       using 'REG30-GERWECHS'
                                  '05'.
    perform bdc_field       using 'REG30-ANZDAYSOFPERIOD(01)'
                                  '30'.
    perform bdc_field       using 'REG30-ZWSTANDCE(01)'
                                  IT_OPEN-ZWSTANDCE.  "'10'.
    perform bdc_field       using 'REG30-ZWSTANDCE(02)'
                                  '0'.
    perform bdc_field       using 'REG30-PERVERBR(01)'
                                  '0'.
    perform bdc_field       using 'REG30-PERVERBR(02)'
                                  '0'.
    perform bdc_field       using 'REG30-TEMP_AREA(01)'
                                  '0001'.
    perform bdc_field       using 'REG30-TEMP_AREA(02)'
                                  '0001'.
    perform bdc_field       using 'REG30-PR_AREA_AI(01)'
                                  '0001'.
    perform bdc_field       using 'REG30-PR_AREA_AI(02)'
                                  '0001'.
    ENDFORM.                    " MAP1
    ****CHANGEs added BY ALKA 28.02.08
    *&      Form  MAP2
          text
    -->  p1        text
    <--  p2        text
    FORM MAP2 .
    perform bdc_dynpro      using 'SAPMILO0' '1110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'IFLO-TPLNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'IFLO-TPLNR'
                                  XYZ..
    perform bdc_field       using 'RILO0-TPLKZ'
                                  'AO_GP'.
    perform bdc_dynpro      using 'SAPMILO0' '2100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'IFLO-PLTXT'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=T\04'.
    perform bdc_field       using 'IFLO-PLTXT'
                                  'DEVICE LOCATION'.
    perform bdc_dynpro      using 'SAPMILO0' '2100'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BU'.
    perform bdc_field       using 'IFLO-PLTXT'
                                  'DEVICE LOCATION'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ITOBATTR-EINZL'.
    perform bdc_field       using 'ITOBATTR-IEQUI'
                                  'X'.
    perform bdc_field       using 'ITOBATTR-EINZL'
                                  'X'.
    ENDFORM.                    " MAP2
    *****END CHANGE added on 28.02.08
    *&      Form  get_date_format
          text
         -->P_IT_ORDER_TABLE_C_DATE  text
    FORM get_date_format USING L_ITAB_DATE." LIKE SY-DATUM.
    data: d_temp(4),
          m_temp(2),
          y_temp(4).
    *move L_ITAB_DATE to L_ITAB_DATE.
    y_temp = L_ITAB_DATE(4).
    m_temp = L_ITAB_DATE+4(2).
    d_temp = L_ITAB_DATE+6(2).
    CONCATENATE d_temp '.' m_temp '.' y_temp into L_ITAB_DATE.
    ENDFORM.                    " get_date_format
    *&      Form  GET_MESSAGES
          text
         -->P_IT_MESS  text
         -->P_G_INSNO  text
    FORM GET_MESSAGES  TABLES IT_MESS STRUCTURE BDCMSGCOLL USING G_INSNO .TABLES T100.
    DATA: L_MSTRING(255).
    LOOP AT IT_MESS WHERE MSGTYP = 'E'   OR MSGTYP = 'S'.
          SELECT SINGLE * FROM T100 WHERE SPRSL = IT_MESS-MSGSPRA
                                    AND   ARBGB = IT_MESS-MSGID
                                    AND   MSGNR = IT_MESS-MSGNR.
          IF SY-SUBRC = 0.
            L_MSTRING = T100-TEXT.
            IF L_MSTRING CS '&1'.
              REPLACE '&1' WITH IT_MESS-MSGV1 INTO L_MSTRING.
              REPLACE '&2' WITH IT_MESS-MSGV2 INTO L_MSTRING.
              REPLACE '&3' WITH IT_MESS-MSGV3 INTO L_MSTRING.
              REPLACE '&4' WITH IT_MESS-MSGV4 INTO L_MSTRING.
            ELSE.
              REPLACE '&' WITH IT_MESS-MSGV1 INTO L_MSTRING.
              REPLACE '&' WITH IT_MESS-MSGV2 INTO L_MSTRING.
              REPLACE '&' WITH IT_MESS-MSGV3 INTO L_MSTRING.
              REPLACE '&' WITH IT_MESS-MSGV4 INTO L_MSTRING.
            ENDIF.
            CONDENSE L_MSTRING.
          ENDIF.
          CONDENSE G_INSNO.
          CONCATENATE 'For' ' ' G_INSNO ',' L_MSTRING INTO L_MSTRING SEPARATED BY SPACE.
    FORMAT COLOR 2 ON.
    *IF IT_MESS-MSGTYP = 'S' AND IT_MESS-MSGNR = '622'.
    *WRITE: 1 sy-vline,
            L_MSTRING    under 'Error Messages',
           100 sy-vline.
    *ULINE.
    *ELSEIF IT_MESS-MSGTYP = 'E'.
    WRITE: 1 sy-vline,
             L_MSTRING    under 'Logs',
            100 sy-vline.
    ULINE.
    *ENDIF.
    ENDLOOP.
    ENDFORM.                    " GET_MESSAGES

    i think there might be some time gap between CALL TRANSACTION and GET PARAMETER ID.....,that is to say,the new No. has not been generated and what you fetch is an old No..
    i think you should use the "CALL TRANSACTION" like the following one:
    CALL TRANSACTION 'EG33' USING BDCDATA MODE 'A'  UPDATE 'L'  MESSAGES INTO IT_MESS .
    then i think you can get the right value.
    P.S: the different update model(from SAP document)
           upd Effect
    "A"   Asynchronous update. Updates of called programs are executed in the same way as if in the             COMMIT WORK statement the AND WAIT addition was not specified.
    "S" Synchronous processing. Updates of the called programs are executed in the same way as if in the COMMIT WORK statement the AND WAIT addition had been specified.
    "L" Local update. Updates of the called program are executed in such a way as if the SET UPDATE TASK LOCAL statement had been executed in it.
    Other As for "A".

  • Issue with using GET n SET Parameter in module pool programming.

    Hello Friends,
                         I am using SET n GET Parameter to access input values from a screen. But when I use it, the values are not transfered back n forth. Getting initial values.
    Your expertise would be appreciated.
    Cheers,
    Senthil

    Hi,
    check this
    Filling an Initial Screen using SPA/GPA Parameters
    To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.
    ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements.
    To fill one, use:
    SET PARAMETER ID <pid> FIELD <f>.
    This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
    To read an SPA/GPA parameter, use:
    GET PARAMETER ID <pid> FIELD <f>.
    This statement fills the value stored under the ID <pid> into the variable <f>. If the system does not find a value for <pid> in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0.
    To fill the initial screen of a program using SPA/GPA parameters, you normally only need the SET PARAMETER statement.
    The relevant fields must each be linked to an SPA/GPA parameter.
    On a selection screen, you link fields to parameters using the MEMORY ID addition in the PARAMETERS or SELECT-OPTIONS statement. If you specify an SPA/GPA parameter ID when you declare a parameter or selection option, the corresponding input field is linked to that input field.
    On a screen, you link fields to parameters in the Screen Painter. When you define the field attributes of an input field, you can enter the name of an SPA/GPA parameter in the Parameter ID field in the screen attributes. The SET parameter and GET parameter checkboxes allow you to specify whether the field should be filled from the corresponding SPA/GPA parameter in the PBO event, and whether the SPA/GPA parameter should be filled with the value from the screen in the PAI event.
    When an input field is linked to an SPA/GPA parameter, it is initialized with the current value of the parameter each time the screen is displayed. This is the reason why fields on screens in the R/3 System often already contain values when you call them more than once.
    When you call programs, you can use SPA/GPA parameters with no additional programming overhead if, for example, you need to fill obligatory fields on the initial screen of the called program. The system simply transfers the values from the parameters into the input fields of the called program.
    However, you can control the contents of the parameters from your program by using the SET PARAMETER statement before the actual program call. This technique is particularly useful if you want to skip the initial screen of the called program and that screen contains obligatory fields.
    If you want to set SPA/GPA parameters before a program call, you need to know which parameters are linked to which fields on the initial screen. A simple way of doing this is to start the program that you want to call, place the cursor on the input fields, and choose F1 followed by Technical info. The Parameter ID field contains the name of the corresponding SPA/GPA parameter. Alternatively, you can look at the screen definition in the Screen Painter.
    The technical information for the first input field of the booking transaction TCG2 looks like this:
    The SPA/GPA parameter for the input field Company has the ID CAR. Use this method to find the IDs CON, DAY, and BOK for the other input fields.
    The following executable program is connected to the logical database F1S and calls an update transaction:
    REPORT BOOKINGS NO STANDARD PAGE HEADING.
    TABLES SBOOK.
    START-OF-SELECTION.
      WRITE: 'Select a booking',
      SKIP.
    GET SBOOK.
      WRITE: SBOOK-CARRID, SBOOK-CONNID,
             SBOOK-FLDATE, SBOOK-BOOKID.
      HIDE:  SBOOK-CARRID, SBOOK-CONNID,
             SBOOK-FLDATE, SBOOK-BOOKID.
    AT LINE-SELECTION.
      SET PARAMETER ID: 'CAR' FIELD SBOOK-CARRID,
                        'CON' FIELD SBOOK-CONNID,
                        'DAY' FIELD SBOOK-FLDATE,
                        'BOK' FIELD SBOOK-BOOKID.
      CALL TRANSACTION 'BOOK'.
    The basic list of the program shows fields from the database table SBOOK according to the user entries on the selection screen. These data are also stored in the HIDE areas of each line.
    If the user selects a line of booking data by double-clicking, the system triggers the AT LINE-SELECTION event and takes the data stored in the HIDE area to fill them into the SPA/GPA parameters of the initial screen of the transaction. Then it calls the transaction. Since you do not suppress the initial screen using AND SKIP FIRST SCREEN, the initial screen may appear as follows:
    If you would use the AND SKIP FIRST SCREEN option with the CALL TRANSACTION statement, the second screen would appear immediately, since all obligatory fields of the first screen are filled.
    Regards
    Edited by: K.P.N on Jan 9, 2008 5:21 AM

  • Set Parameter id is not working in case of select-options

    Hi,
    i am using the below code to get the SWIA first field fill with some data which i am getting by logic written..but its not getting filled since in tcode the first input box is select-options not a parameter..if it would have been a parameter than my logic would have worked finest. so kindly suggest what to do now in case of select-options.
    form user_command  using p_ucomm    type sy-ucomm
                             p_selfield type slis_selfield.
      data : wi type sww_wiid .
      clear : wi .
      read table it_final into wa_final index p_selfield-tabindex.
      if sy-subrc = 0.
        check ( wa_final-wi_id is not initial ).
        wi = wa_final-wi_id .
        case p_ucomm.
          when '&IC1'.
            set parameter id 'WID' field wi.
            call transaction 'SWIA'and skip first screen.
        endcase.
      endif.
    endform.
    Regards,
    HiM

    ThanQ..i got you totally..thanks to remind
    Regards,
    HiM

  • How can I get a parameter back into a servlet invoked from an IMG tag ?

    I'm using a servlet to create several graphical plots per JSP i.e. per HTML page. Each graph is supposed to be different, according to a parameter which I want to pass back from my JSP. I'm getting several plots but they're all the same!
    I've tried setting an attribute in the session object before each IMG SRC= , but all I get is each plot the same! In fact, my debugging efforts show that the servlet is only called once despite 3 calls, each with a different session parameter value. I'm not sure the session parameter values are getting used properly.
    I just can't find a way of getting a parameter back into my servlet which is invoked from the IMG tag (i.e. SRC= "servlet name").
    Can anyone tell me the best way to pass a parameter back into a servlet which is invoked from an IMG tag? Can the request object be used? I can't, at the moment, see how it could be used?
    I'll certainly be very grateful if anyone can help with this - could even be useful for others as well!

    You said that, "by moving a copy of Mobile Docs back to the Library, from which I had moved it, my documents reapperared in Cloud." That says that you actually moved it. Obviously, I can't tell exactly what you did, but it sounds like you may have thought you were just putting it in the sidebar, but you actually put it somewhere else. The sidebar is not a location to put things, just a way to create a quick shortcut to access a file or folder, so you can't put things "back" from there.

  • Why do I get Missing Parameter Values error from CrystalReportViewer in VS2005

    Post Author: eseidel
    CA Forum: .NET
    Hi everyone,
    I have spent way to much time trying to figure this problem out and am getting no where now. I was hoping someone with more experience in CR for VS2005(I think v.9) and VS2005 may be able to help.  I have a report with 10 parameters that Im setting in code.  I have another 3 parameters in a subreport(with same names as 3 in main report) that are being pushed in(I hope) through my ApplyParams() method.  I have checked the output of each parameter before and after it is assigned in ApplyParams.  All values are being set....So why do I keep getting an error when I run it for Missing Parameter Values no matter what I do?  The error comes after SetDBLogonForReport(myConnectionInfo).  I have been struggling with this problem for almost 3 days now and have tried numerous approaches.  If I remove the subreport it works ok.  Why is subreport not getting parameters(I think this is where the problem stems from)?  Please any advice would be greatly appreciated.  Thank you. If need be I can e-mail the report but I don't know how much that will help without being able to access the datasources.
    Eric
    Code Snippet
    Private _Parameters As New System.Collections.Specialized.StringDictionary
    Public Property Parameters() As System.Collections.Specialized.StringDictionary
         Get
             Return (_Parameters)
         End Get
         Set(ByVal Value As System.Collections.Specialized.StringDictionary)
            If (Value Is Nothing Or _Parameters Is Nothing) Then Exit Property
            For Each entry As DictionaryEntry In Value
                _Parameters.Add(entry.Key, entry.Value)
            Next
       End Set
    End Property
    Private Sub SetParameters()
        Parameters("kiPerformance") = rptKi.ToString
        Parameters("PreparedBy") = rptPreparedBy
        Parameters("SupplierName") = rptSupplierName
        Parameters("Supplier") = rptSupplier  'Param in subreport too
        Parameters("ApprovedBy") = rptApprovedBy
        Parameters("kiPerformanceGoal") = rptKiThisGoal.ToString
        Parameters("kiForecastGoal") = rptKiForecast.ToString
        Parameters("kiNextGoal") = rptKiNextGoal.ToString
        Parameters("kiBegRange") = rptBegDate.ToString("d") 'Param in subreport too
        Parameters("kiEndRange") = rptEndDate.ToString("d") 'Param in subreport too
    End Sub
    Public Function ApplyParams()
        Me.SuspendLayout()
        Dim rpt As CrystalDecisions.CrystalReports.Engine.ReportDocument = _
        crv.ReportSource
        If (rpt Is Nothing OrElse _Parameters Is Nothing) Then Return False
        Dim crParameterFieldDefinitions As ParameterFieldDefinitions = rpt.DataDefinition.ParameterFields
         If (crParameterFieldDefinitions Is Nothing) Then Return False
         For Each crParameterFieldDefinition As ParameterFieldDefinition In crParameterFieldDefinitions
             If ((Not crParameterFieldDefinition.IsLinked) And _
                 _Parameters.ContainsKey(crParameterFieldDefinition.Name)) Then
                   Dim crParameterValues As ParameterValues = _
                   crParameterFieldDefinition.CurrentValues
                   If Not (crParameterValues Is Nothing) Then
                         Dim crParameterDiscreteValue As New ParameterDiscreteValue
                         crParameterDiscreteValue.Value =  _Parameters.Item(crParameterFieldDefinition.Name)
                         crParameterValues.Add(crParameterDiscreteValue)
                         'Console.WriteLine(crParameterFieldDefinition.Name & ": " & crParameterDiscreteValue.Value)
                        crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
                  End If
              End If
           Next
           crv.ReportSource = rpt
           Me.ResumeLayout()
           Return Nothing
    End Function
    Private Sub ConfigureCrystalReports()
            Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo
            Dim pFields As New ParameterFields()
             Dim pField As New ParameterField()
             Dim disVal As New ParameterDiscreteValue()
             'Connection stuff,sorry I can't show you this part
             'Bind report
            rptCard = New ReportCard
           LoadDataSource()
           rptCard.SetDataSource(dsOcc)
           rptCard.Subreports("FailOcc").SetDataSource(dsOcc)  'Ive tried without this line as well
           rptCard.PrintOptions.PaperSize = PaperSize.Paper11x17
           rptCard.PrintOptions.PaperOrientation = PaperOrientation.Landscape
           crv.ReportSource = rptCard
           'Load parameters for report
           SetParameters()
           crv.RefreshReport()
           SetDBLogonForReport(myConnectionInfo)
    End sub
    Private Sub SetDBLogonForReport(ByVal conn As ConnectionInfo)
             Dim tableLogOnInfos As TableLogOnInfos = crv.LogOnInfo
             For Each myTableLogOnInfo As TableLogOnInfo In tableLogOnInfos
                  myTableLogOnInfo.ConnectionInfo = conn
             Next
    End Sub
    Private Sub crv_Error(ByVal source As Object, ByVal e As CrystalDecisions.Windows.Forms.ExceptionEventArgs) Handles crv.Error
          MsgBox(e.Exception.Message)
          e.Handled = True
    End Sub
    Private Sub crv_ReportRefresh(ByVal source As Object, ByVal e As CrystalDecisions.Windows.Forms.ViewerEventArgs) Handles crv.ReportRefresh
           ApplyParams()
    End Sub

    Post Author: mewdied
    CA Forum: .NET
    By any chance are the parameters in your subreport stored procedure parameters?
    There was a specific fix for stored procedure parameters available from:ftp://ftp1.businessobjects.com/outgoing/CHF/crnet20win32x86_en_chf.zip
    The specific fix is described in the readme under Problem ID # ADAPT00532856

  • CrystalReportViewer - Setting parameter throws ancestor error on page navigation

    We are having web application reports in the application using BO-XI SDK Viewer API. This API approach was working fine earlier. We upgrade our reporting component to SAP BO-4 (Crystal Server 2011) due to EOL of BOXI.
    We have updated new API’s provided by SAP as per guide.
    We updated web based Crystal Report Viewer (DHTML Viewer). The crystalreportviewer folder coming with SAP CS 2011.
    We applied updated patch set upto last patch released CS2011 SP4 Patch4.
    We still facing issue while viewing report in DHTML viewer provided by SAP. Please advice on below.
    In our web application we do have updated folder for /crystalreportviewer.
    We dynamically creating enterprise session object to get client document which explained as below –
    IEnterpriseSession es = null;
    try{
    es = sm.logon(mUser, mPassword, mAPSName, mAuthType);
    }catch(Exception e){
    // request dispatched to error page
    // Get the Report Application Factory service from Crystal Enterprise
    IReportAppFactory rptAppFactory = (IReportAppFactory)es.getService("", "RASReportService");
    // Get the InfoStore service from Crystal Enterprise
    IInfoStore infoStore = (IInfoStore)es.getService("", "InfoStore");
    IInfoObjects oInfoObjects = infoStore.query(“Select * From CI_INFOOBJECTS…for RPT File.”);
    ReportClientDocument clientDoc = rptAppFactory.openDocument((IInfoObject)oInfoObjects.get(0), 0, objLocale);
    Setting parameter
    // Setting Parameter to clientDoc
    Object[] parameters = { 
                                                    parseDate(fromDate),
                                                    parseDate(endDate),
                                                    getLanguageID(request),
                                                    reportName,
                                                    getLanguageID(request)
    Fields parameterFields = clientDoc.getDataDefController().getDataDefinition().getParameterFields();
    for(int index=0; index < parameters.length; index++){
                    ParameterField oldParameter = (ParameterField)parameterFields.getField(index);
                    ParameterField newParameter = (ParameterField) oldParameter.clone(true);
                    newParameter.getCurrentValues().removeAllElements();                                                   
                    ParameterFieldDiscreteValue newDiscreteValueObj = new ParameterFieldDiscreteValue();
                    newDiscreteValueObj.setValue(parameters[index]);
                    newParameter.getCurrentValues().add(newDiscreteValueObj);
                    ParameterFieldController paramController = clientDoc.getDataDefController().getParameterFieldController();
                    paramController.modify(oldParameter, newParameter);
    // Create an  Viewer
    CrystalReportViewer viewer = new CrystalReportViewer();
    //Set the name for the interactive viewer
    viewer.setName("Crystal_Report_Viewer");
    viewer.setDisplayPage(true);
    //Set Navigation button false
    viewer.setHasHistoryNavigationButtons(false);
    //Set best fit to page true
    viewer.setBestFitPage(true);
    // Set reuse parameter on referesh
    viewer.setReuseParameterValuesOnRefresh(true);
    // Set Own Page true
    viewer.setOwnPage(true);
    // Enabled export and print button
    viewer.setHasExportButton(true);
    viewer.setHasPrintButton(true);
    // Group Tree Removed
    viewer.setDisplayGroupTree(false);
    // Toggle group false
    viewer.setHasToggleGroupTreeButton(false);
    //viewer.refresh();
    // Removed refersh button
    viewer.setHasRefreshButton(false);
    viewer.setPrintMode(CrPrintMode.ACTIVEX);
    // Set the source for the interactive viewer to the client documents report source
    viewer.setReportSource(clientDoc.getReportSource());
    // Retain parameter and set again for pagination in viewer
    setReportURL(viewer,request);
    // Process the http request to view the report
    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
    //response.flushBuffer();
    // Close client document
    clientDoc.close();
    // Dispose of the viewer object
    viewer.dispose();
    es.logoff();
    Issue we faced?
    a) On Pagination thorws exception in webreportinglog as
    [@APPNAME@] ERROR [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] WebReportLogger.error(62) | Unable to set the ancestors
    com.businessobjects.report.web.json.JSONException: JSONObject["ancestors"] is not a JSONArray.
                    at com.businessobjects.report.web.json.JSONObject.getJSONArray(JSONObject.java:456)
                    at com.businessobjects.report.web.shared.JSONParameter.getDiscreteValueFromJSON(JSONParameter.java:670)
                    at com.businessobjects.report.web.shared.JSONParameter.getValueFromJSON(JSONParameter.java:609)
                    at com.businessobjects.report.web.shared.JSONParameter.jsonToDefaultFieldValues(JSONParameter.java:587)
                    at com.businessobjects.report.web.shared.JSONParameter.getDefaultValues(JSONParameter.java:474)
                    at com.businessobjects.report.web.shared.JSONParameter.toParameterField(JSONParameter.java:872)
                    at com.businessobjects.report.web.shared.ParametersHelper.jsonToFields(ParametersHelper.java:309)
                    at com.businessobjects.report.web.state.ViewerState.restoreCommonState(ViewerState.java:2838)
                    at com.businessobjects.report.web.state.ViewerState.restore(ViewerState.java:2741)
                    at com.businessobjects.report.web.component.ViewerContainer.restoreState(ViewerContainer.java:210)
                    at com.businessobjects.report.web.WorkflowController.loadViewState(WorkflowController.java:418)
                    at com.businessobjects.report.web.WorkflowController.init(WorkflowController.java:393)
    b) On Export / print button nothing happened even request didn’t passed.
    WEB-INF/web.xml entry as below.
    <?xml version="1.0"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
                    <context-param>
            <param-name>crystal_document_view</param-name>
                                    <!-- weblayout : Fills the entire report view pane with the report. There is no grey background -->
            <param-value>weblayout</param-value>
                    </context-param>
                    <context-param>
                                    <param-name>crystal_exception_log_file</param-name>
                                    <param-value>webreportingexception.log</param-value>
                    </context-param>
                    <context-param>
            <param-name>crystal_exception_info</param-name>
                                    <!-- long - Displays the exception information with the accompanying stack trace. -->
            <param-value>long</param-value>
                    </context-param>
                    <context-param>
                                    <param-name>crystal_image_uri</param-name>
                                    <param-value>/TangibleWebApp/crystalreportviewers</param-value>
                    </context-param>
                    <context-param>
            <param-name>crystal_image_use_relative</param-name>
            <param-value>webapp</param-value>
                    </context-param>
                    <context-param>
                                    <param-name>crystal_processing_indicator_delay</param-name>
                                    <param-value>100</param-value>
                    </context-param>
                    <context-param>
                                    <param-name>crystal_use_asynchronous_requests</param-name>
                                    <param-value>false</param-value>
                    </context-param>
                    <context-param>
                                    <param-name>crystal_servlet_uri</param-name>
                                    <param-value>/TangibleWebApp/CrystalReportViewerHandler</param-value>
                    </context-param>
                    <servlet>
            <servlet-name>CrystalReportViewerServlet</servlet-name>
            <servlet-class>com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet</servlet-class>
                    </servlet>
                    <servlet-mapping>
                                    <servlet-name>CrystalReportViewerServlet</servlet-name>
                                    <url-pattern>/TangibleWebApp/CrystalReportViewerHandler</url-pattern>
                    </servlet-mapping>
                    <servlet>
                                    <servlet-name>document</servlet-name>
                                    <servlet-class>com.oreilly.servlet.OpenDoc</servlet-class>
                    </servlet>
                    <servlet>
                                    <servlet-name>InitialServlet</servlet-name>
                                    <servlet-class>com.servlet.InitialServlet</servlet-class>
                                    <load-on-startup>1</load-on-startup>
                    </servlet>
                    <servlet>
                                    <servlet-name>FactorsLogo</servlet-name>
                                    <servlet-class>com.servlet.FactorsLogo</servlet-class>
                    </servlet>
                    <servlet-mapping>
                                    <servlet-name>FactorsLogo</servlet-name>
                                    <url-pattern>/servlet/FactorsLogo</url-pattern>
                    </servlet-mapping>
                    <servlet-mapping>
                                    <servlet-name>document</servlet-name>
                                    <url-pattern>/servlet/document</url-pattern>
                    </servlet-mapping>
                    <session-config>
                                    <session-timeout>30</session-timeout>
                    </session-config>
                    <welcome-file-list>
                                    <welcome-file>/tangible/index.jsp</welcome-file>
                    </welcome-file-list>
                    <listener>
                                    <listener-class>com.common.util.applistener.AppListener</listener-class> 
                    </listener>
    </web-app>
    Thanks in advance for your advice / suggestions.

    Am I right in guessing that you were previously using the ActiveX viewer?
    Currently your code is closing the document and logging off Enterprise.  Pretty much any action that is done in the DHTML viewer will cause a postback to the server which will no longer have the document or session available with your current code which will cause all sorts of problems.  You need to persist these objects, and only clean them up once you are completely finished with them.

  • How to send/set parameter from BSP page to iview

    Dear Expert,
    Can advise me how to send or set parameter from BSP page to iview ?
    http://xxx.xxx.com/irj/portal?navigationtarget=roles://pcd:portal_content/FLD.ObjetLibrary/FLD.Iviews/FLD.CRM/ET/bsppage.htm?lv_param=xxx
    I want to view my bsp page in portal but with parameter value.
    I can open my bsp page without parameter value like link below :
    http://xxx.xxx.com/irj/portal?navigationtarget=roles://pcd:portal_content/FLD.ObjetLibrary/FLD.Iviews/FLD.CRM/ET/
    Thnx & Regards,
    Pieter

    Hi,
    your BSP page get's integrated via an iFrame. So, simply speaking, it's not possible to pass an parameter back.
    But what you can try is to use the Portal DataBag component. In the BSP page, store the information you want to pass in the browser. The iView/Portal than has to check if there is a new parameter / value stored.
    SAP Help: http://help.sap.com/saphelp_nw70/helpdata/en/68/322a9261c54e51b7965f86aac3dae2/frameset.htm
    br,
    Tobias

  • Setting parameter in Detail View Object

    I want to setting parameter in detail view.I have two table.One is master another is detail.I use parameter in master table so I put my page parameter form and I execute it.It work fine.I want to use parameter in detail table.In detail table if I dont use parameter master is execute it automaticly and it shows the result but when I put the parameter in detail it isn't show any result it say no rows return.Please help about to use detail views parameters(bind variables)

    Hmmm, sorry, not sure.
    Can I suggest you change your code to the following:
    RowSetIterator[] iter= getMasterRowSetIterators();
    if (iter != null && iter[0].first() != null) {
      Row row = rsi[0].getCurrentRow();
      .....(etc)....And run it in the debugger. See if it actually gets to the Row line. If not getMasterRowSetIterators() isn't returning any iterators and you should check how you've exposed your VOs in your AM - specifically looking to see if your detail VO is actually a detail VO to a parent VO.
    Also I'm not sure overriding executeQuery() is the best place to be doing this as the doco says it is not always called. The doco seems to indicate executeQueryForCollection() is the preferred method. However in my testing it appears you can't set the query parameters in this method.
    Sorry I couldn't be more helpful.
    CM.

  • Set Parameter

    When trying to open a contract from a program I am facing problem.
    The Transaction is VA43 for which I write the following lines:
    SET PARAMETER ID 'AUN' FIELD lv_vbeln.
    CALL TRANSACTION 'VA43' AND SKIP FIRST SCREEN.
    where lv_vbeln is defined :
    DATA: lv_vbeln LIKE vbak-vbeln
    MY PROBLEM is that VA43 doesnt get the value I sent it. Even checked in Debug. Pl. let me know what should be done.

    Hi,
    use the following..
    SET PARAMETER ID <b>'KTN'</b> FIELD VBAK-VBELN.
    Thanks,
    Naren

  • LSMW- Set parameter id

    Hi experts,
    I am using LSMW to upload data into SAP.
    The requirement is before calling the transaction i have to clear the values using SET PARAMETER id...
    like for ex: if the tcode is XD01, i have to remove the defaulted values before calling the Tcode.
    Like wise before calling the transaction for multiple times for multiple records i have to clear the default values.
    Note: I have done coding in FIELD MAPPING there i have used the set parameter id but this code wil get executed while CONVERTING DATA, and i want to carry this code(SET PARAMETER ID) in session because there it will call the transaction and before calling the transaction it should clear the values .
    THanks

    Hi,
    Try to clear the variable in the event: __BEGIN_OF_PROCESSING__ of the "Maintain Field Mapping and Conversion Rules"..
    Hope this should solve your clearing of set pararameter id issue..
    Regards
    SK

  • Set Parameter ID

    Hi Friends ,
    I would like to know if this is the right statement to code . I am getting a short dump at this statement. Correct me if i am wrong .
    SET PARAMETER ID 'ABC' FIELD 0.
    Thank you ,

    Hi hari,
    1. Give in QUOTES.
    SET PARAMETER ID 'ABC' FIELD <b>'0'</b>
    Then it won't give error.
    regards,
    amit m.

Maybe you are looking for

  • Populate one text field on a form based on the value in another

    I am new to APEX and building my first application. When a user enters a value in one field, I would like to run a SQL command and then display a value in another field based on the value in the first field. For instance, if a user enters a part numb

  • .Tiff image issues

    When I try to insert .tiff images (like iChat smilies) I have to move them way over for them to actually come up where I want them to when the site is viewed through a web browser. If I don't move them they show up no where I want them to. I have att

  • Time Capsule & NAS Multi-User Security Question

    I want to know how time capsule manages multiple users backing up to the internal or USB drive attached to it. I understand that, in general, time machine uses all the drive's space, and just deletes the oldest backups, is this correct with the Time

  • Need a replacement

    Nokia 720 volume down button not working and both three lights not working..back button light windows light and search button light even in darkness not working....i need a replacement nokia...

  • Removing Picture Edge in iMovie?

    I don't know what word to use, as zooming, cropping, etc., all have their specific meanings, but, in short: I just got iMovie 6 and haven't had a chance to use it at all. Meanwhile, in changing camera settings to film a project, the thing that superi