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]

Similar Messages

  • How to upload data from excel to SAP and options to be used

    How to upload data from excel to SAP and options to be used
    thank you,
    Regards,
    Jagrut Bharatkumar shukla

    Hi Jagrut,
        You can use gui_upload.
    chk the sample program mentioned below.
    REPORT ZFTP .
    DATA: BEGIN OF I_FILE OCCURS 0,
    DATA(2000) TYPE C,
    END OF I_FILE.
    DATA: BEGIN OF I_FILE2 OCCURS 0,
    DATA(2000) TYPE C,
    END OF I_FILE2.
    DATA: W_COUNT TYPE I.
    PARAMETERS: P_FILEN TYPE STRING,
    P_FILE2 TYPE STRING,
    P_NUM(4) TYPE N..
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILEN.
    PERFORM F_FILE_GET USING P_FILEN TEXT-G01.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE2.
    PERFORM F_FILE_GET USING P_FILE2 TEXT-G01.
    START-OF-SELECTION.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = P_FILEN
    FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = 'X'
    HEADER_LENGTH = 0
    READ_BY_LINE = 'X'
    DAT_MODE = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    CHECK_BOM = ' '
    VIRUS_SCAN_PROFILE =
    NO_AUTH_CHECK = ' '
    IMPORTING
    FILELENGTH =
    HEADER =
    tables
    data_tab = I_FILE
    IF SY-SUBRC <> 0.
    MESSAGE E024(Z1).
    ENDIF.
    LOOP AT I_FILE.
    W_COUNT = W_COUNT + 1.
    IF NOT W_COUNT > P_NUM.
    MOVE I_FILE TO I_FILE2.
    APPEND I_FILE2.
    ENDIF.
    ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE =
    filename = P_FILE2
    FILETYPE = 'ASC'
    APPEND = ' '
    WRITE_FIELD_SEPARATOR = 'X'
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    CONFIRM_OVERWRITE = ' '
    NO_AUTH_CHECK = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    WRITE_BOM = ' '
    TRUNC_TRAILING_BLANKS_EOL = 'X'
    WK1_N_FORMAT = ' '
    WK1_N_SIZE = ' '
    WK1_T_FORMAT = ' '
    WK1_T_SIZE = ' '
    IMPORTING
    FILELENGTH =
    tables
    data_tab = I_FILE2
    FIELDNAMES =
    *& Form F_FILE_GET
    text
    -->P_P_FILEN text
    -->P_TEXT_G01 text
    FORM F_FILE_GET USING L_FILENA L_TEXT.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    DEF_FILENAME = ' '
    DEF_PATH = ' '
    MASK = ',.,*.TXT.'
    MODE = 'O'
    TITLE = L_TEXT
    IMPORTING
    FILENAME = L_FILENA
    rc =
    EXCEPTIONS
    INV_WINSYS = 1
    NO_BATCH = 2
    SELECTION_CANCEL = 3
    SELECTION_ERROR = 4
    OTHERS = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Reward if helpful.
    Regards,
    Harini.S

  • 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 2007-SAP Copy & Paste Issue

    I'm not sure this is the correct forum so if it needs to be moved please let me know.
    I am not a programmer, but we have a custom transaction that allows financial personnel to copy rows (sometimes tens of thousands) of data from Excel into SAP - which has the Office Integration tool excel embedded in the screen. Sometimes the user may have one or several different Excel 2007 windows open and one more SAP client windows open. Both SAP and Excel will periodically "lock up" or "freeze" after either one or several copy and paste functions. There doesn't seem to be any rhyme or reason to it.  The only common theme I can gather is it only happens in Excel 2007 and not Excel 2003.
    Any help would be greatly appreciated.
    Other Info:
    Using SAP Gui 710 Patch Level 13
    All PC's have at least the minimum required to run Office and SAP if not more in most cases.

    Hi Cindy,
    I am getting some problems in copying text from crm web ui portal to excel 2007. I am not sure about this, as it is SAP related problem or with windows 7.
    Earlier we were using Windows XP but now after windows 7 we are getting this problem and its not only for web ui, but  I copied some text from SAP marketplace into excel2007 and it shows popup which asks for credetials, even if you give your all possible credentials it doesnt work and you have to kill the Excel from task manager.
    Can you please guide me in this.
    I m not sure whether I m on right forum or not. Please reply.
    Thanks

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

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

  • 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

  • How to copy text from Excel to a text field in the form?

    Hi All,
    I want to copy a text from Excel or Word file and paste it in a text field in the form, How?
    I tried to use ctrl+c for copy and ctrl+v for paste but it doesn't work!

    hi, i've seen this problem before but can't remember what the solution was...
    but just by searching on this forum resulted in this link
    Re: Copy and Paste
    hope it helps

  • Report using the feature of opening Excel in SAP.

    We are building a custom report using the feature of opening Excel in SAP.
    We need to do things like:
    Protect the worksheet, but leave some rows unprotected
    Freeze the windows
    Have any one ever used this feature before? Can any know how to do this?
    Thank you,
    PV

    No, no extra somewhere.  What it actually is, is that you are calling the methods of the application(sort of).  Here is an example application which does to the freeze panes.
    report zrich_0001.
    include ole2incl.
    data: e_sheet type ole2_object.
    data: e_appl  type ole2_object.
    data: e_work  type ole2_object.
    data: e_col1  type ole2_object.
    data: e_col2  type ole2_object.
    data: e_cols  type ole2_object.
    data: e_cell  type ole2_object.
    data: e_wind  type ole2_object.
    data: field_value(30) type c.
    parameters: p_file type localfile default 'C:RichTest.xls'.
    start-of-selection.
    * Start the application
      create object e_appl 'EXCEL.APPLICATION'.
      set property of e_appl 'VISIBLE' = 1.
    * Open the file
      call method of e_appl 'WORKBOOKS' = e_work.
      call method of e_work 'OPEN'
              exporting
                   #1 = p_file.
    * Write data to the excel file
      do 20 times.
    * Create the value
        field_value  = sy-index.
        shift field_value left deleting leading space.
        concatenate 'Cell' field_value into field_value separated by space.
    * Position to specific cell  in  Column 1
        call method of e_appl 'Cells' = e_cell
               exporting
                    #1 = sy-index
                    #2 = 1.
    * Set the value
        set property of e_cell 'Value' = field_value .
    * Position to specific cell  in  Column 2
        call method of e_appl 'Cells' = e_cell
               exporting
                    #1 = sy-index
                    #2 = 2.
    * Set the value
        set property of e_cell 'Value' = field_value .
    * Position to specific cell  in  Column 3
        call method of e_appl 'Cells' = e_cell
               exporting
                    #1 = sy-index
                    #2 = 3.
    * Set the value
        set property of e_cell 'Value' = field_value .
      enddo.
      call method of e_appl 'Columns' = e_col1
             exporting
                  #1 = 1.
      call method of e_appl 'Columns' = e_col2
              exporting
                  #1 = 2.
      call method of e_appl 'Range' = e_cols
              exporting
                #1 = e_col1
                #2 = e_col2.
      call method of e_cols 'Select' .
      get property of e_appl 'ActiveWindow' = e_wind.
      set property of  e_wind 'FreezePanes' = 1.
    ** Close the file
    *  call method of e_work 'close'.
    ** Quit the file
    *  call method of  e_appl  'QUIT'.
    *  free object e_appl.
    Regards,
    Rich Heilman

  • How to store the data coming from network analyser into a text or excel file

    Hii everyone
    I'm using Agilent 8719ET network analyser and wish to store the data coming from netowrk analyser into a text file/ excel file.
    Presently I'm able to get the data on Labview graph using GPIB . Can anyone suggest how to go ahead after collect data sub vi. How can the data be stored into a file apart from showing on the graph?
    Attached is the vi for kind consideration...
    Looking for help
    Regards
    Rohit
    Attachments:
    Agilent 87XX Series Exceed Max Meas.vi ‏43 KB

    First let me say that your code really looks pretty good. The data handling could be made more efficient by calculating the number of datapoints that are going to be in the completed dataset and preallocating the entire array -- but depending upon your answer to my questions, the logic in the lower shift register may be going away - so we won't worry about that right now.
    The thing I need to know before addressing the data storage question is: Each time you call "Collect and Display Data.vi", how many element are in the array? Are you reading single data points, or a group of data? (BTW: if the answer to that question is obvious based on the way the other VIs are setup, I don't have the drivers so I can't tell what the setup values are.) Second, how fast does the loop iterate? Are we talking msec per loop?, seconds? fortnights?
    The issues here are two-fold: how much data? and how fast is it coming? The answer to these will tell you how to save the data.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to find and replace text in Excel with Automator

    I am new to Automator. And I would like some help how I can create a service that will allow me to find and replace certain text in Excel. I noticed that there is an action to do this for Word documents, but not for Excel document.
    Any suggestions how I can do this?
    Thanks so much for your help.

    Easiest way to do it is the following:
    - Open the PDF file in Acrobat.
    - Go to Tools - Forms - More Form Options - Export Data.
    - Save the form data as an XML file somewhere on your system.
    - Open XML the file in a plain-text editor (I recommend Notepad++).
    - Let's say you want to replace all the years in the dates from "2013" to "2014". Do a global Search&Replace of "2013-" to "2014-" (I added the dash just to make sure that only date fields are edited).
    - Save the XML file (maybe under a new name).
    - Go back to the PDF file, and now go to Tools - Forms - More Form Options - Import Data.
    - Select the edited XML file and import it.
    - Done!

  • Reading long text from excel file to an internal table

    Hi
    Can any body tell me how to read long text from excel file to an internal table.
    When i am using this FM KCD_EXCEL_OLE_TO_INT_CONVERT then it is reading only 32 characters from each cell.
    But in my excel sheet in one of the cell has very long text which i need to upload into a internal table.
    may i know which FM or what logic i need to use for this problem.
    Regards

    Hi,
    Here is an example program.  It will upload an Excel file with two columns.  You could also assign the Excel structure dynamically, but I wanted to keep the example simple.  The main point is that the internal table (it_excel in this example) must match the Excel structure that you want to convert.
    Remember, this is just an example to help you figure out how to properly use the technique.  It will certainly need to be modified to fit your requirements, and as always there may be a better way to get the Excel converted... this is just one possibility that has worked for me in the past.
    *& Report  zexcel_upload_test                            *
    REPORT  zexcel_upload_test.
    TYPE-POOLS: truxs.
    TYPES: BEGIN OF ty_excel,
             col_a(10) TYPE n,
             col_b(35) TYPE c,
           END OF ty_excel.
    DATA: l_data_tab         TYPE TABLE OF string,
          l_text_data        TYPE truxs_t_text_data,
          l_gui_filename     TYPE string,
          it_excel           TYPE TABLE OF ty_excel.
    FIELD-SYMBOLS: <wa_excel>  TYPE ty_excel.
    PARAMETERS: p_file TYPE rlgrap-filename.
    * Pass the file name in the correct format
    l_gui_filename = p_file.
    * Upload data from PC
    CALL METHOD cl_gui_frontend_services=>gui_upload
      EXPORTING
        filename                = l_gui_filename
        filetype                = 'ASC'
        has_field_separator     = 'X'
      CHANGING
        data_tab                = l_data_tab
      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 ...
      EXIT.
    ENDIF.
    * Convert from Excel into the appropriate itab
    l_text_data[] = l_data_tab[].
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
      EXPORTING
        i_field_seperator    = 'X'
        i_tab_raw_data       = l_text_data
        i_filename           = p_file
      TABLES
        i_tab_converted_data = it_excel
      EXCEPTIONS
        conversion_failed    = 1
        OTHERS               = 2.
    IF sy-subrc <> 0.
    *   MESSAGE ...
      EXIT.
    ENDIF.
    LOOP AT it_excel ASSIGNING <wa_excel>.
    *  Do something here...
    ENDLOOP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      PERFORM filename_get CHANGING p_file.
    *       FORM filename_get                                             *
    FORM filename_get CHANGING p_in_file TYPE rlgrap-filename.
      DATA: l_in_file  TYPE string,
            l_filetab  TYPE filetable,
            wa_filetab TYPE LINE OF filetable,
            l_rc       TYPE i,
            l_action   TYPE i,
            l_init_dir TYPE string.
    * Set the initial directory to whatever you want it to be
      l_init_dir = 'C:\'.
    * Call the file open dialog without multiselect
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title            = 'Load file'
          default_extension       = '.XLS'
          default_filename        = l_in_file
          initial_directory       = l_init_dir
          multiselection          = 'X'
        CHANGING
          file_table              = l_filetab
          rc                      = l_rc
          user_action             = l_action
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          OTHERS                  = 4.
      IF sy-subrc <> 0.
        REFRESH l_filetab.
      ENDIF.
    * Read the selected filename
      READ TABLE l_filetab INTO wa_filetab INDEX 1.
      IF sy-subrc = 0.
        p_in_file = wa_filetab-filename.
      ENDIF.
    ENDFORM.                    " filename_get
    Regards,
    Jamie

  • 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

  • Make Number stored as text - in excel using ABAP

    Hello all,
    How can I make a value to be stored as text in excels, without adding apostrophe in front of the value using ABAP.
    Im using ECC6.0 system. In erlier version 4.6C, values are displaying as numbers.
    We are calling methods in RSAQEXCE dynamically in our program to get the excel.
    Can any one help me in this regard.
    Thanks in advance.
    Best Regards,
    Sasidhar Reddy Matli.

    Hi Sasidar,
    In Excel right click the column select format cells and then select  the format as text which is general by default.
    Regards,
    Anil.

  • 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

Maybe you are looking for

  • Calculation of IT0014

    Hello, If I change the Wage types of It0014, directly in the mid of the month, the system does not pro-rate the part2 calculation based on the changed amount for that month.   But in the next month onwards it takes the changed valule. At the same tim

  • I've just installed Firefox 7 on Mac OS 10.6.8 and Website IDs have disappeared on all tabs.

    Both the Website ID window and the Google Search window are missing from every tab. This means I can only open websites that are bookmarked or in my history.

  • I am unable to save a keynote file as powerpoint. The 'save as' option is not showing in the files menu

    Hi, I downloaded the Keynote from the App store. I shoudl be able to save the presentation as a powerpoint, but the 'Save as" option is not showing in the file menu. Please help with a solution.

  • How may I change my slide labels?

    I would like to rename my slides, and I am sure there must be a very easy answer to this that I am overlooking. From all the online research I have done to find the answer to this question, it seems that while I am in filmstrip view, I should simply

  • Problem emptying Mail Trash

    I recently noticed that my Trash mailbox had over 8,000 messages in it, so I figured I'd delete some. I picked the least recent 6,000 or so, hit Cmd-Delete, and not much seemed to happen. I figured it was just taking a while, so I came back a while l