Import Export Code

Hai...
Can any one tell where to enter import export code in SAP

Hi,
In Material Master Foreign Trade Import and Foreign Trade export we have to maintain either HS code or IEC number depending on the requirement.
Regards,
Sharan

Similar Messages

  • Import/Export code using Memory ID in BO Method

    Hi experts,
    I am having a approver name and other relevant data in my report. I don't want to write the entire code I want to bring it into my BO method by using import/export memory id. Pl. guide me what should I do ? Is it possible or not?
    Thank you,
    Saquib

    I am a bit confused that what you are trying to achieve. In any case I think you can forget any export/import memory ID related solutions - they will not work!
    The workflow (or its step/task) is executing your BO method, right? You want this method to have some data when it gets executed? Normally you would want to populate the data to the workflow (or task) container, for example with function SAP_WAPI_WRITE_CONTAINER (you just need the work item ID). Then when this data is in the container, you can use it in your method (binding required).
    Somehow I feel that you looking a difficult solution for a simple problem. If you need some relevant data in your workflow, let the workflow to find it (add a new step to the workflow, and copy/paste the relevant part of the code of your report to this step). (Or try to give the data to the workflow already when it gets started, if possible). Don't try to mix things with some separate report, unless it is completely necessary, and if it is, then writing into the container is most likely the best approach.
    Regards,
    Karri

  • 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 & Export of Internal table

    Hello All,
    In my requirement I need to call the MB5B program RM07MLBD. I used the code like this.
    SUBMIT rm07mlbd AND RETURN
                WITH matnr   IN  so_matnr
                WITH werks   IN  so_werks
                WITH datum   IN  so_budat.
    Now from the RM07MLBD program I need the get the values of the table * g_t_totals_flat * to my zprogram.
    Is it possible to import & export the Internal table from one program to other.
    Regards,
    Anil.

    Hi,
    You can export the internal table ot memory id and can access the (Import) in the called program.
    Consider this small code from ABAPDOCU.
    DATA text1(10) TYPE c VALUE 'Exporting'.
    DATA: itab TYPE TABLE OF sbook,
          wa_itab LIKE LINE OF itab.
    DO 5 TIMES.
      wa_itab-bookid = 100 + sy-index.
      APPEND wa_itab TO itab.
    ENDDO.
    EXPORT text1
           text2 = 'Literal'
      TO MEMORY ID 'text'.
    EXPORT itab
      TO MEMORY ID 'table'.
    Regards
    Bikas

  • How to import/export in Pl/SQL ?

    Hello
    I want to write a procedure in PL/SQL which will be copying one user's schema to another.
    I have Oracle 9i on Windows 2000.
    My first idea was to use IMP EXP commands, but i need to execute this commands from PL/SQL procedure. How can I do this, except from writing Java procedure using Runtime class - I've done it, it works, but sometimes occure an critical error in Oracle Kernel, and I'm sure that Java code is ok.
    Or maybe there is much easier way to solve such a problem (PL/SQL interface for import/export or something)?
    Thanks for any hints.

    No, imp/exp are standalone utilities with no PL/SQL API. Java would be the way to do it.

  • Import/Export in Background submission

    Hi experts.,
    I am passing two internal tables to another program using Submit statement via Job. Then i am importing those two tables in another program. However i think the tables are not populated. What could be the reason for this. Also how can you debug the background job submission?
    Thanks.
    Warm regards,
    Harshad.

    Hi
    For tables , in your import export statement , just see have you used [ ] , if not the please use this.
    If does not work then as well , then see to use EXPORT TO datbase as follows
    EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key.
    Refer this link
    http://help.sap.com/saphelp_45b/helpdata/en/34/8e73a36df74873e10000009b38f9b8/content.htm
    b> after executing your program (first get the job name in debugging mode) , go to sp01 ,  check tyhe checkbox against your job name ,  just write JDBG (transaction code area) and press enter , it will take you in debudding your job. First it will execute some sap standard program , just get it done and then it will jump top your code.
    Hope it is helpful.
    Regards,
    Uma

  • ECC6 IMPORT/EXPORT to MEMORY ID 'OPENFI00002213E'

    Hi experts,
    I have a problem with IMPORT/EXPORT in ECC6 within the same program. The short dump happenned at IMPORT time. Here is part of my code.
    DATA: MEMID13(15) VALUE 'OPENFI00002213E',
              T_VBKPF  LIKE  VBKPF OCCURS 0 WITH HEADER LINE.
    EXPORT t_vbkpf TO MEMORY ID memid13.
    CALL TRANSACTION 'FV60'
         USING bdcdata
         OPTIONS FROM s_ctu_params
         MESSAGES INTO bdcmsgcoll.
    IMPORT t_vbkpf FROM MEMORY ID memid13.
    In 4.6C, the internal table t_vbkpf was updated with the created document from the transaction 'FV60' call but it gave a short dump in ECC6.
    Runtime Errors         CONNE_IMPORT_WRONG_STRUCTURE                  
    Except.                CX_SY_IMPORT_MISMATCH_ERROR                   
    Date and Time          2007.12.06 15:46:46                           
    Short text                                                          
         Error when importing object "T_VBKPF".                                                                               
    Please help, thanks!
    CHuong

    Hi,
    In ECC 6 for import from memory you need the import structure will be flat , character-type data
    The following is from documentation.
    +
    If MEMORY is specified, the data cluster that was written to the ABAP Memory under the identification specified in id with the statement EXPORT is imported. For id, a flat , character-type data object is expected. This object contains the identification of the data cluster.
    +
    otherwise use this way
    TYPES:
      BEGIN OF tab,
        col1 TYPE i,
        col2 TYPE i,
      END OF tab.
    DATA:
      wa_indx TYPE indx,
      wa_itab TYPE tab,
      cl      TYPE mandt VALUE '100',
      itab    TYPE STANDARD TABLE OF tab.
    IMPORT tab = itab
      FROM DATABASE indx(xy)
      TO   wa_indx
      CLIENT cl
      ID 'TABLE'.
    WRITE: wa_indx-aedat, wa_indx-usera, wa_indx-pgmid.
    ULINE.
    LOOP AT itab INTO wa_itab.
      WRITE: / wa_itab-col1, wa_itab-col2.
    ENDLOOP.

  • Import/Export wizard auto-generates all columns as DATE

    Hi
    I'm trying to use the Import/Export Wizard as I used to, as a handy tool to figure out what a series of T-SQL statements (in an SSIS package) is doing - or, if I'm lucky, what on earth the original dev
    intended them to do.
    Version: SQL 2014 64-bit running on Win 7 64-bit
    The code is pretty dreadful:
    SELECT DISTINCT on one set of column names,
    join this set to another table but not on exactly the same set of column names,
    embedded (SELECT MAX(bla) FROM SameTable WHERE [match to outer set on another set of columns] GROUP BY [hey, yet another set of columns!]) inside the SELECT column list...
    and it all goes to a nasty #Tmp, which is then abused with further bad code further down.
    Imp/Exp is always handy to quickly get the intermediate results into an auto-created real table, so I can figure out exactly what the effect of this is.  I use it to export from the database back to the same database, but to a persisted table.
    This time (first time with SQL2014) it's not working.  The source is "write a query" (paste the actual query).  The destination I set to a new table.  The auto-generation of the new table creates every column as type
    date.  Not surprisingly, this doesn't work, as the original data is mostly not of
    date time.
    Looks like a bug.  Any idea of a workaround or fix?
    thanks!

    Sorry, but I think you're still not getting what I'm saying.
    This is not a production SSIS package design, but a quick'n'nasty diagnosis technique I'm used to using:
    - Find some SQL in an existing query/script that I'm trying to debug
    - Paste it into Import/Export wizard as a source
    - Wizard creates a new table for the result - I then have the results persisted for examination, comparison with the results from refactored code, etc.
    And I can't even put suitable CAST/CONVERT statements in, because the wizard is mis-identifying the
    input column data types, with no way to change them.   It's somehow thinking that every column in the input (the SQL query) is of type
    date(500), when the columns are obviously not of this type.

  • Import/export internal tabl

    Hi,
    This is regarding import/export internal table to 2 different prog, somehow when i execute in prog ztest_hl7, it doesnt work. Please help.
    report ztest_hl7.
    TYPES:
    BEGIN OF tab_type,
    para TYPE string,
    dobj TYPE string,
    END OF tab_type.
    DATA:
    id TYPE c LENGTH 10 VALUE 'TEXTS',
    text1 TYPE string VALUE `IKE`,
    text2 TYPE string VALUE `TINA`,
    line TYPE tab_type,
    itab TYPE STANDARD TABLE OF tab_type.
    line-para = 'P1'.
    line-dobj = 'TEXT1'.
    APPEND line TO itab.
    line-para = 'P2'.
    line-dobj = 'TEXT2'.
    APPEND line TO itab.
    EXPORT itab TO MEMORY ID id.
    submit ztest_hl6 and return.
    report ztest_hl6.
    data : id TYPE c LENGTH 10 VALUE 'TEXTS'.
    TYPES:
    BEGIN OF tab_type,
    para TYPE string,
    dobj TYPE string,
    END OF tab_type.
    DATA: itab TYPE STANDARD TABLE OF tab_type,
         wa_itab type tab_type.
    IMPORT itab FROM MEMORY ID id.
    loop at itab into wa_itab.
    write:
    wa_itab-para,
    wa_itab-dobj.
    endloop.
    Edited by: Hui Leng Yeoh on Jun 26, 2008 11:25 AM

    Hi There are few syntax errors. Comment ur code and Paste this code and check. It is working fine.
    report ztest_hl7.
    TYPES:
    BEGIN OF tab_type,
    para TYPE string,
    dobj TYPE string,
    END OF tab_type.
    DATA:
    id(10) TYPE c VALUE 'TEXTS',
    text1 TYPE string, " VALUE `IKE`,
    text2 TYPE string, " VALUE `TINA`,
    line TYPE tab_type,
    itab TYPE STANDARD TABLE OF tab_type.
    text1 = 'IKE'.
    text2 = 'TINA'.
    line-para = 'P1'.
    line-dobj = 'TEXT1'.
    APPEND line TO itab.
    line-para = 'P2'.
    line-dobj = 'TEXT2'.
    APPEND line TO itab.
    EXPORT itab TO MEMORY ID id.
    SUBMIT z7569411 AND RETURN.
    data : id(10) TYPE c VALUE 'TEXTS'.
    TYPES:
    BEGIN OF tab_type,
    para TYPE string,
    dobj TYPE string,
    END OF tab_type.
    DATA: itab TYPE STANDARD TABLE OF tab_type,
    wa_itab type tab_type.
    IMPORT itab FROM MEMORY ID id.
    loop at itab into wa_itab.
    write:
    wa_itab-para,
    wa_itab-dobj.
    endloop.
    Thanks,
    vinod.

  • Import/Export Portal Content between EP6 6.20 and 6.40

    Hi there,
    We are about to setup a second portal in Europe on 6.40, while the US portal will still be a EP6 SP2 on 6.20 for some time.
    I was wondering about the possibilities to share portal content between those 2 installations, especially iViews and pages (not using remote iViews). As long as the name of the related PAR files (code link) are the same, this should work.
    On the other hand, iViews and pages will have a different set of parameters like "Allow Client-Side Caching" or "Use API of Tray" based on different portal versions. What will happend when importing/exporting these objects from 6.20 to 6.40 or the other way around?
    Thanks,
    Florian

    Ivo, thank you for your reply.
    But I think mapping ports doesn't solve our problem.
    WAS 6.20:
    Just the context path will be send in the header field 'location' to the browser (located in the internet).
    In case of a redirect the browser mixes the server name of the sender (the reverse proxy) and the context path and sends the request to the reverse proxy. The reverse proxy forwards the request to the WAS 6.20 intranet server.
    WAS 6.40:
    The header field 'location' contains now the whole URL (with the server name of the WAS 6.40 system, which is only accessible from our intranet).
    In case of a redirect the browser takes the content of the header field 'location' and sends the request to the not accessible WAS 6.40 intranet server. Of course that doesn't work.
    So it it depends on the content of the header field 'location'.
    What can we do in WAS 6.40, so that the header field 'location' contains only the context path as it has done in WAS 6.20?
    Regards,
    Uwe

  • Import/Export between different Portal versions

    Hi, is there any resonable argument for not allowing imp/exp between different version? The thing is a developed a Page Group on a 9i AS and now need to export it to a 10g AS. It reasonable to think that an imp/exp machanism should exist, at least, for the latest version.

    Hi there,
    Yes, there is a reasonable argument for that and that is that the export code will be different from the import code. This means that alterations to the code in order to be more flexible or to even fix an issue, for example, on the export won't be in-place. Now when you'll try to import with the different code this certainly will clash your system (as the problem may already be within the DMP file that you've exported).
    Although your request does make sense the implementation part is not that easy to be done.
    I hope it helps you to better understand the constraints...
    Cheers,
    Pedro.

  • Unexpected Quits in multiple applications at Save or Import/Export window

    Hello,
    For several months I have Apple and Adobe applications as well as Firefox, randomly quit when bringing up the Save, or Import/Export window. (I have copies of the error logs.)
    I thought I had it fixed since I haven't had any issues for some time after running Disk Utility and Onyx. But, I posted the same issue a couple of months ago and the solution (at the time) was to keep the desktop clean (see "Crashing at Save" by katorama) . So, after I cleaned up my desktop and only had two aliases to my folders I needed, all went very well until now.
    However, what didn't help is that yesterday we had three power outages and my iMac did an auto-restart after each. Since then, the problem returned and nothing seems to fix it.
    I feel like this issue is haunting me! I was a tech for many years and normally can fix the issue. But, I can't seem to figure out the reason behind these crazy unexpected quits. Seems I've run out of tools in my toolbag.
    TROUBLESHOOTING ATTEMPTS:
    – I have run Disk Utility to verify and repair disk and Onyx to clean out caches. After this, it seems to run fine, then a different application will have the same problem.
    – When I create a new user account, there is no response when I double click the hard drive (it does not open) and when testing an application for the quit issue, it happens again.
    – Also, when I restart into Safe Boot the problem appears to stop initially, but can appear intermittently again.
    I suspect it may be a RAM or even a Quartz issue? But, honestly, I have no idea. 
    < h   e   l   p   ! >
    Any suggestions welcome!
    thanks!
    –kat
    10.6.8
    3.06 GHz Intel Core 2 Duo
    4GB 800 MHz DDR2 SDRAM
    Format: Mac OS Extended (Journaled)
    Capacity: 749.81 GB
    Available: 592.7 GB
    Used: 157.11 GB on disk (157,110,349,824 bytes)
    Here is a bit of the log:
    ================================
    Process:         Safari [508]
    Path:            /Applications/Safari.app/Contents/MacOS/Safari
    Identifier:      com.apple.Safari
    Version:         5.1.1 (6534.51.22)
    Build Info:      WebBrowser-75345122~2
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [91]
    Date/Time:       2011-10-27 15:48:07.784 -0600
    OS Version:      Mac OS X 10.6.8 (10K549)
    Report Version:  6
    Interval Since Last Report:          -470736 sec
    Crashes Since Last Report:           42
    Per-App Interval Since Last Report:  1761 sec
    Per-App Crashes Since Last Report:   1
    Anonymous UUID:                      0D81673F-96B5-47DD-B1D9-54E5137F2176
    Exception Type:  EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Application Specific Information:
    *** error for object 0x10aabe408: incorrect checksum for freed object - object was probably modified after being freed.
    ================================

    Hi.
    This is about a question you posted to the Firefox Support forum three months ago (I'm sorry you never got an answer).
    Did you ever fix the problem where Firefox freezes or hangs, when clicking a download link or using (File menu) "save as" or "open file"? Or when going to the Firefox (Tools) menu and clicking Options ? Or trying to Import or Export bookmarks?
    I found this thread searching for a solution for someone on MozillaZine's support forum who's having a similar issue. See this thread: (maybe something he's tried that didn't work for him will work for you?)
    http://forums.mozillazine.org/viewtopic.php?f=38&t=2382953&start=15
    <br>Cannot download or click tools -> options

  • How to Import/Export database tables from one server to other in oracle8i

    Hello friend,
    Please can any one tell me how to import/export groups of database tables from one server with oracle to another using VB.net. It would be nice if some one can provide some code of it.
    I am a software developer and I am in middle of a large project development, in which I need to export a large oracle database from one server to another efficiently.
    Its very urgent so please someone help me.

    At command prompt (source db)
    set ORACLE_SID=db_name
    exp system/password@db_name full=y buffer=104857600 file=(c:\file1.dmp, c:\file2.dmp....) log=c:\exp.log filesize=2000M
    Then ftp the export dump files (in binary) to the other server or copy to target server over the network.
    At command prompt (target db)
    set ORACLE_SID=db_name
    imp system/password@db_name full=y ignore=y buffer=104857600 file=(c:\file1.dmp, c:\file2.dmp....) log=c:\imp.log filesize=2000M
    If the path names of the datafiles are going to be different in the target server (as compared to the source), then precreate the tablespaces before import. Set buffer value accordingly.
    Message was edited by:
    FeNiCrC_Neil

  • SQL Exoress 2008 import export Wizard wont import Access 2003 mdb to SQL 2008 DB

    Just installed SQL Express with Tools, including SSME and Import Export Wizard.
    Attempted to transfer Access 2003 DB tables from an mdb file to a SQL 2008 Express DB.
    I can view the data in the tables in Access, however, when I tell it to  do the deed, it begins the process and then errors out with a Error 0xc020801c:
    "TITLE: SQL Server Import and Export Wizard
    Could not connect source component.
    Error 0xc020801c: Source - ParentingStats [1]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "SourceConnectionOLEDB" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    ADDITIONAL INFORMATION:
    Exception from HRESULT: 0xC020801C (Microsoft.SqlServer.DTSPipelineWrap)"
    I am unable to find anything that translates this into something mere mortals can deal with.  This is repeatable.
    Steps in the wizard:
    1.  Source: Data Source selected is "Microsoft Access".  The filename is correct.  The username is correct.  The password is blank (there is no password in the Access db).  Clicking on the "Advanced..." button, I get the opportunity to "Test Connection".  I test the connection and the test is successful.
    2.  Destination: I select my server name and the SQL Native Client, select Windows Authentication, and Select my SQL 2008 Express db from the dropdown list.
    3.  Specify Tabloe Copy or Query: I select Table copy
    4.  Select Table or Views: I check the tables I want to copy and successfully preview the data in each table that I checked.  I click on "Edit Mappings ..." and verify that I want to create a new table for each checked table.
    5.  Run package: I accept the pre-checked "Run Immediately" and click the NEXT button
    6.  I get the following:
    "Source Location : C:\Users\wb5rvz\Documents\StatisticsApp_V3_69.mdb
    Source Provider : Microsoft.Jet.OLEDB.4.0
    Destination Location : SHACK_PC\SQLEXPRESS
    Destination Provider : SQLNCLI
    Copy rows from `ParentingStats` to [dbo].[ParentingStats]
    The new target table will be created.
    Copy rows from `Statistics` to [dbo].[Statistics]
    The new target table will be created.
    Copy rows from `StatsSummary` to [dbo].[StatsSummary]
    The new target table will be created.
    Copy rows from `Volunteers_Confidential` to [dbo].[Volunteers_Confidential]
    The new target table will be created.
    Copy rows from `YearMonthTbl` to [dbo].[YearMonthTbl]
    The new target table will be created.
    The package will not be saved.
    The package will be run immediately.
    Provider mapping file : c:\Program Files\Microsoft SQL Server\100\DTS\MappingFiles\JetToMSSql9.xml"
    7.  I click the FINISH button and I get
    "Initializing Data Tasks .... Success"
    "Initializing Connections ...Success"
    "Setting SQL Commend ....20% Compoete"
    "Setting Source Connection ...Error (and an error link)"
    (All following tasks were "Stopped"
    Error detail is:
    ===================================
    Could not connect source component.
    Error 0xc020801c: Source - ParentingStats [1]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "SourceConnectionOLEDB" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
     (SQL Server Import and Export Wizard)
    ===================================
    Exception from HRESULT: 0xC020801C (Microsoft.SqlServer.DTSPipelineWrap)
    Program Location:
       at Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass.AcquireConnections(Object pTransaction)
       at Microsoft.SqlServer.Dts.DtsWizard.Execute.SetSourceConnection(Exception& ex, TransformInfo ti)
    OS is Vista Home Premium SP1 (32 bit)
    Processor = Intel core 2 duo E7200 @ 2.5 GHz
    SQL Server Software was just downloaded yesterday, so it is whatever is current on the download site:
    SQL Express with Tools
    So, how do I get this transform to work?  I do not have nor do I want/afford to put Access 2003 on this machine.
    Thanks
    RRR

    I had this similar problem - 32-bit SQL Server 2005 trying to import tables from Access 2000 .mdb file, same error:
    Error 0xc020801c: Source - ParentingStats [1]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "SourceConnectionOLEDB" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
     (SQL Server Import and Export Wizard)
    ===================================
    Exception from HRESULT: 0xC020801C (Microsoft.SqlServer.DTSPipelineWrap)
    I know you said you clicked "Advanced..." and Test Connection when you chose your Access database - but that is what resolved the error for me.  I chose my .mdb file, username is admin, password is blank, but if I don't click the Advanced button and test the connection before continuing on, the import fails with above error message.  Go figure, since the username/blank password is correct. 
    FWIW, sorry if that doesn't help you though.

  • Is import & export working in ECC version?

    i had one program. In which Export and Import is not working
    properly in ECC 6.0 version where as 4.6C working fine.
    If i commented the Import & Export than only it is working fine. Is there any other procedure OR how to use
    import and export in ECC version. Please advise me it is very
    urgent.
    Edited by: jagan ravula on Jan 29, 2008 8:00 AM

    Hi,
    To import from txt, look this:
    REPORT ZTXTTOTABLE .
    DATA: p_file TYPE string value 'C:\teste.txt',
    BEGIN OF TI_table OCCURS 0,
    COD(5) TYPE C,
    NAME(40),
    END OF TI_table,
    a(2).
    PARAMETERS: sel_file(128) TYPE c
    default 'C:\teste.txt' OBLIGATORY LOWER CASE.
    p_file = sel_file.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = p_file
    TABLES
    data_tab = ti_table[].
    format color COL_TOTAL INTENSIFIED ON.
    loop at ti_table.
    write: / sy-vline, ti_table-cod, at 10 sy-vline, ti_table-name,
    at 60 sy-vline.
    endloop.
    write: / sy-uline(60).
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_file.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    def_filename = ''
    def_path = 'C:\'
    mask = ',Documentos de texto (*.txt), *.txt.'
    mode = ''
    IMPORTING
    filename = p_file
    EXCEPTIONS
    inv_winsys = 1
    no_batch = 2
    selection_cancel = 3
    selection_error = 4
    OTHERS = 5.
    find '.txt' IN p_file.
    if sy-subrc 0.
    concatenate p_file '.txt' into sel_file.
    else.
    sel_file = p_file.
    endif.
    top-of-page.
    format color COL_HEADING INTENSIFIED ON.
    uline (60).
    write: / sy-vline, 'COD', at 10 sy-vline, 'NAME', at 60 sy-vline.
    write: / sy-uline(60).
    to export to txt try it:
    *& Report ZTABLETOTXT *
    REPORT ZTABLETOTXT .
    TABLES: spfli.
    DATA: ti_spfli LIKE STANDARD TABLE OF spfli WITH HEADER LINE,
    p_file TYPE string value 'C:\spfli.txt'.
    PARAMETERS: sel_file(128) TYPE c
    default 'C:\spfli.txt' OBLIGATORY LOWER CASE.
    SELECT * FROM spfli INTO TABLE ti_spfli.
    p_file = sel_file.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    FILENAME = p_file
    TABLES
    DATA_TAB = ti_spfli[].
    IF SY-SUBRC = 0.
    MESSAGE I398(00) WITH 'Arquivo criado com sucesso!'.
    else.
    MESSAGE E398(00) WITH 'Ocorreu um erro!'.
    ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_file.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    def_filename = ''
    def_path = 'C:\'
    mask = ',Documentos de texto (*.txt), *.txt.'
    mode = ''
    IMPORTING
    filename = p_file
    EXCEPTIONS
    inv_winsys = 1
    no_batch = 2
    selection_cancel = 3
    selection_error = 4
    OTHERS = 5.
    find '.txt' IN p_file.
    if sy-subrc 0.
    concatenate p_file '.txt' into sel_file.
    else.
    sel_file = p_file.
    endif.
    go through these links
    exporting internal table to memory variable
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/export01.htm
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

Maybe you are looking for

  • Intel iMac not starting...please HELP!!!

    Hey all, Well I just arrived to my new dorm room in college with my one week old iMac and I'm encountering some serious problems.... I plugged the computer in while it was on my desk, with other hardware attached into a surge protector and it worked

  • Workflow for Delivery from Sales Order Creation

    Hi All, I am new to SAP workflow.  There is a requirement to create a delivery through VL04 (in background) based on the Shipping Point of the approved Sales Order.  How can this be done?  I am assuming that I should be using BUS2032 for the Sales Or

  • How to use Webservice in Webdynpro ABAP?

    I tried searching option for importing WSDL file in WebDynpro ABAP. But I am unable to upload it in my component. In service call wizard I can see only one option i.e. to import Function module. We cant use Webservice in ABAP webdynpro? Thanks Nitesh

  • ISE Time Management for Sponsor Portal User

    Hi all, I'm currently using ISE version 1.2 and when I create a custom time management for each user, the rule applied to each user is only applied for a maximum 10 days eventhough I configured it for ex.30 days. want to check with all of you if anyo

  • How to add silver front panel theme for labview 2010

    how to add silver front panel theme for labview 2010