Uploading data in standard infotype for many pernrs.

how to upload data for many pernrs through a single fm in a standard infotype ????
please help me...

CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        INFTY                  = '2010'
        NUMBER                 = P2010-pernr "wa_ot_calc-pernr
        VALIDITYEND            = P2010-endda "wa_ot_calc-zotdate
        VALIDITYBEGIN          = P2010-begda "wa_ot_calc-zotdate
        RECORD                 = P2010
        OPERATION              = 'INS'
        DIALOG_MODE            = '0'
        NOCOMMIT               = 'X'
     IMPORTING
        RETURN                 = BAPISUBRC.
    IF SY-SUBRC <> 0 OR
       NOT BAPISUBRC IS INITIAL.
      MESSAGE ID  BAPISUBRC-ID
            TYPE  BAPISUBRC-TYPE
          NUMBER  BAPISUBRC-NUMBER
            WITH  BAPISUBRC-MESSAGE_V1
                  BAPISUBRC-MESSAGE_V2
                  BAPISUBRC-MESSAGE_V3
                  BAPISUBRC-MESSAGE_V4.
    ENDIF.
i resolved the error im gettin for table declaration but now d fm is not executing properly
after execution it gives error message : Enter a Quantity.
i dont knw frm whr it is coming.........im passin d values to table as:
    MOVE wa_ot_calc-pernr TO P2010-pernr.
    MOVE '1006' TO P2010-subty.
    MOVE wa_ot_calc-zotdate TO P2010-endda.
    MOVE wa_ot_calc-zotdate TO P2010-begda.
    MOVE sy-datum TO P2010-aedtm.
    MOVE sy-uname TO P2010-uname.
    MOVE wa_ot_calc-not_hrs TO P2010-stdaz.
    MOVE '1006' TO P2010-lgart.
is anythin wrong in this..?

Similar Messages

  • Save Temporary data from Standard infotype for 9003 infotype  module pool

    Hi,
         I need to save some data from infortype 0000 screen call that needs to be used in some other program.
    Pleasse suggest any way out.
    Regards,
    Shashank

    need to resolve for new questions..

  • Uploading data into Time Infotypes

    Dear All,
    I have a requirement wherein I need to upload data into time infotypes from an external source(file). The data is required to be uploaded into the relevant infotypes based on the content(attendance, absence etc.)
    Can you please suggest a generic way of uploading data into time infotypes.
    Thanks in advance,
    Sujit.

    Hi Sujit
    You can either create a BDC report to upload the data or use FM HR_INFOTYPE_OPERATION to upload the infotype in your report

  • Uploading data to OM infotypes

    Hi,
    Can anyone pls let me know what is the best method to upload data into infotyp hrp1051 its an OM infotype.
    AS per my search i understood PA infotype can be uploaded with HR_MAINTAIN_MASTERDATA.
    Here my doubt is Can OM infotypes also be updated using this FM or we need to go for BDC,LSMW.
    Thanks.

    HI Salini
    There are various FMs available for this purpose..
    If u directly insert, update or modify record in OM Infotpye Tables then some related table might not be updated..
    So use FMs..
    RH_COPY_INFTY
    RH_CUT_INFTY
    RH_DELETE_INFTY
    RH_INSERT_INFTY
    RH_INVERT_RELA_INFTY
    RH_UPDATE_INFTY
    For IT 1001
    RH_CUT_INFTY_1001_EXT
    RH_CUT_INFTY_1001_EXT_GENERIC
    RH_DELETE_INFTY_1001_EXT
    RH_DEL_INFTY_1001_EXT_GENERIC
    RH_INSERT_INFTY_1001_EXT
    RH_UPDATE_INFTY_1001_EXT
    RH_BASE_READ_INFTY_1001
    RH_READ_INFTY_1001
    RH_READ_INFTY_1001_EXT
    RH_READ_INFTY_1001_EXT_ONLY
    Hope this helps.
    Harsh

  • How to upload data into Classification-MM02 for each MATNR By using BAPI

    Hi all
          How to upload data into characterstic value in  classification- MM02 for each MATNR by using BAPI.

    Hi Siva,
    Please try BAPI BAPI_OBJCL_CHANGE.
    The object key should be material number and object table should be MARA.
    Regards
    Hiren K.Chitalia

  • How to upload data into an infotype?

    hi all,
       I have upload the data from an text file into infotye IT0169. for this i have to i have used HR_Maintain_Masterdata. Here im able to insert the data but not able to modify the existing records. how can i achieve this. does HR_Maintain_Masterdata not modify or update the existing records if no then is there any other FM?
    another issure is
    In case of insert i have fields like Pernr. begda, endda, subtype , BEN_PCT.
    after the function call all data gets inserted into the fileds of infotype except theBEN_PCT field.
    Can u please provide pointers on this too
    TIA

    hi
    You can modify data using HR_MAINTAIN_MASTERDATA
    Just check the below code. It might help.
    CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
    EXPORTING
    PERNR = NUMBER
    ACTIO = OPERATION
    TCLAS = TCLAS
    BEGDA = VALIDITYBEGIN
    ENDDA = VALIDITYEND
    OBJPS = OBJECTID
    SEQNR = RECORDNUMBER
    SPRPS = LOCKINDICATOR
    SUBTY = SUBTYPE
    WERKS = WERKS
    PERSG = PERSG
    PERSK = PERSK
    LUW_MODE = LUW_MODE
    DIALOG_MODE = DIALOG_MODE
    NO_EXISTENCE_CHECK = 'X'
    NO_ENQUEUE = 'X'
    IMPORTING
    RETURN1 = RETURN
    TABLES
    PROPOSED_VALUES = PROPOSED_VALUES
    MODIFIED_KEYS = MODIFIED_KEYS
    EXCEPTIONS
    OTHERS = 0.
    It has additional import parameters:
    WERKS = WERKS
    PERSG = PERSG
    PERSK = PERSK
    regards
    Nishant Malhotra

  • Any standard infotypes for capturing project details

    Mates
    client has few departments  like finance,hr,it etc and in which project/operation is one of them.They have employee working in different projects say A,B,C..and they are deployed in different places..my doubt is how do we treat this project?
    could we map the different projects as departments ?Under projects A as one dept ,B as another etc..
    is that a  good approach
    i was planning to hve them assigned as pSA's(function based)
    they hav employee working in head office and outside HO in few places
    kndly share your views.
    No Worries
    KG

    Hi
    You can define the Projects as org units and have employees under them.
    They can be transfered from one to another tooo.
    R K

  • How to upload data for custom infotype

    Hi  Friends
    Can we use HR_INFOTYPE_OPERATIONS   FM  for custom infotype too  or is there other way or other Standard FM to upload data for custom infotype  starting with 9000..etc.
    Points will be there for sure.
    Thanks
    Meeta & Roopa

    Thanks for quick response.
    my qns is can we use Standard FM like HR_INFOTYPE_OPERATIONS  for custom infotype too ?
    in my requirment  input will come from portal form and in background  Java Wd is going to use these FM  but i have this big  doubt can we use these standard FM for  uploading data in custom infotype as well or else is there any other way.. but for sure we can't use BDC and LSMW in this requirement .
    Thanks Meeta & Roopa

  • How to upload data into IT0000 using ABAP-HR program

    Hello,
    I'm required to upload data into multiple infotypes [IT000, 0001, 0002, etc] using single input text file. Can anyone able to guide me, how to upload data into IT0000 using ABAP program ?
    Thanks in advance.
    Regards
    Prabhakar.
    Message was edited by:
            Prabhakara Muthyal

    Example code for HR_MAINTAIN_MASTERDATA to COPY IT0002
    DATA: INT_0002_FINAL TYPE STANDARD TABLE OF PA0002 WITH HEADER LINE.
    DATA: VALUES        LIKE PPROP OCCURS 10 WITH HEADER LINE,
    RETURN        LIKE BAPIRETURN1,.
    LOOP AT INT_0002_FINAL.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-PERNR'.
          VALUES-FVAL  = INT_0002_FINAL-PERNR.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-BEGDA'.
          VALUES-FVAL  = INT_0002_FINAL-BEGDA.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-ENDDA'.
          VALUES-FVAL  = INT_0002_FINAL-ENDDA.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-nachn'.
          VALUES-FVAL  = INT_0002_FINAL-NACHN.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-gblnd'.
          VALUES-FVAL  = INT_0002_FINAL-GBLND.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-vorna'.
          VALUES-FVAL  = INT_0002_FINAL-VORNA.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-rufnm'.
          VALUES-FVAL  = INT_0002_FINAL-RUFNM.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-name2'.
          VALUES-FVAL  = INT_0002_FINAL-NAME2.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-inits'.
          VALUES-FVAL  = INT_0002_FINAL-INITS.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-famst'.
          VALUES-FVAL  = INT_0002_FINAL-FAMST.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-gbdat'.
          VALUES-FVAL  = INT_0002_FINAL-GBDAT.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-sprsl'.
          VALUES-FVAL  = INT_0002_FINAL-SPRSL.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-anzkd'.
          VALUES-FVAL  = INT_0002_FINAL-ANZKD.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-natio'.
          VALUES-FVAL  = INT_0002_FINAL-NATIO.
          APPEND VALUES.
    * maintain master data
          CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
            EXPORTING
              PERNR           = INT_0002_FINAL-PERNR
              ACTIO           = 'COP'
              BEGDA           = INT_0002_FINAL-BEGDA
    *         ENDDA           = INT_0002_FINAL-ENDDA
              SUBTY           = SPACE
              NO_ENQUEUE      = SPACE
              DIALOG_MODE        = '0'
              TCLAS              = 'A'
            IMPORTING
              RETURN1         = RETURN
            TABLES
              PROPOSED_VALUES = VALUES
    *         MODIFIED_KEYS   =
            EXCEPTIONS
              OTHERS          = 1.
          IF RETURN IS INITIAL.
            WRITE:/' Done....'.
          ELSE.
            WRITE:/   RETURN-ID, RETURN-TYPE, RETURN-NUMBER, RETURN-MESSAGE_V1, RETURN-MESSAGE_V2, RETURN-MESSAGE_V3, RETURN-MESSAGE_V4.
          ENDIF.
          CLEAR VALUES.
          REFRESH VALUES.
        ENDLOOP.

  • Uploading data in sales transaction

    I want to upload data using transaction crmd_bus2000115 for sales. Is there any standard program for this? I am unable to do this by lsmw since I am getting error in recording. Please suggest.

    I want to upload data using transaction crmd_bus2000115 for sales. Is there any standard program for this? I am unable to do this by lsmw since I am getting error in recording. Please suggest.

  • UPLOAD DATA FROM EXCEL FILE

    hi guru,
    I want to upload data from excel file for mm02.. first of all help on the matter of how to upload data from excel...
    i hv used the FM ALSM_EXCEL_TO_INTERNAL_TABLE.. but its not working it uploading garbage value ... so tell me how to used it...
    help me on this matter.

    Check below example.
    parameters :  p_file  LIKE rlgrap-filename OBLIGATORY.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      PERFORM get_file_name.
      PERFORM get_file_to_excel.
    *&      Form  get_file_name
    FORM get_file_name.
      DATA: lv_name LIKE sy-repid.
      lv_name = sy-repid..
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
           EXPORTING
                program_name  = lv_name
                dynpro_number = syst-dynnr
                static        = 'X'
           CHANGING
                file_name     = p_file.
    ENDFORM. " get_file_name
    *&      Form  get_file_to_excel
    FORM get_file_to_excel.
      DATA: idata LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           EXPORTING
                filename                = p_file
                i_begin_col             = '1'
                i_begin_row             = '2'  "Do not require headings
                i_end_col               = '2'
                i_end_row               = '60000'
           TABLES
                intern                  = idata
           EXCEPTIONS
                inconsistent_parameters = 1
                upload_ole              = 2
                OTHERS                  = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        STOP.
      ENDIF.
    * Get first row retrieved
      READ TABLE idata INDEX 1.
    * Set first row retrieved to current row
      DATA: gd_currentrow TYPE i.
      gd_currentrow = idata-row.
      LOOP AT idata.
    *   Reset values for next row
        IF idata-row NE gd_currentrow.
          APPEND f.  CLEAR f.
          gd_currentrow = idata-row.
        ENDIF.
        CASE idata-col.
          WHEN '0001'.
            f-belnr   = idata-value.
        ENDCASE.
      ENDLOOP.
      APPEND f.  CLEAR f.

  • HR abap :  how to declare internal table to fetch data from 0585 infotype

    Hi all ,
    I am able to fetch the data from pa0585 infotype for set of employee no , but the problem is as the fields in pa0585 (like Contr to ULIP , NSC , Medical Treatment,Contribution to Certain Pension Funds so on ..) will be changed dynamically and will be displayed based on the amount value in descending order iam not able to store the values of the fileds into internal table . I dont understand how to declare the internal table ..Please help in if u have solved this kind of problem.
    I shld get the output in this way ...
    Emp No     Name    Medical treatment       Contr to ULIP             ....... so on
    101          abc           10000                        150000                      .......so on
    102          xyz           12000                        150000                      .......so on
    My header shld be fixed and I shld display values in this way .... I can use write statement to display directly .
    Thanks ....

    Hi
    Decalre INFOTYPE
    Goto SE37 - Find FM -
    READINFOTYPE*

  • Issue while uploading data from R/3 production to BW production

    Hi,
    We are facing an issue as follows.
    We are trying to transfer master data from R/3 Production server to BW Production server.
    For the first time when we transfer data, upload is happening properly. But for the second upload - we dont get any error where as in the monitor data transfer shows 0 from 0 records and the status never changes.
    But if we restart the BW production server and then upload data, it works fine for the first upload but the same issue from second upload.
    Any suggestions please?
    Regards,
    Ram.

    Hi,
    Roberto - In ST22, there is no short dumps related to this issue. The issue is not specific for a single object. For eg. If i upload 0MATERIAL (after restarting the server) it works. Now I try to upload 0DIVISION (any object) it doesnot get uploaded.
    Sriram - We are trying Full Upload.
    Hari - I can see the records in RSA3 of the source system. The records are available and also they are extracted properly.
    Shreya - Basis people are also involved and trying to find out a solution.
    Manfred - Actually data is available. But the data doesnot get uploaded. So i guess changing the traffic lights settings might not help.
    Regards,
    Ram.

  • How to creat LSMW to Upload data FB01

    Dear All
    I want to upload data with defrenet reference  for Ex:-
    I have data form excel sheet like this:-
    code    Account    Account name    assigin. value date     cost center    text                                 doc number
    40        XXXX         ..............        123                            XXXXXXX       ???????????                 100000123
    40        XXXX          .............         111                            XXXXXX        ???????????                  100000123
    50        XXXX          .............        56456   12/12/2013                           ???????????                  100000123
    40        XXXX         ..............        123                            XXXXXXX       ???????????                 100000124
    40        XXXX          .............         111                            XXXXXX        ???????????                  100000124
    50        XXXX          .............        56456   12/12/2013                           ???????????                  100000124
    40        XXXX         ..............        123                            XXXXXXX       ???????????                 100000125
    40        XXXX          .............         111                            XXXXXX        ???????????                  100000125
    50        XXXX          .............        56456   12/12/2013                           ???????????                  100000125
    and I gave it doc number   I want to uploud this data to sap
    any one has any idea 

    Mustafa,
    Ok. Import the enclosed file in your LSMW and create a excel sheet like below:
    BLDAT                          C(008)    Document Date
    BLART                          C(002)    Document Type
    BUKRS                          C(004)    Company Code
    BUDAT                          C(008)    Posting Date
    WAERS                          C(004)    Currency
    XBLNR                          C(016)    Reference
    BKTXT                          C(025)    Header Text
    NEWBS                          C(002)    Posting Key 01
    NEWKO                          C(017)    GL Account
    WRBTR                          C(013)    Amount
    ZUONR                          C(018)    assignment
    SGTXT                          C(050)    Historical Text
    NEWKO2                         C(017)    Off setting GL Account
    WRBTR2                         C(013)    Off Setting Amount
    ZUONR2                         C(018)    assignment
    SGTXT2                         C(050)    Historical Text
    NEWBS2                         C(002)    Posting Key 02
    If you have a ABAPer I recommend you ask for a development for document mass upload.
    Let me know if you need more information.
    Regards

  • HT4759 Hello .. I've been subscribed for ic;oud for 20$ per year and I found it useless for many reasons: that I can not disconnect my mobile while the uploading process and it takes long time for uploading my data .. Its not a reliable system that's why

    Hello .. I've been subscribed for ic;oud for 20$ per year and I found it useless for many reasons: that I can not disconnect my mobile while the uploading process and it takes long time for uploading my data .. Its not a reliable system that's why I need to deactivate the space service and take my money back .. Thanks

    The "issues" you've raised are nothing to do with the iCloud service.
    No service that uploads data allows you to disconnect the device you are uploading from while uploading data. Doing so would prevent the upload from completing. It is a basic requirement for any uploading service that you remain connected to it for uploading to be possible.
    The time it takes to upload data to iCloud is entirely dependent on how fast your Internet connection is, and how much data you are uploading. Both of these things are completely out of Apple's control. Whichever upload service you use will be affected by the speed of your Internet connection.

Maybe you are looking for

  • My Mac Book is running so slow since I downloaded OSX 10.9.4

    Hi, I downloaded Etresoft and below is the snapshot.  I need some advice in helping my MacBook run faster.  Are there programs I can delete?  If so, how? Thanks. Laurie   EtreCheck version: 1.9.12 (48) Report generated July 13, 2014 at 1:09:27 PM PDT

  • Short Dump while entering data in VF01

    Runtime Errors         SAPSQL_INVALID_FIELDNAME Except.                    CX_SY_DYNAMIC_OSQL_SEMANTICS Program                               SAPLV61Z Include                                 LV61ZU01 Error analysis     An exception occurred that is e

  • JTabbedPane w/ Accelerator Keys

    I need to add accelerator keys to the tabs of a JTabbedPane, much like the accelerators in a JMenuItem (i.e. under-score for Alt-F, or CTRL-X, etc...). Any suggestions? Thanks!

  • How to modify Java options in Oracle 10g Application Server

    I am trying to modify the Java Options to specify the following field: -Djavax.xml.transform.TransformerFactory= org.apache.xalan.processor.TransformerFactoryImpl But I am unable to locate the Server Properties section on the Administration section.

  • Command line update of 9.1.3 to 9.2?

    OK, I downloaded the MUI updater to 9.2 (the only one I could find), unzipped it, but the AdbeRdrUpd920_mui_cum.msp file tells me I don't have an updatable product installed.  I've used the 9.1.1 9.1.2 9.1.3 msp's to patch my 9.1 installs up to this