IMPORT from database with dynamic parameter list

Hi Gurus,
Iu2019m having problems during import from a cluster table.
I wanu2019t to do an import with a dynamic parameter list, but I cannot get it to work.
Sample code ********
DATA: BEGIN OF st_key,
report LIKE rsvar-report,
variant LIKE rsvar-variant,
END OF st_key.
DATA dirtab1 LIKE cdir OCCURS 10 WITH HEADER LINE.
DATA dirtab2 LIKE cdir OCCURS 10 WITH HEADER LINE.
st_key-report = 'ZPRG'.
st_key-variant = 'VAR1'.
IMPORT DIRECTORY INTO dirtab1 FROM DATABASE vari(vb) ID st_key.
IMPORT DIRECTORY INTO dirtab2 FROM DATABASE vari(va) ID st_key.
DATA: tmp_var(100)   TYPE c.
This works - P_BWTAR is a parameter from the selection screen registred in VARI
I'm getting the content of the field in tmp_var
IMPORT p_bwtar TO tmp_var FROM DATABASE vari(va) ID st_key.
This does not work - the parameter P_BWTAR is in the dirtab2-name
I'm not getting the content
LOOP AT dirtab2.
    IMPORT dirtab2-name FROM DATABASE vari(va) ID st_key.
  ENDIF.
ENDLOOP.
I have tried the syntax IMPORT (dirtab2-name) ........
but this fails the syntax check.
Please - if you have any suggestions  :o)
Best Regards,
Vibeke

Dear Vibeke,
Could you please explain us how you solved the problem because you have the same issue ?
thanks a lot
KR
véronique

Similar Messages

  • Import from Database - how to restrict the list of schemas

    This may be more of a general Oracle question, but the problem is showing up in OBIEE, so...
    When running an Import from Database in the repository tool, I see a lot of schemas listed in the data source pane, like APEX_030200, CTXSYS, MDSYS, OLAPSYS, PUBLIC, SYS, and SYSTEM, in addition to the schema that I've used for the connection (TRAINING). There are a lot of other schemas in the database that are NOT shown in the import dialog.
    Question 1: What's special about the schemas that I've mentioned above that causes them to always show up in the import dialog?
    Question 2: How can I eliminate them from the import dialog, so that I see one and only one schema - TRAINING? What privileges or roles must I grant or revoke so that when my connecion pool uses the TRAINING schema, then TRAINING is the only schema listed on the import dialog?
    Thanks!

    to see the list of schemas
    select username from dba_users
    select distinct owner from dba_tables;{code}to know on which DB you are
    {code:java}select instance_name from v$instance;{code}
    Edited by: Leo Anderson on 7 sept. 2008 19:37                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Flex Table Add Row Issue with Dynamic Entry Lists in Visual Composer

    All,
    Your help would be kindly appreciated in resolving an 'Add Row'-issue within a Flex Table that uses Dynamic Entry Lists in Visual Composer. The issue here is as follows :
    When I use a [Local Dynamic Entry List |http://www.postyourimage.com/view_image.php?img_id=O5hrG2aMxWZ84Mu1211193041]to populate a row field, the initial row and all next rows are emptied upon 'insert row', they loose their selected values and also the entry list values ('pull-down menus') are lost. Please also see [screenshot|http://www.postyourimage.com/view_image.php?img_id=FPLr2cABcgiHRou1211192889].
    The initial row does [show the entry list values |http://www.postyourimage.com/view_image.php?img_id=2HybmEHAuQYs9cg1211192766]from the Local Dynamic Entry List based on the dynamically assigned input value; upon 'insert row' the entry lists are lost. Please also see [screenshot|http://www.postyourimage.com/view_image.php?img_id=FPLr2cABcgiHRou1211192889].
    When using a [Global Dynamic Entry List |http://www.postyourimage.com/view_image.php?img_id=m5p2KYuBb442dTq1211193501]to populate the row fields the Flex-table behaves normally as expected. Unfortunately with a Global Entry List it is not possible to dynamically assign a input value. Please also see [screenshot|http://www.postyourimage.com/view_image.php?img_id=U96V0zENCCyO3gA1211193157].
    Please also see the [issue summary image|http://www.postyourimage.com/view_image.php?img_id=06xti08tIEfely1211195178] I made to visualize the issue.  What I basically would like to know is whether this is a 'known issue' or not, or that it is an issue that can be fixed or whether there is an alternative workaround available ... I'm using Visual Composer 7.0 and the Portal is at SP 13.
    Many thanks,
    Freek

    Hi,
    you should be able to assign a dynamic value with global entry lists as well. If you say @myParam as dynamic value. VC will indicate in red letters, that the field @myParam is unknown. However, it will work, as long as @myParam is known in the form or table where you use the entry list.
    I have never heard of the problem that entry lists are emptied after "insert"-event.
    Kindes Regards,
    Benni

  • Flex Table Add Row Issue with Dynamic Entry Lists

    All,
    Your help would be kindly appreciated in resolving an 'Add Row'-issue within a Flex Table that uses Dynamic Entry Lists in Visual Composer. The issue here is as follows :
    When I use a [Local Dynamic Entry List |http://www.postyourimage.com/view_image.php?img_id=O5hrG2aMxWZ84Mu1211193041]to populate a row field, the initial row and all next rows are emptied upon 'insert row', they loose their selected values and also the entry list values ('pull-down menus') are lost. Please also see [screenshot|http://www.postyourimage.com/view_image.php?img_id=FPLr2cABcgiHRou1211192889].
    The initial row does [show the entry list values |http://www.postyourimage.com/view_image.php?img_id=2HybmEHAuQYs9cg1211192766]from the Local Dynamic Entry List based on the dynamically assigned input value; upon 'insert row' the entry lists are lost. Please also see [screenshot|http://www.postyourimage.com/view_image.php?img_id=FPLr2cABcgiHRou1211192889].
    When using a [Global Dynamic Entry List |http://www.postyourimage.com/view_image.php?img_id=m5p2KYuBb442dTq1211193501]to populate the row fields the Flex-table behaves normally as expected. Unfortunately with a Global Entry List it is not possible to dynamically assign a input value. Please also see [screenshot|http://www.postyourimage.com/view_image.php?img_id=U96V0zENCCyO3gA1211193157].
    Please also see the [issue summary image|http://www.postyourimage.com/view_image.php?img_id=06xti08tIEfely1211195178] I made to visualize the issue.  What I basically would like to know is whether this is a 'known issue' or not, or that it is an issue that can be fixed or whether there is an alternative workaround available ... I'm using Visual Composer 7.0 and the Portal is at SP 13.
    Many thanks,
    Freek

    Hi,
    you should be able to assign a dynamic value with global entry lists as well. If you say @myParam as dynamic value. VC will indicate in red letters, that the field @myParam is unknown. However, it will work, as long as @myParam is known in the form or table where you use the entry list.
    I have never heard of the problem that entry lists are emptied after "insert"-event.
    Kindes Regards,
    Benni

  • Import dmp database with EE8MSWIN1250 to AL32UTF8 (XE)

    I have problem with importing dmp database with EE8MSWIN1250 to AL32UTF8 (XE)
    I've tried to import my database dump with settings NLS_LANG=POLISH_POLAND.AL32UTF8 but it didn't work
    I had
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "MYDB"."AP_ARKUSZE_PRZECENY"."PRZEC_KOD" (actual: 26, maximum: 25)
    Column 1 1
    Column 2 Arkusz Średniowaťon\$NR$
    Column 3 16-WRZ-2002:00:00:00
    so I exported my database with NLS_LANG=POLISH_POLAND.AL32UTF8 and next I tried to import this dump but it still didn't work.
    Anybody knows how to import dump database ??

    It isn't correct approach. Column size is one of database constraints and you compromised it, so beware.
    Correct approach is modifying columns to apply char length semantics, it means you should use following construct
    alter table tablename modify columnname varchar2(10 CHAR)
    In your code replace your execute immediate line with:
    EXECUTE IMMEDIATE 'ALTER TABLE ' || tn || ' MODIFY ' || cn || ' VARCHAR2(' || crec.data_length || ' CHAR )';
    Look at this example:
    This is your original table
    SQL>
    SQL> create table T2( c varchar2(10 byte) );
    Tabulka vytvořena.
    SQL>
    SQL> insert into T2 values ('0123456789');
    1 řádka vytvořena.
    SQL> insert into T2 values ('0123456789 few more');
    insert into T2 values ('0123456789 few more')
    CHYBA na řádku 1:
    ORA-12899: value too large for column "MIGR"."T2"."C" (actual: 19, maximum: 10)
    values longer then 10 characters are not allowed, it was your constraint, and now your modification
    SQL>
    SQL> alter table T2 modify c varchar2(20); -- 2*10
    Tabulka změněna.
    SQL> insert into T2 values ('+ěščřžýýáí');
    1 řádka vytvořena.
    You solved the problem, you shoud be praised
    SQL> insert into T2 values ('0123456789 few more');
    1 řádka vytvořena.
    But, you compromised your data model
    SQL>
    SQL> rem correct approach
    SQL>
    SQL> delete from T2 where length(c)>10;
    1 řádka vymazána.
    This solve both problems, and constraint is still valid
    SQL>
    SQL> alter table T2 modify c varchar2(10 char);
    Tabulka změněna.
    SQL>
    SQL> insert into T2 values ('+ěščřžýýáí');
    1 řádka vytvořena.
    SQL> insert into T2 values ('0123456789 few more');
    insert into T2 values ('0123456789 few more')
    CHYBA na řádku 1:
    ORA-12899: value too large for column "MIGR"."T2"."C" (actual: 19, maximum: 10)

  • Report Viewer Dynamic Parameter List not showing a complete list of values

    Hi, I have installed the crystal report runtime 13.0.1.220 for framework 4.0 in a 64-bit windows 7 professional server.
    I have an aplication that opens crystal reports using the crystal report viewer control for visual studio 2010, also version 13.0.1.220.
    ISSUE: The report opens fine, but it does not shows all the available values in the dynamic parameter list.
    I have tried setting the MaxRowsetRecords registry key to diferent values but it does not work.
    I do not have any crystal report stand alone version installed in my server.
    Please help me?

    Hi Ludek,
    yes i followed the instructions of the KBase you are mentioning, but it isn't working for me.
    I modified the following keys:
    HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework4.0\Crystal Reports\DatabaseOptions\LOV
    and
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP BusinessObjects\Crystal Reports for .NET Framework4.0\Crystal Reports\DatabaseOptions\LOV
    1) I had to create the LOV key under the DatabaseOptions in both keys.
    2) Inside the LOV keys I created the new string value MaxRowsetRecords and set the value to different values. (Ex: 5000, 10000 and 1000000)
    3) I restarted my server. Still not working.
    4) Then after that i modified the following registry keys: (leaving the first 2 keys modified)
    HKEY_CURRENT_USER\Software\SAP BusinessObjects\Crystal Reports for .NET Framework4.0\Crystal Reports\DatabaseOptions\LOV
    and
    HKEY_CURRENT_USER\Software\SAP BusinessObjects\Crystal Reports for .NET Framework4.0\Crystal Reports Designer Component\DatabaseOptions\LOV
    5) Also had to create the LOV key under the DatabaseOptions in both keys.
    6) Inside the LOV keys I created the new string value MaxRowsetRecords and set the value to different values. (Ex: 5000, 10000 and 1000000)
    7) Restarted my server. still not working
    8)  Then after that i modified the following registry key: (leaving the first 4 keys modified)
    HKEY_CURRENT_USER\Software\SAP BusinessObjects\Crystal Reports for .NET Framework4.0\Crystal Reports Designer Component\ReportView
    Inside this key I created the DWORD PromptingLOVBatchSize and gave it a decimal value of 1000000
    9) Restarted the server. Still not working. For crying out LOUD!!

  • ABAP command "import from database..."

    Can someone in this forum explain to me the low level  details behind the ABAP command "import from database"?
    The select in tables like stxl, indx, moni just retrieves data in hex format for the fields of type raw or lraw.
    But the command import from database works fine!
    What's the magic? Compression? Hash algorithms? etc?
    Thanks!

    When you import a field from a database, it should be the same name and format when it was exported. These databases are a cluster table where data is stored in raw. I assumed it will read the cluster portion of the record and convert it into the field structure byte by byte. These tables have field CLUSTR which store the byte size of the record. So if you are willing to program the read, where you find out the length of the field you want to IMPORT, then read that number of byte from the cluster data, move it to the field you are importing, you should be able to do your own read. However, if we can do it in 1 statement using IMPORT, we don't need to program it.
    Cluster table is used to save space since you don't need to create a new database record for each line of internal table you stored into them. Hope this helps.

  • Import from database

    Hi all,
    I am trying to import (schema+data) from another database by using Enterprise Manager 10g ( http://host:portno/em ). But i am getting only schema.
    how to get data also.

    I am not exporting data from file. Directly from data base by using Import from Database in Oracle Enterprise Manager 10g.
    I created Database Link and selected import type as database.Any help?
    Thankyou

  • Dynamic menus from database with URL parameters

    Hello!
    I'm trying to build a set of dynamic menus that would be based on data from the database. I need to have a menu item for every database row, and all the items point to the same page, but each with its own parameter in the item's URL. The URLs in the menus would look like ".../form.jspx?recordID=xx", where xx is read from the database.
    Right now, I can display the menu, everything works fine, but the problem is in the PageMap section of Databindings.cpx - ADF needs to have every URL mapped to a page definition. So even if I have "form.jspx" mapped to "form_PageDef", I have to explicitly tell the server that "form.jspx?recordID=xx" is also mapped to "form_PageDef" by putting this into Databindings.cpx.
    Of course, if I have to manually enter page mappings for all the record IDs that appear in the menu, it's not really a "dynamic menu" anymore. Does anyone know of a way to avoid this problem?
    Can I somehow change Databindings.cpx programmatically? Can I change page mappings dynamically? Help, please? I'm very grateful for any and all info.

    Hi Vex,
    I'm not sure whether you'll find a solution as "Dynamic" as you are describing with dynamic entries via the DataBindings.cpx. Menu's work quite differently in JSF (See section 19.2 on dynamic menus in the developers guide). You may need to get the solution halfway.
    1) Drive the menu contents / structure from the database via some backing bean. The sample application that comes with JDeveloper has a fixed menu structure via exposed beans. You'd have to adapt this to be driven off of a managed bean. This takes a bit of work, but it can be accomplished. You'll need to loop through your database records via the Iterator to build the content of your menuModel
    2) Let JDeveloper create the entries in DataBindings.cpx to map the pageDef.xml file to each jspx file. (Manual). The pageDef.xml file gets interpreted during the initContext phase of the ADF Lifecycle, and the DataBindings.cpx tells this phase where to look to create the runtime version of the pageDef.xml (See developer's guide 13.2.3).
    3) Manually setup your faces-config with the right outcomes.
    4) have the database return the outcomes and viewIds, among other values.
    5) do the appropriate thing in your JSPX to make use of this menu module backing bean.
    In this case, you'll control the content and structure of the menu via the DB. However, you'd have to make sure the data in your DB matches the definitions of the jspx viewid's and outcomes.
    However, there is a quite a bit of work involved to do this. I.e. db design, backing bean for menu module, disciplined co-ordination between DB and JSF, etc...
    I hope this helps.
    Kenton

  • Import from database an internal table with generic Type : Web Dynpro ABAP

    Hi everyone,
    i have a requirement in which i'm asked to transfer data flow between two frameworks, from WD Component to another. The problem is that i have to transfer internal tables with generic types. i used the import/ export from database approache but in that way i get an error message saying "Object references and data references not yet supported".
    Here is my code to extract a generic internal table from memory.
        DATA l_table_f4 TYPE TABLE OF REF TO data.
      FIELD-SYMBOLS: <l_table_f4> TYPE STANDARD TABLE.
      DATA lo_componentcontroller TYPE REF TO ig_componentcontroller .
      DATA: ls_indx TYPE indx.
      lo_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
      lo_componentcontroller->fire_vh_search_action_evt( ).
      ASSIGN l_table_f4 TO <l_table_f4>.
    *-- Import table for Help F4
      IMPORT l_table_f4 TO <l_table_f4> FROM DATABASE indx(v1) TO ls_indx ID 'table_help_f4_ID'.
    The error message is desplayed when last instruction is executed " IMPORT l_table_f4...".
    I saw another post facing the same problem but never solved "Generic Type for import Database".
    Please can anyone help ?
    Thanks & Kind regards.

    hi KIan,
    go:
    general type
    TYPE : BEGIN OF ty_itab,
               field1 TYPE ztab-field1,
               field2 TYPE ztab-field2,
    *your own fields here:
               field TYPE i,
               field(30) TYPE c,
               END OF ty_itab.
    work area
    DATA : gw_itab TYPE ty_itab.
    internal table
    DATA : gt_itab TYPE TABLE OF ty_itab.
    hope this helps
    ec

  • How to import whole database (with data) from remote server?

    I am using oracle sql developer 2.1. Our main database server is in USA, we use this from Bangladesh. We also a local copy here time to time updataed.
    Is there any way copy or migrate the whole database with data from usa server to our local serve using sql developer 2.1?
    we use windows server 2003 service pack 2 in local server.

    I replied to you in Import Data wizard not found and stand by my suggestions.
    Regards,
    K.

  • Problem with IMPORT FROM DATABASE

    Hello Members,
          I have a program which reads content of INDX table (cluster table) using
    IMPORT tab = lt_ccris1 FROM DATABASE indx(xa) TO wa_indx CLIENT
    sy-mandt ID 'DETAILLIST'.
    sy-subrc return is 0.
    But internal table lt_ccris1 is not populated. I expect entries to be populated here as there is an raw data entry in the INDX - CLUSTD field of database.
    1)   Also I am intereseted to knoe where is the data exported to this INDX table? Usual searches does not show any export statement.
    2)   Is there a FM which can directly read content of INDX table?
            Your help is much appreciated.

    Hi Thomas,
        Thanks for the reply.
    //How do you know your IMPORT syntax must look exactly like this? //
    I did not write this custom report and IMPORT statement is exactly the same as I have given. It is correct as per syntax.
    In SE16 INDX does contain an entry for the given key.
    I searched for EXPORT stmt in varall ways including debugging (Please note there is a SUBMIT <program> before IMPORT and if at all there is an export it should be in there). Could not find from debugging as well.
    RS_ABAP_SOURCE_SCAN does not exist in my 4.7.
    Regards
    Ram

  • Dynamic Parameter List questions: Length and Custom Values

    I've got a Crystal Report that I want to use Dynamic Values for.
    Right now... this report is simply a "SELECT stuff  FROM table" SQL query... with a parameter that the report uses to filter.
    I use a "Select DISTINCT value from table" to generate a list of values. I put those values into a txt. I then import the text into a static list. This creates a parameter list that is 11 "pages" long on the parameter screen. I also have "custom" values allowed. This is to allow for "new" values and also allow not needing to browse 11 pages for one or two known values.
    If I turn the parameter into a Dynamic List based on the same Select statement it stops at 5 pages, obviously cutting off half of the possible values.
    Dynamic List also removes the ability to do Custom Values. The filter option wouldn't be a bad alternative BUT it don't work for pages 6+ that aren't there.
    How can I remove the 5 page limit (or whatever it is) for Dynamic values?
    Thanks
    Chris
    Edited by: WernerCD on Aug 4, 2010 4:14 PM

    There is a limit of 1000 records in dynamic parameters. You can change this by adding a registry value:
    registry key : HKEY_CURRENT_USER\SOFTWARE\Business Objects\Suite 11.0\Crystal Reports\DatabaseOptions\LOV
    and then add a key called MaxRowsetRecords and give it a value.
    if you have Crystal 2008 then the above registry folder will say Suite 12.0.

  • Dynamic Parameter List works on desktop but not when run on Crystal Server

    Hi,
    I have a report, and the database command query takes one parameter ({?Year}. There is a second parameter used for a record select which is a dynamic paramenter list (multiple select, required). When running the report from Crystal Reports 2008 on my desktop, it first prompts for a year, and then once that is entered, it will come back with the list (of Companies) to select from. It works very smootly and as desired.
    But when I load this report to Crystal Reports 2008 Server, it will ask for the year (which is a static list), and this is good, but then it comes back with an empty dynamic select list on the next screen.
    Are there any special caveats that I need to be aware of in regards to dynamic lists when running from the CR server?
    Thanks!

    Hi Pat, 
    This should work but a couple of things to check: 
    1)  Are the two parameters linked to the same database?  If the parameters are linked to fields from different tables in different databases then you need to make sure you set the Database Configuration and have the report log on to both databases. 
    2)  Are Crystal Reports and Crystal Server the same version?  I had problems with parameters after we upgraded to 2008.  We had to install the latest service packs for both Crystal 2008 and the Enterprise Server.  Then we installed Crystal 2008 on the same machine the Enterprise Server was on.  Crystal Reports and the Enterprise Server share some common files.  Some of those files were updated for Crystal but not for the Enterprise Server yet.  Once we synched them our reports have run fine. 
    Good luck,
    Brian

  • Limit dynamic parameter list to data added in last month

    I have a crystal reports X1 report that uses a dynamic parameter for users to select. This parameter displays all database entries for the field. The field is called PLANNAME and lists out names that users have entered from the main application screens. I want to limit the display of these plan names to the most recent based on the CREATEDATE which is a field on the table that the Planname is stored.
    Is there a way that Crystal reports can restrict / limit the list of vaules returned and available for report users to select. The list is steadily growing, and now requires the report users to scroll through hundreds of plannames (that is, all the plan names that have been created over the last two years).
    Look forward to any suggestions.
    Regards
    dave

    Just a follow-up on progress ...... which has been a bit slow.
    Have got into the Business View Manager and found the vaious parameter levels PLANNAME DC, PLANNAME_BE, PLANNAME_BV, PLANNAME_DF, and added the following filter to the data_foundation: (note: first part is a View I have created, )
    {CRYSTALVW_EFTPLANDETAIL.PLANNAME} in LastFullMonth.
    I have not been able to add the SQL expression as it errors with reference to the INCORRECT SYNTAX NEAR THE KEYWORD "select"
    SELECT DISTINCT PLANNAME, DATECREATED FROM CRYSTALVW_EFTPLANDETAIL WHERE DATECREATED >= '2009-01-01'
    Note, this works okat in Enterprise manager Query Analyser, but not in the DF data_foundation.
    and the suggestion you made:
    SELECT DISTINCT PLANNAME FROM CRYSTALVW_EFTPLANDETAIL WHERE DATECREATED >= DATEADD('m',-1,GETDATE())
    This produces the same error message - INCORRECT SYNTAX NEAR THE KEYWORD "select"
    and I can not get this to work in Query Analyser - error message is
    Server: Msg 1023, Level 15, State 1, Line 2
    Invalid parameter 1 specified for dateadd.
    I shall continue to work thru this, but would appreciate any helpful hints.
    many thanks
    Dave

Maybe you are looking for

  • V3 RAZR used to sync in 10.3.9, now won't sync under 10.4.6 (iSync 2.2)

    My Cingular V3 RAZR paired and synch'd (address book and iCal events) under 10.3.9 without issue. Recently did clean install of Tiger, using Setup Assistant to transfer personal files from a FW clone. Now under 10.4.6 (iSync 2.2), iSync WILL NOT reco

  • Anyone know how to connect to a Diamond WR300N?

    I live in a very narrow three story house. My wireless router is on the first floor but my iMac is on the third floor. I get a weak and slow connection up there. I picked up a Diamond WR300N repeater and set it up but I'm not sure how to connect to i

  • Podcasts not being Removed from my Ipod

    I have several old podcasts that I have deleted from my ITUNES that for some reason, are not being deleted from my ipod...? The podcasts are not showing up in my itunes, so not sure how to clear them out from my ipod?? Thanks in advance for your help

  • Income recognition based on revised planned revenue

    Hi, I am facing a critical issue on PS Results Analysis and I though you can only help me, because you  have worked extensively on CO side. The client is using POC based Results Analysis and using ''Planned Revenue'' as basis of Income recognition in

  • Barcode POP UP issue in MIGO_GR by Two Users.

    Hi, I have an issue which the two users were facing while posting the GR against the same PO. For archiving process of goods receipt documents we should enter a Barcode in transaction MIGO_GR. By pressing icon "post" in MIGO_GR a pop-up window should