Upload excel and update infotype 8

Hi
I got excel sheet with Emp ID, grade and Level.  Using this excel sheet I needed to update all the employees  grade and level (Info type 8 group and level).
Please let me know how to upload it.
Regards,
Sebastian  John
Excel sheet format is
Emp  ID                        Grade         Level
102                               8                12
104                               7                15

Hi Sebastian John
Use FM  GUI_UPLOAD and  HR_INFOTYPE_OPERATION
GUI_UPLOAD ==> to upload text or excel file to internal table
then for each record... Note: You must be having mandatory(Primary Key) fileds in your flat file
loop at itab.
calll function 'HR_INFOTYPE_OPERATION'.
endloop.
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya

Similar Messages

  • Open Excel and update the data in the Excelsheet

    Dear Experts,
    i load an Excel from the BDS to my Desktop and opan it
    Then should i update fields in the Excelsheet update with new values.
    Have somebody a sample
    Thank you
    Frank

    This is may Code !
    ATA: lt_file TYPE filetable.
    DATA: ls_file LIKE LINE OF lt_file.
    START-OF-SELECTION.
    cl_gui_frontend_services=>file_open_dialog(
      CHANGING
        file_table              =  lt_file  " Table Holding Selected Files
        rc                      =  lv_rc  ). " Return Code, Number of Files or -1 If Error Occurred
    READ TABLE lt_file INTO ls_file INDEX 1.
    IF sy-subrc = 0.
      lv_filename = ls_file-filename.
    ENDIF.
    CALL FUNCTION 'BDS_DOCUMENT_GET_TABLE'
      EXPORTING
      CLIENT                = SY-MANDT
        DOC_ID                = 'BDS_LOC2  AB359E8A6553AE4586BE29E15A1F6D3F'
      BINARY_FLAG           = 'X'
      TABLES
        SIGNATURE             = lt_SIGNATURE
        COMPONENTS            = lt_COMPONENTS
       CONTENT               = lt_CONTENT
       ASCII_CONTENT         = lt_ASCII_CONTENT
    EXCEPTIONS
       NOTHING_FOUND         = 1
       PARAMETER_ERROR       = 2
       NOT_ALLOWED           = 3
       ERROR_KPRO            = 4
       INTERNAL_ERROR        = 5
       NOT_AUTHORIZED        = 6
       OTHERS                = 7.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop at lt_CONTENT.
      CONCATENATE content lt_content-LINE into content in byte mode.
    endloop.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        buffer     = CONTENT
      TABLES
        binary_tab = pdf_data_tab.
    filename =  lv_filename.
    cl_gui_frontend_services=>gui_download(
      EXPORTING
        filename = filename
        filetype = 'BIN'
      CHANGING
        data_tab = pdf_data_tab ).
    cl_gui_frontend_services=>execute(
      EXPORTING
        document = filename ).
    filex = filename .
    data: e_sheet type ole2_object.
    data: e_appl  type ole2_object.
    data: e_work  type ole2_object.
    data: e_cell  type ole2_object.
    data: field_value(30) type c.
    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 = filex.
    on this Point i wandt manupulate the Values in the Excelfile

  • Upload file and update text at the same time

    I wanted upload a file and i have text box also, i know how
    to upload a file but the problem i cannot update the text box at
    the same time can anyone share how, I'm using the
    ASPSimpleUpload.Upload.
    please helpe thanks

    Do you mean something like this?
    SQL> create table table_name
      2  (column_a number
      3  ,column_b number
      4  ,column_c number
      5  ,date_column_d date
      6  );
    Table created.
    SQL>
    SQL> insert into table_name values (0,0,0,sysdate);
    1 row created.
    SQL> insert into table_name values (1,1,1,sysdate);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> create view view_name
      2  as
      3  select
      4  column_a,
      5  column_b,
      6  column_c,
      7  case when column_c = 1 then to_date('01-JAN-1900','DD-MON-YYYY')
      8       else date_column_d
      9  end  date_column_d
    10  from
    11  table_name;
    View created.
    SQL> select * from view_name;
                COLUMN_A             COLUMN_B             COLUMN_C DATE_COLUMN_D
                       0                    0                    0 12-DEC-2008 07:42:15
                       1                    1                    1 01-JAN-1900 00:00:00Edited by: SomeoneElse on Dec 12, 2008 7:42 AM

  • After hours of back-up, downloading and uploading...I am now updated with all the latest Mac software. However, I no longer have access to Excel and Word. Is there a way I can access my documents in either of those? Help, please.

    After hours of back-up, downloading and uploading...I am now updated with all the latest Mac software. However, I no longer have access to Excel and Word. Is there a way I can access my documents in either of those? Help, please.

    If you have older versions of excel and word that previously ran under the Rosetta emulator (allows PowerPC code to run on Intel system), they will no longer work with Lion.
    You can use the Apple programs Pages and Numbers to access the files. They can be bought and downloaded from the App store. NeoOffice is available at http://www.neooffice.org/neojava/en/index.php which has Lion support. OpenOffice doesn't talk to Lion support, it's at http://www.openoffice.org/

  • Standard programs to upload / update infotypes

    Please provide updates for this question:
    What are the standard SAP programs to update infotypes ( Ex: 001 / 002 / 003 ) .
    I will be uploading data from legacy system ( Excel / Text file ) and would like to use standard programs
    before going ahead with BDC .
    Thanks
    Rohan

    Please provide updates for this question:
    What are the standard SAP programs to update infotypes ( Ex: 001 / 002 / 003 ) .
    I will be uploading data from legacy system ( Excel / Text file ) and would like to use standard programs
    before going ahead with BDC .
    Thanks
    Rohan
    Hi Rohan ,
         you can update you infotype using 'HR_INFOTYPE_OPERATION' function module .
    1)   transfer all your excel data  into internal table .
    2)   loop at internal table
    3)  fill all the required field of that infotype .
    4) lock table
    5) call that functuion module .
    6) unlock table
    for this fallow the below code...
    DATA: it_p0169 TYPE STANDARD TABLE OF pa0169 WITH HEADER LINE.  (make internal table according to your requirment)
    DATA: wa_p0169  TYPE p0169.
    LOOP AT it_file
          v_eeamt = it_file-pct_gross.
    *Pre-Tax Contribution Percentage
          v_eepct = v_eeamt / 10.
          v_begda = it_file-datchngd .
    *Appending into header (these all are the required filed in my case )
         it_p0169-eeamt =  v_eeamt.
          it_p0169-begda =  v_begda.
          it_p0169-eepct =  v_eepct.
          it_p0169-bplan =  v_bplan .
          CLEAR wa_p0169.
          MOVE-CORRESPONDING it_p0169 TO wa_p0169.
          wa_p0169-INFTY = '0169'.    (not forget to pass infotype no in the header )
    CONSTANTS: c_action_ins  TYPE pspar-actio VALUE 'MOD',   (it can be also COP for Copy , DEL for Delete , DIS for Display , MOD to Change , LIS9 to  Delimit , INS to Create )
               c_infty_0169  TYPE prelp-infty VALUE '0169'.
    DATA: it_return  TYPE bapireturn1. (as it is )
    DATA: it_return  TYPE bapireturn1.
      CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          number = p_pernr
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc <> 0.
         RAISE enqueue_FAILED.
      ENDIF.
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        infty                  = c_infty_0169
        number                 = p_wa_0169-pernr
        SUBTYPE                = '401K'
        OBJECTID               =
        LOCKINDICATOR          =
        validityend            = p_wa_0169-endda
        validitybegin          = v_begda1
        RECORDNUMBER           =
        record                 = p_wa_0169
        operation              = c_action_ins
        TCLAS                  = 'A'
        DIALOG_MODE            = '0'
        NOCOMMIT               =
        VIEW_IDENTIFIER        =
        SECONDARY_RECORD       =
      IMPORTING
        return                 = it_return.
       if it_return-MESSAGE is not initial .
         delete it_file .
       endif.
    commit work .
      CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
        EXPORTING
          number = p_pernr
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc <> 0.
         RAISE DEQUEUE_FAILED.
      ENDIF.
    Enjoy
    Priyank

  • CSV upload and update table fields

    Hi,
    Is there any way to update any field of the underlying table from HTMLDB while importing the CSV file?For e.g, if there are XYZ table have 200 ermployee where empno is primary key.
    Once we upload the data from CSV its fine.Now after 2 weeks i need to update the sal and ename corresponding to the previous 100 employees only.So now when i trying to update the data a unique constraints violation occurs since the empno have already present so my concern is that -- how to get out of this problem specially when updation of huge no. of records needed and also no updation required for some records already present?Do the CSV update be helpful on that circumstances?
    One thing we can do that we can track down the list of 100 employee whose information going to be updated.Put those info in excel and add rest 100 emplyee to that excel and again doing the CSV upload ?
    This is a huge issue and not only the tedious task but also errorprone and that task will be increased with the amount of data increasing in the table.
    Please anyone can suggest ?
    Regards,
    ROSY.

    The best way to solve your problem is next way.
    1º) Save the file with the data to import like a BLOV ITEM.
    Ok it can be done. CSV placed on BLOB data field.2º) Make a procedure to manage this BLOV item that can be fired by user pushing a buttom. (you can do it easy from HTMLDB).
    how to manage ? What need to be fire to push the CSV to the target table with the actual field population ?3º) Into this procedure insert the records freely and dont worry for anything more. (maybe you can be worry about duplicate records is so, only, into this same procedure make any pl/sql lines to be sure record is not duplicate before insert)
    ? ? ? If the data already exist it should be needed to truncate before insert that is not my reqr rather the existing data should be updated based on PK if any chages occurs in the CSV fo that data.4º) after you are sure the insert work properly and if you need any other treatment to record, with a trigger in the table or calling any other procedure from the same trigger make the traeataments that you need.
    that can be done highly .......before insert trigger.Remember. Dont put any commit.
    sure.......5º) Go down from horse. Dont take coffe or Tea in exceed. And remember all we are the same, people that only want go to eat with childs in week-end.
    i m in land no way to go down........nothing i take ya eat & eat much ....but this is not the right place for making comments about Weekend....Regards and good luck.
    anyway embargo starts...........enjoy Cheers...........Wish u All Hp XMas...

  • Can I put an Excel sheet on my iPad and iPhone and update it ?

    Hi
    I'm fairly new to Mac computers.
    We have a new Imac OS X Version 10.7.4 and we also have an Ipad 2 OS X Version 5.1.1
    I have an Iphone 4S.
    My question is can I put a Word Excel sheet from my main computer onto my Ipad and Iphone and update them when away from home.
    I would then want to sync the updated work back onto the main computer when i return home.
    Is that possible ?
    Many thanks
    T_M_G

    Welcome to the Apple community.
    You can upload some types of Excel spreadsheets to the cloud using the iWork feature on the iCloud.com website, by dragging and dropping from your computer desktop.
    Once in the cloud, the document will be converted to a numbers document when opened on an iOS device, where you can make changes and save the document back to the cloud. When you come to require the document on your computer again, you will be able to download it from the iCloud.com website in one of three formats (numbers, Excel, PDF).

  • How multiple users can open and update it same time in Sharepoint 2010, excel file

    we are using SharePoint 2010, multiple users can open and update the file at same time in SharePoint, I have searched a lot and
    read it, some suggestions were can create the file as share work book and then save on Share point and other were its supported only with Office web Apps, Excel Web App, we don't have office Web apps or excel web app, is there any other suggestion,
    any help will be great, thanks in advance

    Hi,
    You need office web apps for co-authoring, see Software version requirements for co-authoring in SharePoint 2013 and SharePoint Online section in below link -
    http://technet.microsoft.com/en-us/library/ff718249(v=office.15).aspx
    and
    http://office.microsoft.com/en-us/sharepoint-foundation-help/document-collaboration-and-co-authoring-HA102772333.aspx
    Edit: Link for SP 2010
    http://technet.microsoft.com/en-us/library/ff718249(v=office.14).aspx
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • How to add new row and update existing rows at a time form the upload file

    hi
    How to add new row and update existing rows at a time form the upload file
    example:ztable(existing table)
    bcent                      smh            nsmh         valid date
    0001112465      7.4                       26.06.2007
    0001112466      7.5                       26.06.2007
    000111801                      7.6                       26.06.2007
    1982                      7.8                       26.06.2007
    Flat file structure
    bcent                       nsmh         valid date
    0001112465     7.8     26.06.2007  ( update into above table in nsmh)
    0001112466     7.9     26.06.2007  ( update into above table in nsmh) 
    000111801                     7.6      26.06.2007 ( update into above table in nsmh
    1985                      11              26.06.2007   new row it should insert in table
    thanks,
    Sivagopal R

    Hi,
    First upload the file into an internal table. If you are using a file that is on application server. Use open dataset and close dataset.
    Then :
    Loop at it.
    *insert or modify as per your requirement.
    Endloop.
    Regards,
    Srilatha.

  • Mass Master data Upload from MS Excel and JDE into SAP ( ECC 6.0)

    Hi
    We are deciding the best method of uploading 2 million fixed assets Master data from Excel and JDE
    We are following Batch Input (RAALTD001) and Direct Input methods (RAALTD11)
    I am looking for some other efficient alternative for this upload
    Look forward ot hear form you experts !!
    Thanks
    Milind

    hi
    good
    both works not possible simultaneously.
    If you want to do it in two separate task than you can use the GUI_UPLOAD function module to fulfill your requirement.
    thanks
    mrutyun^

  • How to get new and updated data into LO Excel in Xcelsius

    Dear Experts,
    I have created dashboard on top of webi report by using Live-Office connection. Latest data of webi report is imported into excel and mapped data with components and generated SWF file and exported into server.
    To day my webi report has latest instance with new and updated data. But until unless by clicking "Refresh All Objects" i am not getting updated data into excel.
    When i am trying to open dashboard in BI Launch Pad/CMC it is showing data whatever exist in excel(i.e yesterday data). But here we need to show data of latest instance of webi report.(i.e New and updated data as of now).
    I have selected option "Latest instance: From latest instance scheduled by" in "refresh options".
    My Question & Doubts:
    1) Is it mandatory to open dashboard every day and need to click on "Refresh All Objects" to get updated data into excel or dashboard.
    2) Is there any option to automate this process.
    Regards,
    PRK.

    Hi,
    Schedule the webi report to get the latest data from the source. To answer your query no is doesn't require to open the dashboard every time to refresh the excel to get the latest data.
    Please use the Refresh Before Components are Loaded: Select this option to refresh the data each time the model loads and to use that data as the initial data for the model (using a Reset Button component, it will reset the data to the values from the last time the model was loaded).
    You are using the Live Office  so here automatic refresh is not possible without touch the swf file, you need to use the refresh but to get the latest data. If you are using QAAWS, Web Service & XML then automatic refresh is possible.
    For more information please check the below document for in-depth idea on the design pattern.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b02e31fb-3568-2e10-e78f-92412c3c0a96?overridelayout=t…
    Kindly revert for more clarification!!!
    --SumanT

  • Export to Excel and File Upload is not working on ipad/IPhone

    Hi
    We have a site in ASP.Net 2008 which is running on browsers and devices. There is an option to export to excel and file uploadd, It is working in the browsers but not working in Devices like IPad and Iphone. we are creating xml file when export to excel. We have tried it on IPad1,IPad3 and iphone3.
    can you please elaborate the causes of these issues? Pleas support to fix the issues.
    Regards,
    Manoj

    How does your PL/SQL for the saving of uploaded files looks like? Where does this error happen? Does your process have an error message?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Microsoft Word 2008 refuses to work for me after installing the most recent Mavericks update, 10.9.1. It is 2008, yet Excel and Powerpoint work just fine. Help!

    Microsoft Word 2008 refuses to work for me after installing the most recent Mavericks update, 10.9.1. It is 2008, yet Excel and Powerpoint work just fine. Help!

    I suggest you do one of two things:
    1. Upgrade to Office 2011 for OS X.
    2. Try the freeware, Libre Office.

  • Upload excel file and display content in sapui5 table

    hi:all
       how to upload  excel files and display its contents in the view of sapui5  table ,then  'create ' these data into the abap database using odataservice.
         Do you have any solutions ? I appreciate for your help.

    Two possible way come to mind.
    1. ADF DI (desktop integration): sorry, don't know enough about it to give a how to :-(
    2. POI (http://poi.apache.org/) : open source project to read and write excel file with java. Using POI you can open the .xsl file, read it's contents and display it as af:table. For this you need to read the xsl into a data structure (this can be a temporary db table or a list of POJOs) and build a data control out of it. This you can drop on a page as table.
    Timo
    Edited by: Timo Hahn on 15.02.2010 13:59

  • Finally got round to buying an iPhone 4, really excellent to start with. The sharing of music from my Mac Mini was excellent. ios6 update has ruined all that! The artist view miss's out most of my music and the sharing sometimes doesn't work at all!

    Finally got round to buying an iPhone 4, really excellent to start with. The sharing of music from my Mac Mini was excellent. ios6 update has ruined all that! The artist view miss's out most of my music and the sharing sometimes doesn't work at all!
    How do I get this feature working again? I am reluctant to move to iTunes 10.7 because I don't trust Apple at the moment.

    My suggestion:
    1) Always using MAC AIR with the power plug in.
    2)Don' let the power level of battory fall under 30% percentage.
    3)If the MAC can't be recharged now, just let it be with power plugged, WAIT...

Maybe you are looking for

  • MULTIPLE WORKSHEETS PER EXCEL WORKBOOK USING XSLT

    Hi everybody, My query is on how multiple worksheets per excel file can be created using xslt programming. From my report program i call the xslt transformation passing an internal table. Based on the changes in the values of a particular field in th

  • Error -2048: Quicktime refuses to open Jobs iPhone SDK Presentation

    Hi, I have had this happen to me during the special iMac event last summer and currently with the iPhone SDK event. I get the error message: "Error -2048: Couldn't open the file m08770365506i_650ref.mov because it is not a file that Quicktime underst

  • How DHCP scope will work between two Wireless contoller

    Dear All,              I would like to inform you that we are going to deploy Wireless Network with redundancy of Wireless LAN Controller and we need to figure out how DHCP scope would work during fail over  any one of Wireless LAN controller and DHC

  • NAC Agent Login Trouble

    I'm a student at Georgia Southern University.  I use a Lenovo X200 Tablet with Windows 7 Ultimate 32-bit.  Up until last week I had no trouble with NAC agent logging into my university's network.  Since last monday or so, when I log in it says I have

  • State Machine Cases revert to numbers

    I have implemented a case machine using a type def enum to select the cases. The enum is a set of strings identifying each state. Initially the string for each state is listed in the case. There is something that I occasionally do when modifying the