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

Similar Messages

  • 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

  • Import schemas using data pump

    Hi
    I have taken full schema export dump using exp ..
    (expdp username/password directory=dump dumpfile=scott.dmp schams=scott)
    When i try to import this dump into another schema , i am getting the error user scott doesn't exist.. How to over come this.. put ur ideas and suggestions
    following is the command i tried:
    (impdp username/pasword directory=dump dumpfile=scott.dmp)
    (impdp username/pasword directory=dump dumpfile=scott.dmp schemas=test)

    Hi
    You can watch the documentation for import.
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96652/ch02.htm#1005922
    Think you have to use the "FROMUSER", "TOUSER" clause for import.
    Hope it helps

  • Import and use data.

    What is the best solution to create i.e a product sheet? And create x number of them based on the data?

    Moved to Acrobat forum.

  • Data Import defaulting Null date to system date

    I am trying to import Campaigns using Data Import, and when End Date is NULL it defaults to system date. Is there any way to avoid this default? Even when I don't "map" the End Date, it still defaults it.
    Thanks!

    This file will always populate itself what you have to try to do is establish what is a good date to put in this section. What i have done is created a System default to be today() + 14 this will mean that the end date will be roughly 14 days after it was created. This is then up to the person running the campaign to change if required.

  • Using export/import to migrate data from 8i to 9i

    We are trying to migrate all data from 8i database to 9i database. We plan to migrate the data using export/import utility so that we can have the current 8i database intact. And also the 8i and 9i database will reside on the same machine. Our 8i database size is around 300GB.
    We plan to follow below steps :
    Export data from 8i
    Install 9i
    Create tablespaces
    Create schema and tables
    create user (user used for exporting data)
    Import data in 9i
    Please let me know if below par file is correct for the export :
    BUFFER=560000
    COMPRESS=y
    CONSISTENT=y
    CONSTRAINTS=y
    DIRECT=y
    FEEDBACK=1000
    FILE=dat1.dmp, dat2.dmp, dat3.dmp (more filenames here)
    FILESIZE=2048GB
    FULL=y
    GRANTS=y
    INDEXES=y
    LOG=export.log
    OBJECT_CONSISTENT=y
    PARFILE=exp.par
    ROWS=y
    STATISTICS=ESTIMATE
    TRIGGERS=y
    TTS_FULL_CHECK=TRUE
    Thanks,
    Vinod Bhansali

    I recommend you to change some parameters and remove
    others:
    BUFFER=560000
    COMPRESS=y -- This will increase better storage
    structure ( It is good )
    CONSISTENT=y
    CONSTRAINTS=y
    DIRECT=n -- if you set that parameter in yes you
    can have problems with some objects
    FEEDBACK=1000
    FILE=dat1.dmp, dat2.dmp, dat3.dmp (more filenames here)
    FILESIZE=2048GB
    FULL=y
    GRANTS=y -- this value is the default ( It is
    not necesary )
    INDEXES=y
    LOG=export.log
    OBJECT_CONSISTENT=y -- ( start the database in restrict
    mode and do not set this param )
    PARFILE=exp.par
    ROWS=y
    STATISTICS=ESTIMATE -- this value is the default ( It is
    not necesary )
    TRIGGERS=y -- this value is the default ( It is
    not necesary )
    TTS_FULL_CHECK=TRUE
    you can see what parameters are not needed if you apply
    this command:
    [oracle@ozawa oracle]$ exp help=y
    Export: Release 9.2.0.1.0 - Production on Sun Dec 28 16:37:37 2003
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    You can let Export prompt you for parameters by entering the EXP
    command followed by your username/password:
    Example: EXP SCOTT/TIGER
    Or, you can control how Export runs by entering the EXP command followed
    by various arguments. To specify parameters, you use keywords:
    Format: EXP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
    Example: EXP SCOTT/TIGER GRANTS=Y TABLES=(EMP,DEPT,MGR)
    or TABLES=(T1:P1,T1:P2), if T1 is partitioned table
    USERID must be the first parameter on the command line.
    Keyword Description (Default) Keyword Description (Default)
    USERID username/password FULL export entire file (N)
    BUFFER size of data buffer OWNER list of owner usernames
    FILE output files (EXPDAT.DMP) TABLES list of table names
    COMPRESS import into one extent (Y) RECORDLENGTH length of IO record
    GRANTS export grants (Y) INCTYPE incremental export type
    INDEXES export indexes (Y) RECORD track incr. export (Y)
    DIRECT direct path (N) TRIGGERS export triggers (Y)
    LOG log file of screen output STATISTICS analyze objects (ESTIMATE)
    ROWS export data rows (Y) PARFILE parameter filename
    CONSISTENT cross-table consistency(N) CONSTRAINTS export constraints (Y)
    OBJECT_CONSISTENT transaction set to read only during object export (N)
    FEEDBACK display progress every x rows (0)
    FILESIZE maximum size of each dump file
    FLASHBACK_SCN SCN used to set session snapshot back to
    FLASHBACK_TIME time used to get the SCN closest to the specified time
    QUERY select clause used to export a subset of a table
    RESUMABLE suspend when a space related error is encountered(N)
    RESUMABLE_NAME text string used to identify resumable statement
    RESUMABLE_TIMEOUT wait time for RESUMABLE
    TTS_FULL_CHECK perform full or partial dependency check for TTS
    VOLSIZE number of bytes to write to each tape volume
    TABLESPACES list of tablespaces to export
    TRANSPORT_TABLESPACE export transportable tablespace metadata (N)
    TEMPLATE template name which invokes iAS mode export
    Export terminated successfully without warnings.
    [oracle@ozawa oracle]$
    Joel P�rez

  • Use of wildcard(*) in import statement

    I am a bit new in Actionscript 3.0 and I love to learn it.
    I saw the following two import statements in an actionscript 3.0 code.
    import flash.display.MovieClip;
    import flash.display.SimpleButton;
    In this case, can I use just juse * sign as in import.flash.display.*; ???
    Is this change would cause any problem?
    Sami

    There are cases when it works and cases when it doesn't, and I don't know if there is a reason.  You can try and see if it makes a difference, and if you get error regarding lack of definition you can hopefully determine that you need to explicitly name the class.
    Also, it partly depends on where you are implementing the code.  Usually when coding in the Actions panel you do not need to import most classes at all.  But when you are working with class files you normally have to import any that are not top-level, such as the two you identified.

  • Using wildcards in import statement

    I typically use wildcards in my import statements. For example:
    import javax.swing.*;
    Are there any advantages, though, in specifying exactly which classes I am importing?
    For example,
    import javax.swing.JPanel;
    import javax.swing.JLabel;
    import javax.swing.JEditorPane;
    import java.swing.JProgressBar;
    // etc.
    Specigically, is the resulting class file any smaller if I specify exactly which classes to use and does the Java runtime engine load faster if I specify exactly which classes I use in the import statemetents?
    Thanks,

    Import has precisely zero runtime impact. I believe it is used to help locate the specified class at runtime. Take the following 2 simple source files:
    import java.util.Vector;
    //import java.util.*;
    public class VectorTest
         public static void main( String[] args )
              Vector v = new Vector();
              v.add("Item 1");
              v.add("Item 2");
              System.out.println( v.get(1) );
    public class Vector
         public boolean add(Object o)
              return true;
         public Object get(int index)
              return "doh!";
    }1) Run the code as is and "Item 2" is displayed
    2) Recompile the code using the generic import and "doh!" is displayed.
    The point is that by fully qualifying the import statement you are sure you are executing the correct class and not just some class that happens to be lying around somewhere in your classpath.

  • Error while importing Item MAster Data using DTW

    Hi,
    when we are importing item master data using items template
    it is giving error.
    Error:":connected value 1 was not found "
    can any one send the oitems template that is working fine wthout any error.
    Thanks,
    Neetu

    You cannot import  data prepration templates>>Testcase1_Test Data for Import function>Oitems directly.
    You will have to do certain prerequisites like setting CommissionGroup, CommissionPercent, CommissionSum,CustomsGroupCode etc., in SAP before importing Items.
    So I would like you to try out with minimum fields in the template and import. After understanding, you can import the required fields.
    I suggest you to use the template from "C:\Program Files\SAP\Data Transfer Workbench\Templates\Templates\oItems"

  • Using Date objects in SQL statements

    Hi, I am wondering if it is possible to use Date objects while trying to retrieve entries from an access database with fields set as "Date/Time" fields, as opposed to "Text"? If so, do I need to reformat it before inserting it into the SQL statement, or can I just leave it as a Date object, and call up the variable name?
    For example - "SELECT * FROM database WHERE startDate = ' " + dateObject + ' ". And do i need quotes round this value?
    Thanks in advance.

    I had some problems by just fetching a date and pushing it back to a MS SQL Database.
    I used the following reformating step to fix it:
    if (o instanceof Timestamp)
    String time = o.toString().substring(8,10)+"."+o.toString().substring(5,7)+"."+o.toString().substring(0,4)+" "+o.toString().substring(11,19);
    ht.put(columnName, time);
    o is the object i receve from the select statement and ht is a Hashtable where i put my data.
    To write the data back i now can use:
    UPDATE table SET columnname = 'valueOfColumn'
    This means i use the value i created above in Quotes to write it back.
    Format of Timestamp.toString() is something like yyyy-mm-dd hh:mm:ss.xx
    Format used by MS SQL (and i think by Access to) 'dd.mm.yyyy hh:mm:ss'

  • Which one better to use - jsp:useBean or import statement

    Hi,
    I just want to know that which one is better to use jsp:useBean or import statement .
    I can instantiate and call method of myclass -
    1) by importing the class through import tag in jsp as <%@page import="myclass"%. or
    2). by using <jsp:useBean tag....
    i have these two option to do the same thing. i know that basically useBean is used to call setter and getter method of bean class and but it can be used to call a normal java file that have some logic .
    so what should i used , which one is better and why?
    useBean provides scope and object instance so no need to create object by new operator. and with import you have to create an instance .
    but which tag should i use in my jsp?
    i am confused???

    ok, means i can use jsp:useBean tag for all my
    classes that are not actually bean. so it will be
    instantiated at run time and provide efficiency .No. Jsp:useBean is used for java bean components.
    >
    but when should i use import statement in my jsp and
    it happen at translation time so will it create any
    type of burden for my code if i import multiple
    classes.For non-java beans, you need to import the classes, period.
    It's not a burden, it's a necessity.

  • Using Import Statement

    Hi,
    I understand that in order to access the methods of a different class, I can "import" it. Here is my question though:
    Where am I importing it from? I mean, surely if I am importing a class from e.g. the Java.util package, doesn't this package need to be on my computer somewhere?
    And also, if I make a .jar file of my application for use on another computer and the files contain import statements, doesn't the other computer need to have these packages on their machine?
    I know this seems like a silly question but it's bothering me!
    GF

    Yep, you can unzip them to see inside. The package name unzips into a directory structure and the Class name is a file. So java.util.HashMap will unzip into a directory java/util and have a file called HashMap.class in it.
    You can usually download the source code for these classes also.

  • After importing images from my card using LR 5.4, the GPS data does not show in the metadata panel. However, when I look at the imported images using Bridge, the GPS data is visible. Anybody know why LR is not seeing the GPS data? Camera is Canon 6D.

    After importing images from my card using LR 5.4, the GPS data does not show in the metadata panel. However, when I look at the imported images using Bridge, the GPS data is visible. Anybody know why LR is not seeing the GPS data? Camera is Canon 6D.

    Ok, the issue seem to be solved. The problem was this:
    The many hundred files (raw and xmp per image) have been downloaded by ftp in no specific order. Means - a couple of files in the download queue - both raw and xmps. Most of the time, the small xmp files have been finished loading first and hence the "last change date" of these xmp files was OLDER than the "last change date" of the raw file - Lightroom then seem to ignore the existence of the xmp file and does not read it during import.(a minute is enough to run into the problem)
    By simply using the ftp client in a way that all large raw files get downloaded first followed by the xmp files, we achieved that all "last changed dates" of the xmp files are NEWER than the related raw files. (at least not older)
    And then LR is reading them and all metadata information has been set / read correctly.
    So this is solved.

  • Using imported archive in UDF using import statement

    Hello Expert,
    I am trying to use the class of keystore_api.jar which is impoted in imported archive in my UDF using the import statement
    com.sap.engine.interfaces.keystore.KeystoreManager but I am getting the error
    package com.sap.engine.interfaces.keystore does not exist
    import com.sap.engine.interfaces.keystore.*;
    Appreciate your valuable replies.
    Kind Regards,
    Kubra fatima

    Hi,
    as ur import statement  states
    com.sap.engine.interfaces.keystore
    You need to import the jar in directory hierarchy as above manner.
    com[sap[engine[interface[]keystore[JAR]]]]
    Regards
    Ashu

  • Import using Data Manager

    Hi everyone!
    My client want to use the import package from Data Manager to upload his data.
    I´m looking for a How to... than explain How to I can configure it.
    Somebody can Help Me??
    Thanks!!!

    Hi,
    I'm going to try this last one tomorrow.
    Now I have this little problem: If my datafile have a header with a different order, I have a warning and reject the header line.
    I introduced a mapping of the cols. My TransformationFile is like this but I have the same problem.
    Some suggest??
    *OPTIONS
    FORMAT = DELIMITED
    HEADER = YES
    DELIMITER = TAB
    SKIP = 0
    SKIPIF =
    VALIDATERECORDS=YES
    CREDITPOSITIVE=YES
    MAXREJECTCOUNT= -1
    ROUNDAMOUNT=
    *MAPPING
    CATEGORY=*COL(1)
    ACCOUNT=*COL(2)
    CECO=*COL(3)
    CLIENTES=*COL(4)
    CURRENCY=*COL(5)
    DATASRC=*COL(6)
    ENTITY=*COL(7)
    INTCO=*COL(8)
    ORGVENTAS=*COL(9)
    PRODUCTO=*COL(10)
    TIME=*COL(11)
    SIGNEDDATA=*COL(12)
    *CONVERSION
    Thanks!
    Regards

Maybe you are looking for