BAPI for infotype 2001

Hi All,
Please let me know any BAPI which can be use to apply leave through portal.
Thanks
Edited by: piyush mathur on Dec 30, 2008 7:34 AM

Hello ,
the BAPI is .....
BAPI_PTMGRATTABS_MNGCREATION
BAPI_PTMGRATTABS_MNGFROMWF
Rewards Points... if the solution is use full.

Similar Messages

  • Disable Delete Button for infotype 2001 subtype 0025

    I want to Disable Delete Button for infotype 2001 subtype 0025 only in PA30/61.
    Is there any EXIT available

    Hi
    Try it .
    Somebody already given this type of answers.
    Pls first use Search then post.
    Well FYI,
    <b>There is a standard User Exit for PA30 / 40 for PBO and PAI events.
    ZXPADU01 for PBO and
    ZXPADU02 for PAI events.
    By writing proper code in here for the IT2001, you can write your rules.
    PBAS0001 ( PA: Pers.Admin./Recruitment: Default values and checks ),</b>
    Manoj Shakya.

  • How to extend IDOC type "HRMD_A" for infotype 2001?

    Hi,
    I'm trying to send infotype 2001 to another SAP system via ALE and since it is not part of message type "HRMD_A" I have tried to create an extension. I've already created a new segment(we31) and put this segment into the extension(we30). And I've assigned the extension to the message and basic type (we82) but it still doesn't work. Is there anything else I have to do?
    Many thanks in advance
    Christopher

    Hello Christopher,
    I don't think any coding is required in your case if I understand your issue correctly.
    Just create a Z segment (say Z1P2001...make it same structure as P2001) then insert it as a child segment type of E1PITYP in your customer extension which should be attached to Basic Type HRMD_XX (as per your SAP release).
    Make sure in the partner profile you have specified the name of your customer extension and in table T777D you have maintained the value of your Z segment (Z1P2001) in the field IDOC segment.
    Now, as long as you have change pointers activated globally as well as for the message type you are using, change pointers will be auto triggered for infotype 2001 and when you run BD21 to process the change pointer, you'll see the system has automatically populated your customer segment Z1P2001.
    Let me know if it solved your case.
    Cheers,
    Sougata.
    Edited by: Sougata Chatterjee on May 23, 2008 1:41 PM

  • Bapi for infotypes

    can any one send any program for uploading data through bapi for any infotype. so that i can understand bapi for infotypes.

    hi
    just create a message class and text according to the code as follows (copy and paste in se 38)
    REPORT  ZCHR007_01 NO STANDARD PAGE HEADING MESSAGE-ID ZHR LINE-COUNT 65(8) LINE-SIZE 180.
    TABLES : PA0003, P0000,P0006,T005S,T005,T591A.                                                     " TABLES REQUIRED
             *INTERNAL TABLE AND WORK AREA WITH STRUCTURE ON BASIS FLAT FILE DATA.
    TYPES : BEGIN     OF       x_flat_infotype,                                                        "Flat file structure
          Screen data
            PERNR    TYPE     PERSNO,                                                                  "Personal Number
            BEGDA    TYPE     BEGDA,                                                                   "Begin Date
            ENDDA    TYPE     ENDDA,                                                                   "End Date
            ANSSA    TYPE     ANSSA,                                                                   "Address Record Type
            STRAS    TYPE     PAD_STRAS,                                                               "House number and street
            LOCAT    TYPE     PAD_LOCAT,                                                               "2nd Address Line
            PSTLZ    TYPE     PSTLZ_HR,                                                                "Postal Code
            ORT01    TYPE     PAD_ORT01,                                                               "City
            ORT02    TYPE     PAD_ORT02,                                                                   "District
            STATE    TYPE     REGIO,                                                                   "State
            land1    TYPE     land1,                                                                   "Country
            telnr    TYPE     telnr,                                                                   "Telephone Number
            wkwng    TYPE     wkwng,                                                                   "Company Housing
            END      OF       x_flat_infotype.
    TYPES : BEGIN     OF       x_valid.
            INCLUDE   TYPE     x_flat_infotype.                                                        "structure for valid data
    TYPES : END       OF       x_valid.
    TYPES : BEGIN     OF       x_invalid.
            INCLUDE   TYPE     x_flat_infotype.                                                        "structure for invalid data
    TYPES : error     TYPE     string,                                                                 "string to hold error field details
            END       OF       x_invalid,
            BEGIN     OF       x_pernr,                                                                "STRUCTURE DECLARATION FOR Personal No
            pernr     TYPE     persno,
            END       OF       x_pernr,
            BEGIN     OF       x_state,                                                                "STRUCTURE DECLARATION FOR Region
            land1     type     land1,
            state     TYPE     regio,
            END       OF       x_state,
            BEGIN     OF       x_land1,                                                                "STRUCTURE DECLARATION FOR Country
            land1     TYPE     land1,
            END       OF       x_land1.
    DATA : t_infotype   TYPE STANDARD TABLE OF x_flat_infotype INITIAL SIZE 0,                         "internal table to hold data
           t_valid      TYPE STANDARD TABLE OF x_valid INITIAL SIZE 0,                                 "internal table to hold valid data
           t_invalid    TYPE STANDARD TABLE OF x_invalid INITIAL SIZE 0,                               "internal table to hold invalid data
           t_v_final  TYPE   STANDARD   TABLE   OF   x_valid            INITIAL    SIZE   0,           "internal table to hold valid data
         DECLARE IT_BDCDATA INTERNAL TABLE BASED ON BDCDATA STRUCTURE
           t_bdcdata    TYPE STANDARD TABLE OF bdcdata INITIAL SIZE 0,                                 "internal table to hold BDC data
         Work area for the above internal tables
           wa_infotype  TYPE                x_flat_infotype,                                           "work area to hold data
           wa_valid     TYPE                x_valid,                                                   "work area to hold valid data
           wa_invalid   TYPE                x_invalid,                                                 "work area to hold invalid data
           wa_v_final   TYPE                x_valid,                                                   "work area to hold valid data
           wa_bdcdata   TYPE                bdcdata,                                                   "work area to hold BDC data
           g_file       TYPE                string,                                                    "Variable to hold file name entered by user
           g_errfile    TYPE                string.                                                    "Variable to hold file name entered by user
          MAINTAINING  A BLOCK WITH FLAT FILE AS INPUT
             PARAMETER   :  p_file   TYPE  fc03tab-pl00_file OBLIGATORY.                               "variable to hold flat file name during runtime
    INITIALIZATION.
             PERFORM     sub_refreshing_inttables.                                                     "Subroutine for refreshing all internal tables
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
             PERFORM     sub_get_file USING p_file.                                                    "TO SELECT A FILE USING F4 KEY.
    START-OF-SELECTION.
             PERFORM     sub_upload_file.                                                              " UPLOADING FILE WITH DATA
             PERFORM     sub_file_validations.                                                         " flat file validations
             IF NOT t_valid[] IS INITIAL.                                                              "checking for valid data
                         PERFORM      sub_data_updatation.                                             "updation of data depending on selected method
             ENDIF.
             IF NOT t_invalid[] IS INITIAL.
                         PERFORM      sub_download_error_file.                                         "TO DOWNLOAD ERRROR FILE
             ENDIF.
                         Perform      sub_details.                                                     "Subroutine for loading details
    END-OF-SELECTION.
             PERFORM     sub_free.                                                                     "TO Free Memory
    *&      Form  sub_refreshing_inttables
          "Subroutine for refreshing all internal tables
    FORM sub_refreshing_inttables .                                                                    "REFRESH ALL INTERNAL TABLES
      REFRESH :  t_infotype,t_valid,t_invalid,t_bdcdata.
    ENDFORM.                                                                                " sub_refreshing_inttables
    *&      Form  sub_get_file
           Subroutine for selection a file during runtime
         -->P_P_FILE  Input File
    FORM sub_get_file  USING    p_p_file.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        EXPORTING
          field_name = 'PA_FILE'
        CHANGING
          file_name  = p_p_file.
    ENDFORM.                                                                                " sub_get_file
    *&      Form  sub_upload_file
           Subroutine for uploading data into internal table
    FORM sub_upload_file.
      CONSTANTS :  lc_ftype TYPE char10 VALUE 'ASC',
                   lc_fsepe  TYPE char01 VALUE 'X'.
      g_file   =        p_file.                                                             "STORE FILENAME IN VARIABLE(g_FILE)
      IF p_file IS INITIAL.                                                                              " if file is not selected
        MESSAGE i002.
        LEAVE LIST-PROCESSING.
      ELSE.
        CALL FUNCTION 'GUI_UPLOAD'                                                                       "CALLLING FUNCTION TO UPLOAD THE FILE DATA
               EXPORTING
                    filename                      =   g_file
                    filetype                      =   lc_ftype
                    has_field_separator           =   lc_fsepe
               TABLES
                    data_tab                      =   t_infotype
               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 to display is file is not selected
          MESSAGE i001.
          LEAVE LIST-PROCESSING.
        ENDIF.
      ENDIF.
    ENDFORM.                                                                                " sub_upload_file
    *&      Form  sub_file_validations
          Subroutine for validating required fields in flat file
    FORM sub_file_validations .
      CONSTANTS: lc_anssa1         TYPE char04 VALUE  '1',                                              "Constant address type
                 lc_anssa2         TYPE char04 VALUE  '2',                                              "Constant address type
                 lc_anssa3         TYPE char04 VALUE  '3',                                              "Constant address type
                 lc_anssa4         TYPE char04 VALUE  '4',                                              "Constant address type
                 lc_wkwng1         TYPE char01 VALUE  '1',                                              "Constant Company Housing
                 lc_wkwng2         TYPE char01 VALUE  '2'.                                              "Constant Company Housing
      DATA :  t_pernr   TYPE STANDARD TABLE OF x_pernr INITIAL SIZE 0,                                   "INTERNAL TABLE FOR Personal No data
              t_state   TYPE STANDARD TABLE OF x_state INITIAL SIZE 0,                                   "INTERNAL TABLE FOR Region data
              t_land1   TYPE STANDARD TABLE OF x_land1 INITIAL SIZE 0.                                   "INTERNAL TABLE FOR Country data
      IF t_infotype IS NOT INITIAL.
      validate Personal No
        SELECT pernr FROM pa0003 INTO TABLE t_pernr                                                    " Extracting Personal No Data FROM  TO VALIDATE THE FIELD
               FOR ALL ENTRIES IN t_infotype WHERE pernr = t_infotype-pernr.
        IF sy-subrc = 0.
          SORT t_pernr BY pernr.
        ENDIF.
      validate Region
        SELECT land1 bland FROM t005s INTO TABLE t_state .                                                   " Extracting Region DATA FROM  TO VALIDATE THE FIELD
        IF sy-subrc = 0.
          SORT t_state BY land1 state.
        ENDIF.
      validate Country
        SELECT land1 FROM t005 INTO TABLE t_land1 .                                                    " Extracting country DATA FROM  TO VALIDATE THE FIELD
        IF sy-subrc = 0.
          SORT t_land1 BY land1 .
        ENDIF.
      ELSE.
        MESSAGE i004.
        LEAVE LIST-PROCESSING.
      ENDIF.
      CLEAR wa_infotype.                                                                             "clearing data from work area of infotype internal table
      LOOP AT t_infotype INTO wa_infotype.
        PERFORM sub_valid_nonvalidatefield.
        PERFORM sub_startdate_validaion.                                                             "Subroutine to validate start date field
        PERFORM sub_enddate_validaion.                                                               "Subroutine to validate end date field
        IF wa_valid-begda GE wa_valid-endda.                                                           "If start date is less than or equal to end date
          wa_invalid-begda = wa_infotype-begda.                                                        "moving start date to invalid workarea of start date
          wa_invalid-endda = wa_infotype-endda.                                                        "moving start date to invalid workarea of start date
          CONCATENATE text-032 wa_invalid-begda
          wa_invalid-error INTO wa_invalid-error SEPARATED BY space .
        ENDIF.
          validate field Address Type of flat file with field in check table
        IF wa_infotype-anssa = lc_anssa1 OR wa_infotype-anssa = lc_anssa2
           OR wa_infotype-anssa = lc_anssa3 OR wa_infotype-anssa = lc_anssa4  .
          wa_valid-anssa     =    wa_infotype-anssa.                                                 "moving Address type from internal table to valid internal table
        ELSE.
          wa_invalid-anssa   =    wa_infotype-anssa.                                                 "moving Address type from internal table to invalid internal table
          CONCATENATE text-033 wa_invalid-anssa
          wa_invalid-error INTO wa_invalid-error SEPARATED BY space .
        ENDIF.
          validate field Personal No of flat file with field in check table
        READ TABLE t_pernr WITH KEY pernr = wa_infotype-pernr
        BINARY SEARCH
        TRANSPORTING NO FIELDS .
        IF sy-subrc = 0.                                                                               "checking for validation of the Personal No
          wa_valid-pernr     =    wa_infotype-pernr.                                                   "moving Personal No from internal table to valid internal table
        ELSE.
          wa_invalid-pernr   =    wa_infotype-pernr.                                                   "moving Personal No from internal table to invalid internal table
          CONCATENATE text-030 wa_invalid-pernr
          wa_invalid-error INTO wa_invalid-error SEPARATED BY space .
        ENDIF.
          validate field State of flat file with field in check table
        READ TABLE t_state WITH KEY land1 = wa_infotype-land1 STATE = wa_infotype-state
        BINARY SEARCH
        TRANSPORTING NO FIELDS .
        IF sy-subrc = 0.                                                                               "checking for validation of the State
          wa_valid-state     =    wa_infotype-state.                                                   "moving State from internal table to valid internal table
        ELSE.
          wa_invalid-state   =    wa_infotype-state.                                                   "moving State from internal table to invalid internal table
          CONCATENATE text-010 wa_invalid-state
          wa_invalid-error INTO wa_invalid-error SEPARATED BY space .
        ENDIF.
          validate field Country of flat file with field in check table
        READ TABLE t_land1 WITH KEY land1 = wa_infotype-land1
        BINARY SEARCH
        TRANSPORTING NO FIELDS .
        IF sy-subrc = 0.                                                                               "checking for validation of the Country
          wa_valid-land1     =    wa_infotype-land1.                                                   "moving Country from internal table to valid internal table
        ELSE.
          wa_invalid-land1   =    wa_infotype-land1.                                                   "moving Country from internal table to invalid internal table
          CONCATENATE text-011 wa_invalid-land1
          wa_invalid-error INTO wa_invalid-error SEPARATED BY space .
        ENDIF.
        IF wa_infotype-wkwng = lc_wkwng1 OR wa_infotype-wkwng = lc_wkwng2 .
          wa_valid-wkwng     =    wa_infotype-wkwng.                                                 "moving Company Housing from internal table to valid internal table
        ELSE.
          wa_invalid-wkwng   =    wa_infotype-wkwng.                                                 "moving Company Housing from internal table to invalid internal table
          CONCATENATE text-034 wa_invalid-wkwng
          wa_invalid-error INTO wa_invalid-error SEPARATED BY space .
        ENDIF.
          For Invalid data
        IF  wa_invalid IS NOT INITIAL.                                                                 "checking all fields data for invalid entries
          CONCATENATE  text-012
          wa_invalid-error INTO wa_invalid-error.
          PERFORM sub_invalid_nonvalidatefield.
          IF wa_invalid-pernr IS INITIAL.
            wa_invalid-pernr   =    wa_valid-pernr.                                                    "Personal No
          ENDIF.
          IF wa_invalid-begda IS INITIAL.
            wa_invalid-begda   =    wa_valid-begda.                                                    "Begin date
          ENDIF.
          IF wa_invalid-endda IS INITIAL.
            wa_invalid-endda   =    wa_valid-endda.                                                    "End Date
          ENDIF.
          IF wa_invalid-anssa IS INITIAL.
            wa_invalid-anssa   =    wa_valid-anssa.                                                    "Address Type
          ENDIF.
          IF wa_invalid-state IS INITIAL.
            wa_invalid-state   =    wa_valid-state.                                                    "State
          ENDIF.
          IF wa_invalid-land1 IS INITIAL.
            wa_invalid-land1   =    wa_valid-land1.                                                    "Country
          ENDIF.
          APPEND wa_invalid         TO   t_invalid.                                                    "Appending data to invalid internal table
        ELSE.
          APPEND wa_valid           TO   t_valid.                                                      "Appending data to valid internal table
        ENDIF.
        CLEAR wa_valid.
        CLEAR wa_invalid.
      ENDLOOP.
    ENDFORM.                                                                                " sub_file_validations
    *&      Form  sub_valid_nonvalidatefield
          Subroutine for updating non-validated fields into valid work area
    FORM sub_valid_nonvalidatefield .
      wa_valid-stras   =    wa_infotype-stras.                                             "moving Str&Hou from internal table to valid internal table
      wa_valid-locat   =    wa_infotype-locat.                                             "moving 2nd Address line from internal table to valid internal table
      wa_valid-pstlz   =    wa_infotype-pstlz.                                             "moving Postal Code from internal table to valid internal table
      wa_valid-ort01   =    wa_infotype-ort01.                                             "moving City from internal table to valid internal table
      wa_valid-ort02   =    wa_infotype-ort02.                                             "moving District from internal table to valid internal table
      wa_valid-telnr   =    wa_infotype-telnr.                                             "moving Telephone No from internal table to valid internal table
    ENDFORM.                                                                                " sub_valid_nonvalidatefield
    *&      Form  sub_startdate_validaion
         "Subroutine to validate start date field
    FORM sub_startdate_validaion .
    *This Funciton module is used for Conversion of date, ie External to
    *internal date (like screen conversion)
      CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
        EXPORTING
          date_external            = wa_infotype-begda                                                 "External date or date given in flat file
        IMPORTING
          date_internal            = wa_valid-begda                                                    "Date converted to internal format for conversion
        EXCEPTIONS
          date_external_is_invalid = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.                                                                                "If conversion of date fails
        wa_invalid-begda = wa_infotype-begda.                                                          "moving date from flat file work area to inavlid work area
        CONCATENATE text-035 wa_invalid-begda
        wa_invalid-error INTO wa_invalid-error SEPARATED BY space.                                     " Adding start date error to error field of invalid internal table
      ENDIF.
    ENDFORM.                                                                                " sub_startdate_validaion
    *&      Form  sub_enddate_validaion
         "Subroutine to validate end date field
    FORM sub_enddate_validaion .
    *This Funciton module is used for Conversion of date, ie External to
    *internal date (like screen conversion)
      CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
        EXPORTING
          date_external            = wa_infotype-endda                                                 "External date or date given in flat file
        IMPORTING
          date_internal            = wa_valid-endda                                                    "Date converted to internal format for conversion
        EXCEPTIONS
          date_external_is_invalid = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.                                                                                "If conversion of date fails
        wa_invalid-endda = wa_infotype-endda.                                                          "moving date from flat file work area to inavlid work area
        CONCATENATE text-036 wa_invalid-endda
        wa_invalid-error INTO wa_invalid-error SEPARATED BY space.                                     " Adding end date error to error field of invalid internal table
      ENDIF.
    ENDFORM.                                                                                " sub_enddate_validaion
    *&      Form  sub_invalid_nonvalidatefield
        Subroutine for updating non-validated fields into invalid work area
    FORM sub_invalid_nonvalidatefield .
      wa_invalid-stras   =    wa_infotype-stras.                                           "moving Str&Hou from internal table to invalid internal table
      wa_invalid-locat   =    wa_infotype-locat.                                           "moving 2nd Address line from internal table to invalid internal table
      wa_invalid-pstlz   =    wa_infotype-pstlz.                                           "moving Postal Code from internal table to invalid internal table
      wa_invalid-ort01   =    wa_infotype-ort01.                                           "moving City from internal table to invalid internal table
      wa_invalid-ort02   =    wa_infotype-ort02.                                           "moving District from internal table to invalid internal table
      wa_invalid-telnr   =    wa_infotype-telnr.                                           "moving Telephone No from internal table to invalid internal table
    ENDFORM.                                                                                " sub_invalid_nonvalidatefield
    *&      Form  sub_data_updatation
          Subroutine for updation of data depending on selected method
    FORM sub_data_updatation .
      DATA : wa_return_enque TYPE bapireturn1.                                                         "variable to store error values
        clear wa_return_enque.
      LOOP AT t_valid INTO wa_valid.                                                                   "moving valid data to valid work area
        PERFORM sub_bapi_employee_enqueue using wa_return_enque .                                      "Subroutine to lock an employee
        IF wa_return_enque-type NE 'E'.
          PERFORM sub_bapi_addressempdk_create.                                                        "Subroutine to create  employee address data
        ENDIF.
      ENDLOOP.
    ENDFORM.                                                                                " sub_data_updatation
    *&      Form  sub_bapi_employee_enqueue
         Subroutine to lock an employee
         <--P_WA_RETURN_ENQUE  wa_return_enque-type
    FORM sub_bapi_employee_enqueue using p_wa_return_enque LIKE bapireturn1.
    *This funciton module is used to lock an employee so that the records
    *stored for this person cannot be accessed.
    *When an employee is locked, only user who has set  lock can access
    *records for this employee. Other users are denied access.
      CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          number = wa_valid-pernr                                                                      "Personal number
        IMPORTING
          return = p_wa_return_enque.                                                                     "for error values returned
    ENDFORM.                                                                                " sub_bapi_employee_enqueue
    *&      Form  sub_BAPI_ADDRESSEMPDK_CREATE
           Subroutine to create  employee address data
    FORM sub_bapi_addressempdk_create.
      DATA : wa_data_create TYPE bapireturn1.                                                           "variable to store error values
    *This function module is used create a Address Data record (0006).
      CALL FUNCTION 'BAPI_ADDRESSEMPDK_CREATE'
        EXPORTING
          employeenumber    = wa_valid-pernr                                                   "Personal No
          validitybegin     = wa_valid-begda                                                   "Begin Date
          validityend       = wa_valid-endda                                                   "End Date
          addresstype       = wa_valid-anssa                                                   "Address type
          streetandhouseno  = wa_valid-stras                                                   "Street and house address
          scndaddressline   = wa_valid-locat                                                   "2nd address line
          city              = wa_valid-ort01                                                   "City
          district          = wa_valid-ort02                                                   "District
          postalcodecity    = wa_valid-pstlz                                                   "Postal Code
          state             = wa_valid-state                                                   "Region(State)
          country           = wa_valid-land1                                                   "Country
          company_apartment = wa_valid-wkwng                                                   "Company Housing
          telephonenumber   = wa_valid-telnr                                                   "Telephone No
        IMPORTING
          return            = wa_data_create
          employeenumber    = wa_valid-pernr
          subtype           = wa_valid-anssa
          validitybegin     = wa_valid-begda
          validityend       = wa_valid-endda.
        If error or abend message occurs while uploading data, then moving all the wa_valid fields to wa_invalid fields.
      IF wa_data_create-type EQ 'E'
      OR wa_data_create-type EQ 'A'.
        PERFORM         sub_bapi_employee_dequeue.                                                 "Subroutine to unlock an employee
        wa_invalid-pernr        =      wa_valid-pernr .                                            "Personal No
        wa_invalid-begda        =      wa_valid-begda .                                            "Begin Date
        wa_invalid-endda        =      wa_valid-endda .                                            "End Date
        wa_invalid-anssa        =      wa_valid-anssa .                                            "Address type
        wa_invalid-stras        =      wa_valid-stras .                                            "Street and house address
        wa_invalid-locat        =      wa_valid-locat .                                            "2nd address line
        wa_invalid-ort01        =      wa_valid-ort01 .                                            "City
        wa_invalid-ort02        =      wa_valid-ort02 .                                            "District
        wa_invalid-pstlz        =      wa_valid-pstlz .                                            "Postal Code
        wa_invalid-state        =      wa_valid-state .                                            "Region(State)
        wa_invalid-land1        =      wa_valid-land1 .                                            "Country
        wa_invalid-telnr        =      wa_valid-telnr .                                            "Telephone No
        wa_invalid-wkwng        =      wa_valid-wkwng .                                            "Company Housing
        wa_invalid-error        =      wa_data_create-message.                                          
        APPEND wa_invalid TO t_invalid.                                                            "appending wa_invalid to internal table
      ELSE.
        APPEND wa_valid TO t_v_final.                                                              "appending wa_valid to another internal table for the final count of valid records
      ENDIF.
        CLEAR: wa_invalid,                                                                         "clearing work area of invalid
               wa_valid.                                                                           "clearing work area of valid
    ENDFORM.                                                                                " sub_BAPI_ADDRESSEMP_CREATE
    *&      Form  sub_bapi_employee_dequeue
          Subroutine to unlock an employee
    FORM sub_bapi_employee_dequeue .
      DATA : wa_return_deque TYPE bapireturn1.
    *This function module is used to unlock an employee so that the records
    *stored for this person can be accessed.
    *If an employee is locked using the ENQUEUE method,the user who set the
    *lock can access this employee's records.
    *Other users are denied access to these records.
      CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
        EXPORTING
          number = wa_valid-pernr                                                                      "Personal number
        IMPORTING
          return = wa_return_deque.                                                                     "for error values returned
    ENDFORM.                                                                                " sub_bapi_employee_dequeue
    *&      Form  sub_download_error_file
          Subroutine to download error file for rectifications
    FORM sub_download_error_file .
        PROVIDE A VARIABLE FOR HOLDING FLAT FILE
      CONSTANTS :  lc_ftype     TYPE   char10   VALUE   'ASC',
                   lc_fsepe     TYPE   char01   VALUE   'X',
                   lc_err        TYPE   char5    VALUE   '_err.',                                      "constant to change error file name
                   lc_period     TYPE   c        VALUE   '.'.                                          "constant to change error file name
                   g_errfile    =      p_file.                                                         "STORE FILENAME IN VARIABLE(l_FILE)
      SHIFT        g_errfile    BY     4 PLACES RIGHT   CIRCULAR.
      REPLACE      lc_period     WITH  lc_err    INTO    g_errfile.                                    "lc_err to truncate .txt and lc_period to add _err.txt
      SHIFT        g_errfile    BY     8 PLACES LEFT    CIRCULAR.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
         filename                        = g_errfile
         filetype                        = lc_ftype
         write_field_separator           = lc_fsepe
        TABLES
          data_tab                        = t_invalid
       EXCEPTIONS
         file_write_error                = 1
         no_batch                        = 2
         gui_refuse_filetransfer         = 3
         invalid_type                    = 4
         no_authority                    = 5
         unknown_error                   = 6
         header_not_allowed              = 7
         separator_not_allowed           = 8
         filesize_not_allowed            = 9
         header_too_long                 = 10
         dp_error_create                 = 11
         dp_error_send                   = 12
         dp_error_write                  = 13
         unknown_dp_error                = 14
         access_denied                   = 15
         dp_out_of_memory                = 16
         disk_full                       = 17
         dp_timeout                      = 18
         file_not_found                  = 19
         dataprovider_exception          = 20
         control_flush_error             = 21
         OTHERS                          = 22
      IF sy-subrc NE 0.
        MESSAGE i003.
      ENDIF.
    ENDFORM.                                                                                " sub_download_error_file
    *&      Form  sub_details
          Subroutine for loading details
    FORM sub_details .
      DATA: l_count_total TYPE i,                                                                      "variable to count total no of records
            l_count_valid TYPE i,                                                                      "variable to count no of records uploaded
            l_count_invalid TYPE i.                                                                    "variable to count total no of error records
      ULINE.
      WRITE :/71 text-018 .                                                                            "title
      DESCRIBE TABLE t_infotype LINES l_count_total.                                                   "To count no of lines in internal table
      WRITE :/,text-019 ,30 text-020, 32 l_count_total,157 text-021,164 text-020, 166 sy-datum.
      DESCRIBE TABLE t_v_final LINES l_count_valid.                                                    "To count no of lines in internal table
      WRITE : text-022,30 text-020,32 l_count_valid,157 text-023,164 text-020, 166 sy-uzeit.
      DESCRIBE TABLE t_invalid LINES l_count_invalid.                                                  "To count no of lines in internal table
      WRITE : text-025,30 text-020,32 l_count_invalid,157 text-024,164 text-020, 166 sy-uname.
      WRITE :/,text-026 ,30 text-020 , 40 g_file .                                                     "name of the error file
    Print if only invalid records exist
      IF NOT t_invalid[] IS INITIAL.
        WRITE :/,text-027 ,30 text-020 , 40 g_errfile .                                                "variable to count total no of error records
        IF t_invalid IS INITIAL.
          g_errfile = text-029.
        ENDIF.
        WRITE :/ text-028.
        ULINE.
        WRITE :/ sy-vline,2 text-030,17 sy-vline, 20 text-031,178 sy-vline.                            "headings

  • Any BAPI for Infotype 0015(Additional Data)

    Hi,
    Can anyone provide information on BAPI for Infotypes 0015(Additional Data).
    Your help will be appreciated !!!
    Vijayanand.

    To upload data into infotype 0015
    Use HR_INFOTYPE_OPERATION to create your a wrapper BAPI. You would also have to use BAPI_EMPLOYEE_ENQUEUE and BAPI_EMPLOYEE_DEQUEUE for locking and unlocking of the record in your BAPI or program.
    Enqueue personnel number
    call function 'BAPI_EMPLOYEE_ENQUEUE'
    create 0015
    call function 'HR_INFOTYPE_OPERATION'
    Use FM :  HR_MAINTAIN_MASTERDATA to update IT 0015
    check bapi : BAPI_HRMASTER_SAVE_REPL_MULT
    Dequeue personnel number
    call function 'BAPI_EMPLOYEE_DEQUEUE'
    You could also use LSMW Tool to upload the data.
    Regards
    Vasu

  • BAPI for Infotype 207208 209

    Hi all,
    Is there any BAPI for Infotype 207,208,209 .I need BAPI for these infotypes to display and edit the data.
    Thanks in Advance
    Hema

    Hi Hema,
    For display purposes you can use the following function modules:
    HR_PL_D_US_P0207
    HR_PL_D_US_P0208
    HR_PL_D_US_P0209
    For editing purposes you can try HR_INFOTYPE_OPERATION.
    Regards,
    Dilek

  • IT2001 error, no time constraint reachion for infotype 2001 with tm const00

    Dear Seriors,
    When I try to add any absence, it show the below given error message (red colour), but if I hit the enter button it allows me to mark absence.
    no time constraint reachion for infotype 2001 with time constraint class 001
    What might be the reason?
    Regards
    ET

    The time constraint class is used to check for collisions between Time Management infotypes (2001 to 2012). It allows you to specify different regulations for checking for collisions between individual subtypes.
    The views Time Constraint Reaction to Time Management Infotypes (V_554Y_B) and Global Time Constraint Reaction (V_T554Y) contain rules for the collision check.
    Please explore on this.

  • BAPI for Infotype

    Hello Experts,
       I am in need for standard BAPIs for the following info types. If it is not available please help me with some way.
    <b>Infotypes:
    &#61656;     0002 (Personal Data)
    &#61656;     0006 (Addresses)
    &#61656;     0009 (Bank details)
    &#61656;     0021 (Family member/dependents)
    &#61656;     0023 (Other/Previous employers)
    &#61656;     0028 (Internal medical service) subtype 0008 (Blood group)
    &#61656;     0185 (Personal IDs)
    &#61656;     0591 (Nominations)
    &#61656;     0000 (Actions)
    &#61656;     0001 (Organizational Assignment)
    &#61656;     0007 (Planned working time)
    &#61656;     0016 (Contract Elements)
    &#61656;     0017 (Travel Privileges)
    &#61656;     2006 (Absence Quotas)</b>
    Thanks & Regards
    Nigesh

    Hi,
    list of BAPI Funtions
    0035 BAPI for Grant Master Data
    BAPI_0035_CHANGE Change grant master data
    BAPI_0035_CREATE Create GM grant master data
    BAPI_0035_GET_DETAIL Get detail of grant master data
    0036 BAPI for BudgetEntryDocGM
    BAPI_0036_CREATE Create GM Budgeting Entry Document
    BAPI_0036_GET_DETAIL Get the detail of a GM budget entry document
    BAPI_0036_GET_LIST Get list of GM budgeting entry docs.
    BAPI_0036_REVERSE Reverse GM Budgteing Entry document
    0038 BAPIs for Funded Program
    BAPI_0038_CHANGE Change a Funded Program
    BAPI_0038_CREATE Create Funded Program
    BAPI_0038_DELETE Delete a Funded Program
    BAPI_0038_GETDETAIL Get details to a Funded Program
    BAPI_0038_GETLIST Get list of Funded Programs
    0050 BAPI for BudgetEntryDocFM
    BAPI_0050_CREATE Create FM Budgeting Entry document
    BAPI_0050_GET_DETAIL Get FM budgeting entry document
    BAPI_0050_GET_LIST Get list of budgeting entry documents
    BAPI_0050_REVERSE Reverse FM Budgeting Entry document
    0051 BAPI for BudgetFM (mass data)
    BAPI_0051_GET_TOTALS Get FM budget totals
    BAPI_0051_UPDATE FM Budgeting - Update totals
    1031 Business Object BUS1031 (Activity Type)
    BAPI_ACTIVITYTYPE_GETDETAIL Detail Information for Activity Type on Key Date
    BAPI_ACTIVITYTYPE_GETLIST List of Activity Types Using Selection Criteria
    BAPI_ACTIVITYTYPE_GETPRICES Output Activity Prices for Activity Types on Key Date
    BAPI_ACTTYPE_CHANGEMULTIPLE Change One or More Activity Types
    BAPI_ACTTYPE_CREATEMULTIPLE Create One or More Activity Types
    2145 Business Objects Complaints AB (BAPI)
    BAPI_ABCLAIM_CREATE AB-CWB: Create BAPI Complaint
    4499 Business Object: Bank Statement
    BAPI_ACCSTMT_CREATEFROMBALANCE Store account balance/check debit information
    BAPI_ACCSTMT_CREATEFROMLOCKBOX Create lockbox data
    BAPI_ACCSTMT_CREATEFROMPREVDAY Create Bank Statement/Day-End Statement
    BAPI_ACCSTMT_CREATEFROMSAMEDAY Create Bank Statement/Today's Data
    ABSE Object Type "Absence"
    BAPI_ABSENCE_APPROVE Unlock absence
    BAPI_ABSENCE_CHANGE Change absence
    BAPI_ABSENCE_CREATE Create absence
    BAPI_ABSENCE_DELETE Delete absence
    BAPI_ABSENCE_GETDETAIL Read absence
    BAPI_ABSENCE_GETDETAILEDLIST Read instances with data
    BAPI_ABSENCE_GETLIST Read instances
    BAPI_ABSENCE_REQUEST Create locked absence
    BAPI_ABSENCE_SIMULATECREATION Simulation: Create absence
    ACC4 FI/CO: BAPIs for UPDATE
    BAPI_ACC_BILLING_CHECK Accounting: Check Billing Doc. (OAG: LOAD RECEIVABLE)
    BAPI_ACC_BILLING_POST Accounting: Post invoice (OAG: LOAD RECEIVABLE)
    BAPI_ACC_DOCUMENTS_RECORD Follow-On Document Numbers in Accounting for Multiple Source Documents
    BAPI_ACC_EMPLOYEE_EXP_CHECK Accounting: Check G/L acct assignment for HR posting (OAG:POST JOURNAL
    BAPI_ACC_EMPLOYEE_EXP_POST Accounting: Post G/L account assignment for HR posting (OAG:POST JOURN
    BAPI_ACC_EMPLOYEE_PAY_CHECK Accounting: Check Vendor Acct Assignment for HR Posting (OAG:LOAD PAYA
    BAPI_ACC_EMPLOYEE_PAY_POST Accounting: Post Vendor Acct Assignment for HR Posting (OAG: LOAD PAYA
    BAPI_ACC_EMPLOYEE_REC_CHECK Accounting: Check Cust. Acct Assignmt for HR Posting (OAG:LOAD RECEIVA
    BAPI_ACC_EMPLOYEE_REC_POST FI/CO: Post Customer Acct Assignment for HR Posting (OAG: LOAD RECEIVA
    BAPI_ACC_GL_POSTING_CHECK Accounting: General G/L Account Posting
    BAPI_ACC_GL_POSTING_POST Accounting: General G/L Account Posting
    BAPI_ACC_GOODS_MOVEMENT_CHECK Accounting: Check Goods Movement (OAG: POST JOURNAL)
    BAPI_ACC_GOODS_MOVEMENT_POST Accounting: Post Goods Movement (OAG: POST JOURNAL)
    BAPI_ACC_INVOICE_RECEIPT_CHECK Accounting: Check Invoice Receipt (OAG: LOAD PAYABLE)
    BAPI_ACC_INVOICE_RECEIPT_POST Accounting: Post Invoice Receipt (OAG: LOAD PAYABLE)
    BAPI_ACC_PURCHASE_ORDER_CHECK Accounting: Check Purchase Order
    BAPI_ACC_PURCHASE_ORDER_POST Accounting: Post Purchase Order
    BAPI_ACC_PURCHASE_REQUI_CHECK Accounting: Check Purchase Requisition
    BAPI_ACC_PURCHASE_REQUI_POST Accounting: Post Purchase Requisition
    BAPI_ACC_SALES_ORDER_CHECK Accounting: Check Sales Order
    BAPI_ACC_SALES_ORDER_POST Accounting: Post Sales Order
    BAPI_ACC_SALES_QUOTA_CHECK Accounting: Check Customer Quotation
    BAPI_ACC_SALES_QUOTA_POST Accounting: Post Customer Quotation
    BAPI_ACC_TRAVEL_CHECK Accounting: Check Trip
    BAPI_ACC_TRAVEL_POST Accounting: Post Trip
    ACC5 FI/CO: BAPIs Asset Postings
    BAPI_ACC_ASSET_ACQ_SETT_CHECK ACC: Asset Acquisition - Synchronous Determination of Capitalization V
    BAPI_ACC_ASSET_ACQ_SETT_POST ACC: Asset Acquisition-Asynchronous Determination of Capitalization Va
    BAPI_ACC_***_ACQUISITION_CHECK BAPI: Check Asset Acquisition
    BAPI_ACC_***_INTRA_TRANS_CHECK Accounting: Post Asset Transfer
    BAPI_ACC_***_POSTCAP_CHECK BAPI: Check Subsequent Capitalization
    BAPI_ACC_***_RETIREMENT_CHECK BAPI: Check Asset Retirement
    BAPI_ACC_***_TRANSFER_CHECK Accounting: Post Asset Transfer
    BAPI_ACC_***_TRANSFER_POST Accounting: Post Asset Transfer
    BAPI_ACC_***_TRANS_ACQ_CHECK Accounting: Check acquisition from transfer
    BAPI_ACC_***_TRANS_ACQ_POST Accounting: Post acquisition from transfer
    BAPI_ACC_***_TRANS_RET_CHECK Accounting: Post Asset Transfer
    BAPI_ACC_AUC_ACQUISITION_CHECK Accounting: Asset Acquisition from Settlement
    BAPI_ACC_AUC_ACQUISITION_POST Accounting: Asset Acquisition from Settlement
    ACC6 Accounting: BAPIs for UPDATE II
    BAPI_ACC_BILLING_REV_CHECK Accounting: Check Billing Document Reversal (OAG: LOAD RECEIVABLE)
    BAPI_ACC_BILLING_REV_POST Accounting: Post Billing Doc.Reversal (OAG: LOAD RECEIVABLE)
    BAPI_ACC_GL_POSTING_REV_CHECK Accounting: Check Reversal of General G/L Account Posting
    BAPI_ACC_GL_POSTING_REV_POST Accounting: Post General G/L Posting Reversal
    BAPI_ACC_GOODS_MOV_REV_CHECK Accounting: Check Goods Movement Reversal (OAG: POST JOURNAL)
    BAPI_ACC_GOODS_MOV_REV_POST Accounting: Post Goods Movement Reversal (OAG: POST JOURNAL)
    BAPI_ACC_INVOICE_REV_CHECK Accounting: Check Reversal of Invoice Receipt (OAG: LOAD PAYABLE)
    BAPI_ACC_INVOICE_REV_POST Accounting: Post Invoice Receipt Reversal (OAG: LOAD PAYABLE)
    BAPI_ACC_PYMNTBLK_UPDATE_CHECK Accounting: Check Changes to Payment Block for Open Items
    BAPI_ACC_PYMNTBLK_UPDATE_POST Accounting: Post Changes to Payment Block for Open Items
    ACC9 Accounting: BAPIs
    BAPI_ACC_DOCUMENT_CHECK Accounting: Check
    BAPI_ACC_DOCUMENT_POST Accounting: Posting
    BAPI_ACC_DOCUMENT_REV_CHECK Accounting: Check Reversal
    BAPI_ACC_DOCUMENT_REV_POST Accounting: Post Reversal
    AEMM Additionals in integrated mat. maint.
    BAPI_ADDITIONAL_MAINTAINDATA Create and Change Additionals Assignments (Retail)
    BEACTIVITY Process modeling activity
    BAPI_ACTIVITY_COMPARE Test Module for Modeling
    BAPI_ACTIVITY_GETALLCOUPLING Determination of Coupling Events for Several Activities
    BAPI_ACTIVITY_GETCOUPLING Get activity coupling events
    BAPI_ACTIVITY_GETDETAIL Read diagram
    BAPI_ACTIVITY_GETPOTCOUPLING Get potential coupling events between two activities
    BAPI_ACTIVITY_GET_PARENTS Delivers Higher-Level Activities
    BAPI_ACTIVTY_GETDIAGRAMIDS Read diagram
    CRM_CO_SLS CO Interface CRM Sales
    BAPI_ACCOUNTING_PROXY_UPLOAD Account Assignment Objects for CRM Transactions
    FAGL_SKF_BAPI
    BAPI_ACC_POST_STAT_KEYFIGURE
    FKN5 BAPI Account Balances
    BAPI_ACCOUNT_GETBALANCES Retrieves Balances for a Contract Acct
    IPPEBAPI_ACT
    BAPI_1179_EXISTENCECHECK
    BAPI_1179_REPLICATE
    BAPI_1179_SAVEREPLICA
    IPPEBAPI_BAL
    BAPI_1183_EXISTENCECHECK
    BAPI_1183_REPLICATE
    BAPI_1183_SAVEREPLICA
    IPPEBAPI_CMP iPPE: Component BAPIs
    BAPI_1176001_EXISTENCECHECK Check Existence of Product Structure Variant
    BAPI_1176_EXISTENCECHECK Check Existence of a Product Structure Node
    BAPI_1176_REPLICATE Replicate Product Structure Nodes
    BAPI_1176_SAVEREPLICA Maintain or Create Product Structure
    IPPEBAPI_FLO
    BAPI_1182_EXISTENCECHECK
    BAPI_1182_REPLICATE
    BAPI_1182_SAVEREPLICA
    IPPEBAPI_GEN iPPE: BAPIs for Generic Engineering Node
    BAPI_1197_EXISTENCECHECK Check Existence of Generic Engineering Node
    BAPI_1197_REPLICATE Replicate the Generic Engineering Node
    BAPI_1197_SAVEREPLICA Create and Change Generic Engineering Node
    IPPEBAPI_MPO
    BAPI_1220_REPLICATE
    BAPI_1220_SAVEREPLICA
    IPPEBAPI_PRM
    BAPI_1196_EXISTENCECHECK
    BAPI_1196_REPLICATE
    BAPI_1196_SAVEREPLICA
    IPPEBAPI_RES
    BAPI_1193_EXISTENCECHECK
    BAPI_1193_REPLICATE
    BAPI_1193_SAVEREPLICA
    K23G Service Function Modules
    BAPI_ACC_CO_DOCUMENT_FIND Read CO Document for Manual Actual Postings
    K40C CO Actual Postings, Manual
    BAPI_ACC_ACTIVITY_ALLOC_CHECK Accounting: Check Activity Allocation
    BAPI_ACC_ACTIVITY_ALLOC_POST Accounting: Post Activity Allocation
    BAPI_ACC_ACT_POSTINGS_REVERSE Accounting: Reverse CO Documents - Manual Actual Postings
    BAPI_ACC_MANUAL_ALLOC_CHECK Accounting: Check Manual Cost Allocation
    BAPI_ACC_MANUAL_ALLOC_POST Accounting: Post Manual Cost Allocation
    BAPI_ACC_PRIMARY_COSTS_CHECK Accounting: Check Primary Costs
    BAPI_ACC_PRIMARY_COSTS_POST Accounting: Post Primary Costs
    BAPI_ACC_REVENUES_CHECK Accounting: Check Revenues
    BAPI_ACC_REVENUES_POST Accounting: Post Revenues
    BAPI_ACC_SENDER_ACTIVITY_CHECK Accounting: Check Sender Activities
    BAPI_ACC_SENDER_ACTIVITY_POST Accounting: Post Sender Activities
    BAPI_ACC_STAT_KEY_FIG_CHECK Accounting: Check Statistical Key Figures
    BAPI_ACC_STAT_KEY_FIG_POST Accounting: Post Statistical Key Figures
    KACG Coding Block: FI/LO Part of KACB
    BAPI_ACCSERV_CHECKACCASSIGNMT BAPI: Object BUS6001 AccountingServices, Method CheckAccountAssignment
    KGR2 External Access to CO Hierarchies
    BAPI_ACTIVITYTYPEGRP_ADDNODE Object BUS1115 (Activity Type Group) - Method AddNode
    BAPI_ACTIVITYTYPEGRP_CREATE Object BUS1115 (Activity Type Group) - Method Create
    BAPI_ACTIVITYTYPEGRP_GETDETAIL Object BUS1115 (Activity Type Group) - Method GetDetail
    BAPI_ACTIVITYTYPEGRP_GETLIST Object BUS1115 (Activity Type Group) - Method GetList
    KPLB BAPIs: Plan data interface
    BAPI_ACT_INPUT_CHECK_AND_POST Activity Type Planning/Price Planning: Formal Parameter Check
    BAPI_ACT_INPUT_READ Activity Type Planning/Price Planning: Formal Parameter Check
    BAPI_ACT_PRICE_CHECK_AND_POST Activity Type Planning/Price Planning: Formal Parameter Check
    BAPI_ACT_PRICE_READ Activity Type Planning/Price Planning: Formal Parameter Check
    OPERS_CA Business Object: Other Personal Data
    BAPI_ADDITIONALDATA_GETDETAIL Read additional personal data
    BAPI_ADDPERSDATA_CHANGE Change additional personal data
    BAPI_ADDPERSDATA_CREATE Create additional personal data
    BAPI_ADDPERSDATA_DELETE Delete additional personal data
    BAPI_ADDPERSDATA_DELIMIT Delimit additional personal data validity period
    BAPI_ADDPERSDATA_GETDETAILEDLI Read instances with data
    BAPI_ADDPERSDATA_GETLIST Read instances
    PADR_AU Business Object AddressEmp (AU)
    BAPI_ADDREMPAU_CHANGE ESS Address Change - Australia
    BAPI_ADDREMPAU_CREATE ESS Address Create - Australia
    BAPI_ADDREMPAU_CREATESUCCESSOR ESS Address Create Successor - Australia
    BAPI_ADDREMPAU_GETDETAIL ESS Address Get Detail - Australia
    BAPI_ADDREMPAU_GETDETAILEDLIST Read instances with data
    BAPI_ADDREMPAU_REQUEST ESS Address Request - Australia
    BAPI_ADDREMPAU_SIMULATECREATN ESS Address Simulate Creation - Australia
    PADR_CH Business Object: AddressEmp
    BAPI_ADDREMPCH_CREATESUCCESSOR Create Subsequent Employee Address Record
    BAPI_ADDREMPCH_GETDETAILEDLIST Read Instances with Data
    PADR_DE Business Object AddressEmp (DE)
    BAPI_ADDREMPDE_CREATESUCCESSOR Create Next Employee Address Record
    BAPI_ADDREMPDE_GETDETAILEDLIST Read Instances with Data
    PADR_DK Business Object AddressEmp - DK
    BAPI_ADDREMPDK_CREATESUCCESSOR Create Subs.Employee Address Record
    BAPI_ADDREMPDK_GETDETAILEDLIST Read Instances with Data
    PADR_ES Business Object AddrEmpE
    BAPI_ADDREMPES_CREATESUCCESSOR Personnel number next record create
    BAPI_ADDREMPES_GETDETAILEDLIST Read instances with data
    PADR_FR Business Object AddrEmpFR
    BAPI_ADDREMPFR_CREATESUCCESSOR Franch Employee Address: Create Next Record
    BAPI_ADDREMPFR_GETDETAILEDLIST Read Data Records in Period (French Employee Addresses)
    PADR_HK Business object: AddressEmp (HK)
    BAPI_ADDREMPHK_CHANGE Change Employee Address (Hong Kong)
    BAPI_ADDREMPHK_CREATE Create Employee Address (Hong Kong)
    BAPI_ADDREMPHK_CREATESUCCESSOR Create subs.employee address record (Hong Kong)
    BAPI_ADDREMPHK_GETDETAIL Read employee address (Hong Kong)
    BAPI_ADDREMPHK_GETDETAILEDLIST Read instances with data (Hong Kong)
    BAPI_ADDREMPHK_REQUEST Create locked employee address record (Hong Kong)
    BAPI_ADDREMPHK_SIMULATECREATE Simulation: Create Employee Address (Hong Kong)
    PADR_ID Business Object AddressEmp (ID)
    BAPI_ADDREMPID_CHANGE ESS Address Change - Indonesia
    BAPI_ADDREMPID_CREATE ESS Address Create - Indonesia
    BAPI_ADDREMPID_CREATESUCCESSOR ESS Address Create Successor - Indonesia
    BAPI_ADDREMPID_GETDETAIL ESS Address Get Detail - Indonesia
    BAPI_ADDREMPID_GETDETAILEDLIST Read instances with data - Indonesia
    BAPI_ADDREMPID_REQUEST Create locked employee address record - Indonesia
    BAPI_ADDREMPID_SIMULATECREATIO ESS Address Simulate Creation - Indonesia
    PADR_IE Business Object AddressEmp - Ireland
    BAPI_ADDREMPIE_CREATESUCCESSOR Create subs.employee address record
    BAPI_ADDREMPIE_GETDETAILEDLIST Read instances with data
    PADR_IT HR Employee Self-Service: Address Italy
    BAPI_ADDREMPIT_CREATESUCCESSOR Create personnel number next record
    BAPI_ADDREMPIT_GETDETAILEDLIST <Currently not used>
    PADR_MY Business Object AddressEmp (MY)
    BAPI_ADDREMPMY_CHANGE ESS Address Change - Malaysia
    BAPI_ADDREMPMY_CREATE ESS Address Create - Malaysia
    BAPI_ADDREMPMY_CREATESUCCESSOR ESS Address Create Successor - Malaysia
    BAPI_ADDREMPMY_GETDETAIL ESS Address Get Detail - Malaysia
    RCP990
    BAPI_1194_REPLICATE_GR
    BAPI_1194_SAVEREP_MULTIPLE_GR
    RCP993
    BAPI_1198_REPLICATE_SR
    BAPI_1198_SAVEREP_MULTIPLE_SR
    RWCL Interface to Accounting
    BAPI_ACC_DOCUMENT_DISPLAY Accounting: Display Method for Follow-On Document Display
    BAPI_ACC_DOCUMENT_RECORD Accounting: Follow-on document numbers for source document
    SZAM BAPIs f. BOR obj. BUS4003 (AddrContPart)
    BAPI_ADDRCONTPART_SAVEREPLICA BAPI for inbound distribution of contact person addresses
    Reward points if found helpful…..
    Cheers,
    Chandra Sekhar.

  • PCL4 TABLE LOG FOR INFOTYPE 2001 IS NOT WORKING IN QUA 070 CLIENT

    Heloo,
    Could some one let me know the ways to capture the log of infotype 2001.
    I have used PCL4 table to capture all the changes made to INFTY 2001.
    This is working fine in DEV 070.
    But not working in QUA 070.
    Could someone let me know what is the problem and the solution.
    Thanks a lot for your efforts.

    Hi Lata!
    I created the absences (T554S):
    Ps grouping, Absence type text
    04,0100 VACATION WORKIN DAYS (quota working fine)
    34,0100 VACATION NATURAL DAYS
    When I check your steps I have this information
    1. Absence type screen no. should be 2001.
    I have checked in table T554S.
    Screen number quota working fine: 2001
    Screen number quota working bad: 2001
    2. Quota deduction should be selected in V_554S_Q table
    Check quota deduction quota working fine: is checked
    Check quota deduction quota working bad: is checked
    3. Check that in counting rule you have assigned correct deduction rule.
    Counting rule for quota working fine: is 010
    Counting rule for quota working bad: is 030
    The counting rule 030 is created for me, maybe this is the problem is a similar copy of the rule 010. It has different conditions because in Psgroup "04" the vacations are working days but in group "34" the vacations are natural days.
    4. In deduction rule check whether correct quota no. you have maintained.
    In deduction rule working fine the absence quota type is 10, standar leave, days
    In deduction rule working bad the absence quota type is 30,                        ,days
    I've checked the absence quota type and are similars:
    In 10 absence quota type
    ESG Time quota types: 1
    PS Grpg tm Quota Typ: 01
    Absence quota type: 10
    Time/measurement unit: Days
    Time constraint class: 02
    In 30 absence quota type:
    ESG Time quota types: 3
    PS Grpg tm Quota Typ: 02
    Absence quota type: 30
    Time/measurement unit: Days
    Time constraint class: 02
    What's wrong?
    Kind regards,
    Julian

  • LDB for infotypes 2001,2002 , 2003 ...04 ?

    Is there any LDB for the infotypes 2001,2002,2003,2004 ...
    Thanks,
    JR.
    Edited by: jeeva raj on Mar 13, 2009 12:00 PM

    Hi,
    I am not sure if I get your issue right, but from what I understand you can not do what you want. I do not think you are able to write a record in IT2001 or 2002 running RPTIME00, because it is absolutely the other way. RPTIME00 through the schema (TM00 in this case) gets the information for the infotype to be processed, but then to write back something in infotype I think is impossible.
    Hope it helps.
    Regards,
    Edoardo

  • How to find the error message populating for infotype 2001 iN pa30

    Hi ,
    I got a requirement that one of our end user a a error message is populating when he tries to enter the data in 2001 absences infotype.
    I check the documents ...it is written as a there is long back they modified the original T-code of 2001(report or userexit not sure) to allow only HR Department people , no one can enter the details apart from HR ,no-one else should be able to do that!!
    Now i need to find where the error message is getting .............i dont know what is the best approach,
    i debugged it(before savgin) but its too long to find......I put the break points for the user-exits available for the infotype(Total i found 16 Package PTIM) ......no user-exit is triggerring..i searching from morning....
    The main problem is  it is working fine for me.I am not getting error message...so unable to catch
    Please help me how to search...or need to search with 'AUTH ' field? if so in how many programs?
    or need to search using the 'MESSAGE' i just have the screen shot of the message..with the content how could i found that ??
    waiting for your valuable inputs....
    regards
    sas

    Hi Gautam,
    Thanks for reverting back, but my problem is i am not getting error message!!
    enduser is getting that!!
    Rgars
    sas

  • BAPI for infotype PA0105.

    Hi,
    Pls can you suggest a BAPI to create and modify data in infotype PA0105 table.
    With Regards,
    Shankar.

    Hi folks,
    maybe someone can help me with this.
    I need a BAPI, that gives me the currently active pers_id of a user. I need this because in my ESS scenario some user are allowed to change their pers_id to be able to create a travel request for someone else, but the service map iview in my portal does not show me the current pers_id.
    This could lead to the situation where a user changes the pers_id and then forgets about it and, in  the worst case simply continues working on that wrong püers_id
    can you please tell me how to get this from infotyp105 - or is this the worng place to ask?
    Thanks in advance,
       Christian

  • Bapi for infotype 0015

    Hiii Alll
    I had a requirement wherein i want to upload data in Infotype 0015 i need a BAPI to upload data .
    please help me
    regards
    Hitesh

    Dear Hitesh,
    Use HR_INFOTYPE_OPERATION to create your a wrapper BAPI. You would also have to use BAPI_EMPLOYEE_ENQUEUE and BAPI_EMPLOYEE_DEQUEUE for locking and unlocking of the record in your BAPI or program.
    Enqueue personnel number
                    call function 'BAPI_EMPLOYEE_ENQUEUE'
    create 0015
                    call function 'HR_INFOTYPE_OPERATION'
    Dequeue personnel number
                    call function 'BAPI_EMPLOYEE_DEQUEUE'
    You could also use LSMW Tool to upload the data.
    Regards,
    Naveen.

  • Is there a BAPI for infotype 0509 and IT0001?

    Hi
    I can't find any BAPI to create data in infotype 0509 or 0001. Is there any?
    Best Regards,
    Morten Gummedal

    HI Morten,
    1. There is no standard bapi.
    2. u can use the FM
      HR_INFOTYPE_OPERATION
    3. If u want it RFC enabled,
      create a new Z FM (rfc enabled)
      and call this FM in it.
    regards,
    amit m.

  • HR-ABAP-want user exit for pa30  for creation 2001 infotype for sick leave

    Hi ALL,
             My requirement like, whenever I try to create a sick leave through PA30 Tcode for infotype 2001 then the has to be trigger like, if the personnel joing date will be from Feb-Dec any date of the year then, the SL will be valid for next year Jan.
    Ex; Todya I am creating SL on 2001 infotype. then the condition will
            If joining date not Jan 2007 then,
             Leave will be valid for next year Jan 2008.
    So, let me know is there any user exit for  this.
    Thanks In advance.
    J.P

    Find myself

Maybe you are looking for

  • 2 issues in LI2,  slowing and freezing during developing, slideshow not showing all images.

    1. Lightroom Is slowing down during normal development. I only have 3500 photos in this catalog and am working on 50 to 200 photo in Raw format at a time, When Opening and beginning  a project the program worked fine but after a few hours of adjustme

  • Error in Adapter Engine

    Hi Experts, In the Component Monitoring, the ADAPTER ENGINE have a RED status, show the message: Details for Ping Status Message: Cannot construct correct URL for runtime check using entries in SLD for component af.pid.<hostname>; correct entries in

  • Swap header not found! on Hibernation

    I have Arch installed on an Asus UX32VD and I want to use suspend to disk. Unfortunaly I didn't create a swap partition so I tried it with a swap file. Activating suspend to disk doesn't work. dmesg gives me the error "PM: Swap header not found!" The

  • Megaraid and Arch 0.7

    I was helping a friend install Arch on his HP Server that has six scsi drives on a megaraid device.  Problem is that the drives were not found when we went to partition them.  However, some suggestions said to use 0.6 to install, using arch-scsi boot

  • CAR (web UI) can't be accessed

    hi, i've got problems in CDR Analysis and Reporting web logon. Every time i access the CDR web, it appears this error : HTTP Status 503 - Servlet Logon.class is currently unavailable type Status report message Servlet Logon.class is currently unavail