Import/Export statement  not working..

Hi all,
   I want to export some data from BADI & Import it back in user exit.
I wrote following line of code in BADI
       export P1 FROM xstr to memory id 'ZABHI'.
& following line of code in User Exit
      import P1 to xstr FROM memory id 'ZABHI'.
After export sy-subrc becomes 0 hence export statement is working fine but when aftr import xstr remains blank.(sy-subrc = 4)
I tried to execute same code in single ztest abap program & it works fine there.
Thanks in advance.

hi abhijeet,
you are most welcome....
to delete, use
** deletes the data to save wastage of memory
delete from database indx(xy)
  client sy-mandt
  id 'ZABHI'.
you need to delete it coz, its available to all programs in the R/3
server via the ID and you don't want anybody to view the data u are
sending into memory.
the statement that u used earlier was program specific and hence
not accessible to the user exit.
Regards,
Samson Rodrigues.

Similar Messages

  • Import Export Utility not working on Windows Vista

    Hi
    I installed Oracle 10g XE on my brand new Windows Vista Business (SP1) machine 2 weeks ago. I then sucessfully imported an oracle export file which I had. I later installed Oracle Forms & Reports. However, today trying to use import or export gives me the following error:
    On importing...
    IMP-00058:
    IMP-00000: Import terminated unsuccessfully
    On exporting
    EXP-00056:
    EXP-00000: Export terminated unsuccessfully
    I have tried everything... makinging sure my oracle home is set correctly in the PATH parameter, tried interactive import/export.
    So when all else failed I installed 10g XE on a brand new Windows Vista PC that we have got just yesterday. Guess what.... straight after the install I get the exact same problem trying to use import/export! I then thought it must be a permission thing, there is only one user account on both PC's. This user is the Administrator, I have disabled all firewall, antivirus software but still no luck!
    Please help..
    Cheers
    Billy

    [email protected] wrote:
    There is only one Windows Account on my PC. This account is the Administrator account so it should work.
    Wrong!
    See my last post in this thread:
    Re: Not able to start Oracle 10g Listener on Windows 2008 Server
    there I explained a little bit UAC and how to deal with it.
    Cheers!

  • Import/Export dynpro not working

    IMPORT DYNPRO h f e m ID id
    http://help.sap.com/abapdocu_70/en/ABAPIMPORT_DYNPRO.htm
    I would like to use IMPORT DYNPRO to import screen attributes and program flow and then perform necessary changes and export/generate the modified screen.
    well i used the sample from http://www.sapfans.com/sapfans/repos/poonam.htm, but regardless of how many times I tried, I couldn't get it to work. I'm still stuck at the first step, IMPORT DYNPRO will return sy-subrc = 4 (screen does not exist) no matter what program/screen I use.
    Any idea?, Thanks
    Edited by: afro100 on Oct 22, 2009 9:45 AM
    Edited by: afro100 on Oct 25, 2009 8:24 AM

    See the following example
    Double click on the method name; on the editor write the following code:
    METHOD onactionaction_find .
      DATA: node_node_vbak           TYPE REF TO if_wd_context_node,
        elem_node_vbak                      TYPE REF TO if_wd_context_element,
        stru_node_vbak                        TYPE if_input_view=>element_node_vbak .
    navigate from <CONTEXT> to <NODE_VBAK> via lead selection
      node_node_vbak = wd_context->get_child_node( name = if_input_view=>wdctx_node_vbak ).
    get element via lead selection
      elem_node_vbak = node_node_vbak->get_element(  ).
    get all declared attributes
      elem_node_vbak->get_static_attributes(
       IMPORTING static_attributes = stru_node_vbak ).
      DATA: ls_where(72) TYPE c,
            lt_where LIKE TABLE OF ls_where,
            lt_vbak TYPE STANDARD TABLE OF zstr_vbak.
    create where condition
      IF NOT stru_node_vbak-vbeln EQ ''.
        CONCATENATE 'VBELN = ''' stru_node_vbak-vbeln '''' INTO ls_where.
        APPEND ls_where TO lt_where.
      ENDIF.
      IF NOT stru_node_vbak-erdat EQ '00000000'.
        CONCATENATE 'ERDAT = ''' stru_node_vbak-erdat '''' INTO ls_where.
        IF stru_node_vbak-vbeln NE ''.
          CONCATENATE 'AND' ls_where INTO ls_where SEPARATED BY space.
        ENDIF.
        APPEND ls_where TO lt_where.
      ENDIF.
      SELECT VBELN ERDAT ERZET ERNAM ANGDT BNDDT AUDAT VBTYP TRVOG AUART
             AUGRU GWLDT SUBMI LIFSK FAKSK NETWR WAERK VKORG VTWEG SPART
             VKGRP VKBUR GSBER GSKST GUEBG GUEEN KNUMV
      FROM vbak INTO TABLE lt_vbak WHERE (lt_where).
      DATA:
        node_node_alv                       TYPE REF TO if_wd_context_node,
        stru_node_alv                       TYPE if_input_view=>element_node_alv .
    navigate from <CONTEXT> to <NODE_ALV> via lead selection
      node_node_alv = wd_context->get_child_node( name = if_input_view=>wdctx_node_alv ).
    get all declared attributes
      node_node_alv->bind_table( lt_vbak ).
    ENDMETHOD

  • Import/Export extension not working with DW4

    I am trying to export my site definitions from Dreamweaver 4.0 so that I can import them into CS4.
    I installed the Extension Manager 1.5 and used it to install MX157851_siteImpExp1_0_3.mxp
    But I don't get a new menu item File/Export in my DW4 menu, so I cannot use the extension.
    Am I missing a step?

    I have found this information on the web that refers to the extension you are using (page takes a while to load), do not know if it help, but reading it there is a problem with the extension.
    http://help.wugnet.com/bravenet/webmaster/Import-Site-Failure-ftopict98245.html
    PZ

  • Import/export - templates not working?

    We're just trying to deploy our Portal application into the production environment, and having a lot of problems. We're still on 3.0.6.6.5.
    Firstly - if we import something more than once it creates a 2nd version. I've seen messages on this forum saying the -m switch has values of new/reuse, but the docs say check or create only. Is this a change at 3.0.7 or 3.0.8? I'm a little nervous about deleting objects in the production environment, we've been having random problems with metadata corruption when deleting objects in the dev environment.
    Secondly, we have our own template which is assigned to all application components. When we tried to export/import the template, we got no errors but it obviously didn't work. When we tried to edit the template to take a look at it, we got an error saying we're missing some dependent objects. The only objects referenced by the template are images and fonts - we haven't created our own, we've reused standard images & fonts, so why are we getting this error?

    Answers to your questions :
    1. One cannot import the same component twice on the same portal instance. You might have tried the import with -m check option.
    2. There are two modes in which an application/component import can run :
    CREATE and CHECK.
    3.Can you specify the exact error that you got when you tried to edit the template?
    Thanks and Regards
    null

  • Import statement not working

    i created a package named "pkg1", it contains 4 classes named
    1) Base
    2) Subclass1 (extends Base)
    3) Subclass2 (extends Subclass1)
    4) Subclass3 (extends Subclass2)
    now when i try to use the package using
    import pkg1.*
    and in main method, if i write,
    Subclass3 obj = new Subclass3();
    It does not work, error msg says "makes sure Subclass3 is in the correct sub-directory."
    However, when i tried
    import pkg1.Subclass3;
    It worked fine, Why is then import pkg1.* not working??

    I don't think that's going to help.
    Try and see.
    When the java compiler looks for a class
    pkg1.Subclass1 it looks for pkg1\Subclass1.java
    relative to the current directory and
    pkg1\Subclass1.class relative to each directory on
    the classpath.
    When the javac compiler (at least version 1.4) looks for a dependent class, it looks in the Classpath directories. It only looks relative to the current directory if the current directory is in the Classpath. When it looks for a dependent class, it looks for both .java and .class files. If it only finds a .java file or the .java file is newer than a .class file, it will try to compile the file.
    You need to compile from the directory above
    pkg1, in this case (unfortunately) d:\
    This makes it sound like it is a requirement to compile from the directory. It isn't required.

  • Importing bookmarks I go to file and the IMPORT link is not working ... not Illuminated ... what can I do?

    I want to import bookmarks from Explorer and I go to File Tab and the IMPORT link is not working or not illuminated?

    Make sure that you not run Firefox in permanent [[Private Browsing]] mode.
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Uncheck: [ ] "Permanent Private Browsing mode"

  • "Do not import duplicates" is not working

    The "Do not import duplicates" box is checked for all imports but is not working.  This is both for my Nikon DSLR, my Canon S-95 and my iPhone. This was happening with both Snow Leapord and Lion as operating system.  I have been using Aperture since the first release and only in the last few months has this been an issue.  Any thoughts?

    There's a known (and old) bug when duplicate identification fails on photos
    that have been imported from another catalog.
    Sent from phone.

  • Select statement not working

    hi to all,
    I am trying to write use inner joining . here is code
    DATA:tabname LIKE dd02L-tabname,
         table_disc LIKE dd02t-ddtext.
      SELECT  dd02ltabname dd02tddtext INTO (tabname,table_disc)
        FROM dd02l INNER JOIN dd02t on dd02ltabname = dd02ttabname
              WHERE dd02tddlanguage = 'E' AND dd02ltabclass = 'TRANSP'
                                AND dd02L~tabname = 'ZANKI*'.
        endselect.
          write : tabname.
    I also checked in tables dd02t and dd02l for the table zanki* and data available in both table . but here select statement not working .do u have any idea about this. thank you

    Hi,
    I executed the ur inner join conditin by commenting 'z*' it's working fine.
    I think  where condition is not getting satisfied so u r not getting any data.
    Please conform in where condition you need * 'AND'* or OR
    I change decalration as below.
    DATA:tabname    type TABNAME,
          table_disc type AS4TEXT.
    SELECT dd02l~tabname
           dd02t~ddtext  INTO (tabname, table_disc)
    FROM dd02l  INNER JOIN dd02t on dd02l~tabname = dd02t~tabname
    WHERE dd02t~ddlanguage = 'E' AND
          dd02l~tabclass = 'TRANSP'AND
        dd02L~tabname = 'ZANKI*'.
    endselect.
    write : tabname.
    Regards,
    Pravin

  • Exported HTML not work in my host.

    Exported HTML not work in my host.
    The program works fine. Looks good in the browser preview and published in businesscatalyst, but when i exporting as html and upload it to my server is bad, all misplaced.

    Thanks for the reply.
    Everything is apparently copied and permissions are well.
    Watch this please.
    So it should be seen:
    http://koldo01.businesscatalyst.com/
    It is seen:
    http://www.koldofuentes.com/

  • Why would menu button's active state not work? Regardless if I import PSD button or use menu widget from the widget library.

    I am using Adobe Muse CC (up-to-date) and tried to troubleshoot the following: Menu button's active state is not working, both on preview and after publishing. I tried many ways to place menu-designed buttons myself using photoshop and used widgets library (buttons, compositions, menus,etc.). Lastly, in regards to buttons, one of my menu buttons appear clear and crisp (psd button) and all others are blurry (though designed,saved and imported the same way);what could be the problem? Can anyone help?Thanks.

    That line is for pop up message?You would typically use a tool tip for that.
    The "Accessibility" features are different and I believe you need additional software to take advantage of them:
    http://java.sun.com/j2se/1.5.0/docs/guide/access/index.html

  • Lucene import statements not working

    I'm new to Tomcat, Lucene, and JSP, so bare with me...
    I just installed all three and Tomcat and JSP are working and Lucene is working. Now I'm trying to get them working together but I don't know where my issue is. I have a sample page I found and it's not working and giving me the following error messages...
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 6 in the generated java file
    Only a type can be imported. com.knowledgebooks.servlet.StartupWorkServlet resolves to a package
    An error occurred at line: 7 in the generated java file
    Only a type can be imported. org.apache.lucene.document.Document resolves to a package
    An error occurred at line: 8 in the generated java file
    Only a type can be imported. org.apache.lucene.search.Searcher resolves to a package
    An error occurred at line: 9 in the generated java file
    Only a type can be imported. org.apache.lucene.search.IndexSearcher resolves to a package
    An error occurred at line: 10 in the generated java file
    Only a type can be imported. org.apache.lucene.analysis.Analyzer resolves to a package
    An error occurred at line: 11 in the generated java file
    Only a type can be imported. org.apache.lucene.analysis.standard.StandardAnalyzer resolves to a package
    An error occurred at line: 14 in the generated java file
    Only a type can be imported. org.apache.lucene.search.Query resolves to a package
    An error occurred at line: 15 in the generated java file
    Only a type can be imported. org.apache.lucene.queryParser.QueryParser resolves to a package
    An error occurred at line: 16 in the generated java file
    Only a type can be imported. org.apache.lucene.search.Hits resolves to a package
    An error occurred at line: 17 in the generated java file
    Only a type can be imported. com.knowledgebooks.API resolves to a packageI'm not even sure where to begin looking. Does anyone have any idea?
    Thanks in advance!

    can you provide me your jsp code? so i can look into and advice you.

  • Import/Export Statement

    Hi,
    I want to import 2 internal tables (Declared with Header Line) and 1 variable from the memory. These 2 internal tables are exported separately at different points using separate Export Statements. I am not sure, why my Import statement is not working correct. Can you please give me the correct syntax?
    Thanks in advance
    Kannan.

    Hi,
    This code is from which program you want to export to the ABAP memory:          
       export ist_resb to memory id 'ZPPC0122_FD'.
                 where ist_resb is the internal table name &
                       ZPPC0122_FD is the include name of my program ZPPC0122.
    This code is from which program you want to import from the ABAP memory
            import *ist_resb *= ist_resb from memory id 'ZPPC0122_FD'.
                  where  ist_resb This internal table is the importing program internal table.
                        ist_resb This internal table is the exporting program internal table.
    But remember in both the program you have defined the same internal table with same structure
    Refer this link-
    IMPORT:
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3bde358411d1829f0000e829fbfe/content.htm
    http://abaplovers.blogspot.com/2008/04/passing-data-from-one-abap-program-to.html
    http://help.sap.com/saphelp_45b/helpdata/en/34/8e73a36df74873e10000009b38f9b8/content.htm
    Check this
    EXPORT an internal table  and  IMPORT an internal table in another program
    Hope it will help you.
    Regards,
    Sujit

  • IMPORT/EXPORT statement in Background Mode

    Hey dudes,
    I am facing a problem in my coding. I am dealing with coding in several events in IS-U, transaction FPY1.
    However, it's not so important ya. Now I am written some code on IMPORT and EXPORT some parameters between 2 program code. It's work very fine only in 'DEBUG MODE', but when it's running not debug mode (Is BACKGROUND MODE), coz it's massive run program.
    I suspect it's because of the background job. Does background job using ABAP Memory? IMPORT/EXPORT is only for dialog work process, not background work process?? I have a lot of question mark on my head now..
    Hope anyone facing dis issue before can help.
    Cheers,
    Isaac.

    Are you trying to pass data via EXPORT/IMPORT between two programs that are both running in background, or from an online session to a background process?... i.e. what are the two lots of program code that you are wanting to pass parameters between? 
    It would be fine for a background program to "export" data to a memory ID, then for the same batch program to submit another program that does the "import" from the same memory ID... but this method won't work for an online user doing an "export" and a batch job doing an "import" -> for this to work, you would need to persist the parameters so that the batch job can retrieve them.
    If you can explain the scenario a bit more, will try to offer more help...
    Jonathan

  • Import scenario package not working

    Hi exports,
    On a test environment i created a scenario which i now would like to transfer to another server.
    I exported the correct scenario, but on the other server, the import is not working.
    I can submit my package, it shows that there is no current version of this package, but hitting the "IMPORT" button doesnt do anything.
    Im using (on both servers) SAP B1 9.0 pl 08 with the same integration framework.
    Any idea's on how to solve this?
    Kind regards
    Frederik

    Hi Radosla,
    Yep, thx for the hint.
    Looks like i put it on th test server in compatibility mode, but not on the real server.
    Changing this with F12 to IE 8 did the trick!
    Regards
    Frederik

Maybe you are looking for

  • Ipod died plz help

    I bought an ipod shuffle the second generation and I was hearing it with my speaker then it turned hot so i turn it off for a while and then i tryed to turn it back on and the green light did not turn on and it also does not appear on the computer an

  • SolMon 3.2, Difference between SolMon report and Service .sap report?

    Hi Guys, last week i found one strange thing, there are differences between the reports of our local SoMon server report  and report from service.sap (service message). why there will be difference like this, Please help me in this regards. Regards S

  • Running QuickTime files with no QuickTime player installed

    I export keynote files into QuickTime format, but most of my audience might not have QuickTime installed. Is it possible that I somehow create a file that can automatically play that file without having the actual QuickTime player installed? So the p

  • Deleting Aperture Trash when 'The referenced image's master has not been found'

    i'm in a bit of a stick- ive got 107 images in my aperture trash with the 'The referenced image's master has not been found' how do i delete these? Thanks Nish

  • SCM / APO forum on upgrade

    Hi All, Just to moot a proposal for new forum on SCM or APO upgrade There are forums for ECC & CRM upgrades For APO, we have few threads & a good wiki on newer versions Are there no upgrades happening Moderators & Guru's please share & enlighten Acce