Please read - CATT SCAT excel to SAP

how do u transfer excel spreed sheet info to SAP

You can load variants from excel files:
<a href="http://help.sap.com/saphelp_nw70/helpdata/en/cc/9e139414ae11d2bd11080009b4534c/frameset.htm">http://help.sap.com/saphelp_nw70/helpdata/en/cc/9e139414ae11d2bd11080009b4534c/frameset.htm</a>
-> External variant editing allows you to create variants for the test case import parameters in a table calculation program such as Microsoft EXCEL.

Similar Messages

  • Upload data from Excel to Sap-Crm

    Hi All,
    I need to upload data from EXCEL to SAP-CRM system.The problem is in crm there is no ALSM_EXCEL_INTO_INTERNAL_TABLE or corresponding function modules exist.Using GUI_UPLOAD I can upload data from excel to CRM but the main problem with this is it supports only 255 chars for entire line, in my excel file it contains more than 255 chars.Please help me out.

    Try the following :
    Class: CL_GUI_FRONTEND_SERVICES
    Method: GUI_UPLOAD
    Thanks
    <b>Allot points if this helps!</b>

  • How to upload data from excel to SAP using VB script or Macros

    Hi Guys,
    I want to make a macro enabled Excel sheet which  i can use to upload huge data on SAP . I read some discussion but didnt get anything. Please help me with a step by step document.

    Hi,
    Please refer below link.
    Need help from Excel and SAP expert! [SOLVED]
    http://visualbasic.ittoolbox.com/groups/technical-functional/vb-vba-l/call-transaction-in-sap-from-excel-vba-macro-and-download-alv-list-object-results-to-spreadsheet-3335996
    Regards,
    Rafi

  • Error while connecting microsoft Excel to sap business objects

    Hi,
    I am trying to connect sap business objects to Microsoft Excel using Power Query add in but i am getting  Proxy time out connection error  when adding
    Credentials, As per the SAP documents i am using SAP Restful Web service URL when connecting to Business objects
    Details are as follows:
    Opearting System-:Windows 7
    SAP BO Platform-:BO 4.0 SP 6 (OS-Windows server 2008 R2)
    Excel Version-:Microsoft Excel 2013
    ADD IN-:Power Query
    Please check attach  Error Screen-Shot for Detail information
    Regards,
    Rupesh

    Hi,
    please be aware that you need SAP BI 4.1 SP2 at least for using Power Query
    So maybe this error results in a non suported Environment.
    Regards
    -Seb.

  • Upload Sales order item from excel to SAP in VA01 thru frontend

    Hi,
    I am a front end user.
    SAP version 710.
    we enter sales order thru frontend in VA01 in SAP. The data is stored in excel.
    Currently the following is performed.
    Open VA01. In transaction entry screen ,
    Copy from Excel & Paste In SAP the following
    SAPID of the Customer
    PO No.
    PO Date
    Then copy and paste the line items from excel block by block i.e. depending on no. of line items seen in SAP per screen, copy that many lines from excel and Paste in SAP.
    Then select next block and
    SAVE the order.
    In excel there are many orders of different customers.
    I know litte bit of VBA.
    Can this be automated somehow.
    Pl. help.
    Thanks

    Hi Suhas,
    to automate the work in the SAP, it requires e.g. SAP GUI Scripting.
    1. Please check whether your client is allowed to SAP GUI Scripting. (ALT / F12 -> Options -> Scripting -> Enable Scripting)
    2. There should be only an indicator for Enable Scripting.
    3.The other two indicators by Notify When ... should be inactive.
    4.You would then be able to record a SAP GUI script. (ALT / F12 -> Script Recording and Playback... -> red dot)
    5.Please record all that to what you have to do it manually for first record in Excel.
    6.Stop recording (record and playback -> yellow dot)
    7.Please then present the results here in the forum for your script.
    8.Present us also your Excel sheet with some rows.
    Unfortunately I have no access to the VA01 transaction. But you can already read a lot in advance on the following link.:
    Re: Transferring data from Excel to SAP
    Regards,
    ScriptMan

  • Text to Excel to SAP

    Hi All,
    I am working on getting the info from ‘text to Excel to SAP’, I recorded the BDC for sales order creation and need to upload the info. Please help me get the info from text to Excel format, so that I can upload the info.
    Thanks
    Veni.

    Hi All,
    It is in this text format. I want to load this file to SAP.
    Please help me.
    Thanks
    Veni.
    [code]
    SHIP TO:
    Electronics Inc. - Palo Alto     
    Store #3 - Palo Alto                   
    340 Portage Ave                        
    Palo Alto     CA 99999    
    VENDOR:    57224                        Our PO Number: 8888640
    VENDOR OF AMERICA, INC                    Date:                   07/31/06
    ATTN: ACCOUNTS RECEIVABLE               Ship Date: 07/31/06 Cancel Date: 08/11/06
    550 FRANCIS ST, SUITE 555              Ship Via:                              
    SAN FRANCISCO        CA  94103-4908    
    Contact: NINA                          Order Clerk: JOHN, WOODS          
    Vendor Phone: 415-408-4800              Our Resale # SYCHA 26 - 762263
    LN Quan  PLU   Vendor Order #         Desc.                 Price       Extended
    1  8    4462266  66002                PSP VIRTUA TENNIS     $16.32    $130.56
    2  8    4868770  68004                XB360 CHROMEHOUNDS    $48.96    $391.68
    3  6    4465726  60029                GBA GUNSTAR SUPER HE  $16.32    $97.92
    4  8    4362655  64055                XB WORMS FORT UNDER   $15.30    $122.40
    [/code]

  • Upload data from Excel into SAP CRM using webservices

    Hi,
               I want to upload the data from EXCEL into SAP CRM using a web  service, can anyone say me the process and also how to map the excel and the source code structures.
    Thanks,
    Sanju.

    Try the following :
    Class: CL_GUI_FRONTEND_SERVICES
    Method: GUI_UPLOAD
    Thanks
    <b>Allot points if this helps!</b>

  • Read and write excel sheet data from uploded file in sharepoint site programmatically 2013

    hi team,
    I am working on sharepoint 2013.I want to read and write data in excel sheet (micrsoft excel) from stored file in shrepoint docoumnt library .please suggest me
    vijay

    Hi
    Vijay,
    check those links
    http://www.sharepointwithattitude.com/archives/61
    https://social.technet.microsoft.com/Forums/en-US/e760051b-a92f-473c-9ec9-0f0c36c99e40/read-and-write-excel-sheet-data-from-uploded-file-in-sharepoint-site-programmatically-2013?forum=sharepointdevelopment
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation. Please remember to mark the reply as answer if it helps.

  • Read data from excel sheet and then perform the required operations.

    Hi all
    I need to write a procedure which can read data from excel sheet.I have excel sheet in which i have to options one is modification and other is addition.so if it reads modification then i need to read the concerned table name then check its availability in pl-sql datbase.If table exists then reading the realated column in that row to fire the querry. The excel sheet is saved in local disk c.
    can anybody help me with this.How i need to start specialy to read the data from excel sheet saved in local disk c.
    Edited by: user13334062 on Jun 30, 2010 3:45 AM

    Hi
    If you can convert the excel to a csv format, then it can be simply query from DB Creating Oracle External Tables. Best part is that you may still change the CSV using EXCEL.
    Following action Points can be adopt;
    *1. Convert Excel File to a csv. File Save as CSV*
    *2. Create Oracle Directory* ( This has to be the location of your excel file )
    SQL> Create directory mydir as 'C:\testdb'; --- "testdb" is the location folder in win for your excel sheet.
    *3. Create the External Table*
    SQL> create table my_ext_tab (
    Field1 Datatype,
    Field2 Datatype,
    Field3 Datatype,
    Field4 Datatype,
    Field5 Datatype
    Organization external
    (type oracle_loader default directory mydir
    access parameters (records delimited by newline fields terminated by ',')
    location ('my_ext_tab.csv'))
    reject limit 100;
    *4. Now you can query the table "my_ext_tab"*
    Select * from "my_ext_tab";
    Please avoid the reformat the data column inside the spreadsheet (CSV).

  • Hi SAP FI/CO GURUS ...... PLEASE GIVE ME INTERVIEW QUESTIONS ON SAP FI/CO

    Hi FI/CO gurus
    I require your great help to get my brother into SAP House. He had done his FI/CO training and he is trying as fresher into SAP. So i request you to please give me interview questions on SAP FI/CO in topic wise. The reason i am asking here in this forum is, a lot of gurus who are having great experience are there in this group. if i get help from these gurus, that will be great help to my brother into get into SAP FI/CO.
    So i request you to please send me interview questions on SAP FI and CO in topic wise. Awaiting for your reply.
    Regards
    Raj

    Hi,
    Please find below few questions on FI. I think those are very useful for intervew
    SAF FI Technical Interview Questions 1
    1. Tell me about FI Organizational structure?
    Ans:     Client
                   |
          Operating Concern
                   |
    Controlling area1       Controlling Area 2
             |
    Co. Code 1 Co. Code 2
        |
    Bus area 1  Bus area2  Bus Area3  Bus Area 4
    2. How many Normal and Special periods will be there in fiscal year, why do u use special periods?
    Ans: 12 Normal posting period and 4 special periods are in the fiscal year which can be used for posting tax and audit adjustments to a closed fiscal year.
    3.Where do you open and close periods?
    Ans: PPV is used to open and close the periods based on a/c types considering GL Accounts. Tr. Code. OB52.
    4.What do you enter in Company code Global settings?
    Ans: 4 digit Alphanumeric key.
    Name of the company
    City
    Country
    Currency
    Language
    Address
    5.What is document type, and what does it control? Examples.
    Ans: Document type is nothing vouchers containing line items. Several business transac! tions can be identified within a particular document type.
    It controls the document number ranges.
    It controls the Header part of document
    IT controls the line item level of the document
    Helps filing of physical document 
    6. What is posting key and what does it control?
    Ans: These are special classification keys. Two character numerical key it controls the entry of line items.
    Posting key determines Account type, Debit/credit posting, Field status of transaction.
    7. What is field status group, what does it control? 
    Ans: FSG is mandatory field in ! GL Creation. You use this field to define which fields are displayed when you post business transactions to a G/L account. 
    A field may have one of the following statuses.
    - Suppressed
    - Display
    - Optional
    - Required
    8. What is chart of account and how many charts of accounts can be assigned to a company?
    Ans: Chart of account is a list of all G/L accounts used by one or several company codes.
    For each G/L account, the chart of accounts contains the account number, account name, and the information that controls how an account functions and how a G/L account is created in a Company code.
    You have to assign a chart of accounts to each company code. This chart of accounts is the Operating chart of accounts and is used for the daily postings in this company code.
    You have the following options when using multiple company codes.
    You can use the same chart of accounts for all company codes
    If the company codes all have the same requirements for the chart of accounts set up, assign all of the individual company codes to the same chart of accounts. This could be the case if all company codes are in the same country.
    In addition to the operating chart of accounts, you can use two additional charts of accounts If the individual company codes need different charts of accounts, you can assign up to two charts of accounts in addition to the operating chart of accounts. This could be the case if company codes lie in multiple countries.
    The use of different charts of accounts has no effect on the balance sheet and profit and loss statement. When creating the balance sheet or the profit and loss statement, you can choose whether to balance the co! mpany codes which use different charts of accounts together or separately.
    9. What does definition of a chart of account contains?
    Ans: chart of account key
    Name
    Maintenance language
    Length of the GL Account Number
    Controlling Integration
    Group chart of accounts (Consolidation)
    Block Indicator
    10. Can one COA be assigned to several companies?
    Ans: yes. One COA can be assigned to several companies.
    11) What is account group and what does it control? 
    Ans: Account group determines which fields you can configure on the G/L master record. It is necessary to have at least two one for B/S and another one for P&L a/c.
    It controls the Number ranges of GL A/C.
    The status of fields of the master record of GL belongs to company code area.
    12) What is reconciliation account; can you directly enter documents in that a/c?
    Ans: When you p! ost items to a subsidiary ledger, the system automatically posts the same data to the general ledger. Each subsidiary ledger has one or more reconciliation accounts in the general ledger. 
    We can’t use reconciliation account for direct postings.
    13) How do you control field status of GL master records and from where do you control! 
    Ans: Field status variant is maintained all FSGs.
    14) What are the segments of GL master record?
    Ans:
    - COA Segment
    A/C group
    Nature of account
    Short text
    GL a/c long text
    Trading partner
    Group Account Number
    -  Company code segment
    Account currency
    Tax
    Reconciliation a/c for a/c type
    OIM,LID,FSG.
    15) What does Field status group assigned to a GL master record controls?
    Ans: It controls the account assignments that are made to the account. Specifically the field status group controls whether postings to cost centers, internal orders, profitability segments and so on are required, not allowed (suppressed), or optional.
    16) What is Country and operational chart of account? Why do you use group chart of account?
    Ans: Operational chart of account – Day to day activities It is mandatory.
    Country COA – It’s used for legal specific requirement of each country. It’s additional and optional.
    Group COA used for consolidation of Company codes. This is for group consolidation purpose.
    17) What are all the segments in a Customer/Vendor master record?
    Ans: Segments in Customer           Segments in Vendor
    -      General Data segment            General data segment
    -      Company code segment         Company code segment
    -      Sales area segment                 Purchasing organization Segment
    18) What is open line item management? What do you mean by clearing open line items?
    Ans: Open item management is further reconciliation function. OIM allows you to display the open and cleared items and amounts in an account. OIM should be used if an offsetting entry is made for every line item posted in the account. The a/c is reconciled and cleared against another account. Ex. Salary clearing account and GR/IR Clearing account.
    19) What is residual payment and part payment?
    Ans: Residual payment it clears original invoice with incoming amount and create new line item for remaining outstanding amount.
    Partial payment it leaves the original invoice amount and creates new
    line item for incoming amount.
    20) What is internal and external number ranges?
    Ans: Internal Number Ranges: Doc. No will be provided by the system automatically in serial order allotting the next available progressive number. The number must be in numerical.
    External Number ranges: Doc. No will be given manually by the end user. System will not lock no automatically in this case. User can pick the number randomly. Number may be an alpha numeric.

  • Error saving data structure CE11000 (please read log) message number KX 655

    while activating the data structure in the operating concern of CO PA sap gives the following errors.
    1.Error saving data structure CE11000 (please read log)
    Message no. KX655
    2.Error saving table CE01000
    Message no. KX593
    3.in Log Reference field CE31000-REC_WAERS for CE31000-VVQ10001 has incorrect type.
    Pls suggest

    Hey,
    Below tables are related to application logs
    BAL_AMODAL  :                   Application Log: INDX table for amodal communication
    BALC        :                   Application Log: Log or message context            
    BALDAT      :                   Application Log: Log data                          
    BALHANDLE   :                   Application Log: Lock object dummy table           
    BALHDR      :                   Application log: log header                        
    BALHDRP     :                   Application log: log parameter                     
    BAL_INDX    :                   Application Log: INDX tables                       
    BALM        :                   Application log: log message                       
    BALMP       :                   Application log: message parameter                 
    BALOBJ      :                   Application log: objects                           
    BALOBJT     :                   Application log: object texts                      
    BALSUB      :                   Application log: sub-objects                       
    BALSUBT     :                   Application log: Sub-object texts                  
    -Kiran
    *Please mark useful answers

  • Excel to SAP R/3

    Hi All,
    I need to create automation for uploading Excel data onto SAP R/3 using VBA.Have never done this before.Hence a few questions.
    1.Once SAP is installed what references do i need to put in the VB Editor under Tools->references in order to connect to SAP and use its objects?
    2.Can i achieve uploading of data from Excel using ODCBC.
    3.I searched the net for excel to SAP links and found a term called RFC functions.What is RFC.
    4.Do we need ABAP coding as well to achieve the same?
    If someone can help me with the code for uploading data from excel to SAP,it would be great.Any reply in this regard will be highly appreciated.
    Rgds

    okay, here we go. As said before, I'll post here a series of comments outlining the use of webservices in the office2003 family to interact with an NW ABAP backend.
    Specs: Office2003 with the Webservice Toolkit installed (Gregor's link; read the instructions carefully, especially make sure that you have the MSXML3.0-dll installed too); ABAP 6.40+ (I'll use a 7.0 system here); PHP5.2.0 with soap enabled for some quick tests;
    In this first and easiest example we will specify a report within a Word document and download the coding to the Word document.
    First we create the webservice on the backend, that is, a function module and let run the webservice wizard over it:
    FUNCTION ZTW_READ_REPORT.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(PROGRAMM_NAME) TYPE  SY-REPID
    *"  EXPORTING
    *"     VALUE(LINES_OF_REPORT) TYPE  ZTW_TABLE_OF_CODE_LINES
    *"     VALUE(ERRORSTRING) TYPE  STRING
      errorstring = ''.
      refresh lines_of_report.
      read report programm_name into lines_of_report.
      if lines_of_report is initial.
        errorstring = 'No such report!'.
      endif.
    ENDFUNCTION.
    /code
    ZTW_TABLE_OF_CODE_LINES is a table based on the structure DDS02.
    Very simple, return the coding for a given report name or 'No such report!' in case it does not exist. RFC enable the FM!
    Next we run the webservice wizard and create a webservice ZTW_READ_Report and release it for the SOAP runtime.
    Now let's get the WSDL URL by selecting the webservice in transaction WSADMIN and clicking the WSDL button. A browser window opens and we copy the URL.
    Sidestep: Let's test the service in a PHP script run from the commandline (i.e. without webserver set up).
    <?
    $login    = "USER";
    $password = "PW123";
    $proxyhost = '111.222.333.444;
    $proxyport = 3128;
    // WSDL URL PL5
    $wsdlurl = "http://us4484.wdf.sap.corp:50084/sap/bc/srt/rfc/sap/ZTW_READ_REPORT?"
           . "sap-client=201&sap-user=" . $login . "&sap-password=" . $password . "&sap-language=DE&wsdl=1.1";
    $programm_name = $argv[1];
    try {
         $client = new SoapClient($wsdlurl,
           array(
           'proxy_host'  => $proxyhost,
           'proxy_port'  => $proxyport,
           'login'     => $login,
           'password'    => $password,
           'trace'       => true,
           'exceptions'     => true));
    catch(SoapFault $e) {
      echo 'Caught a Constructor Error: - ' . $e->faultstring;
    if (isset($client)) {
         try {
           $ra = $client->ZtwReadReport(array(
                'ProgrammName'         => $programm_name
         catch (SoapFault $e) {
           echo 'Caught an Error: - ' . $e->faultstring;
         if ($ra->Errorstring == "") {
         $node = $ra->LinesOfReport;
         foreach ($node as $val1) { //item
           foreach ($val1 as $val2) { //Line
                foreach ($val2 as $val3) { //Value
               echo $val3 . "
         else { echo $ra->Errorstring; }
    else { echo 'No client object!'; }
    ?>
    /code
    we can run this program from the (win) commandline with
    php scriptname.php reportname
    /code
    (make sure your php is on the path and that you're in the directory where your script is or use the full path name)
    Notice the full WSDL URL http://servername:50084/sap/bc/srt/rfc/sap/ZTW_READ_REPORT?sap-client=201&sap-user=USER&sap-password=PW123&sap-language=DE&wsdl=1.1";
    We'll need this URL in the next step.
    We open a MS Word Document and go to Tools|Macro|VisualBasic Editor. Inside the Editor we go to menu Tools and find an entry 'web service references' (unfortunately I've a German Version of Word at hand at the moment so I've got to guess a little, what the English menu entries might be called). If you do not find such an entry, your SOAP Toolkit installation did not work.
    Choosing this we get a dialog which, in the lower left corner allows to select 'webservice URL'. Enable this and enter the URL mentioned before. Click Search. If everything works, we get a description of our webservice in the right hand side box.
    Select the webservice found (mark the checkbox) and click 'Add'. This creates some VBA proxy classes representing your webservice.
    In the VisualBasic Editor they can be found on the left hand side box under Project|Class Modules. They are
    - clsof_Factory_ZTWREADREPORT
    - clsw_ZTWREADREPORTService
    - struct_D022S
    Let's have a look at clsw_ZTWREADREPORTService. In the comments at the start of the script we find an explanation about the originationg WSDL and something on the usage of this proxy.
    'Example:
    ' Dim ExampleVar as New clsws_ZTWREADREPORTService
    ' debug.print ExampleVar.wsm_ZtwReadReport("Example Input")
    /code
    Okay, all that's left to do, is to write a little Macro utilizing this proxy. Here we go:
    Insert a new module to your VBA project and create a subroutine inside.
    Sub read()
    Dim errorstring As String
    Dim lor As Variant
    Dim ExampleVar As New clsws_ZTWREADREPORTService
    Dim report_name As String
    report_name = InputBox("Report:")
    errorstring = ExampleVar.wsm_ZtwReadReport(report_name, lor)
    Selection.TypeText Text:="Report" & report_name
    Selection.TypeParagraph
    For i = LBound(lor) To UBound(lor)
        With Selection
          .Font.Name = "Arial monospaced for SAP"
          .Font.Size = 10
          .TypeText Text:=lor(i).Line & vbCrLf
        End With
    Next
    End Sub
    /code
    When executed (Tools|Macro|Macros->read), this macro pops up an input box, allowing you to enter a programme name, then downloads the coding of that report, formats it a little (10 pt Arial monospaced for SAP) and pastes it into our word document.
    Voilá, done.
    What have we learnt so far:
    - installing the SOAP toolkit into Office2003
    - testing a webservice using commandline PHP
    - creating webservice proxy functions in VBA
    - allow dynamic user interaction with the document (input box) and therefore subsequently with the webservice
    - calling a webservice from within an Office document (i.e. passing data to the ABAP Service & retrieving data from it)
    Basically, that is all you need to start. It works the same in every Office application. The better you know VBA now (especially the trilions of classes within the various applications) the fancier applications you can build. I'll try to chip in some ideas thereof in the next days.
    anton
    Message was edited by: Anton Wenzelhuemer
    Message was edited by: Anton Wenzelhuemer

  • Excel to SAP using VBA

    I would like to know if there is any possible way of exporting data from excelt to SAP using VBA code. I was going through one of the blogs /people/kathirvel.balakrishnan2/blog/2006/05/09/data-upload-into-sap-from-microsoft-excel-150-vba-part
    where in the data was exported from excel to SAP with the help of table name. Can the same be done using trasaction codes in SAP? If so, how.
    Also, I would like to know,if I can record a particular session(as how we do for recording a macro in excel) and use the same recorded session for other entries too.
    Thanks a lot in advance.
    Regards,
    P.Yogesh

    Hello,
    Whatz impossible ??
    Yes you can export the data from excel to SAP using VBA, but you need to create fome RFC in SAP as well that will handle the data you will send.
    1. Create a RFC function in R/3 that will read a file from specific location and perform the respective transaction.
    2. Create your excel file with respective file format and call the RFC function in SAP passing the parameters as file name and other required details.
    3. SAP coding for RFC will be a single time activity and then onwads you can just create excel file for upload and use VBA code to initiate the RFC call.
    Hope this make some sence. Tell me if you have more queries.
    Regards,
    Vishal
    Reward points.. if helpful

  • 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

  • Reader 10.1.3 freezes SAP

    We have the SAP GUI 7.2 and within the GUI when we view a pdf it opens fine, just like opening a pdf in IE.  When we click the email button it will open outlook and have the pdf attached to send the email.  At this point when we send the email as normal and attempt to go back to the SAP GUI it is now frozen, and I must kill the process in order to unfreeze.  We can save the pdf to a folder then attach to an email as normal without a problem, just when we use the envelope icon to send in an email from reader itself that opens within SAP (just like IE)  When I try the same button in IE thought IE does not freeze.
    I have applied the fix I found regarding High CPU usage as well as a fix to stop pdfshell.dll from grabbing pdf's when attaching to outlook, and these have resolved our issues for XP in regards to those 2 options.
    The SAP freeze is happening on both XP SP3 (32bit) and Win7 SP1 (64bit)  we are using the same 32bit version of 10.1.3 for both OS's
    Any help is appreciated.

    Did you try the solutions listed here:
    http://forums.adobe.com/message/4338063
    "Can you please check your preview box present at the right bottom corner of print dialog. Is the preview coming right?
    If no, then please try changing 'Comment and Forms' option present just above it. Try selecting 'Document and markups'."
    If yes, Please let me know if it works or not.
    Also, Could you provide more information:
    ->Which Printer are you using
    ->Can you print from Safari/firefox for non-pdf pages. Please try printing any html page and see if works
    ->Can you removing and readding your Printer and then see if it works

Maybe you are looking for

  • I have tried for the last 3 months to get my pay as you go Orange phone unlocked

    Hi,I hope someone is able to help.I have been trying for 3 months to have my pay as you go Orange phone unlocked. It is a Samsung F480.On three separate occasions I have rang customer services and have been assured they would sort it in a couple of w

  • Problem connecting wirelessly to printer

    Hi, I used to be able to connect wirelessly to my HP Envy 120, and then for some reason it stopped working from my Macbook - I can still print from my iPad, and my daughter can print from her PC.  Any ideas?

  • VGA to USB, possible?

    Hello all, I just bought a Video jockey to watch tv on my imac, and it uses vga cables. Is there an adaptor that converts vga to usb/firewire? What are my options, is this possible? Thanks, Bob

  • Any tcode to see the address of all storage loc

    Hi All,        Is there any specific t-code to list all the storage location address

  • MSA: Activity Deletion by subscription

    Dear Colleagues, We have created some activities in CRM. So it went to table CRMD_ORDERADM_H and then to Mobile Sales client via subscription. NOw since this activities were created just for test, so have to be deleted from all MSA client. So I delet