IMPORT/EXPORT FROM DATA BUFFER

Hi,
I have some code like this:
DATA: b type xstring.
DATA: a type xstirng.
EXPORT '1234' TO DATA BUFFER b.
IMPORT a FROM DATA BUFFER b.
for some reason a does not get set to the value that I assigned to b.
However, this code works:
DATA: b type xstring.
DATA: a type xstirng.
EXPORT some_internal_table TO DATA BUFFER b.
IMPORT a FROM DATA BUFFER b.
Does anybody know why internal tables work but other data types do not?
Thank you.

EXPORT '1234' TO DATA BUFFER b, not working because, you did not assign a variable name to '1234' to be stored as in data buffer B.
Change the code to:
DATA: b type xstring.
DATA: a(4) type c.
EXPORT a = '1234' TO DATA BUFFER b.
IMPORT a FROM DATA BUFFER b.
It's working in the second case because, some_internal_table  is the name of the variable in databuffer B and you are importing into the same variable in IMPORT
Regards
Sridhar

Similar Messages

  • Import/Export xml data from subtree of dynamic XFA form

    Hi
    We would like to import/export xml data (subtree) of a dynamic xfa form. The following script does only work with static AcroForms:
    formular.content.subformDaten.Button1[1]::click - (JavaScript, client)
    event.target.exportAsXFDF({aFields:["formular[0].content[0].subformDaten[0]"]});
    With dynamic forms the script does export an empty xml file (no data is included, only xml root tag):
    <?xml version="1.0" encoding="UTF-8"?>
    <xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve"
    ><f href="ExportTest_frei.pdf"
    /><ids original="EA43F92A6B6EA34F9C4DBBC2DA0B1840" modified="6A7C6282A167594F91240B773AA979A7"
    /></xfdf
    >
    Any ideas? Many thanks.
    Best regards,
    Daniel

    Hi Paul
    The Problem that Daniel posted was originally mine. Now after subscribing to this forum myself, I try to describe the aim of using exportAsXFDF/importAnXFDF.
    exportData("", false) and exportXFAData works, in my opinion, only with a DataConnection. In my form I have indeed such a connection for sending the whole form. But in addition I need the possibility to export and import only part of the data without overwriting the rest of the filled form.
    exportAsXFDF works with static forms. So there MUST be a possibility that works with dynamic forms, right?
    I hope anyone has a solution.
    Beat

  • Memory Limit for "IMPORT/EXPORT from MEMORY ID" statement

    Hi All,
    Can anyone tell me whether there is any memory limit exists for "IMPORT/EXPORT from MEMORY ID" statement.
    Like may be we can transfer xx MB of data via this......or it is open, we can transfer any amount of data to ABAP memory via this.
    Regards
    Munish Garg

    1. Each user sessions have external sessions and each external sessions have internal sessions.
    2. The programs being executed in the internal sessions can access ABAP memory
    3.ABAP memory is a storage area for internal program variables like fields, structures, internal tables,,They can be passed  between internal sessions of an external session.
    4. you can transfer data through ABAp memory using IMPORT and EXPORT statements
    5. after IMPORT FROM MEMORY ID <id> , you can use sy-subrc to check the existance of the cluster ID. here sy-subrc is not used to check whether the Import was successful or not.

  • Getting problem in Import/export of data

    Hi,
    I have just cloned my database to an another machine. Everything is ok with the database.But when I try to import/export the data from that new database I get these error messages,
    Exp 00056 - Oracle error 1403 encountered
    ORA-01403 - No data found
    Exp - 00000 - Export terminated unsuccessfully
    santosh
    [email protected]

    hi
    Examples of Using Different Releases of Export and Import
    Table 19-7 shows some examples of which Export and Import releases to use when moving data between different releases of the Oracle database.
    Table 19-7 Using Different Releases of Export and Import
    Export from->Import to Use Export Release Use Import Release
    8.1.6 -> 8.1.6 8.1.6 8.1.6
    8.1.5 -> 8.0.6 8.0.6 8.0.6
    8.1.7 -> 8.1.6 8.1.6 8.1.6
    9.0.1 -> 8.1.6 8.1.6 8.1.6
    9.0.1 -> 9.0.2 9.0.1 9.0.2
    9.0.2 -> 10.1.0 9.0.2 10.1.0
    10.1.0 -> 9.0.2 9.0.2 9.0.2
    Restrictions When Using Different Releases and Versions of Export and Import
    The following restrictions apply when you are using different releases of Export and Import:
    1.Export dump files can be read only by the Import utility because they are stored in a special binary format.
    2.Any export dump file can be imported into a later release of the Oracle database.
    3.The Import utility cannot read export dump files created by the Export utility of a later maintenance release or version. For example, a release 9.2 export dump file cannot be imported by a release 9.0.1 Import utility.
    4.Whenever a lower version of the Export utility runs with a later version of the Oracle database, categories of database objects that did not exist in the earlier version are excluded from the export.
    5.Export files generated by Oracle9i Export, either direct path or conventional path, are incompatible with earlier releases of Import and can be imported only with Oracle9i Import. When backward compatibility is an issue, use the earlier release or version of the Export utility against the Oracle9i database.
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm#i1013164i hope it will help u.
    regards
    Mohammadi52
    Message was edited by:
    Mohammadi52

  • How to import/export   from d2k

    hi
    hi please could you help me in how to import/export from d2k.
    M.P.Kiran Kumar

    FUNCTION open_ldr RETURN varchar2 IS
    out_file Text_io.File_Type;
         v_filename varchar2(255);                              
    Begin
    out_file := Text_IO.Fopen('C:sqlldr.ini', 'R'); /* create a file so that u can store sqlldr path first time it wont be there so write the path after verifying */
    text_io.get_line(out_file,v_filename);
    --message(v_filename);
    return(v_filename);
    Exception when others then
         --message('Check For Sqlldr73.exe or Sqlldr*.exe');
    v_filename := get_file_name(File_Filter=>'sqlldr Files (*.exe)|*.exe|');
    out_file := Text_IO.Fopen('C:\sqlldr.ini', 'W');     
         Text_IO.Put(out_file,v_filename);
    Text_IO.Fclose (out_file);
    if v_filename is null then
         Message('Please Select The Sqlldr Path ');
         Message('Please Select The Sqlldr Path ');
         raise form_trigger_failure;
    end if;
    return(v_filename);
    End;
         Declare
              The_userid varchar2(100):='';
              The_Password varchar2(100):='';
              The_connectstring varchar2(100):='';
              Con_Info varchar2(100):='';
              the_command varchar2(200):='';
              v_filename varchar2(100);
              cursor c1 is select tname from <table_name > /* create a table in ur schema and put all the tables which u want to export */ where tabtype = 'MASTER';
         Begin
              v_filename:=open_ldr;
         The_userid := Get_Application_Property(UserName);
                   The_Password := Get_Application_Property(Password);
                   The_connectstring := Get_Application_Property(Connect_String);
                   Con_Info := The_userid||'/'||The_Password||'@'||The_connectstring;
                   for c1rec in c1 loop
                   C2K_TRUNC_HLL_MASTERS(c1rec.tname);
                   the_command := v_filename||' Control=c:\'||c1rec.tname||'.ctl userid='||Con_Info; -- Change This According To The Path
                   -- message(the_command);message(the_command);
    Host(the_command);
                   End Loop;
                   the_command := v_filename||' Control=c:\control'||'.ctl userid='||Con_Info; -- Change This According To The Path
                   host(the_command);
                   Exception When Others Then
                        Message('Error'||' '||sqlerrm);
                        Message('Error'||' '||sqlerrm);
         End;
    If u have any problems please contact me on [email protected]
    furnish the details properly .
         

  • Import statement using DATA BUFFER

    Hi All,
    I am using RFC enabled FM using STARTING NEW TASK, We cannot import data from FM back to the program when we use this statement. So I am exporting data into DATA BUFFER in the FM and trying to import data in the main program. Can you please tell me how can I import data from SHARED MEMORY, Below is my code.
    call function 'YPMLR_SITEBAL_DETAILS'
        starting new task 'ID'
        exporting
          s_cyl       = s_cyl-low
          s_lifnr     = s_lifnr-low
          s_lstyp     = s_lstyp-low
        tables
          s_zlocn     = lt_zlocn
          gt_zmlr_mld = gt_zmlr_mld
          gt_zmlr_lp  = gt_zmlr_lp
          gt_zmlr_mlp = gt_zmlr_mlp
          gt_zmc_loc  = gt_zmc_loc.
    "IMPORT e_rand_no TO e_rand_no from MEMORY ID 'RAND'.
    Here is the export statement used in FM,
    EXPORT e_rand_no FROM e_rand_no  TO DATA BUFFER XSTR.

    Hi,
    Check this link for Export to database instead of memory..
    http://help.sap.com/abapdocu/en/ABAPEXPORT_DATA_CLUSTER_MEDIUM.htm
    Import from database instead of memory
    http://help.sap.com/abapdocu/en/ABAPIMPORT_MEDIUM.htm

  • Questions on Subviews and Import/Export in Data Modeler v3 EA1.

    I have a few questions about the capabilities of Data Modeler v3 EA1:
    1) Is it possible to rename subviews? Would like more meaningful names then Relational_x - Subview_x.
    2) Is it possible to save documents at subview level?
    3) Is it possible to import/export subsets of data?
    4) Having problems importing Erwin 7 .xml file, is there known problems with this import?
    Judy

    Hi Judy,
    1) To rename a subview just right click on it in the browser tree and select "Properties". In the properties dialog change the name and click OK button.
    2) You can save a subview as new Data Modeler design - from the File menu select Export -> To Data Modeling Design. In the newly opened dialog select the subview you want to export and click OK button.
    3) After saving a subview as new design (see answer #2) it can be imported in some other design (File -> Import -> Data Modeler Design).
    4) What kind of problems do you have with import of Erwin 7.* xml file?
    Regards,
    Ivan

  • Import/Export from Memory ID

    hie guys
    im in a program that is importing values from a memory id however there are no values being imported and thus i want to find out wer the memory id is being given data. i tryd the wer used list and it dd not give me anything, please assist

    I managed to find the program where the export statement for the memory ID was and also where the import statement was and managed to resolve my error.
    many thanks.

  • Maxl Import - Export L0 data crashes

    Hi to all,We have an automation Maxl script, for a mission critical application where we export 6 times a day all L0 data, then import them back again, .It has been running for sometime smoothly, but suddenly it startet to crash, meaning it doesnt export the data or import it back in.We write on a file specific directory other than app\db (we tried this one but didnt work).We use MS W2000 server Essbase 6.5.We heard from Hyp that maybe there is a bug on v6.5Does anyone had similar problems?Thanksyannis

    The SQL run via the load rule understands my subvars.  The load rule SQL looks like this:
    select...
    WHERE
      AND (('1' = '&IncSpanYr' --IF THE PERIODS SPAN YEARS
      AND (('12' = '&CurMoNm' --IN JUNE LOOK INTO NEXT YEAR PERIOD 1
      AND ((A.FISCAL_YEAR = '&CurYrNm' AND A.ACCOUNTING_PERIOD IN ('&PriMoNm', '&CurMoNm'))
    This turns into:
    WHERE
      AND (('1' = '1' --IF THE PERIODS SPAN YEARS
      AND (('12' = '12' --IN JUNE LOOK INTO NEXT YEAR PERIOD 1
      AND ((A.FISCAL_YEAR = '2014' AND A.ACCOUNTING_PERIOD IN ('2', '3'))
    My issue is getting a dump of all that data that the SQL is pulling.  I don't see a way to do that in the import database command.  A separate job on the SQL side (like SSIS) could pull the data, but can't access the subvars easily.  Does that make sense?  Or did I misunderstand your suggestion?
    Thanks-
    Cameron

  • Arabic support in isqlplus after import export from 7.3.4 to 10.2.0.3

    CANNOT DISPLAY ARABIC IN ISQL*PLUS(JUNK). APPLICATION WORKS FINE WITH ARABIC
    with Taret DB char set to US7ASCII the data is always junk old data +new inserted arabic data inserted thro isqlplus or sqlplus.
    with AR8MSWIN1256 the old data(imported in to new db from old 7.3.4 db export dump) is displayed as junk (what ever in the db) and after creating a new table data inserted, the arabic display is fine.
    How to overcome the problem of displaying old data? we have lots of data for migration.
    Thanks

    Small correction
    In DB with Char set to AR8MSWIN1256.......
    Old data exported from 7.3.4 and imported in new 10.2.0.3 db is showing arabic char as junk
    But new table created and data inserted as arabic is displaying properly.
    What has to be done such that old imported data displays arabic.
    We are using isqlplus and sqlplus to query the data
    Thanks

  • Import/Export from Access MDB to Oracle DB

    Dear Friends,
    I need to import a huge table from access to Oracle. I tried to export the file from MS Access to Oracle, it is giving error. I tried another way of doing , i first exported the data to SQL server and then using Export/Import utility of SQL Server, it has imported succesfully. I am not sure which is the best way to import data from ACCESS to Oracle.
    Kindly suggest,
    Regards,
    Vinay

    Another approach you might try goes something like this:
    1. In Access, link the destination Oracle table (for example, via File, Get External Data, Link Tables...).
    2. In Access, create an Append Query to select rows from your Access table and insert them in to the linked Oracle table.

  • IGES or VDA-FS import/export from DIADEM to/from CATIA

    We need to import/export data in either IGES or VDA-FS file format with DIADEM to/from CATIA. The data is a three dimensional array of coordinates representing the contour of a automotive seat.
    Does anyone know where to get or have such a file filter?
    Waldemar Hersacher
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

    Dear Otmar,
    I'm investigating this for a new customer project.
    IGES is a standard file format used to excange data between CAD systems.
    VDA-FS is a file format which is standardized by the german automotive industry consortium.
    Currently I have no description for the file formats nor any data files.
    I will make a new comment within 6 weeks if I need more help from you.
    Thanks Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • IMPORT & EXPORT from/to compressed files directly...

    for newbies a tip to import(export) directly to(from) compressed files using pipes . Its for Unix based systems only, as I am not aware of any pipe type functionality in Windows. The biggest advantage is that you can save lots of space as uncompressing a file makes it almost 5 times or more. (Suppose you are uncompressing a file of 20 GB, it will make 100 GB) As a newbie I faced this problem, so thought about writing a post.
    Lets talk about export first. The method used is that create a pipe, write to a pipe(ie the file in exp command is the pipe we created), side by side read the contents of pipe, compress(in the background) and redirect to a file. Here is the script that achieves this:
    export ORACLE_SID=MYDB
    rm -f ?/myexport.pipe
    mkfifo ?/myexport.pipe
    cat ?/myexport.pipe |compress > ?/myexport.dmp.Z &
    sleep 5
    exp file=?/myexport.pipe full=Y log=myexport.logSame way for import, we create a pipe, zcat from the dmp.Z file, redirect it to the pipe and then read from pipe:
    export ORACLE_SID=MYDB
    rm -f ?/myimport.pipe
    mkfifo ?/myimport.pipe
    zcat ?/myexport.dmp.Z > ?/myimport.pipe &
    sleep 5
    imp file=myimport.pipe full=Y show=Y log=?/myimport.logIn case there is any issue with the script, do let me know :)
    Experts, please have a look...is it fine ? (Actually I dont have Oracle installed on my laptop(though have Fedora 6) so couldnt test the scripts)
    I posted the same on my blog too. just for bookmark ;)
    Sidhu
    http://amardeepsidhu.blogspot.com

    actually, only the compression thing runs in the background. rest proceeds like normal only. just instead of giving normal file we use pipe as a file.
    nice article about named pipes
    Sidhu

  • IMPORT/EXPORT FROM ADDRESS BOOK TO ENTOURAGE

    Is there a way to export/import contacts from the Address Book to Entourage? Thanks

    Try this.
    With the Address Book and Entourage launched and positioned so each is partially visible and the Entourage Address Book selected, select a contact in the Address Book "All" Group and at the menu bar, go to Edit > Select All. Click and drag the highlighted contacts from the Address Book to the Entourage Address Book window which should copy the Address Book contacts to the Entourage Address Book.
    You can do the same with selected contacts only if you don't want to export all.

  • How to automate Import/export Essbase data 11.1.2

    Hi,
    After migration from Dev to Test environment using LCM (EPMA Planning, Shared services) I have questions:
    1) How to automate export from source and import in Destination?
    2) If we have enabled MSAD in shared services, What should be standard practice to sync provisioning in both environment?
    Regards
    Kumar

    Hi John,
    I see only Native directory
    Application Group>Foundation>shared services> - Native directory
    - Task flows
    Application Group>Foundation>shared services> - Native directory>assigned Roles> foundation>shared services
    I feel MSAD should be here but not sure as it is just new environment and we enabled MSAD.
    Please suggest where can i check Import/export in LCM 11.1.2?
    Regards
    Kumar
    Edited by: Kumar 1 on Oct 20, 2011 3:22 AM

Maybe you are looking for

  • Itunes has error message before installation is finished

    Hi there, I tried updating my system to the current version of itunes (vers 10) so i can update my iphone 4. The itunes site directed me to remove previous versions of itunes, which i did, but on loading and installation the following error comes up:

  • Why do my senders of txt messages show up as telephone numbers instead of names?

    Why do my senders of txt messages show up as telephone numbers instead of names?

  • GLPCA 185 GB

    we have the table GLPCA with 185GB (2.5 years) the technical settings are that Data class         APPL1 Size category      4     we want to move  Size category      4     to Size category      9 what is the impact ?? we won performace??

  • VirtualBox Additions

    I am trying to install the VIrtualBox Additions 4.0.4_70112 with Windows 7 host and an Oracle Linux 5 guest system. When I run the /etc/init.d/vboxadd setup I receive the following error. My current kernel is 2.6.18.238.el5xen. I did a full yum updat

  • Should I avoid the Yoga?

    After looking at quite a few laptops, none of them stick out as much as the Yoga. I am in love with the vibrant IPS screen with the 1600x900 resolution display (because 1080p makes text too small and I don't believe in switching DPI). The design is s