Reading dates in asic sata tab of CRM_MKTPL

Hi, I enter the plan start date and plan end date in basic data tab of CRM_MKTPL and I want to use this data in Key Figures tab. In Key Figures tab, we use a badi that is copied from the CRM_MKTPL_COND_IF definition, we use the method COND_READ_AFTER_GET. How can I get the plan start date and end date in this badi?
Thanks..

Hi YGG,
It would of help if you would of specified the CRM Release you are running on.
Since you are using SAP Gui transaction CRM_MKTPL I assum you are using either 3.0 or 4.0.
In both cases you can use FM <b>MKT_ELEMENT_READ</b> where you pass in the Guid of your mkt project and look back the exporting parameter. For example for a campaign you will look at exporting paremeter <b>EX_CAMPAIGN</b> (field <b>PLANSTART & PLANFINISH</b>)
Sincerely,
Alain Gauthier

Similar Messages

  • How to read data in CRM Activity relationship tab.

    Hello friends,
    I have a requirement to read data from CRM Activity relationship tab.
    Mainly i have to read Transaction No/object refernced trans field of CRM Activity relationship tab.
    Could anybody help me?
    Thanks,
    Bunny

    Hi,
    have you found in the meanwhile a good solution?
    I have also a similar requirement.
    At the moment I'm using the view CRMV_ACTFORGP to get the activities associated to a BP (by the way you have many filters that can be used) and then for each GUID (order guid - CRMD_ORDERADM_H-GUID) I call the fm BAPI_REL_GETRELATIONS to get the list of relationships.
    Regards
    Diego

  • Reading data in a tab in an excel sheet

    Hi,
    I would like to read the data in an excel sheet and upload into an internal table for processing. I was able to do it using function module ALSM_EXCEL_TO_INTERNAL_TABLE but I am not able to read a particular tab. My excel sheet has tabls like A, B, C and D and I want to read only tab C. But currently, it reads data in  tab A.
    regards,
    Srini.

    Pls check this and review it once. it works for 2 excel sheets in single excel file to read. Pls reward me if its helpful.  Thanks !
       FUNCTION z_uploading_from_2sheets.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(FILE_NAME) TYPE  RLGRAP-FILENAME
    *"     REFERENCE(START_ROW_SHEET1) TYPE  I
    *"     REFERENCE(START_COLUMN_SHEET1) TYPE  I
    *"     REFERENCE(START_ROW_SHEET2) TYPE  I
    *"     REFERENCE(START_COLUMN_SHEET2) TYPE  I
    *"     REFERENCE(END_ROW_SHEET1) TYPE  I
    *"     REFERENCE(END_COLUMN_SHEET1) TYPE  I
    *"     REFERENCE(END_ROW_SHEET2) TYPE  I
    *"     REFERENCE(END_COLUMN_SHEET2) TYPE  I
    *"  TABLES
    *"      IT_DATA1 STRUCTURE  ALSMEX_TABLINE
    *"      ALSMEX_TABLINE STRUCTURE  ALSMEX_TABLINE
    *"  EXCEPTIONS
    *"      INCONSISTENT_PARAMETERS
    *"      UPLOAD_OLE
      TYPES: ty_t_sender(1500) TYPE c.
      DATA: excel_tab TYPE TABLE OF ty_s_senderline,
      excel_tab1 TYPE TABLE OF ty_s_senderline.
      DATA: ld_separator TYPE c.
      DATA: application TYPE ole2_object,
      workbook TYPE ole2_object,
      sheet TYPE ole2_object,
      range TYPE ole2_object,
      worksheet TYPE ole2_object.
      DATA: h_cell TYPE ole2_object,
      h_cell1 TYPE ole2_object.
      DATA: ld_rc TYPE i.
      DATA: it_data TYPE STANDARD TABLE OF  alsmex_tabline.
    *MESSAGE DEFINATION
      DEFINE m_message.
    *Function Module To Upload Data From
    *Excel File Into Two Internal Tables
    *© 2005 SAP AG 6
        case sy-subrc.
          when 0.
          when 1.
            message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          when others. raise upload_ole.
        endcase.
      END-OF-DEFINITION.
    *PARAMETER CHECK.
      IF start_row_sheet1 > end_row_sheet1.
        RAISE inconsistent_parameters.
      ENDIF.
      IF start_column_sheet1 > end_column_sheet1.
        RAISE inconsistent_parameters.
      ENDIF.
      IF start_row_sheet2 > end_row_sheet2.
        RAISE inconsistent_parameters.
    *Function Module To Upload Data From Excel File Into Two Internal Tables
      ENDIF.
      IF start_column_sheet2 > end_column_sheet2.
        RAISE inconsistent_parameters.
      ENDIF.
      CLASS cl_abap_char_utilities DEFINITION LOAD.
      ld_separator = cl_abap_char_utilities=>horizontal_tab.
    *OPENING EXCEL FILE
      IF application-header = space OR application-handle = -1.
        CREATE OBJECT application 'Excel.Application'.
        m_message.
      ENDIF.
      CALL METHOD OF
          application
          'Workbooks' = workbook.
      m_message.
      CALL METHOD OF
          application
          'Workbooks' = workbook.
      m_message.
      CALL METHOD OF
          workbook
          'Open'
        EXPORTING
          #1       = file_name.
      m_message.
      CALL METHOD OF
          application
          'Worksheets' = sheet
        EXPORTING
          #1           = 1.
    *Function Module To Upload Data From Excel File Into Two Internal Tables
      m_message.
      CALL METHOD OF
          application
          'Worksheets' = sheet
        EXPORTING
          #1           = 1.
      m_message.
      CALL METHOD OF
          sheet
          'Activate'.
      m_message.
      GET PROPERTY OF application 'ACTIVESHEET' = sheet.
      m_message.
    *MARKING OF WHOLE SPREADSHEET
      CALL METHOD OF
          sheet
          'Cells' = h_cell
        EXPORTING
          #1      = start_row_sheet1
          #2      = start_column_sheet1.
      m_message.
      CALL METHOD OF
          sheet
          'Cells' = h_cell1
        EXPORTING
          #1      = end_row_sheet1
          #2      = end_column_sheet1.
      m_message.
      CALL METHOD OF
          sheet
          'RANGE' = range
        EXPORTING
          #1      = h_cell
          #2      = h_cell1.
      m_message.
      CALL METHOD OF
          range
          'SELECT'.
      m_message.
    *Function Module To Upload Data From Excel File Into Two Internal Tables
    *Copy marked area (SHEET1) into Clippboard
      CALL METHOD OF
          range
          'COPY'.
      m_message.
    *Read clipboard into ABAP
      CALL METHOD cl_gui_frontend_services=>clipboard_import
        IMPORTING
          data                 = excel_tab
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
      IF sy-subrc <> 0.
        MESSAGE a037(alsmex).
      ENDIF.
      PERFORM separated_to_intern_convert TABLES excel_tab it_data
      USING ld_separator.
      APPEND LINES OF it_data TO it_data1.
    *Function Module To Upload Data From Excel File Into Two Internal Tables
    *Clear the clipboard
      REFRESH excel_tab.
      CALL METHOD cl_gui_frontend_services=>clipboard_export
        IMPORTING
          data                 = excel_tab
        CHANGING
          rc                   = ld_rc
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
    *Working in Second Excel Work Sheet
      CALL METHOD OF
          application
          'Worksheets' = sheet
        EXPORTING
          #1           = 2.
      m_message.
      CALL METHOD OF
          sheet
          'Activate'.
      m_message.
    *Function Module To Upload Data From Excel File Into Two Internal Tables
      GET PROPERTY OF application 'ACTIVESHEET' = sheet.
      m_message.
    *Mark Sheet2
      CALL METHOD OF
          sheet
          'Cells' = h_cell
        EXPORTING
          #1      = start_row_sheet2
          #2      = start_column_sheet2.
      m_message.
      CALL METHOD OF
          sheet
          'Cells' = h_cell1
        EXPORTING
          #1      = end_row_sheet2
          #2      = end_column_sheet2.
      m_message.
      CALL METHOD OF
          sheet
          'RANGE' = range
        EXPORTING
          #1      = h_cell
          #2      = h_cell1.
      m_message.
      CALL METHOD OF
          range
          'SELECT'.
      m_message.
    *Copy Marked Area (Sheet2) into Clippboard
      CALL METHOD OF
          range
          'COPY'.
      m_message.
    *Function Module To Upload Data From Excel File Into Two Internal Tables
    *Read Clipboard into ABAP
      CALL METHOD cl_gui_frontend_services=>clipboard_import
        IMPORTING
          data                 = excel_tab1
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
      IF sy-subrc <> 0.
        MESSAGE a037(alsmex).
      ENDIF.
    *PERFORM separated_to_intern_convert TABLES excel_tab1 IT_DATA2
      PERFORM separated_to_intern_convert TABLES excel_tab1 it_data
      USING ld_separator.
    *Clear Clipboard.
      REFRESH: excel_tab1.
      APPEND LINES OF it_data TO it_data1.
      CALL METHOD cl_gui_frontend_services=>clipboard_export
    *Function Module To Upload Data From Excel File Into Two Internal Tables
      IMPORTING
      data = excel_tab1
      CHANGING
      rc = ld_rc
      EXCEPTIONS
      cntl_error = 1
      error_no_gui = 2
      not_supported_by_gui = 3
      OTHERS = 4
    *Leaving Application
      CALL METHOD OF
          application
          'QUIT'.
      m_message.
    * >>>>> Begin of change note 575877
    * to kill the Excel process it's necessary to free all used objects
      FREE OBJECT h_cell.       m_message.
      FREE OBJECT h_cell1.      m_message.
      FREE OBJECT range.        m_message.
      FREE OBJECT worksheet.    m_message.
      FREE OBJECT workbook.     m_message.
      FREE OBJECT application.  m_message.
    * <<<<< End of change note 575877
    ENDFUNCTION.

  • How Can i Read data From Maintainance View

    I Want read data from Maintainance View. i written select query
    SELECT *
    FROM J_1yyyyV
    INTO TABLE GT_BUSPLACE.
    WHERE BUPLA = LV_BUPLA.
    this is giving following error
    "J_1yyyyV" is not defined in the ABAP Dictionary as a table,
    projection view, or database view.
    Can you help me Please.
    Thanks in Advance.
    Regards,
    Raj.

    Hi raj,
    maintainance view is a nothing but combinations of table using join on some fields..
    see the relation ship between the joins..
    if you want to write selection query ..go to se11 -->enter view name >and open tab>
                    Table/Join  conditions--> see the table's involved and join conditons between tables.
    and write the select query same as like the Table/Join  conditions in se11..now you can acheive the
    table maintainance fields..
    Prabhudas

  • Error in Reading data from a xml file in ESB

    Hi,
    i created a inbound file adapter service which reads data from a xml file and passes it to the routing service and from there updates to the database.....
    (everything created in jdeveloper)
    But i am getting error....it is not getting updated to the database...when i check the database(select * from table) its showing one row selected but i couldnt find the data....
    Transformation mapping also i did...
    i think may be some error in reading the data from the xml file but not so sure.....
    please reply to this mail as soon as possible its very urgent

    Michael R wrote:
    The target table will be created when you execute the interface, if you set the option on the flow tab as instructed in step #6 of the "Setting up ODI Constraint on CLIENT Datastore" Section.
    Option     Value
    CREATE_TARG_TABLE      trueHi Michel,
    This was not my required answer.I am sorry that I was unable to clarify my question.Actually
    +This project executed successfully with some warning.Target Table is automatically created in database and also populated with data.But when I right-click Target Datastore(in >Mapping Tab of the Interface), and then select Data to View Data that needs to be inserted in the target table.I get some error like this:-...+This above line is the result of my project my problem is
    when I right-click Target Datastore(in Mapping Tab of the Interface), and then select Data to View Data that already inserted in the target table.Is not shown by the view data operation.
    I meant to say I am facing this error
    At the10(1010 written) step of
    Creating a New ODI Interface to Perform XML File to RDBMS Table Transformation
    wehre it says
    Open the Interface tab. Select Mapping tab, right-click Target Datastore - CLIENT, and then select Data. View Data inserted in the target table. Close Data Editor. Close the tabs...
    In my case when I use my sqldeveloper I can see data successfully inserted in my target table and also in error table (data that can't satisfy the constraint) .But I was unable to check this by following the above mentioned 10 th step and got this error.
    Thanks

  • Lsmw error 'Specify Files first' while executing option 'Read Data'.

    Hi All,
    while trying to create mass users through LSMW, i am gettign the error 'Specify Files first' while executing option 'Read Data'.
    I have specified file (.txt), manually created (with'1 tab space' between each term). i have used option 'On the PC(Frontend)'. No error while saving.
    Next- i have executed 'Assign Files', where the file appeared automatically.
    Next- Here, when i try to execute 'Read Data', i get the error 'Specify Files first'.
    Can anyone help in resolving this error.

    Hello Plaban,
    What is your purpose? Are you tring to upload the data with more file variant?                                                                               
    There are two possibilities to make file names more variable:                                                                               
    1.If you choose system dependent file names by setting the according flag (in the first step 'Maintain object attributes'), you can define file names for each system in step 'Specify files' by assigning the files to a specific system ID (with a double-click on the specified file).                                                                               
    2.You can use wildcards in the file names where you can assign several values.                                                               
    I hope this helps you.
    Regards,
    Blanca

  • Read data from Excel file and diaplay in Webdynpro

    Hi all,
    I need some help. I have a Excel file with set of  name, phonenumbers . I want to know how to display the data using Webdynpro. Could some one help me. help is appreciated and I promise to award points for right answer.
    Thank you
    Maruti

    <b>Hi
    i can explain you to read data from Excel file
    First You have to download the jxl.jar file. You can get this file from the Below site
    </b><a href="http://www.andykhan.com/jexcelapi/download.html">jexcelapi jar</a>
    It will be in Compressed Fromat So Unzip it to get the Contents
    After Unzipping The File You will get a Folder (jexcelapi/jxl.jar)
    Now in NWDS open web dynpro explorer, Right Click Your Project, a popup menu will appear and in that click Properties
    You will get window displaying your Project Properties
    On Left Side of the window You Will Find "Java Build Path"
    Click That "Java Build Path" and you will get 4 Tabs Showing ( Source,Projects,Libraries,Order and Export)
    Click Libraries Tab
    You will find options many options buttons
    In that click the Button "Add External Jars"
    You will get Window in order to fecth the jxl.jar file from the location you had stored
    After selecting the jxl.jar i will get displayed and click ok
    Now Open Navigator
    Open Your Project
    You will find Lib folder
    Copy the jxl.jar to that lib folder
    Note : You cannot Read the Content from the excel file directly
    First You Have to copy that file to the Server,
    And from the Server you can get the file absolute path
    With the absolute path you can read the contents of the Excel file
    You have to save the Excel file as .xls Format and Not as xlsx format i will not accept that...
    You have Upload the Excel file from the Server Using the File Upload UI Element
    This Coding will extract 3 columns from the Xls File
    Coding
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import jxl.Cell;
    import jxl.Sheet;
    import jxl.Workbook;
    import com.sap.fileupload.wdp.IPrivateFileUpload_View;
    import com.sap.tc.webdynpro.services.sal.datatransport.api.IWDResource;
    public void onActionUpload_File(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionUpload_File(ServerEvent)
        IPrivateFileUpload_View.IContextElement element1 = wdContext.currentContextElement();
        IWDResource resource = element1.getFileResource();
        element1.setFileName(resource.getResourceName());
        element1.setFileExtension(resource.getResourceType().getFileExtension());
        //@@end
    public void onActionUpload_File_in_Server(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionUpload_File_in_Server(ServerEvent)
        InputStream text=null;
        int temp=0;
        try
             File file = new File(wdContext.currentContextElement().getFileResource().getResourceName().toString());
             FileOutputStream op = new FileOutputStream(file);
             if(wdContext.currentContextElement().getFileResource()!=null)
                  text=wdContext.currentContextElement().getFileResource().read(false);
                  while((temp=text.read())!=-1)
                       op.write(temp);                                      
             op.flush();
             op.close();
             path = file.getAbsolutePath();
             wdComponentAPI.getMessageManager().reportSuccess(path);
        catch(Exception e)
             e.printStackTrace();
        //@@end
    public void onActionUpload_Data_into_Table(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionUpload_Data_into_Table(ServerEvent)
        try
              Workbook wb =Workbook.getWorkbook(new File(path));
              Sheet sh = wb.getSheet(0);
              //wdComponentAPI.getMessageManager().reportSuccess("Columns = "+sh.getColumns());
              //wdComponentAPI.getMessageManager().reportSuccess("Rows = "+sh.getRows());
              int columns = sh.getColumns();
              int rows = sh.getRows();
              int i=0;
             for(int j=1;j<=rows;j++)
                       ele=wdContext.nodeTable_Data().createTable_DataElement();
                       Cell c1 = sh.getCell(i,j);
                      ele.setTab_Name(c1.getContents());
                       Cell c2 = sh.getCell(i+1,j);
                       ele.setTab_Degree(c2.getContents());
                          Cell c3 = sh.getCell(i+2,j);
                       ele.setTab_Percentage(c3.getContents());
                       wdContext.nodeTable_Data().addElement(ele);
        catch(Exception ex)
             wdComponentAPI.getMessageManager().reportSuccess(ex.toString());
        //@@end
       * The following code section can be used for any Java code that is
       * not to be visible to other controllers/views or that contains constructs
       * currently not supported directly by Web Dynpro (such as inner classes or
       * member variables etc.). </p>
       * Note: The content of this section is in no way managed/controlled
       * by the Web Dynpro Designtime or the Web Dynpro Runtime.
      //@@begin others
      String path;
      IPrivateFileUpload_View.ITable_DataElement ele;
    //@@end
    Regards
    Chandran S

  • Reading Data Clusters from Database ??

    Hi at all,
    how can I read Data from a ClusterTable´`?
    In the Database "STXL" is a field "CLUSTR" and "CLUSTD" and i want see the input. But before i can see it, i must read this Data Cluster.
    How does it work``?
    IMPORT tab = itab
    FROM DATABASE stxl(tx)
    ID   wa_TDOBJECT
    TO wa_stxl.

    well, normally you got FM´s which enable you to do selects or whatever with cluster tables.
    in your case it would be FM READ_TEXT or related FM´s. I do ABAP programming for quite a while now, and i never came to the situation where i manually had needed to read a cluster table.

  • Do I have to use lock when I am reading data from a table

    Hi,
    When i am reading data from a table , do I have to set a lock on that table .
    Is it necessary for us to set the lock on a table when I am reading data from the table.
    When I am updating the table , do I have to set a lock on the table ?
    If yes, then what sort of lock-read lock,write lock or shared lock?
    Regards,
    Sushanth H.S.

    check it out,
    Lock objects are use in SAP to avoid the inconsistancy at the time of data is being insert/change into database.
    SAP Provide three type of Lock objects.
    - Read Lock(Shared Locked)
    protects read access to an object. The read lock allows other transactions read access but not write access to
    the locked area of the table
    - Write Lock(exclusive lock)
    protects write access to an object. The write lock allows other transactions neither read nor write access to
    the locked area of the table.
    - Enhanced write lock (exclusive lock without cumulating)
    works like a write lock except that the enhanced write lock also protects from further accesses from the
    same transaction.
    You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ Example EZTEST_LOCK.
    Use: you can see in almost all transaction when you are open an object in Change mode SAP could not allow to any other user to open the same object in change mode.
    Example: in HR when we are enter a personal number in master data maintainance screen SAP can't allow to any other user to use same personal number for changes.
    Technicaly:
    When you create a lock object System automatically creat two function module.
    1. ENQUEUE_<Lockobject name>. to insert the object in a queue.
    2. DEQUEUE_<Lockobject name>. To remove the object is being queued through above FM.
    You have to use these function module in your program.
    check this link for example.
    http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
    tables:vbak.
    call function 'ENQUEUE_EZLOCK3'
    exporting
    mode_vbak = 'E'
    mandt = sy-mandt
    vbeln = vbak-vbeln
    X_VBELN = ' '
    _SCOPE = '2'
    _WAIT = ' '
    _COLLECT = ' '
    EXCEPTIONS
    FOREIGN_LOCK = 1
    SYSTEM_FAILURE = 2
    OTHERS = 3
    if sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Normally ABAPers will create the Lock objects, because we know when to lock and how to lock and where to lock the Object then after completing our updations we unlock the Objects in the Tables
    http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
    purpose: If multiple user try to access a database object, inconsistency may occer. To avoid that inconsistency and to let multiple user give the accessibility of the database objects the locking mechanism is used.
    Steps: first we create a loc object in se11 . Suppose for a table mara. It will create two functional module.:
    1. enque_lockobject
    1. deque_lockobject
    before updating any table first we lock the table by calling enque_lockobject fm and then after updating we release the lock by deque_lockobject.
    Select the radio button "Lock object"..
    Give the name starts with EZ or EY..
    Example: EYTEST
    Press Create button..
    Give the short description..
    Example: Lock object for table ZTABLE..
    In the tables tab..Give the table name..
    Example: ZTABLE
    Save and generate..
    Your lock object is now created..You can see the LOCK MODULES..
    In the menu ..GOTO -> LOCK MODULES..There you can see the ENQUEUE and DEQUEUE function
    Reward if helpful

  • Reading data from dynamically from different file.

    Is there any function moudle or class to read data from a file in application layer, whoes structure is changing dynamically.
    Urgent....... Can any one help me out in this......
    Thanks in advance....
    Thanks,
    feroz.

    Hi Feroz,
    Do u mean that structure of the file on the application server is changing dynamically.
    The following is the FM to read data from a file on Application Server.
    OPEN DATASET FNAME FOR INPUT in text mode encoding default.
    LOOP AT TAB INTO WA.
      READ DATASET FNAME INTO WA.
      IF SY-SUBRC  0.
        EXIT.
      ENDIF.
      WRITE: / WA-COLUMN1, WA-COLUMN2.
      ENDLOOP.
    This is the FM to search the file on Application Server.
    F4_DXFILENAME_TOPRECURSION
    Regards,
    Sai
    Edited by: Sai Krishna Kowluri on Jul 15, 2008 9:45 AM

  • To read data from exel file into sap

    hi all,
    How to read data from exel file into the internal table in abap?
    Regards,
    sugeet.

    Hi Sugeet,
    Use the following code.
    DATA : BEGIN OF tbl_asset occurs 0,
             anlkl LIKE anla-anlkl,          " Asset Class
             bukrs LIKE anla-bukrs,          " Company Code
             ranl1 LIKE ra02s-ranl1,         " Asset #
             txt50 LIKE anla-txt50,          " Description 1
             txa50 LIKE anla-txa50,          " Description 2
             sernr LIKE anla-sernr,          " Serial #
             invnr LIKE anla-invnr,          " Inventory #
             menge LIKE anla-menge,          " Quantity
             meins LIKE anla-meins,          " Base UOM
             inken LIKE anla-inken,          " Inventory
    END OF tbl_asset.
    DATA : w_filename TYPE IBIPPARMS-path,
           w_file     TYPE string.
    start-of-selection.
    *popup for file path from user
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
       PROGRAM_NAME        = SYST-CPROG
       DYNPRO_NUMBER       = SYST-DYNNR
    IMPORTING
       FILE_NAME           = w_filename          .
    MOVE w_filename TO w_file .
    * upload data
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      =  w_file
        FILETYPE                      = 'ASC'
        HAS_FIELD_SEPARATOR           = 'X'
      TABLES
        DATA_TAB                      = tbl_asset
      EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    for HAS_FIELD_SEPARATOR Use
    'X': Fields are separated by tabs.
    SPACE: Fields are not separated by tabs. In this case, the table must contain only one column or all columns must be contained in the file in their entire length.
    Hope it helps...
    Lokesh
    Pls. reward appropriate points

  • EDGE SIMULATOR CAN'T READ DATA FROM SIMULATION.XML

    HI,
    i have installed the SES(10.1.3) and before that Application server 10.1.3 .
    I have followed all the steps given at the following link
    http://www.oracle.com/technology/obe/1013/fusion_middleware/integration/ses/configuringsimulator/configuresimulator.htm#t1
    It works works well till step 16 and edge is restarted successfully , I exit from enterprise manager by logging out and then logging in again for edge
    and then when i click on monitor events then it gives me nothing in the row( no data, no time , no id) just blank row...
    Mean it does not read data from Simulation.xml file
    my file (Simulation.xml) is residing in F:\oracleAS\10.1.3.1\OracleAS_1\j2ee\home\applications\edge\edge\config folder where 'edgerserver.xml' is residing.
    edgeserver.xml contains all driver details i guess.
    Can anyone help me to cope with the problem.
    thanks :-)

    Atlast i have overcome my problem , in order to read data from simulatin.xml file one has to change the "log level" in general settings to monitor and it will work .
    other options for log level are , error , warning, notify and debug etc .
    so change it to log level , then login as enterprise manager, restart edge , log out from emanagaer and again login to edge and click on monitor tab , u r done :-)

  • How to read data from structure RSTXT

    Hi Everyone..
       I have some problem with read data from structure RSTXT.
    I am using transaction code vl02n -> for delivery select <b>Item</b> in item
    overview tab -> Go to -> Item -> text.
    I want display "<b>RSTXT-TXLINE</b>" field in <b>ALV</b> report how it can be possible?
    If anyone knows about it plz reply me with example.
    Thanks in Advance.

    Hi,
    Use FM READ_TEXT
    ( Once on the text, plz display it in plain page mode :
    then > Go To> header : Here you'll get the FM parameters : ID, Object, Name, ... )
    Sample code :
      DATA: BEGIN OF TTLINE OCCURS 0.
              INCLUDE STRUCTURE TLINE.
      DATA: END OF TTLINE.
      CALL FUNCTION 'READ_TEXT'
           EXPORTING
                CLIENT                  = SY-MANDT
                ID                      = L_ID
                LANGUAGE                = L_LANGUE
                NAME                    = L_BL
                OBJECT                  = 'VBBK'
           TABLES
                LINES                   = TTLINE
           EXCEPTIONS
                ID                      = 1
                LANGUAGE                = 2
                NAME                    = 3
                NOT_FOUND               = 4
                OBJECT                  = 5
                REFERENCE_CHECK         = 6
                WRONG_ACCESS_TO_ARCHIVE = 7
                OTHERS                  = 8.
    Regards,
    Erwan

  • Transfer data in unix with tab-delimited

    Hi,
    How can we transfer data to unix with tab-delimited? I have incoming file with tab-delimited and want to copy as backup file in another folder in unix. When I read the incoming file, tab separator is translated into '#' so when I do transfer data to the backup folder, the file contains '#'.
    Is there a way to transfer data in tab-delimited?
    thank you
    alia

    try to use delimiter cl_abap_char_utilities=>HORIZONTAL_TAB.
    here is a piece of code:
    REPORT  ztestfile                               .
    DATA: BEGIN OF gt_file_out OCCURS 0,
            filed(2000),
          END OF gt_file_out.
    START-OF-SELECTION.
      DATA: lv_file_out LIKE filename-fileextern.
      CONCATENATE 'Hello' 'World' INTO gt_file_out SEPARATED
        BY cl_abap_char_utilities=>horizontal_tab.
      APPEND gt_file_out.
      lv_file_out = '
    XXXX\XXXX\mytest1.txt'.
      OPEN DATASET lv_file_out FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
      LOOP AT gt_file_out.
        TRANSFER gt_file_out TO lv_file_out.
      ENDLOOP.
      CLOSE DATASET lv_file_out.
    Message was edited by: joseph fryda

  • Data Manager Diff. Tab

    Hi Experts,
    In data Manager Matching mode under rule tab there are fields Success and failure and undefined.
    Under strategies tab High Threshold, low threshold, Min score and Max score
    Under transformation tab preview .
    Please tell me what are the functions of these fields?
    Thanks
    Shalini

    Hi Shalini ,
    The Transformations, Rules and Strategies tabs comprise the u201CDesign Timeu201D portion of Matching mode.
    The Matches and Merge tabs on the other hand comprise the u201CRuntimeu201D portion of Matching mode.
    Workflow Tab supports Matching and Merging Automation.
    Terms and there Functions:
    1. Normalization: When we remove the Special Characters as well as the Short forms from our data we say that the data is Normalized and this is used in Transformation technique.
    2. Token: When we have to reduce the short forms they are known as Tokens.
    3. Score : Score actually helps us to define the Result in the following ways:
    u2022 Success :   If we find the duplicate fields it shows Success
    u2022 Failure :  If we do not get any Duplicate field we say it is a Failure
    u2022 Undefined :  If any of the field contains Null Value we say that it is undefined.
    There are two types of Scores also:
    u2022 Maximum Score
    u2022 Minimum Score
    Maximum Score and Minimum Score:  The read-only Min Score and Max Score properties are calculated automatically by MDM based on the Success scores of ever matching rule included in the strategy, and allow you to set the values of Low Threshold and High Threshold properties to classify the results.       
    4.Difference between Equals and Token Equals:
    u2022 Equals :  Exactly matches the data
    u2022 Token Equals:  Fuzzy Matches are also considered.
    5.Threshold: There are two categories of Threshold:
    u2022 High: Records whose total score is greater than or equal to the High threshold score are included in the list of potential matches in the Matches tab and placed in the High match level.
    u2022 Low: Records whose total score is greater than or equal to the Low Threshold score are included in the list of potential matches in the Matches tab and placed in the Low match level.
    The Tabs along with there Functionality:
     Transformation: It basically helps us to normalize the data.
     Rules: This tab is used to define certain rules for our search i.e. what rules needs to be followed to find out the Duplicate values.
     Strategies: Strategies are the collection of Rules, we try various combinations of the rules we have already created and then try to find out the Duplicate Records.
     Matches: In this tab we can see all the entries which are found to be duplicating in our data, here we need to include all those entries which we want to merge, so that we can get cleansed data.
     Merge: Merge on the other hand is use to merge the Duplicate data into one. It has further two parts:
    u2022Set:  This is used to select the data for a field of your choice among all the duplicate data that has been found.
    u2022Concatenate: If we want to concatenate the two data for the same field then we use Concatenate.
    Hope this would be helpful..
    If helpful do reward points!!!!!!!!!!!
    Regards,
    Parul

Maybe you are looking for

  • Is it possible to check to see if a sequence has been called, or is run by a user?

    I'd like a subsequence to be called, but I'd like the Sequence to run differently if it is called versus run by a user. What statement should I use and is this even possible? Thanks.

  • Ipad2!

    when i try to sync my ipad to itunes it says "the software required for this ipad is not installed correctly. Please reinstall itunes to install the required software" HELP? ive reinstalled itunes 4 times, and it still doesnt work, ive done everythin

  • T-code VL10C

    Hi all, i tried to print T -code vl10c but when it printed it didnot give me the title (sales order items) in the top of the report, can anybody tell me how to do this. thanks all.

  • Few queries regarding auditing

    Hi All , Greetings. I have some queries regarding auditing. 1.How to enable auditing for create table and truncate table by a user ? SQL> audit table by schema_name; Audit succeeded.Got to know the above from :http://psoug.org/reference/auditing.html

  • Why doesn't iTunes store open

    iTunes store or Safari do not open; I'v already deleted both & reloaded from website & still don't work.