Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Delimit Infotype 0105 Subtype 0001

Former Member
0 Kudos
1,041

Hi All

I am new to ABAP so need help.

We need to delimit Infotype 0105 subtype 0001 records.

I tried vai a number of ways but facing issues in someway or the other.

When I try to do the same via FM: BAPI_HRMASTER_SAVE_REPL_MULT, it creates a new entry for the same record with end validity day as system date (the old record which has end validity date as 31.12.9999 remains).

When i try to do the same via FM: BAPI_EMPLCOMM_DELIMIT, it throws an error 'EPG 009No data stored for 0105 in the selected period' even though the record exists.

CALL FUNCTION 'BAPI_EMPLCOMM_DELIMIT'
  EXPORTING
    employeenumber       = '00000049'
    subtype              = '0001'
    objectid             = 'P'
    lockindicator        = ''
    validitybegin        = '20100701'
    validityend          = '99991231'
    recordnumber         = '000'
    delimit_date         = '20120219'
*   NOCOMMIT             =
 IMPORTING
   RETURN               = return.
*   EMPLCOMMKEY          =

.

Not sure how to go about it. I searched the forum which suggested to use Function Modules, but even then the issue isn't getting resolved.

Please help.

Martin

1 ACCEPTED SOLUTION

former_member209703
Active Contributor
0 Kudos
228

Hi

Your problem is the parameter OBJECTID It doesn't make sense to pass a 'P'.

Other than that, you just have to lock and unlock the Personnel Number accordingly.

Regards


data: return type BAPIRETURN1.

CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
  EXPORTING
    number        = '00000224'
* IMPORTING
*   RETURN        =
          .



CALL FUNCTION 'BAPI_EMPLCOMM_DELIMIT'
  EXPORTING
    employeenumber       = '00000224'
    subtype              = '0001'
    objectid             = ''
    lockindicator        = ''
    validitybegin        = '20070101'
    validityend          = '99991231'
    recordnumber         = '000'
    delimit_date         = '20120219'
*   NOCOMMIT             =
 IMPORTING
   RETURN               = return.
*   EMPLCOMMKEY          =

BREAK-POINT.

CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
  EXPORTING
    number        = '00000224'
* IMPORTING
*   RETURN        =
          .

3 REPLIES 3

former_member209703
Active Contributor
0 Kudos
229

Hi

Your problem is the parameter OBJECTID It doesn't make sense to pass a 'P'.

Other than that, you just have to lock and unlock the Personnel Number accordingly.

Regards


data: return type BAPIRETURN1.

CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
  EXPORTING
    number        = '00000224'
* IMPORTING
*   RETURN        =
          .



CALL FUNCTION 'BAPI_EMPLCOMM_DELIMIT'
  EXPORTING
    employeenumber       = '00000224'
    subtype              = '0001'
    objectid             = ''
    lockindicator        = ''
    validitybegin        = '20070101'
    validityend          = '99991231'
    recordnumber         = '000'
    delimit_date         = '20120219'
*   NOCOMMIT             =
 IMPORTING
   RETURN               = return.
*   EMPLCOMMKEY          =

BREAK-POINT.

CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
  EXPORTING
    number        = '00000224'
* IMPORTING
*   RETURN        =
          .

vijaymanikandan
Contributor
0 Kudos
228

HI

Kindly check the configuration of the time constraints for this relationship in your system.

[http://forums.sdn.sap.com/thread.jspa?threadID=48559]

Regards,

Vijay V

former_member217316
Contributor
0 Kudos
228

Hi Martin

Welcome to SDN.

I faced a similar issue with sub type 0011. Please refer to the [link|http://forums.sdn.sap.com/thread.jspa?threadID=1375365&tstart=0].

Hope this helps.

Harsh