How to upload Co Log in 4.7 IDES

Dear Guru,
Can any one explain complete process for how to Upload the Company Logo in 4.7 Ides.
Waiting for your replay.
Thanks & Regards,
Bipin Shah.

Hi,
Please follow the link.
[Re: upload SAP Image]
You may find your solution here
Karan

Similar Messages

  • How to upload local photos to icloud photo library

    with the new icloud photo library(beta) that was introduced in iOS 8.1, I tried to turn it on to upload my photos on my iphone 6 to icloud drive, but it warned me those photos I uploaded from my mac to my iphone will be removed.....
    So does it only upload and syns those photos I took using iphone? what about those local photos on my mac or PC, that were uploaded to my iphone using iPhoto or iTunes? Is there a way to upload  them all  to icloud drive?
    Thanks a lot

    I logged onto https://beta.icloud.com/#photos and only found a download tab, so how to upload photos to iCloud Photo Library?

  • How to upload and publish iphoto slide show to icloud

    how to upload and publish iphoto slide show to icloud on mac book pro

    Just log into your MobileMe account and go to your iDisk and delete the iWeb site that is there.
    You can load your other site there by simply dropping and dragging your files for your new site to the Sites folder on your iDisk. Alternatively, MobileMe uses webdav so you can use Cyberduck to publish too.

  • How to upload employees picture thru API

    Hi All,
    Can anybody say me how to upload the employees pictures thru PER_IMAGE_UPLOAD_PKG.LOAD(). Here i am having 2500 employees photos.
    and if it is step wise manner it will be more helpful and where we have to place the pictures in server , in which location

    Okay. This is pretty old code, and I don't quite remember how it works entirely, but here it is. I created a Formbuilder form with some custom java beans to read the directory where the badge photos resided, and create a SQL*Loader control file for each .jpg file. Here is the main code, from the client_pkg package and the OK button when-button-pressed trigger:
    PACKAGE client_pkg IS
    staging_dir varchar2(200) := 'c:\userapps\empphotos';
    photo_dir varchar2(200) := '\\Netser1\server dir\APPD\Human Resources Badging System\Photos';
    template varchar2(2000) := 'options (bindsize 400000)' || chr(10)
         ||'load data' || chr(10)
         ||'infile ''$INFILE$'' "fix $FILESIZE$"' || chr(10)
         ||'$OPERATION$' || chr(10)
         ||'into table per_images' || chr(10)
         ||'(image raw ($FILESIZE$), -- filesize' || chr(10)
         ||'parent_id constant $PERSON_ID$,' || chr(10)
         ||'table_name constant "PER_PEOPLE_F",' || chr(10)
         ||'image_id char "hr.per_images_s.nextval")' || chr(10)
    missing_template varchar2(2000) := 'options (bindsize 400000)' || chr(10)
         ||'LOAD DATA' || chr(10)
         ||'INFILE ''$INFILE$'' "fix $FILESIZE$"' || chr(10)
         ||'$OPERATION$' || chr(10)
         ||'INTO TABLE lac.lac_photo_dir' || chr(10)
         ||'     (IMAGE raw($FILESIZE$) -- filesize' || chr(10)
         ||' , FILENAME constant "$FILENAME$"' || chr(10)
         ||'     , FILESIZE constant $FILESIZE$' || chr(10)
         ||'     , FILEDATE constant "$FILEDATE$"' || chr(10)
         ||'     )' || chr(10)
    END client_pkg;
    --OK Button - When-Button-Pressed
    declare
         alert_msg varchar2(2000);
         button_pressed number;
         in_file Text_IO.File_Type;
         out_file Text_IO.File_Type;
         log_file Text_IO.File_Type;
         v_buffer varchar2(200);
         v_ctl_txt varchar2(2000);
         v_dir_find_string varchar2(20) := 'Directory of ';
         v_dirstring varchar2(200);
         v_pos integer;
         v_slash varchar2(2) := '\';
         v_filesize varchar2(20);
         v_filename varchar2(20);
         v_ctl_filename varchar2(120);
         v_log_filename varchar2(120);
         v_operation varchar2(20);
         v_emp_num varchar2(20);
         v_emp_name varchar2(80);
         v_payroll_id number;
         v_person_id number;
         v_load_count integer;
         v_qry_count integer;
         v_instance varchar2(20);
         v_username varchar2(20);
         v_password varchar2(20);
         v_connect_string varchar2(100);
         v_exec_string varchar2(200);
         v_success_count integer;
         v_beg_pos integer;
         v_end_pos integer;
         cursor c_badges(p_payroll_id in number) is
              select xref.emp_num
              , ppf.employee_number || ' - ' || ppf.full_name emp_name
              , xref.filename
              , ppf.person_id
    , decode(pi.image_id, null, 'N', 'Y') image_exists_yn
    from hr.per_all_people_f ppf
              , hr.per_all_assignments_f paf
              , lac.lac_emp_badge_xref xref
    , hr.per_images pi
              where paf.person_id=ppf.person_id
              and xref.emp_num = ppf.employee_number
              and sysdate between ppf.effective_start_date and ppf.effective_end_date
              and sysdate between paf.effective_start_date and paf.effective_end_date
              and paf.assignment_type<>'B'
    --          and paf.payroll_id = p_payroll_id
              and lower(filename) like '%.jpg'
    --          and ppf.employee_number in ('00012','08278') -- Temp debugging line
    and pi.parent_id(+) = paf.person_id
              order by emp_num
         cursor c_photo_dir is
         select xr.emp_num
         , pd.filename
         , pd.filesize
         , pd.filedate
         from lac.lac_emp_badge_xref xr
         , lac.lac_photo_dir pd
         where xr.filename(+) = pd.filename
         and xr.emp_num is null
         and lower(pd.filename) like '%.jpg'
         order by pd.filename
    begin
    break;
    :System.Message_Level := '5';
         v_instance := get_application_property(CONNECT_STRING);
         v_username := get_application_property(USERNAME);
         v_password := get_application_property(PASSWORD);
         v_connect_string := v_username || '/' || v_password || '@' || v_instance;
    if :replace_cb = 'Y' then
              v_operation := 'Replace';
    else
         v_operation := 'Append';
    end if;
         v_load_count := 0;
    set_custom_property('FILEIO_BEAN',1,'SOURCEDIR',:photo_file_dir);
         set_custom_property('EXEC_BEAN',1,'CMDSTRING','echo TEST');
    for v_badges in c_badges(to_number(:payroll_list))
    loop
              :work_file := v_badges.filename;
    set_custom_property('FILEIO_BEAN',1,'SOURCEFNAME',:work_file);
    v_filesize := get_custom_property('FILEIO_BEAN',1,'FILELENGTH');
    --          alert_msg := 'File Size for ' || :work_file || ' = ' || v_filesize || chr(10);
    --          SET_ALERT_PROPERTY('GENERIC_ALERT',ALERT_MESSAGE_TEXT, alert_msg);
    --          button_pressed := Show_Alert('GENERIC_ALERT');
              if v_badges.image_exists_yn = 'Y' then
                   delete from hr.per_images
                   where parent_id = to_number(v_badges.person_id);
                   commit;
              end if;
              v_ctl_txt := client_pkg.template;
              v_ctl_txt := replace(v_ctl_txt, '$OPERATION$', v_operation);
              v_ctl_txt := replace(v_ctl_txt, '$INFILE$', :photo_file_dir || v_slash || v_badges.filename);
              v_ctl_txt := replace(v_ctl_txt, '$FILESIZE$', v_filesize);
              v_ctl_txt := replace(v_ctl_txt, '$PERSON_ID$', v_badges.person_id);
              v_ctl_filename := 'sqlldr' || v_badges.emp_num || '.ctl';
              v_ctl_filename := :staging_dir || v_slash || v_ctl_filename;
              v_log_filename := replace(v_ctl_filename,'.ctl','.log');
              out_file := Text_IO.Fopen(v_ctl_filename, 'w');
              text_io.put_line(out_file, v_ctl_txt);
              text_io.fclose(out_file);
              v_exec_string := 'sqlldr ' || v_connect_string || ' control=' || v_ctl_filename
              || ' log=' || v_log_filename;
    --          alert_msg := 'before, v_exec_string= ' || v_exec_string || chr(10);
    --          SET_ALERT_PROPERTY('GENERIC_ALERT',ALERT_MESSAGE_TEXT, alert_msg);
    --          button_pressed := Show_Alert('GENERIC_ALERT');
              :emp_name := v_emp_name;
              synchronize;
              set_custom_property('EXEC_BEAN',1,'CMDSTRING',v_exec_string);
    --          alert_msg := 'after, v_exec_string= ' || v_exec_string || chr(10);
    --          SET_ALERT_PROPERTY('GENERIC_ALERT',ALERT_MESSAGE_TEXT, alert_msg);
    --          button_pressed := Show_Alert('GENERIC_ALERT');
              v_operation := 'Append';
              v_load_count := v_load_count + 1;
              exit when v_load_count >= nvl(:proc_limit,99999);
    end loop;
         set_custom_property('EXEC_BEAN',1,'CMDSTRING','echo TEST');
    if false then     
    v_operation := 'Append';
         for v_photo_dir in c_photo_dir
         loop
              v_pos := instr(v_photo_dir.filename,'.jpg');
              v_end_pos := v_pos - 1;
              v_pos := instr(v_photo_dir.filename,'-',-1,1);
              if v_pos > 0 then
                   v_beg_pos := v_pos + 1;
              else
                   v_beg_pos := 1;
              end if;
              v_emp_num := lpad(substr(v_photo_dir.filename,v_beg_pos, v_end_pos + 1 - v_beg_pos),5,'0');
              v_payroll_id := to_number(:payroll_list);
              begin          
                   select ppf.employee_number || ' - ' || ppf.full_name
                        , ppf.person_id
                        into v_emp_name
                        , v_person_id
              from hr.per_all_people_f ppf
                        , hr.per_all_assignments_f paf
              , hr.per_images pi
                        where paf.person_id=ppf.person_id
                        and sysdate between ppf.effective_start_date and ppf.effective_end_date
                        and sysdate between paf.effective_start_date and paf.effective_end_date
                        and paf.assignment_type<>'B'
              and pi.parent_id(+) = paf.person_id
              and decode(pi.image_id, null, 'N', 'Y')='N'
              and ppf.employee_number = v_emp_num
    --          and paf.payroll_id = v_payroll_id
              exception
                   when no_data_found then
                   v_emp_name := null;
                   v_person_id := null;
                   when others then
                        alert_msg := 'Error looking up Employee: ' || v_emp_num || chr(10) || sqlerrm;
                        SET_ALERT_PROPERTY('GENERIC_ALERT',ALERT_MESSAGE_TEXT, alert_msg);
                        button_pressed := Show_Alert('GENERIC_ALERT');
                   raise form_trigger_failure;
         end;
              if v_person_id is not null then
                   :work_file := v_photo_dir.filename;
                   v_ctl_txt := client_pkg.template;
                   v_ctl_txt := replace(v_ctl_txt, '$OPERATION$', v_operation);
                   v_ctl_txt := replace(v_ctl_txt, '$INFILE$', :photo_file_dir || v_slash || v_photo_dir.filename);
                   v_ctl_txt := replace(v_ctl_txt, '$FILESIZE$', v_photo_dir.filesize);
                   v_ctl_txt := replace(v_ctl_txt, '$PERSON_ID$', v_person_id);
                   v_ctl_filename := 'sqlldr' || v_emp_num || '.ctl';
                   v_ctl_filename := :staging_dir || v_slash || v_ctl_filename;
                   v_log_filename := replace(v_ctl_filename,'.ctl','.log');
                   out_file := Text_IO.Fopen(v_ctl_filename, 'w');
                   text_io.put_line(out_file, v_ctl_txt);
                   text_io.fclose(out_file);
                   v_exec_string := 'sqlldr ' || v_connect_string || ' control=' || v_ctl_filename
                   || ' log=' || v_log_filename;
         --          alert_msg := 'before, v_exec_string= ' || v_exec_string || chr(10);
         --          SET_ALERT_PROPERTY('GENERIC_ALERT',ALERT_MESSAGE_TEXT, alert_msg);
         --          button_pressed := Show_Alert('GENERIC_ALERT');
                   :emp_name := v_emp_name;
                   synchronize;
                   set_custom_property('EXEC_BEAN',1,'CMDSTRING',v_exec_string);
         --          alert_msg := 'after, v_exec_string= ' || v_exec_string || chr(10);
         --          SET_ALERT_PROPERTY('GENERIC_ALERT',ALERT_MESSAGE_TEXT, alert_msg);
         --          button_pressed := Show_Alert('GENERIC_ALERT');
                   v_operation := 'Append';
                   v_load_count := v_load_count + 1;
         --          exit when v_load_count >= nvl(:proc_limit,99999);
              end if;
         end loop;     
         set_custom_property('EXEC_BEAN',1,'CMDSTRING','echo TEST');
    return;
    end if;
    exit_form;
    exception
         when no_data_found then
              Text_IO.Fclose (in_file);
         exit_form;
    when others then
    text_io.fclose(in_file);
    text_io.fclose(out_file);
              alert_msg := 'Error outside loop: ' || chr(10) || sqlerrm;
              SET_ALERT_PROPERTY('GENERIC_ALERT',ALERT_MESSAGE_TEXT, alert_msg);
              button_pressed := Show_Alert('GENERIC_ALERT');
              raise form_trigger_failure;          
    end;
    Hope that helps.............Dave

  • BT Cloud - how to upload multiple files from my an...

    As the title says, how do you do this.? I can only see how to upload single photos at a t ime.
    thanks
    David

    If you use the web interface you can drag-drop up to 200 files at a time.
    If you use the code installed on a PC/Mac, you can add a folder using 'add to backup', and all files and subfolders will get automatically uploaded (and thed folder structure will stay intact).  To install, log in to MyBT, choose the My BT Could button, and the next page will have a download button.
    Any future changes to files in that folder and subfolder will also get backed up: insertions, changes and deletions.  It isn't a real backup: beware with the automatic client version that when you delete files from the folder, they will be deleted from the Cloud backup.
    ~~~
    If you are mainly using it for photos, you may find the not very advertised free Flickr Pro account you can get by signing up with your BT email is more suitable.  Though I still haven't found a really convenient mass upload mechanism for Flickr either.

  • How 2 upload Master Data 4 a Info Object in BI 7.

    Hi,
    I have to load Master Data to a Info Object in BI 7 ( Like Diret Update in 3.5 )
    How 2 upload Master Data 4 a Info Object in BI 7.
    Dont suggest me to " Insert Characteristic as Data Target".
    Points assured.
    Thank you.

    hi...chk these steps..
    Uploading of master data
    Log on to your SAP
    Transaction code RSA1—LEAD YOU TO MODELLING
    1. Creation of Info Objects
    • In left panel select info object
    • Create info area
    • Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
    • Create new characteristics and key figures under respective catalogs according to the project requirement
    • Create required info objects and Activate.
    2. Creation of Data Source
    • In the left panel select data sources
    • Create application component(AC)
    • Right click AC and create datasource
    • Specify data source name, source system, and data type ( master data attributes, text, hierarchies)
    • In general tab give short, medium, and long description.
    • In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
    • In proposal tab load example data and verify it.
    • In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
    • Activate data source and read preview data under preview tab.
    • Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
    3. Creation of data targets
    • In left panel select info provider
    • Select created info area and right click to select Insert Characteristics as info provider
    • Select required info object ( Ex : Employee ID)
    • Under that info object select attributes
    • Right click on attributes and select create transformation.
    • In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    • Activate created transformation
    • Create Data transfer process (DTP) by right clicking the master data attributes
    • In extraction tab specify extraction mode ( full)
    • In update tab specify error handling ( request green)
    • Activate DTP and in execute tab click execute button to load data in data targets.
    4. Monitor
    Right Click data targets and select manage and in contents tab select contents to view the loaded data. Alternatively monitor icon can be used.
    hope this helps..

  • How to upload file from desktop or C drive and send as attachments

    Hello Experts,
    Please tell me
    How to upload jpg or gif or drawing files from desktop or any drive and store into R/3 by the same time I have to send mail as a attachment.
    I heard that FM
    SO_NEW_DOCUMENT_ATT_SEND_API1  is only to send as a  attachment what ever the data is present in the internal table only.
    please help me on that.

    I m using this code its having attachment but I m not able to open the file. Please help me
    I m using gui_upload to upload the file
    PROGRAM  ZTEST
           no standard page heading line-size 255.
    DATA: xfile TYPE string.
    data :     t_IW51 LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: OBJPACK   LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
    DATA: OBJHEAD   LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
    DATA: OBJBIN    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: OBJTXT    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: RECLIST   LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
    DATA: DOC_CHNG  LIKE SODOCCHGI1.
    DATA: TAB_LINES LIKE SY-TABIX.
    data :  email type table of BAPIADSMTP.
    PARAMETERS : file LIKE rlgrap-filename OBLIGATORY.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR file.
      CLEAR file.
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          file_name = file.
      xfile = file.
    START-OF-SELECTION.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename            = xfile
          filetype            = 'ASC'
          has_field_separator = 'X'
        TABLES
          data_tab            = t_IW51.
    Creation of the document to be sent
    File Name
      DOC_CHNG-OBJ_NAME = 'SENDFILE'.
    Mail Subject
      DOC_CHNG-OBJ_DESCR = 'Send External Mail'.
    Mail Contents
      OBJTXT = 'Minimum bid : $250000'.
      APPEND OBJTXT.
      OBJTXT = 'A representation of the pictures up for auction'.
      APPEND OBJTXT.
      OBJTXT = 'was included as attachment.'.
      APPEND OBJTXT.
      DESCRIBE TABLE OBJTXT LINES TAB_LINES.
      READ TABLE OBJTXT INDEX TAB_LINES.
      DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    Creation of the entry for the compressed document
      CLEAR OBJPACK-TRANSF_BIN.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM = 0.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM = TAB_LINES.
      OBJPACK-DOC_TYPE = 'RAW'.
      APPEND OBJPACK.
    Creation of the document attachment
    (Assume that the data in OBJBIN is in BMP format)
    *OBJBIN = ' \O/ '. APPEND OBJBIN.
    *OBJBIN = ' | '. APPEND OBJBIN.
    *OBJBIN = ' / \ '. APPEND OBJBIN.
      OBJBIN[] = t_IW51[].
      DESCRIBE TABLE OBJBIN LINES TAB_LINES.
      OBJHEAD = 'PICTURE.PDF'.
      APPEND OBJHEAD.
      OBJBIN[] = t_IW51[].
    Creation of the entry for the compressed attachment
      OBJPACK-TRANSF_BIN = 'X'.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM = 1.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM = TAB_LINES.
      OBJPACK-DOC_TYPE = 'PDF'.
      OBJPACK-OBJ_NAME = 'PICTURE'.
      OBJPACK-OBJ_DESCR = 'Representation of object 138'.
      OBJPACK-DOC_SIZE = TAB_LINES * 255.
      APPEND OBJPACK.
    Completing the recipient list
      RECLIST-RECEIVER = 'email_id have to enter here'.
      RECLIST-REC_TYPE = 'U'.
      APPEND RECLIST.
      RECLIST-RECEIVER = 'ENTEG01'.
      RECLIST-REC_TYPE = 'P'.
      APPEND RECLIST.
    Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
         DOCUMENT_DATA = DOC_CHNG
         PUT_IN_OUTBOX = 'X'
         commit_work = 'X'
      TABLES
         PACKING_LIST = OBJPACK
         OBJECT_HEADER = OBJHEAD
         CONTENTS_BIN = OBJBIN
         CONTENTS_TXT = OBJTXT
         RECEIVERS = RECLIST
    *EXCEPTIONS
      TOO_MANY_RECEIVERS = 1
      DOCUMENT_NOT_SENT = 2
      OPERATION_NO_AUTHORIZATION = 4
    *OTHERS = 99.
      CASE SY-SUBRC.
        WHEN 0.
          WRITE: / 'Result of the send process:'.
          LOOP AT RECLIST.
            WRITE: / RECLIST-RECEIVER(48), ':'.
            IF RECLIST-RETRN_CODE = 0.
              WRITE 'The document was sent'.
            ELSE.
              WRITE 'The document could not be sent'.
            ENDIF.
          ENDLOOP.
        WHEN 1.
          WRITE: / 'No authorization for sending to the specified number',
                   'of recipients'.
        WHEN 2.
          WRITE: / 'Document could not be sent to any recipient'.
        WHEN 4.
          WRITE: / 'No send authorization'.
        WHEN OTHERS.
          WRITE: / 'Error occurred while sending'.
      ENDCASE.

  • HOW TO UPLOAD DATA FROM EXCEL TO INTERNALTABLE

    HI,
    HOW TO UPLOAD DATA FROM EXCEL TO INTERNALTABLE?  & WITH EXAMPLE.

    hi,
    chk this, put the data into an excel file.
    fields inside it are name and age.
    sample excel sheet.
    coloumn 1 is name and column 2 is age
    name age
    A     8
    C     13
    D     55
    DATA : int_excel LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE.
    data : record like db_name_age occurs 0 with header line.
    DATA : v_start_col TYPE i VALUE '1', "starting col
           v_start_row TYPE i VALUE '1', " starting row
           v_end_col   TYPE i VALUE '2', " total columns
           v_end_row   TYPE i VALUE '10'. "total no of record
    FORM f_upload .
      CLEAR : int_excel, int_excel[].
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                = wf_filename
          i_begin_col             = v_start_col
          i_begin_row             = v_start_row
          i_end_col               = v_end_col
          i_end_row               = v_end_row
        TABLES
          intern                  = int_excel
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
    *Message is 'Unable to upload data from  '  wf_filename.
        MESSAGE e169(zm050) WITH wf_filename.
      ELSE.
        SORT int_excel BY row col.
        REFRESH : record.
        CLEAR   : record.
        LOOP AT int_excel.
          CASE int_excel-col. "go thru each column.
            WHEN 1.
              record-name  = int_excel-value.
            WHEN 2.
              record-age = int_excel-value.     
          ENDCASE.
          AT END OF row.
            APPEND record.
            CLEAR record.
          ENDAT.
        ENDLOOP.
    *inserting into table
    modfiy db_name_age from table record.
      ENDIF.
    <i><b>ANOTHER EXAMPLE</b></i>
    TYPE-POOLS truxs.
    types: begin of t_tab,
    col1(5) type c,
    col2(5) type c,
    col3(5) type c,
    end of t_tab.
    data : itab type standard table of t_tab,
           wa type t_tab.
    data it_type type truxs_t_text_data.
    parameter p_file type rlgrap-filename.
    data ttab type tabname.
    at selection-screen on value-request for p_file.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    PROGRAM_NAME = SYST-CPROG
    DYNPRO_NUMBER = SYST-DYNNR
    FIELD_NAME = 'P_FILE'
    IMPORTING
    FILE_NAME = p_file
    start-of-selection.
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
    I_FIELD_SEPERATOR =
    I_LINE_HEADER = 'X'
    i_tab_raw_data = it_type
    i_filename = p_file
    tables
    i_tab_converted_data = itab[]
    EXCEPTIONS
    CONVERSION_FAILED = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    end-of-selection.
    loop at itab into wa.
    write : wa-col1,
            wa-col2,
            wa-col3.
    endloop.
    rgds,
    anver
    <i>if hlped pls mark points</i>

  • 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

  • How to upload excel file in application server??

    Hi,
    How to upload an excel file into internal table in background mode from application server?
    Thanks

    Hi vipin,
    check this it may help you...
    hope below links helps you
    Export the report list to Excel Sheet
    http://www.sapdevelopment.co.uk/file/file_updown.htm
    or below is a sample programme which helps you upload and download
    REPORT ytest5 LINE-SIZE 80
                    LINE-COUNT 65
                    NO STANDARD PAGE HEADING.
    TABLES: dd02l, dd03l.
    * selection screen
    SELECTION-SCREEN BEGIN OF BLOCK b00 WITH FRAME TITLE text-b00.
    SELECTION-SCREEN BEGIN OF BLOCK b01 WITH FRAME TITLE text-b01.
    PARAMETERS: tabname     LIKE dd02l-tabname OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b01.
    SELECTION-SCREEN BEGIN OF BLOCK b03 WITH FRAME TITLE text-b03.
    PARAMETERS: path(30)    TYPE c DEFAULT 'C:SAPWorkdir'.
    SELECTION-SCREEN END OF BLOCK b03.
    SELECTION-SCREEN BEGIN OF BLOCK b04 WITH FRAME TITLE text-b04.
    PARAMETERS: p_exp RADIOBUTTON GROUP radi,
                p_imp RADIOBUTTON GROUP radi,
                p_clear     AS CHECKBOX.
    SELECTION-SCREEN END OF BLOCK b04.
    SELECTION-SCREEN END OF BLOCK b00.
    * data
    DATA: q_return     LIKE syst-subrc,
          err_flag(1)  TYPE c,
          answer(1)    TYPE c,
          w_text1(62)  TYPE c,
          w_text2(40)  TYPE c,
          winfile(128) TYPE c,
          w_system(40) TYPE c,
          winsys(7)    TYPE c,
          zname(8)     TYPE c,
          w_line(80)   TYPE c.
    * internal tables
    DATA : BEGIN OF textpool_tab OCCURS 0.
            INCLUDE STRUCTURE textpool.
    DATA : END OF textpool_tab.
    * table for subroutine pool
    DATA : itab(80) OCCURS 0.
    * events
    INITIALIZATION.
      PERFORM check_system.
    AT SELECTION-SCREEN ON tabname.
      PERFORM check_table_exists.
    START-OF-SELECTION.
      PERFORM init_report_texts.
      PERFORM request_confirmation.
    END-OF-SELECTION.
      IF answer = 'J'.
        PERFORM execute_program_function.
      ENDIF.
    TOP-OF-PAGE.
      PERFORM process_top_of_page.
    * forms
    *       FORM CHECK_TABLE_EXISTS                                      *
    FORM check_table_exists.
      SELECT SINGLE * FROM dd02l
      INTO CORRESPONDING FIELDS OF dd02l
      WHERE tabname = tabname.
      CHECK syst-subrc NE 0.
      MESSAGE e402(mo) WITH tabname.
    ENDFORM.
    *       FORM INIT_REPORT_TEXTS                                        *
    FORM init_report_texts.
      READ TEXTPOOL syst-repid
      INTO textpool_tab LANGUAGE syst-langu.
      LOOP AT textpool_tab
      WHERE id EQ 'R' OR id EQ 'T'.
        REPLACE '&1............................'
        WITH tabname INTO textpool_tab-entry.
        MODIFY textpool_tab.
      ENDLOOP.
    ENDFORM.
    *       FORM REQUEST_CONFIRMATION                                     *
    FORM request_confirmation.
    * import selected, confirm action
      IF p_imp = 'X'.
    *   build message text for popup
        CONCATENATE 'Data for table'
                     tabname
                     'will be imported' INTO w_text1 SEPARATED BY space.
    *   check if delete existing selected, and change message text
        IF p_clear = ' '.
          w_text2 = 'and appended to the end of existing data'.
        ELSE.
          w_text2 = 'Existing Data will be deleted'.
        ENDIF.
        CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
             EXPORTING
                  defaultoption  = 'N'
                  textline1      = w_text1
                  textline2      = w_text2
                  titel          = 'Confirm Import of Data'
                  cancel_display = ' '
             IMPORTING
                  answer         = answer
             EXCEPTIONS
                  OTHERS         = 1.
      ELSE.
    *   export selected, set answer to yes so export can continue
        answer = 'J'.
      ENDIF.
    ENDFORM.
    *       FORM EXECUTE_PROGRAM_FUNCTION                                 *
    FORM execute_program_function.
      PERFORM build_file_name.
      CLEAR: q_return,err_flag.
      IF p_imp = 'X'.
        PERFORM check_file_exists.
        CHECK err_flag = ' '.
        PERFORM func_import.
      ELSE.
        PERFORM func_export.
      ENDIF.
    ENDFORM.
    *       FORM BUILD_FILE_NAME                                          *
    FORM build_file_name.
      MOVE path TO winfile.
      WRITE '' TO winfile+30.
      WRITE tabname TO winfile+31.
      WRITE '.TAB' TO winfile+61(4).
      CONDENSE winfile NO-GAPS.
    ENDFORM.
    *       FORM CHECK_FILE_EXISTS                                        *
    FORM check_file_exists.
      CALL FUNCTION 'WS_QUERY'
           EXPORTING
                filename = winfile
                query    = 'FE'
           IMPORTING
                return   = q_return
           EXCEPTIONS
                OTHERS   = 1.
      IF syst-subrc NE 0 OR q_return NE 1.
        err_flag = 'X'.
      ENDIF.
    ENDFORM.
    *     FORM func_export                                              *
    FORM func_export.
      CLEAR itab. REFRESH itab.
      APPEND 'PROGRAM SUBPOOL.' TO itab.
      APPEND 'FORM DOWNLOAD.' TO itab.
      APPEND 'DATA: BEGIN OF IT_TAB OCCURS 0.' TO itab.
      CONCATENATE 'INCLUDE STRUCTURE'
                  tabname
                  '.' INTO w_line SEPARATED BY space.
      APPEND w_line TO itab.
      APPEND 'DATA: END OF IT_TAB.' TO itab.
      CONCATENATE 'SELECT * FROM'
                  tabname
                  'INTO TABLE IT_TAB.' INTO w_line  SEPARATED BY space.
      APPEND w_line TO itab.
      APPEND 'CALL FUNCTION ''WS_DOWNLOAD''' TO itab.
      APPEND 'EXPORTING' TO itab.
      CONCATENATE 'filename = ' ''''
                  winfile '''' INTO w_line SEPARATED BY space.
      APPEND w_line TO itab.
      APPEND 'filetype = ''DAT''' TO itab.
      APPEND 'TABLES' TO itab.
      APPEND 'DATA_TAB = IT_TAB.' TO itab.
      APPEND 'DESCRIBE TABLE IT_TAB LINES sy-index.' TO itab.
      APPEND 'FORMAT COLOR COL_NORMAL INTENSIFIED OFF.' TO itab.
      APPEND 'WRITE: /1 syst-vline,' TO itab.
      APPEND '''EXPORT'',' TO itab.
      APPEND '15 ''data line(s) have been exported'',' TO itab.
      APPEND '68 syst-index,' TO itab.
      APPEND '80 syst-vline.' TO itab.
      APPEND 'ULINE.' TO itab.
      APPEND 'ENDFORM.' TO itab.
      GENERATE SUBROUTINE POOL itab NAME zname.
      PERFORM download IN PROGRAM (zname).
    ENDFORM.
    *       FORM func_import                                              *
    FORM func_import.
      CLEAR itab. REFRESH itab.
      APPEND 'PROGRAM SUBPOOL.' TO itab.
      APPEND 'FORM UPLOAD.' TO itab.
      APPEND 'DATA: BEGIN OF IT_TAB OCCURS 0.' TO itab.
      CONCATENATE 'INCLUDE STRUCTURE'
                  tabname
                  '.' INTO w_line SEPARATED BY space.
      APPEND w_line TO itab.
      APPEND 'DATA: END OF IT_TAB.' TO itab.
      APPEND 'DATA: BEGIN OF IT_TAB2 OCCURS 0.' TO itab.
      CONCATENATE 'INCLUDE STRUCTURE'
                  tabname
                  '.' INTO w_line SEPARATED BY space.
      APPEND w_line TO itab.
      APPEND 'DATA: END OF IT_TAB2.' TO itab.
      APPEND 'CALL FUNCTION ''WS_UPLOAD''' TO itab.
      APPEND 'EXPORTING' TO itab.
      CONCATENATE 'filename = ' ''''
                  winfile '''' INTO w_line SEPARATED BY space.
      APPEND w_line TO itab.
      APPEND 'filetype = ''DAT''' TO itab.
      APPEND 'TABLES' TO itab.
      APPEND 'DATA_TAB = IT_TAB.' TO itab.
      IF p_clear = 'X'.
        CONCATENATE 'SELECT * FROM'
                    tabname
                    'INTO TABLE IT_TAB2.' INTO w_line SEPARATED BY space.
        APPEND w_line TO itab.
        APPEND 'LOOP AT IT_TAB2.' TO itab.
        CONCATENATE 'DELETE'
                    tabname
                    'FROM IT_TAB2.' INTO w_line SEPARATED BY space.
        APPEND w_line TO itab.
        APPEND 'ENDLOOP.' TO itab.
        APPEND 'COMMIT WORK.' TO itab.
      ENDIF.
      APPEND 'LOOP AT IT_TAB.' TO itab.
      CONCATENATE 'MODIFY'
                  tabname
                  'FROM IT_TAB.' INTO w_line SEPARATED BY space.
      APPEND w_line TO itab.
      APPEND 'ENDLOOP.' TO itab.
      APPEND 'DESCRIBE TABLE IT_TAB LINES sy-index.' TO itab.
      APPEND 'FORMAT COLOR COL_NORMAL INTENSIFIED OFF.' TO itab.
      APPEND 'WRITE: /1 syst-vline,' TO itab.
      APPEND '''IMPORT'',' TO itab.
      APPEND '15 ''data line(s) have been imported'',' TO itab.
      APPEND '68 syst-index,' TO itab.
      APPEND '80 syst-vline.' TO itab.
      APPEND 'ULINE.' TO itab.
      APPEND 'ENDFORM.' TO itab.
      GENERATE SUBROUTINE POOL itab NAME zname.
      PERFORM upload IN PROGRAM (zname).
    ENDFORM.
    *       Form  CHECK_SYSTEM
    *            Check users workstation is running
    *            WINDOWS 95, or WINDOWS NT.
    *            OS/2 uses 8.3 file names which are no good for
    *            this application as filenames created are 30 char
    *            same as table name.
    *            You could change the logic to only use the first 8 chars
    *            of the table name for the filename, but you could possibly
    *            get problems if users had exported already with a table
    *            with the same first 8 chars.
    *            As an alternate method you could request the user to input
    *            the full path including filename and remove the logic to
    *            build the path using the table name.
    FORM check_system.
      CALL FUNCTION 'WS_QUERY'
           EXPORTING
                query  = 'WS'
           IMPORTING
                return = winsys.
      IF winsys NE 'WN32_95'.
        WRITE: 'Windows NT or Windows 95/98 is required'.
        EXIT.
      ENDIF.
    ENDFORM.                               " CHECK_SYSTEM
    *       FORM PROCESS_TOP_OF_PAGE                                      *
    FORM process_top_of_page.
      FORMAT COLOR COL_HEADING INTENSIFIED ON.
      ULINE.
      CONCATENATE syst-sysid
                  syst-saprl
                  syst-host INTO w_system SEPARATED BY space.
      WRITE : AT /1(syst-linsz) w_system CENTERED.
      WRITE : AT 1 syst-vline, syst-uname.
      syst-linsz = syst-linsz - 11.
      WRITE : AT syst-linsz syst-repid(008).
      syst-linsz = syst-linsz + 11.
      WRITE : AT syst-linsz syst-vline.
      LOOP AT textpool_tab WHERE id EQ 'R'.
        WRITE : AT /1(syst-linsz) textpool_tab-entry CENTERED.
      ENDLOOP.
      WRITE : AT 1 syst-vline, syst-datum.
      syst-linsz = syst-linsz - 11.
      WRITE : AT syst-linsz syst-tcode(004).
      syst-linsz = syst-linsz + 11.
      WRITE : AT syst-linsz syst-vline.
      LOOP AT textpool_tab WHERE id EQ 'T'.
        WRITE : AT /1(syst-linsz) textpool_tab-entry CENTERED.
      ENDLOOP.
      WRITE : AT 1 syst-vline, syst-uzeit.
      syst-linsz = syst-linsz - 11.
      WRITE : AT syst-linsz 'Page', syst-pagno.
      syst-linsz = syst-linsz + 11.
      WRITE : AT syst-linsz syst-vline.
      ULINE.
      FORMAT COLOR COL_HEADING INTENSIFIED OFF.
      LOOP AT textpool_tab WHERE id EQ 'H'.
        WRITE : AT /1(syst-linsz) textpool_tab-entry.
      ENDLOOP.
      ULINE.
    ENDFORM.
    if it helps you reward with points.
    regards,
    venu
    regards,
    venu.

  • How to upload Excel data in Ztables fastly & easily.

    Dear ALL,
    I  want to compare material codes in 2 different excel sheets.
    I have downloaded output from 2 different SQVI into 2 different excel sheets.
    Now I want to compare these 2 sheets to get matching codes or unmatching codes.
    I can use VLOOKUP in excel also. But How can I make use of ABAP by downloading these excel data in 2 different Ztables and compare these 2 tables with some user defined TC (transaction code) ?
    For this activity How to upload Excel data(2 sheets) in 2 Ztables fastly & easily ?
    Is there any method other than SCAT , BDC and LSMW  ???
    Or which is best method in above ?
    Pl' reply.
    Thanks.

    Have a look at the program
    *: Description                                                :
    *: This is a simple example program to get data from an excel :
    *: file and store it in an internal table.                    :
    *: Author : www.sapdev.co.uk, based on code from Jayanta      :
    *: SAP Version : 4.7                                          :
    REPORT  zupload_excel_to_itab.
    TYPE-POOLS: truxs.
    PARAMETERS: p_file TYPE  rlgrap-filename.
    TYPES: BEGIN OF t_datatab,
          col1(30)    TYPE c,
          col2(30)    TYPE c,
          col3(30)    TYPE c,
          END OF t_datatab.
    DATA: it_datatab type standard table of t_datatab,
          wa_datatab type t_datatab.
    DATA: it_raw TYPE truxs_t_text_data.
    At selection screen
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          field_name = 'P_FILE'
        IMPORTING
          file_name  = p_file.
    *START-OF-SELECTION.
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
        I_FIELD_SEPERATOR        =
          i_line_header            =  'X'
          i_tab_raw_data           =  it_raw       " WORK TABLE
          i_filename               =  p_file
        TABLES
          i_tab_converted_data     = it_datatab[]    "ACTUAL DATA
       EXCEPTIONS
          conversion_failed        = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    END-OF-SELECTION.
    END-OF-SELECTION.
      LOOP AT it_datatab INTO wa_datatab.
        WRITE:/ wa_datatab-col1,
                wa_datatab-col2,
                wa_datatab-col3.
      ENDLOOP.
    Message was edited by:
            K N  REDDY

  • How to upload Excel file in BI using function module in abap program

    How to upload Excel file in BI using function module in abap program?

    Hi Anuj,
    To upload the file , you can try a standard program "RSEPSFTP" .
    while you execute the program , a selection screen appears in which the inputs should be give as
    RFC destination - The target server name
    FTP command- PUT
    local file - your file name
    local directory - path of your local file
    remote file - your target file name
    remote directory - where it has to be stored
    Hope this is useful for you
    Thanks & regards
    Anju

  • How to upload the file from website into R/3

    Dear Experts,
              I want to post the data in r/3 using bdc.but flat file is available in some website for eg.'www.sap.com'.how to retrieve the flat file from the website and how to upload the data from website to r/3.
    It is very urgent please help me.
    Thanks & Regards,
    Ashok.

    Hi Ashok,
        We cannot directly pulled data from website. we need to activate webservices and rfcs. Better you could asked to your Basis guy that he knows or not. If not then do sdn you will get the appropriate answer. I can only say that its possible and we can download from website.
    Regds,
    Rakesh

  • How to upload a text file from a shared folder and provide an o/p

    how to upload a text file from a shared folder and provide an o/p  containing the details in each order in the text file

    Hi,
    Use <b>GUI_UPLOAD</b> to upload a text file from a shared folder.
    Use <b>GUI_DOWNLOAD</b> to download data in a file on the presentation server or use <b>OPEN DATASET, TRANSFER</b> and <b>CLOSE DATASET</b> statements to download data to the application server.
    Now, I hope the code for data fetching, if required, is already present in the report.
    Reward points if the answer is helpful.
    Regards,
    Mukul

  • How to upload file from one machine (windows) to another (linux)through cre

    How to upload a file from windows platform to linux platform.
    on both platforms sun app server is running.
    from creator is there any methode to open ftp port and upload

    http://www.google.com/search?q=jdbc+blob
    Blob processing varies between databases; see also examples for whatever database you are using, e.g.
    http://www.google.com/search?q=jdbc+blob+oracle
    If you are storing text data instead of binary data, replace "blob" by "clob" in the searches.

Maybe you are looking for