Change "Owner" table property

Hello,
I am using the last version of the JRC runtimes from CR4E to switch the datasources to JNDI. at run time It is working well, except by the fact of the queries taking the old (design-time configured) table prefixes. Looking at the report in designer, I can see that those prefixes are indicated in the u201COwneru201D table property for each table. No matter how I switch the sources (looping through the tables or using the replaceConnection method) those properties are not altered and then the queries end up pointing to the wrong schema.
Can anybody point me to how should I change the Owner property for all the tables?
Thanks in advance
Juan

Try changing the qualified name of the table:  Table.setQualifiedName(<owner.tablename>)

Similar Messages

  • LPA Reporting iView - Can we configure or change the table display?

    Hi all...
    We are using the Reporting Launchpad in MSS.  It is using the LPA reporting application to display an employee selection for headcound reports, etc.  The table lists employee, id, and 'P'.  It is limited to 5 entries.  Is there any configuration change this table display?

    Hi 640,
    I just checked it. You cant do it directly in Answers (the css property for the PTCOL2 is going to be the same and I'm not sure how you could assign different div id for it without going through source files). What you could do is create 2 pivot table views and put them side by side in Compound view. Might be tricky, but possible.

  • To Change the Readonly Property

    Hi,
    In Portal  Personal data Screen for belgium , Country of Birth field (Drop Down Box) is  Read Only.
    We have to change the readonly property.
    I tried through iView personalisation ,the property of that field is Not readonly.
    2) In the WD java Application  the field property is  NORMAL .
    3) I have checked in V_T588MPROPC, there also we dont have any entry for this field.
    In Backend ECC this field is editable ,
    Can any one please let me know where should i will change to make this field as Editable.
    Regards
    Alexi

    Please check the following tables:
    V_T005
    V_T588MFPROPC
    V_T588MFPROPS
    T77WWW_SC
    V_T582ITVCHCK
    Note 1498555 - How to make a field mandatory or optional in ESS
    "V_T588MFPROPC only makes the field mandatory, optional or unused
    by the back-end business logic checks it will not change a
    UI display property like Read-Only
    You could try the Personalization options - Ctrl and Right
    mouse button over the UI element (either in the browser
    or in a PCD preview - for global changes for all users)
    - please check there for options to change the country
    field to editable
    However I suspect the field is read-only because
    1) You are on a lower release than EHP3 -foreign address
    maintainence via Country field is only available
    as standard from EHP3
    2) You do no have EHP3 business function HCM_ESS_CI_1 switched on
    these business functions activate foreign address functionality
    3) You are editing a record - try instead creating a new record
    4) Inconsistency in V_T7XSSPERFORADD - check this against client 000
    Hope this helps identify the problem

  • When we change owner of a task or a request is any log maintained anywhere

    HI ,
    When we change owner of a task or a request is any log maintained anywhere
    suppose we want to check who were the owners of a particular task is there a table which
    saves this change informatiion ,also when we transport a request to say  QA then in QA will
    the individual tasks be present or only the request .
    Thanks

    Hello
    The owner of a request or task is stored in E070-AS4USER. For this table there is no change log active (obviously).
    Thus, you will not find this change of the request/task anywhere except you define it yourself.
    Regards
      Uwe

  • SQLModel, changing owners dynamically.

    I am getting ready to convert an application from ND, and it does
    some unique stuff which I'm not sure how to convert, so I am
    consulting the wisdom of the JATO list, in search of guidance before
    I run down some dead ends.
    The application renders an electronic survey form. The data for this
    comes from one of two Oracle DB owners. One of the owners is
    the 'live' version of a survey, the other is a 'test' version, used
    while developing new surveys. A flag is passed in with the url to
    determine which to use.
    This was accomplished in ND by having a synonym for the table name in
    the test area which pointed to a test table name. Then in ND we would
    call setRuntimeUserID depending on who we wanted to be ('prod'
    or 'test'). This would effectively change the owner in the dataobject
    in ND. To elaborate:
    In prod, we have:
    prod.survey (table)
    prod.test_survey (table)
    In test, we have:
    test.survey (synonym to test.test_survey)
    In this way, all the ND DataObject needed to know was that it was
    going against 'survey', and didn't care if it was a table, or a
    synonym pointing to a table. All the column names were the same.
    Now to JATO where I have a view bean which is looking at a model
    which is pointing to a data_source_name defined in iPlanet.
    What is the best way to approach this?
    - Should I try to change what userid is being used by the data source
    in the iPlanet container? That sounds unwise.
    - Should I try to change the owner dynamically in the Model? Sounds
    promising, but how would I do that?
    - Should I have 2 data_sources defined, and dynamically switch which
    one the Model is using? Can that even be done?
    - Should I try to change the table name in the Model dynamically? Can
    I even alter that at runtime?
    - Should I have 2 models, and dynamically switch the binding of the
    View at runtime? Not sure how to do that, and I would hate having to
    maintain 2 models.
    Well there is the problem. I hope I have layed it out clearly. I
    really appreciate any guidance in this before I get started.
    Thanks,
    John Hoskins

    Took all day, but I finally tracked down the problem.
    In the tiled view, I was getting an instance of the model, but it was
    apparently different from the PrimaryModel. As soon as I changed that,
    it all started working.
    John
    --- In SunONE-JATO@y..., "jhoskins" <john.hoskins@t...> wrote:
    I decided to take a different tack on solving this problem, and am
    hitting a new snag. First the new solution, then the snag:
    I decided to change the list of tables being used in the where clause,
    depending on whether it was a work or production call.
    I changed the SELECT_SQL_TEMPLATE substituting __TABLES__ for the
    actual list of tables.
    Then at run time, I use the StringTokenizer2.replace() to substitute
    __TABLES__ with the proper list of tables, either
    "wis.surveyquestions" or "wis.work_surveyquestions".
    I also used table aliases so I can use them with the field names. So
    I'm actually substituting in "wis.surveyquestion sq" or
    "wis.work_surveyquestion sq", and the field references in the sql look
    like "sq.survey_id". I also made the same change to the
    QUALIFIED_COLUMN_..., and the FIELD_... in the model interface.
    Now the snag.
    It doesn't work. Well it does work. It changes the table names, it
    runs the sql, it even appears to return values (according to the
    getSize()), but the tiled view won't display any of the rows. It runs
    the nextTile once, then finishes. Do I need to do anything special
    with the field creation statements when they bind the models fields to
    the views fields? Did I change the field strings properly?
    If the SQL looks like this:
    public static final String SELECT_SQL_TEMPLATE="SELECT ALL
    SQ.SURVEY_ID, ..."
    I change the following in the modelImpl:
    public static final String
    QUALIFIED_COLUMN_WIS_SURVEYQUESTION_SURVEY_ID="SQ.SURVEY_ID";
    public static final String
    COLUMN_WIS_SURVEYQUESTION_SURVEY_ID="SURVEY_ID";
    and this in the model interface:
    public static final String
    FIELD_WIS_SURVEYQUESTION_SURVEY_ID="SQ_SURVEY_ID";
    The field creator in the tiled view looks like this:
    if (name.equals(CHILD_SQ_SURVEY_ID)){
    HiddenField child = new HiddenField(this,
    getdo_survey_questionsModel(),
    CHILD_SQ_SURVEY_ID,
    do_survey_questionsModel.FIELD_WIS_SURVEYQUESTION_SURVEY_ID,
    CHILD_SQ_SURVEY_ID_RESET_VALUE,
    null);
    return child;
    Any pointers on what the field names, and how they should correspond
    in the Models members would be appreciated.
    Thanks,
    John Hoskins
    --- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...> wrote:
    Just getModel(FooModel.class) whenever you want to get it.
    It will always use the same instance no matter how many times you ask
    for it. That's the job of the ModelManager.
    Unless you want a unique instance and you ask for it by instance
    name,
    but since this is an ND migration, I am quite sure that is notwhat you
    want.
    Once you "get" the model, just set and get values or
    retrieve/update/delete/insert as needed (just like ND).
    c
    jhoskins wrote:
    OK. This makes sense, and I am getting ready to tackle this part. One
    nuance I am having trouble with is communicating to the Model.
    Can you
    give me a hint how you would do this? The trick seems to becontacting
    the model during it's construction. If this were ND, I might slip it
    into a session variable. Would that be appropriate here?
    John Hoskins
    --- In SunONE-JATO@y..., Todd Fast <Todd.Fast@S...> wrote:
    John--
    No, not two instances, just a conditional in your model. There is a
    method
    in QueryModelBase called setDataSourceName(String), which you are
    already
    calling to set the JDBC datasource name. Our suggesting is that
    depending
    on whether you are in development or production, you can simply call
    this
    method with the appropriate value. The easiest place to do this
    would be in
    the constructor of your QueryModel itself:
    pulic MyQueryModel()
    super();
    if (inProduction())
    setDataSourceName(PROD_DATASOURCE);
    else
    setDataSourceName(DEV_DATASOURCE);
    public static final String PROD_DATASOURCE="jdbc/foo-prod";
    public static final String DEV_DATASOURCE="jdbc/foo-dev";
    Make sense?
    Todd
    <snip>
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    [Non-text portions of this message have been removed]

  • Changing  Member Storage property

    Hi,
    Is there a command in ESSCMD/MAXL to change the storage property of a member from Store to Dynamic Calc or vice-versa.
    Thanks in advance

    Hey Russ,
    You can't do it directly with MaxL, but you can set up a Rules file that reads in a text file with the member storage property, and that can be initiated via MaxL.
    Search the DBA guide for "Creating Rules Files", this will give you a table of the character to use to set the member storage property, as well as other useful information.
    Robert

  • Change internal table structure dynamically

    Dear Experts , I have a requirement to add an attribute to already declared internal table which is declared in standard SAP code, is it possible to change internal table structure dynamically.
    my internal table is of type merel_t_grid2 which is standard table type in SAP , now I want to add an attribute of type  LVC_T_STYL in my internal table so that I can modify the cell property of ALV grid.
    I cant append LVC_T_STYL in standard structure because enhancement category of merel_t_grid2 is of type char and not deep
    my internal table contains data to be displayed in ALV.
    please help

    Dear Experts , I have a requirement to add an attribute to already declared internal table which is declared in standard SAP code, is it possible to change internal table structure dynamically.
    my internal table is of type merel_t_grid2 which is standard table type in SAP , now I want to add an attribute of type  LVC_T_STYL in my internal table so that I can modify the cell property of ALV grid.
    I cant append LVC_T_STYL in standard structure because enhancement category of merel_t_grid2 is of type char and not deep
    my internal table contains data to be displayed in ALV.
    please help

  • Need suggestion to get data from change log table of ODS.

    Hello,
    There is a case where i am loading opportunity header data from header ODS and opportunity item data from item ODS in the opportunity cube.
    Status (1= OPEN, 2= WON ETC) of the opportunity are available only in header ODS and not in item ODS.
    While loading data from header ODS to cube, I am loading it directly but while loading data from item ODS to cube i am using active data table of header ODS as a lookup in the update rule from item ODS to cube. I am selecting status from the active data table of header ODS while loading data from item ODS to cube.
    Since active data table will have only after image records, there is some data mismatch in the report as i am selecting data from active data table of header ODS while loading data from item ODS to cube.
    I need to select data from Change log in order to get before image also instead of active data table in order to overcome this issue. Is there any way by which i can do selection from Change log instead of active data table as change logs are generated at run time.
    Please let me know if you have any suggestions.
    Regards,
    Sanjay Chaurasia.

    Hi,
    You can use the changelog table of the DSO.
    Right click manage the Header DSO, go to the contents tab and click Change Log table. There you can see the technical name of the Change Log table.
    In the update rule Routine, give the tech name of Change log table instead of Active table name.
    Hope it helps.
    Krishna

  • Background job executed as SAP*, need advice to change owner.

    Hi all,
    I'm facing an issue where my SAP background job currently has 2 job "SAP_CCMS_CPH_REORG" and "SAP_CCMS_CPH_HRCOLL" under the ownership of sap. I would like to move them away from SAP ID.
    I have tried to recreate the job using sm36 (and using my ID with sap_all profile) in testing environment, but it not seem to work.
    Highly appreciates any advices and/or pointers with regards to the above mention question.
    Thank you.

    Hi all,
    Thank you for the reply but I have forgotten to add a few updates.
    The issue is that I can change owner from SAP* to my ID with sap_all profile.
    But, after execution,
    Job with sap* owner ended successfully, with spool status marked as completed.
    whereas
    Job with my ID as owner ended successfully, but spool status marked as "waiting"
    error mesage:
    Description          Value
    Status:              Frontend unavailable
    Last event:
    Message:             Request on hold
    Date:                19.02.2009
    Time:                11:57:28
    Job status:          On hold
    Error class:         Delayed
    Area:                Data transfer
    Printout:            Not printed
    Apologies for the inconveniences caused.

  • HT201317 Change Owner photo stream

    Hi all,
    How do you change owners for a shared photo stream?  Can there be more than one owner for a shared photo stream?!
    Thanks,
    Ryan

    Or do I just need to delete the Photo stream and start over with a new owner?

  • How to change the table's for an existing report

    Hello,
    How can I change the table names for reports created with a different table name? for e.g If I created a report which included a table called "2009_10_example", How can I change that table to a different table "2010_10_example1".
    I am using Crystal reports 2008, and the reports were created using Report Creating Wizard.
    Thanks,
    Abhishek

    In the Database Menu, there is an option Set Datasource Location.  This allows you to pick a table from the current tables used, and select a table to replace it with.  Press the Update button, and Crystal will swap one for the other.  If the field names and data types are all the same, it will automatically change all references throughout the report to the new table's fields.
    May I suggest that your tables are set up improperly if you have to change report code to run it for different months?  The data should all be in one table with dates, and parameters to select the date range to report on.  (That was said in the spirit of helping...)
    HTH,
    Carl

  • How to find out the top ten Change log tables in BW

    I want to know the top ten change log tables in terms of size. Do we have a SAP standard table where we have the following fields : "changlog table name", "number of records" field or "data in size" field.
    Regards,
    Prashant M J

    Hi,
    Click on change log table in the ODS/DSO at the top you see the name as /bic* which is the name of the database table which could also be seen at SE11.
    If you wana see the requests in this change log use rstsodsrequest
    and if you wana see the size in terms of kb, mb DB02 or st04
    use the table name /bic* and click on tables and indexes option in history tab
    DB02 tells you the sizes of the tables present on database. Incase you are not able to your basis team would help you in that
    Thanks and regards
    Kiran

  • Dynamical change read only property of  columns based on a profile option

    Hi,
    We are attempting to change a Oracle iProcurement(ShoppingCartPG) which has certain readonly columns by default.
    However, we need to make these columns updateable based on a responsibility level profile option. The code goes something like this.
    if readonly_profile_option = "TRUE"
    {make columnA property = readonly}
    else if readonly_profile_option = "FALSE"
    {make columnA property = updateable}
    I read the guide about switchers and it seems confusing (to me). So if someone can provide an example with some pseudocode that will be helpful.
    Also, can I dynamically add an LOV to column A if readonly is false? Of course the LOV should be disabled if readonly.
    Thanks a lot

    Hi,
    Thanks for the feedback.
    Tapash,
    Switchers definitely don't make sense.
    Raffy,
    Didn't know it was that simple. I always thought that the controller fires--> then the page renders --> then the VO attributes get poulated. Basing my understanding on this flow, I though that the bean properties can only be set in controllers and not in VOs(via SPEL). I'll try it tomorrow.
    Aprreciate your comments on the following.
    Our requirement is to make an Oracle seeded field(SupplierName in iProcurement) updateable and with an LOV . Oracle has seeded it as ReadOnly.
    I have two options.
    1. If I change the readonly property in jedeveloper(I cannot access it via personalization) and add SPEL that would be upgrade 'unsafe' customizing - I think.
    2. So I thought I'll extend the controller, substitute it and use
    messageLOVInputText SupplierNameBean=webbean.findChildRecursive("SupplierName");
    if{profle=not_read_only)
    {SupplierNameBean.setReadOnly(false)};
    else
    {SupplierNameBean.setReadOnly(true)};
    This is more upgrade safe. I have talked to the iProc development team and they are fine with it.

  • How to transfer data in change log table of dso to z-table using abap code

    Hi  can you please explain me how to transfer data in change log table of dso to z-table using abap code ,with out using Function module concept

    PROGRAM NAME:   ZBW_DELTA_TO_GSTAR                                 **
    report ZBW_DELTA_TO_GSTAR no standard page heading
                                     line-size 120
                                     line-count 75
                                     message-id ZBW_MSG_CLS.
    tables:   ZGIV_DLTA_EBV_BB,
              ZGIV_DLTA_EM2_BL,
              ZGIV_DLTA_EM2_BK.
    Selection Screen Definitions
    SELECTION-SCREEN: BEGIN OF BLOCK INNER WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN: SKIP 1.
    PARAMETERS:       EBVBB RADIOBUTTON GROUP ROLL,
                      EM2BL RADIOBUTTON GROUP ROLL,
                      EM2BK RADIOBUTTON GROUP ROLL.
    SELECTION-SCREEN: END OF BLOCK INNER.
    Data:  WS_UPDATE_FLAG  Type C,
           UCounter(9)      Type N,
           ICounter(9)      Type N.
    DATA:  T_ZGIV_DLTA_EBV_BB Type Standard Table of ZGIV_DLTA_EBV_BB,
           s_ZGIV_DLTA_EBV_BB LIKE line of T_ZGIV_DLTA_EBV_BB.
    DATA:  T_ZGIV_DLTA_EM2_BK Type Standard Table of ZGIV_DLTA_EM2_BK,
           s_ZGIV_DLTA_EM2_BK LIKE line of T_ZGIV_DLTA_EM2_BK.
    DATA:  T_ZGIV_DLTA_EM2_BL Type Standard Table of ZGIV_DLTA_EM2_BL,
           s_ZGIV_DLTA_EM2_BL LIKE line of T_ZGIV_DLTA_EM2_BL.
    Standard Internal Tables - Describe usage.
    data: begin of i_AEPSD_O0140 occurs 0.
            include structure /BIC/AEPSD_O0140.
    data: end of i_AEPSD_O0140.
    data: begin of i_AEPSD_O0240 occurs 0.
            include structure /BIC/AEPSD_O0240.
    data: end of i_AEPSD_O0240.
    data: begin of i_AEPSD_O0340 occurs 0.
            include structure /BIC/AEPSD_O0340.
    data: end of i_AEPSD_O0340.
    data: begin of i_GIV_DLTA_EBV_BB occurs 0.
            include structure ZGIV_DLTA_EBV_BB.
    data: end of i_GIV_DLTA_EBV_BB.
    data: begin of i_GIV_DLTA_EM2_BK occurs 0.
            include structure ZGIV_DLTA_EM2_BK.
    data: end of i_GIV_DLTA_EM2_BK.
    data: begin of i_GIV_DLTA_EM2_BL occurs 0.
            include structure ZGIV_DLTA_EM2_BL.
    data: end of i_GIV_DLTA_EM2_BL.
    Miscellaneous Program Variables and Constants.
    TOP-OF-PAGE
    top-of-page.
    START-OF-SELECTION
    start-of-selection.
      Clear: i_GIV_DLTA_EBV_BB,
             i_GIV_DLTA_EM2_BK,
             i_GIV_DLTA_EM2_BL,
             UCounter, ICounter.
      IF EBVBB = 'X'.
        PERFORM 100_EXTRACT_EBV_BB_DELTA_RECS.
      ELSEIF EM2BK = 'X'.
        PERFORM 100_EXTRACT_EM2_BK_DELTA_RECS.
      ELSE.
        PERFORM 100_EXTRACT_EM2_BL_DELTA_RECS.
      ENDIF.
    FORM 100_EXTRACT_EBV_BB_DELTA_RECS
    FORM 100_EXTRACT_EBV_BB_DELTA_RECS.
      Refresh:   i_AEPSD_O0140,
                 i_GIV_DLTA_EBV_BB.
      Clear:      UCounter, ICounter, s_ZGIV_DLTA_EBV_BB .
      Select * From /BIC/AEPSD_O0140
        Into TABLE i_AEPSD_O0140.
      IF SY-Subrc = 0.
        LOOP AT i_AEPSD_O0140.
          MOVE-CORRESPONDING i_AEPSD_O0140 TO s_ZGIV_DLTA_EBV_BB.
          MOVE SY-DATUM to s_ZGIV_DLTA_EBV_BB-create_dt.
          INSERT ZGIV_DLTA_EBV_BB FROM s_ZGIV_DLTA_EBV_BB.
          IF SY-Subrc = 0.
            ICounter = ICounter + 1.
          ELSE.
            UPDATE ZGIV_DLTA_EBV_BB FROM  s_ZGIV_DLTA_EBV_BB.
            IF SY-Subrc = 0.
              UCounter = UCounter + 1.
            ELSE.
              Message E067 with SY-DATUM ' ' SY-UZEIT ' '.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    "100_EXTRACT_EBV_BB_DELTA_RECS
    FORM 100_EXTRACT_EM2_BK_DELTA_RECS
    FORM 100_EXTRACT_EM2_BK_DELTA_RECS.
    Refresh:   i_AEPSD_O0240,
               i_GIV_DLTA_EM2_BK.
      Clear:      UCounter, ICounter, s_ZGIV_DLTA_EM2_BK .
      Select * From /BIC/AEPSD_O0240
        Into TABLE i_AEPSD_O0240.
      IF SY-Subrc = 0.
        LOOP AT i_AEPSD_O0240.
          MOVE-CORRESPONDING i_AEPSD_O0240 TO s_ZGIV_DLTA_EM2_BK.
          MOVE SY-DATUM to s_ZGIV_DLTA_EM2_BK-create_dt.
            INSERT ZGIV_DLTA_EM2_BK FROM s_ZGIV_DLTA_EM2_BK.
          IF SY-Subrc = 0.
            ICounter = ICounter + 1.
          ELSE.
            UPDATE ZGIV_DLTA_EM2_BK FROM  s_ZGIV_DLTA_EM2_BK.
            IF SY-Subrc = 0.
              UCounter = UCounter + 1.
            ELSE.
              Message E067 with SY-DATUM ' ' SY-UZEIT ' '.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    "100_EXTRACT_EM2_BK_DELTA_RECS
    FORM 100_EXTRACT_EM2_BL_DELTA_RECS
    FORM 100_EXTRACT_EM2_BL_DELTA_RECS.
    Refresh:   i_AEPSD_O0340,
               i_GIV_DLTA_EM2_BL.
      Clear:      UCounter, ICounter, s_ZGIV_DLTA_EM2_BL .
      Select * From /BIC/AEPSD_O0340
        Into TABLE i_AEPSD_O0340.
      IF SY-Subrc = 0.
        LOOP AT i_AEPSD_O0340.
          MOVE-CORRESPONDING i_AEPSD_O0340 TO s_ZGIV_DLTA_EM2_BL.
          MOVE SY-DATUM to s_ZGIV_DLTA_EM2_BL-create_dt.
            INSERT ZGIV_DLTA_EM2_BL FROM s_ZGIV_DLTA_EM2_BL.
          IF SY-Subrc = 0.
            ICounter = ICounter + 1.
          ELSE.
            UPDATE ZGIV_DLTA_EM2_BL FROM  s_ZGIV_DLTA_EM2_BL.
            IF SY-Subrc = 0.
              UCounter = UCounter + 1.
            ELSE.
              Message E067 with SY-DATUM ' ' SY-UZEIT ' '.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    "100_EXTRACT_EM2_BL_DELTA_RECS
    END-OF-SELECTION
    end-of-selection.
      perform D1000_REPORT_DATA.
    D1000_REPORT_DATA
    form D1000_REPORT_DATA.
    *Display the title of the program
      write: /25 SY-TITLE.
      skip.
    Diaplay the details of the user and time
      write: /1 'Executed by', 15 SY-UNAME, 30 'Date',
      38 SY-DATUM, 53 'Time', 60 SY-UZEIT.
      skip 2.
      write: /  'Delta Records have been extracted  ',
             /   'Updates : ', UCounter,
             /   'Inserts : ', ICounter.
      skip.
      skip 3.
      write: /20 'End of the report'.
    endform.                                           "D1000_REPORT_DATA
    chgeck it out this also may hep you

  • Dynamically changing internal table in 'gui_download'

    Hi Experts,
                     i have to download 4 internal tables, each with different structures, to the presentation server using 'gui_download', based on which radio-button is selected in the selection screen. I am hoping to use a single 'form' and 4 'perform' calls. how can I dynamically change the tables in the 'gui_download' function modules.
    plz help.....................

    Hi ,
    Build the field catalog dynamically based on the internal table structure based on the radio button selected.Use the dynamic internal table generated from the filedcatalog and use in GUI_DOWNLOAD.
    See the below code:
    *& Report  ZRAJESH02
    REPORT  zrajesh02.
    Dynamic internal table
    TYPE-POOLS: slis.
    FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
                  <dyn_wa>.
    DATA: alv_fldcat TYPE slis_t_fieldcat_alv,
          it_fldcat TYPE lvc_t_fcat.
    DATA: lv_monate TYPE f,
          lv_months TYPE i,
          lv_date TYPE sy-datum,
          p_check1 type n value '1'.
    lv_date = sy-datum + 360.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: p_check TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
    START-OF-SELECTION.
      CALL FUNCTION 'MONTHS_BETWEEN_TWO_DATES'
        EXPORTING
          i_datum_bis   = lv_date
          i_datum_von   = sy-datum
          i_kz_incl_bis = ' '
        IMPORTING
          e_monate      = lv_monate.
      lv_months = lv_monate.
      PERFORM f_fcat USING 'AUFNR' 'CHAR' '12'.
      PERFORM f_fcat USING 'POSNR' 'CHAR' '06'.
      while p_check1 LE p_check.
      PERFORM f_fcat USING p_check1 'CHAR' '1'.
      p_check1 = p_check1 + 1.
      endwhile.
      PERFORM build_dyn_itab.
      LOOP AT <dyn_table> INTO <dyn_wa>.
        WRITE:/ <dyn_wa>.
      ENDLOOP.
    FORM f_fcat USING fieldname dattyp length.
      DATA:wa_it_fldcat TYPE lvc_s_fcat.
      CLEAR wa_it_fldcat.
      wa_it_fldcat-fieldname = fieldname.
      wa_it_fldcat-datatype = dattyp.
      wa_it_fldcat-intlen = length.
      APPEND wa_it_fldcat TO it_fldcat .
    ENDFORM.                    "f_fcat
    *&      Form  build_dyn_itab
          text
    FORM build_dyn_itab.
      DATA: new_table TYPE REF TO data,
      new_line TYPE REF TO data.
    wa_it_fldcat TYPE lvc_s_fcat.
    CLEAR wa_it_fldcat.
    wa_it_fldcat-fieldname = 'AUFNR'.
    wa_it_fldcat-datatype = 'CHAR'.
    wa_it_fldcat-intlen = 12.
    APPEND wa_it_fldcat TO it_fldcat .
    CLEAR wa_it_fldcat.
    wa_it_fldcat-fieldname = 'POSNR'.
    wa_it_fldcat-datatype = 'CHAR'.
    wa_it_fldcat-intlen = 6.
    APPEND wa_it_fldcat TO it_fldcat .
    Create dynamic internal table and assign to FS
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = it_fldcat
        IMPORTING
          ep_table        = new_table.
      ASSIGN new_table->* TO <dyn_table>.
    Create dynamic work area and assign to FS
      CREATE DATA new_line LIKE LINE OF <dyn_table>.
      ASSIGN new_line->* TO <dyn_wa>.
    ENDFORM.                    "build_dyn_itab
    Thanks,
    Rajesh.

Maybe you are looking for

  • Error while comparing 6i forms

    Hi ! I'm getting an error when trying to compare two different versions of a form. The tool displays a windows showing the following info : AppName: ckron61.exe     AppVer: 90.4.2.8     ModName: jvm.dll ModVer: 1.4.2.60     Offset: 000a4bbf After it

  • Throwing extensions of SocketException

    Hi, Not sure if this is possible but... I have two Java applications that I am developing that communicate via sockets, one will act as a server and the other as client. On the server side various processes occur including connecting to a database an

  • Webutil -frm-40039 cannot attach library

    hi, I have copied the web util demo from otn [http://www.oracle.com/technology/products/forms/htdocs/webutil/webutil.htm], and i tried to install it as per the instruction given over there .While compling it has not give any error but while running t

  • Unwanted GMAIL - how to disable in mac email

    I am a member of a volunteer organization and as such I am currently using a gmail account on that organizations behalf. At some point, that account will be managed by someone else. My issue is this: The emails from the gmail account are showing up i

  • Yahoo mail won't update MacBook or iMac?

    Seems i have tried many removals and re-installs.  Ensuring that IMAP servers are in place, yet I don't get automatic updates into the Mac Mail application. Please let me know what to do to correct it ... Thanks !!