Dynamic data declaration refering to local data defined in another program

Here is the situation:
The standard program SAPICP__ , SAPICF__ and several other of same series have a form routine REPOSITORY_DEVCLASS_ADD. this subroutine in all SAPI* programs has parameter REPOSITORY of type REPOSITORY (declared as internal table with header lines) and type REPOSITORY is declared with different component in each program.
Now the problem is that i need to call subroutine REPOSITORY_DEVCLASS_ADD dynamically from my program and so i want to dynamically declare the table REPOSITORY in my program to pass to this subroutine and as program is not yet loaded into memory i have no way to achieve this.
Can some one help in achieve this?
Edited by: Gaurav B. on Jan 30, 2012 4:02 PM

Hello Fred,
That's a big task, even if it looks "easy". My first idea is, your request can not be covered by dynamic programming. a) every node has a different structure (I guess), b) the code itself has to be adjusted to the nodes in use as well. I.e. when a dynamic data declaration would be possible, the coding has to adhere the used number of nodes.
My recommendation:
- declare as many standard tables (nodes) as possible
- the code for  each node has to be implemented
- define the number of used nodes by a parameter or an interface
Have success,
Heinz

Similar Messages

  • Best way to pass data sets to another program

    Hey
    I want to connect another (maths) program with my java application. Therefore I need to paste data (some kind of tab separated table) to this program.
    I try now to save these data in a separate newly generated file and to pass a command with Java's Runtime.exec() method to this program to read these data. Is this a good idea or might there be better ways?
    If I do so, is there a way in Java to generate some kind of a "temporary" file which will be deleted automatically after usage or is this nothing else than to save it in a common file and delete it afterwards. What's the best way to pass data generally?

    Well, the connection will not be over a network, so I'd rather think it's not a Socket or RMI problem (unless someone convinces me).
    Yes it's very external, it's a C or C++ written program, I don't have any source codes. So far I generated a file for Input command and data, I passed that on to the maths program and returned the output into another file.
    Now I would like to separate the output and like to obtain some tables and graphical things like charts at the output. Do I have to generate three different types of outputfiles? How to store some graphics e.g. some distributions. I thought even of generating a database. I never thought about XML, I don't know if this works for that kind of problem?!

  • Defining variant for report for job with dynamic date Gui 6.40 patch 21

    The system does not take over my choice for the dynamic date.
    I choose in the variant-attirubute-screen for a certain parameter: "type selection variable": D and then in the column "name of the variable" > I choose via F4: current date +/- days. OK and then I fill in 1 or 1- or whatever.  The system however does only react with the message "Upper date of the interval is > than upper date". It does not matteer what I choose.
    In the initialization I do not have any initialization of that parameter.
    I connot save the variant.

    Go through this link...
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/802cfc454211d189710000e8322d00/frameset.htm
    In this page
    ABAP Workbench tools -->
                      VARIANTS  -->
                            VARIABLE VALUES IN VARIANTS.
    Hope this helps u a lot...
    reward if it helps u...
    sai ramesh.

  • Can we set the dynamic data source when using getReportParameters() ?

    Hello!
    I have a report where one of its parameters refers to a list of values (LOVs). This list of values is an SQL Query type. When the data source used in the report is defined in the BI Publisher server, I'm able to get the report parameters using the getReportParameters() function in my application. However, if the data source is not defined the function throws an exception, which is understandable.
    I decided to dynamically set the data source so that even if the data source used by the report is not defined in the BI Publisher server, it still will be able to get the LOVs for the parameter. I tried setting the JDBCDataSource of the dynamicDataSource for the ReportRequest object that I passed to the getReportParameters() function. Please see the sample code below:
    reportRequest.dynamicDataSource = new BIP10.BIPDataSource();
    reportRequest.dynamicDataSource.JDBCDataSource = new BIP10.JDBCDataSource();
    setReportDataSource(reportRequest.dynamicDataSource.JDBCDataSource, connectstr, jdbc, dc); //function to set the values for JDBCDataSource object
    reportParams = webrs.getReportParameters(reportRequest, uid, pwd); //call the getReportParameters
    I was expecting this to work as this is what I did to dynamically set the data source before calling the runReport function. So, my question is -- can we set the dynamic data source when using getReportParameters() ? I tried this both in versions 10g and 11g. It does not seem to work on both versions.
    Regards,
    Stephanie

    report_id column of apex_application_page_ir_rpt can help us uniquely identify each saved report.
    We can assign this report_id value to a page item and this page item can be put in the Report ID Item text box of the Advanced section of the Report Attributes page of the IR.
    This should load the saved report identified by report_id and you can get rid of javascript
    Regards,
    Vishal
    http://obiee-oracledb.blogspot.com
    http://www.packtpub.com/oracle-apex-4-2-reporting/book
    Kindly mark the reply as helpful/correct if it solves your problem

  • Build field catalog for dynamic data objects

    Hi
    Could you please tell me how to build a field catalog (ooops alv)  for an internal table which is a dynamic data object.
      TYPES: BEGIN OF t_addsubty,
             subty TYPE subty,
             pernr TYPE persno,
             END OF t_addsubty.
      TYPES: ty_addsubty type t_addsubty occurs 1.
    i have data object using these
            CREATE DATA dref3 TYPE (g_type1).
            ASSIGN dref3->* TO <fs_dp>.
    where g_type1 refers a data type which i defined in the program. g_type1 = ty_addsubty. 
    now <fs_dp> refers to an internal table.
    now i want to build a field catalog for this internal table.
    In my program <fs_dp> structure is not always the same. i.e now it is ty_addsubty but for some other conditions the structure is different.
    please help me out.
    regards
    badri

    Here some piece of code, which shows how it works:
    <SNIP>
    type-pools:
         abap.
    DATA:
      lr_tabledescr          TYPE REF TO cl_abap_tabledescr,
      lr_structdescr     TYPE REF TO cl_abap_structdescr.
    field-symbols:
      <lw_component>     type abap_compdescr_tab.
    TYPES:
         BEGIN OF t_addsubty,
              subty TYPE subty,
              pernr TYPE persno,
         END OF t_addsubty.
    TYPES:
         ty_addsubty type t_addsubty occurs 1.
    CREATE DATA dref3 TYPE (g_type1).
    ASSIGN dref3->* TO <fs_dp>.
    lr_tabledescr ?= cl_abap_tabledescr=>describe_by_data( <fs_dp> ).
    assert condition lr_tabledescr is bound.
    lr_structdescr ?= lr_tabledescr->get_table_line_type( ).
    loop at lr_structdescr->components assigning <lw_component>.
    *     do whatever you want with the information about
    *     the components of the structure
    endloop.
    </SNIP>
    Do not forget to reward points...

  • Grouping of chracateristics by using dynamic data columns

    Hi all,
    I want to create a BPS Layout (BW3.5) with the material in the lead column and a KeyFigures, the year and the salesgroup in the data column. The salesgroup is the dynamic characteristic.
    Example:
    I want to have:
    SG1 2007/   SG1 2008/   SG2 2007/   SG2 2008...
    What the system is doing is:
    SG1 2007/   SG2 2007/   SG1 2008/   SG2 2008
    My question is: how can I change the grouping of the columns from year to salesorg?
    Can anybody help me?
    Best regards,
    Rainer

    Hi Rainer,
    Thanks for your appreciation.
    I thought there is not material in your lead column, okay if your case like that i suggest you like this.
    I suggest to .
    To choose Layout Category:
    1. Key Figures in Data Column
    Define data column dynamically for : Sales Group
    And make the fiscal year, and material as lead column.
    In the data column tab, define the key-figures there and mark Dynamic checkbox.
    Or if you want to group based on the fiscal year, you can make the fiscal year as you dynamic data column.
    Hopefully it can help you a lot.
    Best regards,
    Niel.
    thanks for the points you choose to assign.

  • Dynamic data source in Excel Pivot Table

    Hello there,
    I am trying to have dynamic data source in pivot table using INDIRECT but getting the error "Reference not valid". Here is how I setup the reference:
    Named range: ConsolLink = "'R:\Root\Sub1\Sub2\Consol File.xlsm'!Source_OpexConsol"
    "Source_OpexConsol" is defined in the source file as a dynamic name using offset formula.
    In the pivot data source, I have tried "=INDIRECT(ConsolLink)" as the data source but that does not work.
    I have also tried using INDIRECT in ConsolLink and just referencing "ConsolLink" as the data source. That does not work either.
    I am not using Power Pivot. Appreciate it if someone can help.
    Thanks.

    If it is open, then try
    Named range: ConsolLink = Range("Consol File.xlsm'!Source_OpexConsol")
    And if it is not currently open, then try
    Dim W As Workbook
    Set W = Workbooks.Open("R:\Root\Sub1\Sub2\Consol
    File.xlsm")
    Named range: ConsolLink =
    Range("Consol File.xlsm'!Source_OpexConsol")
    W.Close False

  • JSF and dynamic data

    Hi,
    This is not a specific question but rather a high level concept that I'm trying to figure out. I have a system that uses a lot of dynamic data that is handled and viewed in the form of Dynabeans as well as SDO data objects.
    I'm working on trying to develop reusable web widgets such as input forms based on these objects and thought of JSF right away.
    However its seems like JSF will only work with static data models because the beans and bean properties need to be specified at design time in the xml configuration files.
    Here it is: Lets say I have a dynamic java bean with dynamic properties that was created from a metadata object. Now I want to develop a single reusable JSF widget that will create an input form using the information from the metadata object and then connect the widget values to the actual dynamic data object.
    Seems like in order to do this, the properties of the dynamic data object need to be defined at runtime so that you can classify it as a managed bean so that JSF knows how to bind values from a widget to a bean.
    Does anyone have any thoughts?

    Hi.
    ValueBinding and MethodBinding work through PropertyResolver, VariableResolver
    #{aaaa.bbbb.cccc}aaaa - will be resolved with VariableResolver (root object)
    bbbb and cccc - with PropertyResolver
    Look at the description of the default realisation of VariableResolver
    You will see in which places it searches for a root object. At least it searches in the request, session and application maps. You can just put your dynamic beans in one of this maps.
    At the worst case you can substitute implementation of the VariableResolver in faces-config.xml
      <application>
         <variable-resolver>com.qqqqq.MyVariableResolver</variable-resolver>
         <property-resolver>com.qqqqq.MyPropertyResolver</property-resolver>
      </application>
    ...Good luck

  • Webi Excel Personal Data Provider Dynamic Data

    Hello,
    We are using BOXI 3.1/SP2. I understand that we can use Excel documents as a personal data provider. I have myself used it to mix data from universe and an excel file from my local machine- using Rich Client.
    I am wondering if it's possible for the report to reflect dynamic data. For e.g: Is there a way for the webi report to pick-up any updates in excel sheet automatically or in next scheduled refresh etc?
    Thanks

    Hi All,
    With SAP BusinessObjects XI 3.1 SP3 refresh of Web Intelligence documents
    created from custom data sources like text, excel files and Custom Data
    Provider plug-in are supported in Infoview.
    Note:
    The refresh option is available for Windows operating system only.
    To refresh a text or excel file, set the RefreshOnServer registry to the
    following values:
    RefreshOnServer = NO or Disable to disable refresh on Server.
    RefreshOnServer = YES or ENABLE to enable refresh on Server, by
    default it is set to YES or Enable.
    RefreshOnServer = ALLOW_USE_WINDOWS_SHARE to enable refresh
    on Windows server only.
    The registry path is: HKEY_LOCAL_MACHINE > SOFTWARE > Business
    Objects > Suite 12.0 > Default > Web Intelligence > Calculator > PDP.
    Before refreshing a document from Infoview make sure that the following
    points are taken care:
    1. The Custom Data Provider has to be on the BOE server, if it is clustered
    then each and every cluster needs to be updated with the same copy of
    Custom Data Provider.
    Note: You cannot publish excel file to CMS and read from there, its should be
    on the BOE server or shared path on file system
    2. Incase of a blocker issue and the file cannot be accessed from its original
    source location then the file should be placed in the default location for
    each server.
    The default server path is <Installdir>Business
    Objects\PersonalDPFilessymantec, you can change this path by
    changing the value of Server_Path in the registry.
    3. The Server Intelligence Agent (SIA) should be managed by a user
    authentication valid in the network domain. Normally SIA is managed
    using local system account; this practice is not recommended when
    deploying Custom Data Provider in server.
    You can find more info XI 3.1 SP3 WebI Rich Client docunentation. Hope this helps.
    Cheers
    -P

  • Dynamic Date dimensions in MS Sql Server 2005

    Environment : BO 4 SP3
    Database : MS Sql 2005
    Trying to create dynamic date universe with MS Sql as back end.
    But when I try creating current year month dated class, it returns error :
    Parse failed: Exception : DBD, [Microsoft SQL Server Native Client 10.0] : Incorrect syntax near 'From'.State:42000
    I tested the universe connection which is working fine as evident from below screenshot :
    BusinessObjects Configuration
    Version 3.2.1.80
    Build 14.1.1.1036
    Network Layer OLE DB
    DBMS Engine MS SQL Server 2008
    Language en
    Charset CP1252
    Library D:\Programs\BusinessObjects4\SAP BusinessObjects Enterprise XI 4.0\dataAccess\connectionServer\drivers\lib32\dbd_wsqloledb.dll
    SBO D:\Programs\BusinessObjects4\SAP BusinessObjects Enterprise XI 4.0\dataAccess\connectionServer\oledb\sqlsrv.sbo
    RSS D:\Programs\BusinessObjects4\SAP BusinessObjects Enterprise XI 4.0\dataAccess\connectionServer\oledb\sqlsrv.rss
    PRM D:\Programs\BusinessObjects4\SAP BusinessObjects Enterprise XI 4.0\dataAccess\connectionServer\oledb\sqlsrv.prm
    Strategies Not Defined
    Middleware and DBMS Configuration
    Driver architecture 32
    Charset UCS2
    Driver name Microsoft SQL Server Native Client 10.0
    Driver version 10.50.1600.1
    Provider file name sqlncli10.dll
    OLE DB Version 02.80
    DBMS name Microsoft SQL Server
    DBMS version 09.00.5069

    Per SAP Note 1241422 - Database fragmentation and reindexing improves performance
    Summary
    Symptom
    During the lifetime of a database (any db not only SAP Business One) and due to insert\update\delete of data, the information in indexes is fragmented.  Fragmentation exists when indexes have pages in which the logical ordering, based on the key value, does not match the physical ordering inside the data file.  Heavily fragmented indexes can cause slow performance.
    Other terms
    Index, performance, re-index, reindex, slow, poor, DB
    Reason and Prerequisites
    FAQ
    Solution
    It is recommended to run a rebuild the following procedure once\twice a month:

  • Create dynamic data type in structure

    Hi Experts,
    I am new to ABAP.
    In my scenario data type is varying for the field. for that I need to create dynamic data type in structure, this structure I am using for  internal table for OVS search input.
    Please suggest the solution for this.
    Advance thanks,
    Regards,
    BBC

    Thanks for your quick reply,
    I used your logic like this.
    data:
    ls_component type abap_componentdescr,
    lt_component type abap_component_tab.
    *... (1) define structure components :
    clear ls_component.
    ls_component-name = 'NVALUE'.
    ls_component-type ?= cl_abap_typedescr=>describe_by_name( <fs_seg_v>-fieldname ).
    insert ls_component into table lt_component.
    *... (2) create structure
    data lr_strucdescr type ref to cl_abap_structdescr.
    data lr_data_struc type ref to data.
    lr_strucdescr = cl_abap_structdescr=>create( lt_component ).
    create data lr_data_struc type handle lr_strucdescr.
    field-symbols <fs> TYPE any.
    assign lr_data_struc->* to <fs>.
    your logic is working fine.
    here I am getting feild name (<fs_seg_v>-fieldname) from internal table.
    But I need to assign same field name structure to query parameter.
    FIELD-SYMBOLS: <ls_query_params> TYPE lty_stru_input.
    Please can you suggest how I can refer the field name structure?
    Regards,
    BBC

  • Dynamic date range

    I'm on ECC6.0, and looking to set up a dynamic date range in a variant.
    The date range is a select-option on my selection screen.
    I can easily setup the dynamic date for the 'low' value in the range,
    but I can see no way to also declare a dynamic date in the 'high' value.
    I also looked in TVARV maintenance and it doesn't seem possible there
    either, as there's no way to declare variable values.
    If I can't resolve this, I will have to change my program to include a
    default high date and use that.
    But even that may not work if we call the variant, which may overwrite
    my default in the high value of the range with a blank value.
    Does anyone know how to do this?
    Thanks in advance for your help.

    Hi Jagan,
    If you save the variant you can choose some options for the select-option. If you choose selection variabel type D (dynamic date calculation) you can choose out of several Names of Variables that provide for a LOW and HIGH value.
    If you use type T, you can choose a variable that is stored in tabel TVARVC. You can add your own variable to table TVARVC using SE16.
    Regards........
    Chaitanya.

  • BMBC Dynamic Date selection Variant

    Hello Team,
    I want to create variant in BMBC -Batch Information Cockpit with Dynamic Date Selection. But it do not find the screen the to set-up variant attributes
    This is the field where I want to have dynamic date selection, 1st Day of the month to Last day of the month.
    Field name and program
    I am using SE80
    As you can see screen number 0100 is not showing up. and I have gone though all available screen but i could not find the field.
    Please advise if dynamic date selection for this field is possible at all or there is other way.
    Thanks

    I don't think that it is possible to have dynamic date selection here. The whole selection screen is just dynamic, it has only place holders and you define in customizing which field is on the selection screen.
    You actually save a selection variant via this extra big button for selection variants, which is quite different to the disc icon where you usually save your selection variants and where  you have the option to define dynamic date fields.

  • Dynamic Date (from to) to Archive Workitem

    Hi, I would like to kown if is possible create a variant with dynamic date in field End Date? I´m trying this, but when I select a dynamic date -180 days to system puts the date on the first field, but I would like to have the End Date filled from 01.01.2008 to 24.04.2010 (today - 180 days).
    Is it possible?

    It depends on what version you have in your system. When defining the variable, follow the following steps:
    - Highlight the date row (just for ease of use)
    - Under the "Selection Variable", click F4 and select D (for dynamic)
    - Under the "Name of Variable", click F4
    - In the drop down screen you get, scroll all the way down
    - You have three options you can use:
        1- Current date - xxx,current date + yyy
        2- Date - xxx, Date + yyy (work days)
        3- (Beginning of mth-xx months, end of mth+yy months)
    - Pick any of the three options
    - In the xxx field, put a positive number; say 180 (for the first two options) or 6 (for the third option)
    - In the yyy field, put a negative number; say -30 (for the first two options) or 1 (for the third option)
    Hope this helps.

  • Internationalization for dynamic data

    HI ..i want to know how to do internationalization for dynamic data that is from database...
    Please let me know
    Thanks in advance
    Rams

    HI
    You can do the trick by extending ResourceBundle (or ListResourceBundle) and write your own handleGetObject and getKeys method.
    But in that case you are forced to create different classes for different locales and follow the naming convention for bundles:
    If your class for the default locale is MyResourceBundle, then for all the other locales you have to create a class called "MyResourceBundle_"+localeName .
    But I don't know how can I bypass this strange behaviour. All the getBundle, and getBundleImpl methods are static. So if a framework call your class through ResourceBundle.getBundle() static method you are forced to do this. If you want to change you have to call your class. So you need to instantiate your ResuorceBundle class yourself.
    Bence

Maybe you are looking for

  • Closing a server application

    In my Java class, I am running an external appln through Runtime.getRuntime(). After the application has been used, I want to close the window running that external appln. How to do this?

  • Why are some text pages converted to png's?

    I'm sure this has been covered to death but why does this happen? Here are two pages: this one converted to png: http://web.mac.com/neoverse/iWeb/Josh_Mobley/Blog/78282A4A-E25D-4F67-94C7-1F20F3 3D6FB3.html and this one which is not: http://web.mac.co

  • Flash poor performance with vector art (.svg)

    When using multiple pieces of vector art I've noticed that performance gets rather sloppy, so I created a simple test program that displays 100 copies of the same graphic and allows zooming. I used what I believe to be a fairly simple vector image (c

  • SP1 lang

    Hello all, I've find this explanation about how could put the Sqlplus in linux to work: But someone could give me more detailed explanations abiut how I must set this? Thanks in advance, Eduardo Sometimes when SQL*Plus is run, you see the error: Mess

  • HOW TO JUMP TO 3RD SCREEN....

    HI all,   How to jump to 3rd screen with out inputting values in mandatory fields in first 2 screens while doing recording process in bdc. regards anilreddy