Parameter exporting or changing table

Hi Experts
    I am wondering the difference between keyword exporting and changing to export table.  which one i should choose?

Hi,
when you use exporting parameters you export it but can't change it.when you use changing to export u can always change the parameter while exporting.
Regards,
Rahul

Similar Messages

  • Exporting and changing parameter

    Hi abapers,
                        I am working object oriented abap and i need a small example of ,how to use
                       export and changing parameter of a method.
                       Can anyone help me regarding this
    sanjay

    See the below code. Hope it will be helpful.
    <code>
    REPORT zexp1 .
    DATA : w_tax    type p decimals 2 ,
           w_salary type p decimals 2 .
    CLASS CTAX DEFINITION.
      PUBLIC SECTION.
       METHODS : TAX_CALC IMPORTING grade  TYPE C
                          EXPORTING itax   TYPE P
                          CHANGING  salary TYPE P .
    ENDCLASS.
    CLASS CTAX IMPLEMENTATION.
      METHOD : TAX_CALC.
       CASE grade.
        WHEN 'A01'.
         itax = salary * '0.2'.
        WHEN 'A02'.
         itax = salary * '0.1'.
        WHEN OTHERS.
         itax = salary * '0.15'.
       ENDCASE.
        salary = salary - itax.
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
      DATA : OREF1 TYPE REF TO CTAX.
      CREATE OBJECT : OREF1.
      w_salary = 30000.
      w_tax    = 0    .
      write:/5 'Before method call, salary and tax are' ,
               w_salary ,
               w_tax .
       CALL METHOD OREF1->TAX_CALC EXPORTING grade = 'A01'
                                   IMPORTING itax  = w_tax
                                   CHANGING salary = w_salary.
        write:/5 'After method call, salary and tax are' ,
               w_salary ,
               w_tax .
    </code>
    The program contains a method TAX_CALC belonging to the class CTAX. It receives GRADE as IMPORTING parameter and SALARY as CHANGING parameter. Based on the grade, the EXPORTING parameter ITAX is calculated and the CHANGING parameter , SALARY is modified by deducting tax from it.
    reward if you find it helpful.
    Thanks & Regards,
    Rajesh

  • Doubt in  export, import and table para when creating Function Module

    Dear fellow ABAPers,
    I have a doubt in defining export, import and table parameter while creating a function module.
    I am calling a function module inside a user exit. Now in the user exit the SAP fills an internal table called i_lfa1 with all the data user has eneterd.
    Now I want to pass this whole internal table to function module and the perform some checks on the values of internal table.
    After that function module fills an error structure with values depending on some check.
    1)
    How do I pass this internal table to function module ? 
    When I am creating function module in se37 where do I define this iternal table type ? Is it in Import or Table parameter during function module creation?
    2)
    Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
    Please clear my doubt..
    Relevant points will be awarded.
    Regards,
    Tushar.

    Hi Tushar,
    1. How do I pass this internal table to function module ?
       I assume u are creating your own Y/Z FM.
       Pass it thru TABLES parameter.
    2. When I am creating function module in se37 where do I define this iternal table type
       Define this in TABLES interface.
       What Type ?
       THE SAME TYPE WHICH HAS BEEN DEFINED
        WHILE PASSING IN THE USER-EXIT FUNCTION MODULE.
       IF U SEE THE FM OF THE USER-EXIT,
       U WILL COME TO KNOW.
    3.
    Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
    Define it in TABLES interace. (not in export, import)
      (Since what u are going to return is an internal table)
      U can take for eg. BDCMSGCOLL.
      OR u can create your own Y/Z structure
    for the same purpose.
      (or u can use the structure type T100)
    I hope it helps.
    Regards,
    Amit M.

  • How to write - Perform using variable changing tables

    hi Gurus,
    I am facing an issue while writing a perform statement in my code.
    PERFORM get_pricing(zvbeln) USING nast-objky
                                  CHANGING gt_komv
                                           gt_vbap
                                           gt_komp
                                           gt_komk.
    in program zvbeln :-
    FORM get_pricing  USING    p_nast_objky TYPE nast-objky
                      tables   p_gt_komv type table komv
                               p_gt_vbap type table vbapvb
                               p_gt_komp type table komp
                               p_gt_komk type table komk.
      BREAK-POINT.
      DATA: lv_vbeln TYPE vbak-vbeln.
      MOVE : p_nast_objky  TO lv_vbeln.
      CALL FUNCTION '/SAPHT/DRM_ORDER_PRC_READ'
        EXPORTING
          iv_vbeln = lv_vbeln
        TABLES
          et_komv  = p_gt_komv
          et_vbap  = p_gt_vbap
          et_komp  = p_gt_komp
          et_komk  = p_gt_komk.
    ENDFORM.                    " GET_PRICING
    But its giving an error . please let me know how i can solve this .

    Hi,
    Please incorporate these changes and try.
    perform get_pricing(zvbeln) TABLES gt_komv gt_vbap gt_komp gt_komk
                                            USING nast-obky.
    in program zvblen.
    Form get_pricing TABLES p_gt_komv type table komv
                                           p_gt_vbap type table vbapvb
                                           p_gt_komp type table komp
                                           p_gt_komk type table komk
                              USING p_nast_objky TYPE nast-objky.
    REST OF THE CODE SAME.
    End form.
    Note : Please check lv_vbeln after the move statement.
    Hope this will help you.
    Regards,
    Smart Varghese

  • Exporting as html table

    Is it possible to change the html export settings? I would like to export html as table? #
    I was told there are some problems when using <div> tags in some email readers if you are producing a html newsletter.

    You cannot modify the way that Muse exports HTML in the program, but you can edit the markup it outputs however you like. Just be aware there isn't a way to import those changes.
    E-mail marketing friendly output is something we are investigating, but I don't have any timeframe to offer you in regards to when it would be implemented.  I'd reccomend going to the ideas tab and making your voice heard there as its a way to impact prioritization.
    Cheers,
    Justin

  • Change table'owner

    Good afternoon,
    I would like to change table's owner without moving data (alter table move or export/import) in oracle 8i
    does it exist a solution for that ?
    thanks for your help
    Fabrice

    new table will be created in DEFAULT TABLESPACE of user2 <<if you do not add a tabelspace clause. You can also specify table parameters such as pctfree and storage information if desired.
    You will have to manually add (if needed) indexes, triggers, and table level constraints using this method.
    If this process will need to re-done on a regular basis you might want to consider running the DDL once and using a truncate followed by an insert/select to repopulate the table.
    -- Mark D Powell --

  • Serializable transactions and initrans parameter for version enabled tables

    Hi,
    we want to use serializable transactions when using version enabled tables, so we need to set initrans parameter >= 3 for such tables.
    Change made during BEGINDDL - COMMITDDL process is not done for LT table. I think that initrans parameter is not checked at all during BEGINDDL-COMMITDDL process, because skeleton table has initrans=1 even if LT table has different value of this parameter.
    -- table GRST_K3_LT has initrans = 1
    exec dbms_wm.beginddl('GRST_K3');
    alter table grst_k3_lts initrans 3;
    exec dbms_wm.commitddl('GRST_K3');
    -- table GRST_K3_LT has initrans = 1
    During enableversioning this parameter is not changed, so this script succesfully set initrans for versioned tables.
    -- table GRST_K3 has initrans = 1
    alter table grst_k3 initrans 3;
    exec dbms_wm.enableversioning('GRST_K3','VIEW_WO_OVERWRITE');
    -- table GRST_K3_LT has initrans = 3
    We use OWM 10.1.0.3 version.
    We cannot version disable tables. I understand that change can be done after manually disabling trigger NO_WM_ALTER.
    Are there any problems with using serializable transactions when reading data in version enabled tables? We will not use serializable transactions for changing data in version enabled tables.
    thanks for Your help
    Jan VeleÅ¡Ãk

    Hi,
    You are correct. We do not currently support the initrans parameter during beginDDL/commitDDL. However, as you indicated, we will maintain any value that is set before enableversioning. If this is a critical issue for you, then please file a TAR and we can look into adding support for it in a future release.
    Also, there are no known issues involving serializable transactions on versioned tables.
    Thanks,
    Ben

  • Object Open Error while trying to export the vDataFact table

    I am getting an error when trying to export the vDataFact table to a flat file.  I have been able to do this several time before with the segment tables but would like to run this against vDataFact
    The error in the error log is:
       ERROR:
           Code............ -2147217915
           Description..... Object was open.
    The screen error is:
          The connection cannot be used to perform this operation.  It is either closed or invalid in this context.
    The line that appears to cause the issue is: Set rssql = API.DataWindow.DataAccess.farsKeySet(CStr(strSQL))
    Here is my complete script:
    Sub webdatafacts()
    'Declare Variables
       Dim objFileSystem 'File System
       Dim strFileName 'File name
       Dim ObjTextFile
    'SQL variables
      Dim strSQL ' Placehold for SQL Query
      Dim rssql 'Placeholder for result set for sql query execution
    'SQL Statement
                strSQL = "SELECT PartitionKey, Account, AccountX, Entity, EntityX, ICP, ICPX, UD1, UD1X, UD2, UD2X, UD3, UD3X, UD4, UD4X, Amount  FROM vDataFact" 
                set rsSQL = DW.DataAccess.farsFireHose(strSQL,False)
    'Create the filesystem object
                Set objFileSystem = CreateObject("Scripting.FileSystemObject")
                Set ObjTextFile = objFileSystem.OpenTextFile(DW.Connection.PstrDirInbox & "\VDataFactExport.txt", 2, TRUE, 0)  
                ObjTextFile.Close
                If Not rssql.EOF and Not rssql.BOF Then
                Set objTextFile = objFileSystem.OpenTextFile(DW.Connection.PstrDirInbox & "\VDataFactExport.txt", 2, FALSE, 0)
                Do Until rssql.EOF
    'Loop across all fields in recordset delimiting them with a tab key
                For i = 0 To rssql.Fields.Count -1
               strString = StrString & rssql(i) & vbTab
               Next
    'Output the resulting string to the text file
              ObjTextFile.WriteLine (strString)
    'Reset the string to empty for the next record
             strString = ""
    'Move to the next record in the recordset
                  rssql.MoveNext
                  Loop
    'Close the recordset and the text file
                 rssql.Close
                 ObjTextFile.Close
        End If
    'Destroy the instance of the recordset from memory
          Set rssql = Nothing
    End Sub

    Thanks, that was one of my suspicions, however, i was able to get the script to work by changing:
    set rsSQL = DW.DataAccess.farsFireHose(strSQL,False)
    to
    set rsSQL = DW.DataAccess.farsFireHose(strSQL,True)
    ...to be honest though, i'm not entirely sure why that fixed my issue

  • Can we change table into XML through OWB

    Hi everyone,
    Is it possible to change table into XML through OWB?
    Can anybody help me.
    just send me the steps to do
    Thanks in advance
    Rachit

    Hello, Rachit
    As far as I understand our question – you need to export data from the table into XML file.
    I don’t think you have direct operator within OWB (at least for ver. 9.2.0.4). But anyway, you could write PLSQL procedure using DBMS_XMLQUERY to perform XML generation and transform it with your stylesheet.
    Unfortunately, this package uses DOM to work with XML, so could have a serious memory consumption while trying to export large tables this way.

  • Automatically change table background colour

    can each line of a table automatically change colour when a data is exported into the table?

    Already asked and answered

  • Error while creating publisher change tables in CDC

    Hi,
    I am implementing Change Data Capture. I got getting following error while creating publisher change tables in Staging database. My database version is 10.2.0.2.0 .
    I appreciate your help.
    ERROR at line 1:
    ORA-29540: class oracle/CDC/PublishApi does not exist
    ORA-06512: at "SYS.DBMS_CDC_PUBLISH", line 611
    ORA-06512: at line 2
    Thanks,
    Venkat.

    This problem got fixed when I ran below script!!
    @$ORACLE_HOME/rdbms/admin/initcdc.sql;

  • DM - "Export from Fact Table" works but "Export" does not work properly

    Hi,
    I'm using BPC7M.
    I found it strange that Export cannot dump data to a flat file though I'm pretty sure my selection of dimension members contain data. The existing of data was further confirmed by running Export from Fact Table successfully, where I chose the same set of dimension members. Below are the log files.
    Export log file  FAIL
    u603Bu6B65u9AA4  2
    1. Dump Data:     Failed in 32 sec.
    [u9009u62E9]
    FILE=\Shenergy\WJ2\DataManager\DataFiles\WJ2_SunnyTest.txt
    TRANSFORMATION=\SHENERGY\WJ2\DATAMANAGER\TRANSFORMATIONFILES\SYSTEM FILES\EXPORT.XLS
    MEASURENAME=PERIODIC
    (u6210u5458u9009u62E9)
    Category:
    Time:
    WED_Entity:
    B_Account:
    DataSrc: INPUT
    [u6D88u606F]
    There is no data in the selected region; select a region that has data._2_True
    Export from Fact Table log file   SUCCESS
    u603Bu6B65u9AA4  2
    1. Dump Data:          completed in 1 sec.
    2. Convert Data:       completed in 0 sec.
    [u9009u62E9]
    FILE=\Shenergy\WJ2\DataManager\DataFiles\\WJ2SunnyTest.txt
    TRANSFORMATION=\SHENERGY\WJ2\DATAMANAGER\TRANSFORMATIONFILES\SYSTEM FILES\EXPORT.XLS
    (u6210u5458u9009u62E9)
    Category:
    Time:
    WED_Entity:
    B_Account:
    DataSrc: INPUT
    [u6D88u606F]
    Record Count: 104
    Accept Count: 104
    Reject Count: 0
    Skip Count   :0
    I tried Export in another application and it worked properly. Maybe there is something wrong with the application but I don't know how I can fix this.
    Thanks!
    Sunny

    Hi Sorin,
    In order to make sure the sum is not equal to 0, I ran the "Clear" package and full optimize the application. Afterwards, I deliberately sent only 1 record. I ran the "Export from Fact Table" and I have the following contents in my output flat file.
    B_ACCOUNT,TIME,WED_ENTITY,DATASRC,CATEGORY,SIGNEDDATA
    KPI0001,2009.INP,DEP_INPUT,INPUT,ACTUAL,-500.0000000
    This confirms that the sum is not 0. Then, I ran "Export" package. Yet again, I encountered the same error.
    There is no data in the selected region; select a region that has data._2_True
    Best Regards,
    Sunny

  • 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

  • Exporting a single table from an acrobat created form

    I created a 5 page document InDesign (CS5.5), On one page I created a table that is 4 columns x 25 rows (with the first row being a header), using the table feature. I then exported to pdf and finalized the form in Acrobat 9.2 Pro. After running the Form Field Recognition the table was populated with the appropriate fields. I finalized the form and distributed. When the form is returned to me, I am trying to export JUST the information in this table to a spreadsheet (employee name, title, phone, email, ) and do not seem to be able to do so. Is this possible from a form? It doesn't seem like the pdf recognizes this table as a table any longer. It is a list of attendees, so I want to take this list from each returned form and combine them all into a master list.
    With the selection tool I have tried to select all the text > right click > Open Table in Spreadsheet and only the header rows appear. If I choose just the text and not the headers, then nothing appears. If I export the entire document then each cell of the table is its own column in excel, which makes sense since they all have different field names, but this doesn't make the spreadsheet useful. The only thing I have been able to do is select all the cells, copy into notepad, place a tab between each piece of information > save and open that document in excel. I am hoping there is an easier way. Basically all I am trying to do is have that table appear in excel as it does the pdf. I have searched several websites and have not been able to find anything that specifically deals with exporting a single table from a completed form.
    Perhaps I need to set the table field names differently? Any assistance would be greatly appreciated.

    The "table" idea here is just a design idea, the identity as a table no longer exists in a PDF.  The feature you're trying to use is for tables which are part of the regular PDF, not form fields.
    You can export form data. All fields, but then process to exclude the ones you don't want.

  • Exporting an internal table to memory

    Hi
      I want to call an program from another program and want the values stored in an internal table used in the called program.
    how can i export an internal table to memory id an then import it.
    Regards
    Arun

    So to be clear, for your requirement it would be:
    * Towards the end of the called program
      EXPORT it_itab TO MEMORY ID 'ZZ_MEM_ID'.
    * And then from calling program after the submit zzzz and return statement
      IMPORT it_itab FROM MEMORY ID 'ZZ_MEM_ID'.
    Hope that helps.
    Brad
    Message was edited by: Brad Williams (put back intro text)
    Message was edited by: Brad Williams

Maybe you are looking for

  • New firmware for Nokia 5800 - 21.0.025 !!!

    NSU reports a new firmware 21.0.025 for product code 0581337. I think this product code is for HK phones. Nokia N8 / N9 / Lumia 920 White

  • Problem install 9i Enterprise Edition

    Hello I am installed Oracle 9i Enterprise Edition about Windows 2000 sp4. In the option 'configuration of database', i set Personality. In Database Creation step I get an error: Ora 01041 the hostdef extension does not exist and the error 0ra-24324,

  • How to Save Multiple Records In Data Block

    Hi All, I Have Two Blocks --> Control Block,Database Block Please Any Idea How to Save Multiple Records In Data Block when User changed Data in Control Block. Thanks For Your Help Sa

  • Find and delete .DS_Store files

    I have a 2008 server where some mac clients connect. They create .DS_Store, ._.TemporaryItems and other files that starts with "._". I want to find them and delete them every night. What kind of script can I run. Thank you so much for your help.

  • When iMac awakes from sleep, the screensaver has frozen

    I recently added a new user account to my iMac (running OS X Lion v. 10.7.3). When no one is signed in, I have it set so that a screen saver comes on over the login screen after 5 minutes and the computer display goes to sleep after 15minutes. Whenev