When to use import and export directives?

I'm very confused about what the import and export language extensions do and when one should use them.
I have a Bridge application with multiple source files. As long as I don't call code in another file from the startup execution path (before all source files are loaded) and only call across modules after Bridge is running (e.g. from events in Bridge), I don't seem to need import and export. All source files seem to be in the same namespace and all can see each other's global objects/functions.
So, when would someone use import or export? And, what is the #engine that the manual discusses in relation to import and export? If some of my source files are library files that I intend to be used by multiple different files/applications, should I be using import/export for that use? Or is this only applicable when there are somehow multiple JavaScript engines involved? And when would that situation arise?
--John

John,
The import and export directives don't really matter in Bridge. All scripts execute in the same namespace. That's why namespacing your scripts is crucial in Bridge.
The #engine directive creates another JavaScript engine instance containing the script with the directive. If you then wanted to use stuff from that engine, the import and export directives would be needed. But even with that, in Bridge, the main engine will contain the script. There will just be a second engine (you can see this in the ESTK) containing the same stuff. Since it's in the main engine, there's no point in using the import and export.
Some of the other apps, GoLive, for instance, each script executes in its own engine and namespace. And import and export are needed.
This could change in future versions, and if it does, we'll be certain to make sure everyone knows about it.
Bob

Similar Messages

  • Error message when importing data using Import and export wizard

    Getting below error message when importing data using IMPORT and EXPORT WIZARD
    Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    <dir>
    <dir>
    Messages
    Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Could not allocate a new page for database REPORTING' because of insufficient disk space in filegroup 'PRIMARY'.
    Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.".
    (SQL Server Import and Export Wizard)
    Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "Destination - Buyer_.Inputs[Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "Destination
    - Buyer_First_Qtr.Inputs[Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
    (SQL Server Import and Export Wizard)
    Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Destination - Buyer" (28) failed with error code 0xC0209029 while processing input "Destination Input" (41). The
    identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information
    about the failure.
    (SQL Server Import and Export Wizard)
    Error 0xc02020c4: Data Flow Task 1: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
    (SQL Server Import and Export Wizard)
    </dir>
    </dir>
    Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on Source - Buyer_First_Qtr returned error code 0xC02020C4.  The component returned a failure code when the pipeline engine called PrimeOutput().
    The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
    (SQL Server Import and Export Wizard)
    Smash126

    Hi Smash126,
    Based on the error message” Could not allocate a new page for database REPORTING' because of insufficient disk space in filegroup 'PRIMARY'. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting
    autogrowth on for existing files in the filegroup”, we can know that the issue is caused by the there is no sufficient disk space in filegroup 'PRIMARY' for the ‘REPORTING’ database.
    To fix this issue, we can add additional files to the filegroup by add a new file to the PRIMARY filegroup on Files page, or setting Autogrowth on for existing files in the filegroup to increase the necessary space.
    The following document about Add Data or Log Files to a Database is for your reference:
    http://msdn.microsoft.com/en-us/library/ms189253.aspx
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Issue while importing table from oracle to sql server using import and export wizard

    Hi All,
    I am trying to populate oracle table to sql server using import export wizard  and i am getting the below error.the table is allready present in the database but still it throwing error like table doesn't exists.
    Could not connect source component.
    Error 0xc0202009: Source - JOB_ACTION_HISTORY [1]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    Error 0xc02020e8: Source - JOB_ACTION_HISTORY [1]: Opening a rowset for ""FLXUSER"."JOB_ACTION_HISTORY"" failed. Check that the object exists in the database.
     (SQL Server Import and Export Wizard)
    Kindly help me out
    Thanks in advance

    Hi Snehasis,
    Please check whether the table name in the Oracle database has lower case letters. The table name should be exactly correct. 
    In addition, the issue might be related to the Oracle driver. What provider/driver do you use? If you use Microsoft OLE DB Provider for Oracle, you can try the
    Oracle OLE DB Provider. If you use Enterprise or Developer edition of SSIS 2008 or higher, you can also try the
    Microsoft Connectors for Oracle by Attunity. The  Oracle OLE DB Provider and Microsoft Connectors for Oracle are proved to have better performance.
    Regards,
    Mike Yin
    TechNet Community Support

  • When I use maps, and search directions using the public transport, it only gives me one option.. Why cant I decide to use the train or the bus? because on this occasion its not showing me to use the tube despite this being the obvious and quickest way?

    I am trying to get directions around london using the 'maps' on the homepage, however when I ask for the directions to use public transport it isn't using the london underground? why..?

    hello, this sounds like an issue with adware present on your pc. please perform all these steps:
    # [[Reset Firefox – easily fix most problems|reset firefox]] (this will keep your bookmarks and passwords)
    # afterwards go to the firefox menu ≡ > addons > extensions and in case there are still extensions listed there, disable them.
    # finally run a full scan of your system with different security tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] and [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner] to make sure that adware isn't present in other places of your system as well.
    [[Troubleshoot Firefox issues caused by malware]]

  • SQL server 2012 Import and Export Wizard missing Flat File Options

     When using either the 32 or 64 bit Import & Export wizard selecting   data source "flat file source" no options appear,  compared to excel import , sql or another data source ? tried uninstalling etc, build a VM 2008
    Server works fine options appear. Any sugguestions before I rebuild my laptop ?
    Stage that the Next button is optional, (usually greyed out)
    TITLE: SQL Server Import and Export Wizard
    The operation could not be completed.
    ADDITIONAL INFORMATION:
    The server name is not specified. (DTSWizard)
    BUTTONS:
    OK
    Microsoft.SqlServer.Management.UI.WizardFrameworkErrorSR 

    Hi mtech,
    When I open Import and Export Data(64-bit), I choose “flat file source”.
    Maybe you could try to reinstall it.
    If you have any feedback on our support, please click
    here.
    Thanks.
    Maggie Luo
    TechNet Community Support

  • Any example to import and export itab to function module

    hi all,
    as the table parameter in function module is obsolete, please advise an example on how to pass in an internal table
    and return back the result in an internal table as well.
    for example, i have itab1 and itab2. By using table parameters i got the following code. Please advise alternative way by using import and export.
    ""Local Interface:
    *"  TABLES
    *"      itab1 STRUCTURE  Zitab1
    *"      itab2 STRUCTURE  Zitab2
    loop at itab1 into wa_itab.
    **do some logic here to assign value to itab2 and return.
      wa_itab2-a = xxx .
      wa_itab2-b = xxx.
    append wa_itab2 to itab2.
    endloop.
    thank you.

    hi,
    suppose you have two structure name struc1 and struc2.
    create table type zitab1 & 2 for both.
    please do the following:
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(itab1) TYPE  Zitab1
    *"  EXPORTING
    *"     VALUE(itab2) TYPE  Zitab2
    you can avoid to use the obsolete table parameters as well as LIKE in function module creation.
    cheers

  • Import and export statements

    I am trying to use import and export statements in two different programs . The control from one program goes to another program with the function modules they have . I dont see the value while importing.
    export i_field1 to memory id 'bus_ind'
    import val1 to memory id 'bus_ind'
    i gave only the memory id as common name

    Please make sure that the variables used are the same name and defined exactly the same in both programs.
    export i_field1 = i_field1  to memory id 'BUS_IND'.
    import i_field1 = i_field1  to memory id 'BUS_IND'.
    Regards,
    Rich Heilman

  • Import and Export Vs. Tables in a Function module interface

    Hi,
    i need to import and export internal tables to/from a Function Module.
    Passing internal tables using import and export is good enough or do i need to use 'Tables' option. Please let me know the reasons if possible.
    thanks for your help.
    GK.

    you can use changing but you have declare a table type and use it in changing..
    however TABLES is declared aas oblselete in ECC version 6.0
    No Points Plz

  • Import and Export header in CAUFVD

    Hello all,
    Can anyone tell me How to use Import and Export header for CAUFVD in function exit EXIT_SAPLCOZV_001 as my requirement is to populate overhead key automatically at the time of po order release. Do i have to use any function module ?? If yes then what and how?? I am new for enhancements so dont have much idea.
    Thanks!!

    Hi bala,
    Thanks for your prompt reply. But can you please ellaborate where excatly i need to wirte this export parameter. My code looks like this:
    IF wa_caufvd-zschl EQ space.
      "Overhead Key
      SELECT matnr matkl FROM mara INTO CORRESPONDING FIELDS OF TABLE it_mara
      WHERE matnr = wa_caufvd-matnr.
      SELECT werks zschl
       FROM zppoverhead
       INTO CORRESPONDING FIELDS OF TABLE it_zppoverhead
       FOR ALL ENTRIES IN it_mara
       WHERE matkl = it_mara-matkl
       AND  werks = wa_caufvd-werks
       AND  auart = wa_caufvd-auart.
      IF sy-subrc EQ 0.
        wa_caufvd-zschl = wa_zppoverhead-zschl.
      ENDIF.
    ENDIF.
    "Process Order Release
    SELECT objid arbpl FROM crhd INTO CORRESPONDING FIELDS OF TABLE it_crhd
    WHERE objid = wa_caufvd-st_arbid.
    IF it_crhd IS NOT INITIAL.
      SELECT werks zsubplant FROM zplantmaster INTO CORRESPONDING FIELDS OF TABLE it_zplantmaster
      FOR ALL ENTRIES IN it_crhd
      WHERE p_resource = it_crhd-arbpl.
    ENDIF.
    IF sy-subrc EQ 0.
      wa_zpporders-zsubplant = wa_zplantmaster-zsubplant.
    ENDIF.
    As per my understanding i need to use export parameter for zschl, but how and where excatly.
    Please guide me.
    Thanks!!

  • Error message using SQL import and Export Wizard with Excel spread sheet

    I am trying to import an Excel spreadsheet using the Import export wizard that is provided with SQL 2014.  
    Everything seems to set up OK but then when I go to do the transfer "error message" comes up saying:
    External Table is not in the expected format.(Microsoft Jet Database Engine).   
    This is a spreadsheet and there is no database, that is why I want to import it into a database!!  So the reference to JET is a tad disappointing.
    So why the error and how do I fix the problem?
    As there are over 100 variables in the spread sheet rows, it would be great to have this automatically create the database and populate the fields.
    I am using SQL 2014  Express and Office Excel 2013.
    Thank you in  advance for taking the time to read this, and hopefully sheading some light on the issue.

    Hi AWlcurrent,
    When import a .xlsx file to SQL Server using SQL Server Import and Export Wizard, you see a “External Table is not in the expected format.(Microsoft Jet Database Engine).” error message. This error message seems that the Microsoft JET Database Engine is
    unable to handle something that is contained in the file.
    So please make sure there is no unsupported content in the Excel file. Alternatively, we can use ‘Microsoft Excel’ as the Data Source, then Select ‘Microsoft Excel 2007’ as the Excel version to import the excel file.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • I get this error when I go to imovie, I have instalerat on via appstore, but it does not work. The QuickTime components necessary to view, edit, import and export various types of films are not installed. The components included in the iMovie installer. R

    I get this error when I go to imovie, I have instalerat on via appstore, but it does not work.
    The QuickTime components necessary to view, edit, import and export varioustypes of films are not installed. The components included in the iMovie installer.Reinstalling iMovie.

    I get this error when I go to imovie, I have instalerat on via appstore, but it does not work.
    The QuickTime components necessary to view, edit, import and export varioustypes of films are not installed. The components included in the iMovie installer.Reinstalling iMovie.

  • Use of Import and Export script

    Hi,
    Can any one tel me what is the use of Import and Export script.
    After moving the pages from / into server what is the need of giving the import / export command.
    export /oracle/apps/ap/setup/webui/customizations/site/0/SetupPG -rootdir <destination path> -username <data base user name> -password <data base password> -dbconnection "(description = (address_list = (address = (community = tcp.world)(protocol = tcp)(host =<hostname> (port = <port id>)))(connect_data = (sid = <sid>)))".
    Thanks in Advance,
    Jegan

    And Export/Import is also used to move personalizations and substitutions from one system to another system.
    You can also use Functional administrator UI to export and import pages.
    Functional administrator in turn uses export/import internally.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • LR 5.6 keeps on crashing on even selecting adjustment brush and import and export, very flustrating considering i have just purchased a monthly contract, using both raw and jpeg files .

    LR 5.6 keeps on crashing on even selecting adjustment brush and import and export, very flustrating considering i have just purchased a monthly contract, using both raw and jpeg files .  please can anybody help , it runs incredibly slow too.

    LR 5.6 keeps on crashing on even selecting adjustment brush and import and export, very flustrating considering i have just purchased a monthly contract, using both raw and jpeg files .  please can anybody help , it runs incredibly slow too.

  • DRM/MDM Import and Export File types - Question

    Hi Guys,
    We have been implementing Hyperion DRM to our existing Oracle Environment for managing the company's sales data which comes from multiple data sources. In my experience and research, I feel DRM is an excellent tool but there are some questions I have in our mind. The following are the few questions that I\we have.
    a) How does the Import and Export of data functionality works in DRM? In this forum, I have found some one saying we can only import the data through flat files, in other words, "text file" with the delimiters [ ] seperated by comma. My question is, Is there any other possible way to import the data, Such as getting the data directly from the database tables? To get the data, Do we need to have any integration points or do we need to use SOAP APIs (& programming)?
    b) While we exporting the data, can we export it directly to the Oracle database tables? What are the integration points needed for this kind of export?
    c) Is there any sample guide or design document available for creating the hierarchy and nodes. I just want to know how the attributes that we have "is transformed" into the hierarchies and nodes in DRM? In the past, I used Essbase, which is integrated with DRM and that process was straight forward since we imported and exported data directly from DRM to Essbase.
    I would appreciate any suggestion offered to me regarding the questions posted above.
    Thanks in advance,
    Leo
    Edited by: user10201910 on Apr 1, 2009 4:58 PM
    Edited by: user10201910 on Apr 1, 2009 5:00 PM

    Hi,
    1.As per my knowledge the Import can be done using Flat files only,we can import the data from Oracle Tables once the structure is ready in DRM.
    2.We have an utility called Export to Table(in the last tab when you performing an Export along with Export to File), which requires the DB mapping to be done properly,
    Thanks!

  • Problem with Import and Export Data Wizard

    Downloaded and installed SQL Server Express 2008 R2 today because I want to explore how Access interacts with SQL Server (using my home computer). I'm using Access 2010 (under Windows 7), so the 2008 version of SQL Server Express seemed to be the version
    to use.
    After a couple of false starts, installation appeared to go okay. After the installation. My Start menu listed Microsoft SQL Server 2008 and Microsoft SQL Server 2008 R2. The latter listed Import and Export Data (64-bit). When I clicked that, the first Import
    and Export Data Wizard page was displayed. I wasn't ready at that time to explore the wizard, so I closed it. An hour or so later I again attempted to open the Import and Export Data wizard. This time, the wizard didn't open. Instead this error message was
    displayed: "The SSIS Runtime object could not be created. Verify that DTS.dll is available and registered."
    I found DTS.dll on my computer at C:\Program Files\Microsoft SQL Server\100\DTS\Binn, so the file is available, but don't know whether it is registered.
    How can I correct this problem?

    First can you please post all log file errors
    >> I can't really give you a solution or specific recommendation since I did not saw this error yet myself, but on your own risk you can try:
    1. You may try to just register 'dts.dll' using regsvr32.exe, but this error may indicate a bigger problem with setup.
    If you are running SQL Server 64bit then try running this at the command prompt: %windir%\syswow64\regsvr32 "%ProgramFiles(x86)%\Microsoft SQL Server\90\dts\binn\dts.dll"
    2. You can try reinstall from start (In this case you have to make sure that you un-install all)
    [Personal Site] [Blog] [Facebook]

Maybe you are looking for

  • How to use MAM30_011_CREATE BADI - IF_EX_ALM_ME_010_NOTIF~MAM30_CREATE ?

    Hi, I have an customer field "ZZEXT_XY" in the table "QMEL". When the user creates a new notification on mobile device the information for that customer field is saved in the notification syncBo as enhancement field for CE_NOTIF_HEADER (MAM30_010Item

  • IPhoto crash on openng

    i Photo (version 7.1.1) crashes on opening. Just Four days ago I did a clean install of the system software. I examined the disk with DiskWarrior 4 without change. I reinstalled the iPhoto, version 7.1.1 again without change. The console log app. has

  • Best Quality for .avi movies in iMovie HD?

    Hello: I recently had a number of old 8mm and Super8 movies converted to .avi files. The quality is pretty good and I want to create some DVD movies and I was want some suggestions on the best quality settings when exporting either to iDVD or Toast.

  • HP officejet 7500a

    Currently wireless connection of printer to MacPro OSX 10.6.8 and using HP loaded software notated for Mac OSX v 10.5 , v 10.6 Version 12. I wish to upgrade my Apple laptop to OSX Yosemite 10.10. The question is, will my current HP printer software s

  • Document management capability

    Does aqualogic 5.7 support document management features?