Import export in same program

i have a counter when i call  the prog again the counter is claer.
how i can i m make export import to get the old data.

Not exactly sure of your requirement, but just before the SET statement, you are adding to  ZLIN, is this correct?  Shouldn't you be changing ZLIN_TAB?
zlin = zlin + 1.
SET parameter id 'ZCOUNT' field zlin_tab.
Also,  these statements.  when you describe you are filling ZLIN_TAB and when doing the GET, if there is not value in memory, then it will fill ZLIN_TAB with nothing and hence clear it out.
DESCRIBE TABLE itab LINES zlin_tab.
GET parameter id 'ZCOUNT' field zlin_tab.
Regards,
RIch Heilman

Similar Messages

  • Import/Export. in Other program

    Hi All,
    I would like to export a internal table in MV45AFZZ program and import it in transfer Order creating user-exit, EXIT_SAPML03T_003 in Include ZXLTOU14..
    Can you please help me, if this is possible.
    Thank you.
    Anu.

    If user is in same context, can export to / import from memory id (ABAP memory) or set PID (SAP memory).  Otherwise, check out SHMA, SHMM (Shared Memory) if always on same server (but propagate tool also available in SHMM), or use INDX-like table with export/import using your own INDX-like db table.  See table INDX for model and there is documentation on how-to for all these methods that can be found via search.

  • Regarding import, export, and report programs in biw

    Hi to all,
    This is kittu, i want to know what type of abap code will be written on import programs, export programs, and report programs in biw and if we need to make any changes
    what type of changes can we make.
    waiting for reply from u all guys.
    bye.

    Dear Ashish Patel,
    As far as I know, you can only expose a decision table as a web-service which is created inside a Reusable Ruleset. And RulesManager application only allows editing of Rulesets and Flow Rulesets but Reusable Ruleset is not editable in RulesManager. And hence, you will not be able to edit/export/import the decision table in the Reusable Ruleset.
    Hope this answers your question.
    Thanks and Regards,
    Santosh Giri

  • Export & Import in the same DataBase

    Hi,
    I'm trying to export and import in the same DataBase but in different User/Tablespace, the imp procces create the objects in the same Tablespace of the export. What can I do to create a copy of a schema in the same database?
    Thanks. JEA

    I am not sure if I am reading your question correctly, Create a new user in your database.
    Use the command line (DOS) command 'exp80 username/password@hoststring'
    there are a number of parameters here, you can find their meanings online if you search for 'export ORACLE command line parameters', I don't know what your requirements are but you have to set the FILE parameter with the name of the file you wish to store your output in(ext should be .dmp).
    To import, use imp80 and log on as the new user you created then the following parameters need to be set:
    File= your file name
    SHOW = n
    IGNORE = n
    GRANTS = y
    ROWS = y
    FROMUSER = old user name
    TOUSER = new user name
    TABLES = *
    I hope this helps.
    SE

  • Problem Exporting / Importing print forms with program RSTXSCRP

    Hi!
    there is problem Exporting / Importing print forms with program RSTXSCRP.
    when I transfer print form from one SAP system to other, logo image and some text is missing... what could be the reason?
    Maybe there is other way to transfer print forms between SAP systems without using program RSTXSCRP?
    Will reward,
    Mindaugas

    Hi,
    when you transfer print forms from one sap system to another, logos are not transfered automatically. these are actually .bmp files which need to be existing in every client. then only when you run your print program logo can be seen in your print output. hence logos need to be created explicitly in every client where you want to run your print program.
    thanks,
    sksingh

  • SLD - import and Export through Java Program

    Hi Exports,
    Can you please guide how we can do SLD import and export through java program? additionally wanted to export Landscape(technical system,Landscape,business system),software catalog(products,s/w components),Development(Name Reservation)
    Note: Manually we are doing through  http://<server host>:<port>/sld and navigate into administration-->import and Export
    Regards,
    Manivannan P

    closed

  • Import/export not working as expected

    Following is my code.
    REPORT  Z_DEX_SS_CUSTOMER_CREATE.
    tables:zcustomer,ztransform.
    data:itab_bapiname like ztransform occurs 10 with header line.
    data:gs_return like bapireturn1,
         gs_customerno like bapikna103-customer,
         gs_bapikna101_1 like table of bapikna101_1 with header line,
         gs_bapikna101_1_gwa like bapikna101_1,
         gs_bapikna105 like table of bapikna105 with header line,
         gs_bapikna105_gwa like bapikna105,
         gs_bapikna106 like table of bapikna106 with header line,
         gs_bapikna106_gwa like bapikna106,
         gs_bapikna102 like table of bapikna102 with header line,
         gs_bapikna102_gwa like bapikna102.
    data:offset_data(10) value 0.
    *Dynamic program table definition
    data: begin of dyntabl occurs 10,
          line(200),
          end of dyntabl.
    data:dynlength(3).
    Temporary spec table
    data:begin of spec_initial occurs 10,
         row(150),
         end of spec_initial.
    Specification table decleration
    data:begin of spec occurs 10,
         fieldname(20),
         field_type(20),
         field_length(20),
         field_offset(20),
         sap_fieldname(30),
         end of spec.
    data:cust_bapiname(30).
    *Temporary item data table decleration
    data:begin of temp_data_table occurs 10,
         line(3000),
         end of temp_data_table.
    *Final item data table decleration
    data:data_table like zcustomer occurs 10 with header line.
    call function 'UPLOAD'
        exporting
        filename = 'D:\SAPSWITCH\Customer files\custspec1.TXT'
        filetype = 'ASC'
       HAS_FIELD_SEPARATOR = ' '
       HEADER_LENGTH = 0
        tables
        data_tab = spec_initial
        exceptions
        file_open_error               = 2.
    loop at spec_initial.
         split spec_initial-row at ' ' into spec-fieldname spec-field_type spec-field_length spec-field_offset spec-sap_fieldname.
         append spec.
        insert into zspec_CUSTOMER values spec.
         endloop.
    *Uploading the  Data File.
         call function 'UPLOAD'
         exporting
        filename =  'D:\SAPSWITCH\Customer files\customerdata.TXT'
        filetype = 'ASC'
       HAS_FIELD_SEPARATOR = ' '
       HEADER_LENGTH = 0
        tables
        data_tab = temp_data_table
        exceptions
        file_open_error               = 2.
      Transfering values from the item data flat file to the internal table
        delete from zcustomer.
        loop at temp_data_table.
        loop at spec.
        data_tableoffset_data = temp_data_tablespec-field_offset(spec-field_length).
        offset_data = offset_data + 40.
        endloop.
        append data_table.
        insert into zcustomer values data_table.
        offset_data = 0.
        endloop.
        select * from ztransform into table itab_bapiname.
    *Moving values to the Bapi fields dynamically
    dyntabl-line = 'program zdynpro.'. append dyntabl.
    dyntabl-line = 'tables:zcustomer.'.append dyntabl.
    dyntabl-line = 'Data:itab_data like zcustomer occurs 10 with header line.'.append dyntabl.
    dyntabl-line = 'Data:gs_bapikna101_1 like table of bapikna101_1 with header line,'.append dyntabl.
    dyntabl-line = 'gs_bapikna105 like table of bapikna105 with header line,'.append dyntabl.
    dyntabl-line = 'gs_bapikna106 like table of bapikna106 with header line,'.append dyntabl.
    dyntabl-line = 'gs_bapikna102 like table of bapikna102 with header line,'.append dyntabl.
    dyntabl-line = 'offset_data(10) value 0.'.append dyntabl.
    dyntabl-line = 'select * from zcustomer into table itab_data.'.append dyntabl.
    dyntabl-line = 'LOOP AT ITAB_data.'.append dyntabl.
    loop at spec.
    loop at itab_bapiname where sap_field = spec-sap_fieldname.
    cust_bapiname = itab_bapiname-bapi_field.
    endloop.
    dyntabl-line = cust_bapiname.
    dynlength = strlen( dyntabl-line ).
    dynlength = dynlength + 1.
    dyntabl-line+dynlength = '='.
    dynlength = dynlength + 2.
    dyntabl-linedynlength = 'itab_dataoffset_data(40).'.
    *dynlength = strlen( dyntabl-line ).
    *dyntabl-line+dynlength = '.'.
    append dyntabl.
    dyntabl-line = 'offset_data = offset_data + 40.'.append dyntabl.
    endloop.
    dyntabl-line = 'offset_data = 0.'.
    dyntabl-line = 'append gs_bapikna105. append gs_bapikna106. append gs_bapikna102.'.append dyntabl.
    dyntabl-line = 'endloop.'.append dyntabl.
    dyntabl-line = 'export gs_bapikna101_1 gs_bapikna105 gs_bapikna106 gs_bapikna102 TO MEMORY ID ''DEX''.'.append dyntabl.
    insert report 'zdynpro' from dyntabl.
    submit zdynpro and return.
    *LOOP AT DYNTABL.
    WRITE DYNTABL.
    ENDLOOP.
    import gs_bapikna101_1 gs_bapikna105 gs_bapikna106 gs_bapikna102 from MEMORY ID 'DEX'.
    loop at gs_bapikna101_1 from 1 to 1 into gs_bapikna101_1_gwa.
    endloop.
    loop at gs_bapikna105 from 1 to 1 into gs_bapikna105_gwa.
    endloop.
    loop at gs_bapikna102 from 1 to 1 into gs_bapikna102_gwa.
    endloop.
    The section under consideration ive made bold and italised it.
    Im calling another program dynamically and in that program im exporting some date to the sap memory.However when i import it from my program im unable to view the values. Why is that?

    Hi Friend,
    Below is an example for successfully using IMPORT and EXPORT:
    IMPORT ws_samepo TO loc_x FROM MEMORY ID 'SAMEPO'.*
    EXPORT ws_samepo = loc_x TO MEMORY ID 'SAMEPO'.
    Pleaes use same variable name for IMPORT and EXPORT.
    Hope it will help you.
    Regards
    Krishnendu

  • Create spool in a program and read spool in same program

    hi all,
    i have a requirement like i have to create a spool in a program and should read that spool and send a email in same program.
    i m done with creating spool and sending email but the problem is when i execute a program the spool is created only after total program execution, is there a way to create a compleate spool before finishing the report execution.
    thanks,

    Solution:
    call function 'GET_PRINT_PARAMETERS'
          exporting
            destination    = 'LP01'
            copies         = count
            list_name      = 'ZTEST'
            list_text      = 'ZTESTSPOOL'
            immediately    = ' '
            release        = 'X'
            new_list_id    = 'X'
            expiration     = days
            line_size      = 90
            line_count     = 65
            layout         = 'X_PAPER'
            sap_cover_page = 'X'
            receiver       = 'SAP*'
            department     = 'System'
            no_dialog      = 'X'
          importing
            out_parameters = params
            valid          = valid.
        new-page print on parameters params no dialog.
    write : hi this is the test for spool.
    new-page print off.
        commit work.
    write : / sy-spono.   "system variable for spool no
    solved thanks
    anupama.

  • Regarding creation of multiple jobs calling same program

    Hai anand,
    To improve the performance of the report, i think i want to make a try of your new strategy.
    Could you pls give me oultine code of how to create each job for each P_monat by calling
    same program multiple times.
    by the by i have two points to confirm with this.
    1-if we call same program at a time using different job wont it gets data confused with data manipulation
      inside the internal table?
    2-you want me to call each job simultaneously or one after another?
    ambichan.

    hey guys,
    Thanks for your reply.
    As my next step tried to do like this. but leads to short dump. could you pls guide me in submit decleration.
    SELECT-OPTIONS: S_BUKRS FOR T001-BUKRS MEMORY ID BUK OBLIGATORY .
    PARAMETERS: P_GJAHR LIKE BSIS-GJAHR OBLIGATORY,   " FISCAL YEAR
                P_MONAT LIKE BSIS-MONAT OBLIGATORY,  " Current period
                P_BUKRS LIKE T001-BUKRS OBLIGATORY.   " COMPANY CODE
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(33) TEXT-002 FOR FIELD P_TOTAL.
    PARAMETERS: P_TOTAL AS CHECKBOX .
    SELECTION-SCREEN END OF LINE.
    Start-of-selection.
    jobname = 'ZUSRTEST'.
    call function 'GET_PRINT_PARAMETERS'
      exporting
        no_dialog = 'X'
      importing
       valid = l_valid
       out_parameter = ls_params.
    CALL FUNCTION 'JOB_OPEN'
         EXPORTING
              JOBNAME          = jobname
        IMPORTING
             JOBCOUNT         = jobcount
         EXCEPTIONS
              CANT_CREATE_JOB  = 1
              INVALID_JOB_DATA = 2
              JOBNAME_MISSING  = 3
              OTHERS           = 4.
    if sy-subrc ne 0.
    endif.
    lets assume that my prod system has 6 background work process.
    Here if i input p_monat is 6months then 6 jobs will be created right
    and job p_monat will be as index for jobs job1,job2 job3..job6 etc.
    *job p_monat will be my job names right.
    *I am trying to pass parameter also from main program to calling program
    *but it leads to shortdump error why.
    could you pls help me if my way of declaration in submit can be done or not.
    wk_monat = 01.
    do wk_monat times.
    <b>submit zfipr_vat_report_p1 with s_bukrs = s_bukrs
                               with p_gjahr = p_gjahr
                               with p_monat = wk_monat
                               with p_bukrs = p_bukrs
                               with p_total = p_total
                            via job p_monat
                            number jobcount
             to sap-spool without spool dynpro
               spool parameters ls_params and return.</b>
    wk_monat = wk_monat + 1.
    if wk_monat = p_monat.
    exit.
    endif.
    enddo.
    sdate = sy-datum.
    stime = sy-uzeit + 30.
    CALL FUNCTION 'JOB_CLOSE'
         EXPORTING
            EVENT_PERIODIC              = ' '
              JOBCOUNT                    = jobcount
              JOBNAME                     = jobname
             STRTIMMED                   = 'X'
    Note:
    Also when i execute the main program in background i could not see jobs declared in SM37. i was expecting jobnames job1,job2 till job 6.
    ambichan.

  • 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

  • ABAP command IMPORT/EXPORT

    Hi!
    I would like to know whats the replacement for the IMPORT and export commands used in 4.7c  in ECC6. Can anyone tell me whats the replacement commands for import and export command that is used in abap/4 4.7c for ECC6.
    Thanks

    Hi Aarav,
    there is nothing like replacement for import/export.there is another statements to transferdata which are Set/Get.
    when you are working with sap you have sessions.so in between session if you want to transfer data then you will use set/get parameters.import/export are used within the session.means you opened se38 and written a program and then go back to se38 initial screen and entered another program name and in that program you want the data which is in the previous program you have written in the se38 in same session.
    reward points if helpful.

  • Application import/export failing, hopefully a simple one though

    hi all,
    i'm very new to oracle and am trying to get going with xe. i'm working between work and home and want to be able to transport wherever i'm at to work/home - so i thought the application import/export function would be the best way? first of all, is it?
    if so - i keep getting the
    failed to parse SQL query:
    ORA-00942: table or view does not exist
    error
    i'm running the same versions of oracle, on the same platforms (Application Express 2.1.0.00.39, winXPpro all service packed up). both my users have dba roles and the apps work fine on the machines i created them on. the import and install processes claim to be successful and the error only comes up when i try to log in to the application. any ideas?
    btw - the apps are just simple tests, dependences etc with a couple rows in each table]
    any help be much appreciated even if its "go read this!" as i've googled away & got not much....
    cheers!

    Your problem is likely that in your office you do not have the tables required by your program. The export does not include your tables. You have to create them yourselves

  • Multipe Sender RFC using same Program ID

    Hi all,
    I have RFC>XI>HTTP scenario. All confiruation has been done in R/3 and XI has ben done correctly.
    Is it possible to use the same TCP/IP port Program ID created in SM59 (in R/3) for sending different RFC messages to XI. Meaning, in different XI RFC sender adapter communication channels, can I use the same Program ID.
    When I tried, it work for one RFC, but when multiple RFC sender adapter uses same program ID..RFC program errors out in R/3 itself with error message - Commit fault: com.sap.aii.af.rfc.afcommunication.RfcChannelMismatchExcept.
    Please help.
    Thanks
    Karthik

    Karthik,
    It is possible to send different messages from R3 to XI that use the one RFC destination and Program ID (in R/3) and the one Communication channel (in XI)
    Assume that interfaces AAA and BBB have different structures
    <u><b>SAP R/3</b></u>
    <b>For interface AAA</b>
    (1)     Execute ABAP Z_AAA which
    (2)     Populates the internal table ITAB_AAA with structure ZST_AAA
    (3)     Calls the remote enabled function ZFN_AAA
    (4)     Passes the interface data in the tables statement
    CALL FUNCTION 'ZFN_AAA' DESTINATION RFCCOMMON
             EXPORTING
                  … … …         = … … …
             IMPORTING
                  … … …         = … … …
             TABLES
                  AAA           = ITAB_AAA.
    <b>For interface BBB</b>
    (1)     Eexecute ABAP Z_BBB which
    (2)     Populates the internal table ITAB_BBB with structure ZST_BBB
    (3)     Calls the remote enabled function ZFN_BBB
    (4)     Passes the interface data in the tables statement
    CALL FUNCTION 'ZFN_BBB' DESTINATION RFCCOMMON
             EXPORTING
                  … … …         = … … …
             IMPORTING
                  … … …         = … … …
             TABLES
                  BBB           = ITAB_BBB.
    Each function is called with the same destination RFCCOMMON
    In SM59 point the RFC destination RFCCOMMON to your XI environment and provide a program id, for example ID_COMMON
    <i><b>XI</b></i>
    <b>(1) Configure the sender RFC Communication Channel</b> for example CC_COMMON and enter your SAP R/3 server parameters to include the program id ID_COMMON
    <b>(2) Configure the Receiver Determinations</b> as follows
    For interface AAA
    Sender Service     Enter your SAP R3 Business System for example R3PROD Interface          ZFN_AAA (this is the SAP R/3 remote function)
    Namespace          urn:sap-com:document:sap:rfc:functions
    Configured Receivers     
    Service               Integration Process AAA
    For interface BBB
    Sender Service     Enter your SAP R3 Business System for example R3PROD
    Interface          ZFN_BBB (this is the SAP R/3 remote function)
    Namespace          urn:sap-com:document:sap:rfc:functions
    Configured Receivers     
    Service               Integration Process BBB
    <b>(3) Configure the Sender Agreement</b> as follows
    For interface AAA
    Sender Service     R3PROD
    Interface          ZFN_AAA
    Namespace          urn:sap-com:document:sap:rfc:functions
    Sender CC          CC_COMMON
    For interface BBB
    Sender Service     R3PROD
    Interface          ZFN_BBB
    Namespace          urn:sap-com:document:sap:rfc:functions
    Sender CC          CC_COMMON
    Regards,
    Mike

  • 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 Healthcare Endpoints

    Hi,
    I am currently exploring the healthcare pack for the Oracle SOA Suite Integration. While doing several POC's I often come across the need to somehow import/export the created healthcare endpoints onto some other SOA server, but everytime I have to create them on the different server. Is there a way to import/export the endpoints across different SOA servers?
    Thanks!

    Hi,
    It seems that there might be some problem with the specific machine.
    In order to be sure, just login as an administrator onto the machine, and check to be sure, whether it is an issue with rights.
    However, if it is not the issue with the rights, then we can just reinstall Designer and check whether the issue has been resolved or not.
    To do this, just go into your control panel and in the Add & Remove programs, click BusinessObjects and click on change, and then select Modify, expand the client components ,and select Desktop Intelligence : "Entire Feature will be unavailable" and continue with the uninstallation.
    The next time around, perform the same steps, and then select DeskI and "Entire Feature will be installed on local hard drive" , and finish the installation.
    This would reinstall the designer.
    -Shreyash.

Maybe you are looking for

  • Suspend to ram in KDE vs. GNOME

    I recently switched over to KDE for a little bit to test it out and see how it felt. I decided to stick with GNOME, but I realized that in KDE, the "start" menu's suspend to ram worked perfectly fine. Switching back to GNOME, it hangs at a blinking c

  • ComponentBean cannot be cast to ComponentBean

    I am receiving the following error message when trying to deploy my application on jboss: javax.faces.FacesException: Can't parse configuration file: jar:file:/C:/jboss-4.2.2-1-jsf/server/default/deploy/pims.ear/lib/jsf-facelets.jar!/META-INF/faces-c

  • -encoding type ? Pls, help me !

    Could everybody pls answer my question : How many -encoding types used with javac ? (I search in java tool document but don't find the full list of -encoding type) I try to use javac -encoding "UTF16", "unicode" and compile: OK ! When I use javac -en

  • Toolbar button

    Hello! I added button to application toolbar in selection screen with SELECTION-SCREEN FUNCTION KEY 1. I want when push tish button to get a list with the content of table-which is result from RFC. Can you help me somebody? Thanks.

  • HT4009 I can't complete an in app purchase. It tells me to contact iTunes support or try later. What does this mean?

    I am trying to purchase gems in the game Dragonvale. When I complete the purchase there is an error that I can notco Pete the in app purchase. I need to contact iTunes support or try later. Any ideas?