Application Development and Automation 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: 
Read only

Module function - How retrieve a list of person having a qualification ?

Former Member
0 Kudos
413

Hello,

I know a qualification or a qualification group ( for exemple Q = 5000562 or QK = 50012547).

How can I retrieve the list with all person having this qualification ?

Some exemple, MH or BAPI ???

Tks.

6 REPLIES 6
Read only

Former Member
0 Kudos
302

Hi,

You can use this BAPI BAPI_QUALIFIC_GETLIST to get the list of qualifications an employee have and you can check the qualification you are looking for the employee exits in this table if not you ignore the employeee...

The Other way in which you require is very specific

Hope you can try this way

Regards

Pavan

Read only

0 Kudos
302

SOLVED BY MF:

RH_READ_INFTY

Read only

Former Member
0 Kudos
302

Hi ,

Try with the following code.

DATA:itb_p1001 TYPE STANDARD TABLE OF p1001,

lw_p1001 TYPE p1001.

CALL FUNCTION 'RH_READ_INFTY'

EXPORTING

plvar = '01'

otype = 'Q'

objid = '30000312'

infty = '1001'

istat = ' '

extend = 'X'

subty = 'B032'

begda = '19000101'

endda = '99991231'

TABLES

innnn = itb_p1001

EXCEPTIONS

all_infty_with_subty = 1

nothing_found = 2

no_objects = 3

wrong_condition = 4

wrong_parameters = 5

OTHERS = 6.

IF sy-subrc EQ 0.

LOOP AT itb_p1001 INTO lw_p1001.

ENDLOOP.

ENDIF.

Read only

0 Kudos
302

Hello Srini,

tks for your reply...

You know how retrieve the qualification list if you a group of qualifications ?

I mean : You know QK = 50001254 and would to retrieve all Q attacched !!

Tks ,

bye.

Read only

0 Kudos
302

Hi,

Try with the following code.

DATA:itb_p1001 TYPE STANDARD TABLE OF p1001,

lw_p1001 TYPE p1001.

CALL FUNCTION 'RH_READ_INFTY'

EXPORTING

plvar = '01'

otype = 'QK'

objid = '50001254'

infty = '1001'

istat = ' '

extend = 'X'

subty = 'A030'

begda = '19000101'

endda = '99991231'

TABLES

innnn = itb_p1001

EXCEPTIONS

all_infty_with_subty = 1

nothing_found = 2

no_objects = 3

wrong_condition = 4

wrong_parameters = 5

OTHERS = 6.

IF sy-subrc EQ 0.

LOOP AT itb_p1001 INTO lw_p1001.

ENDLOOP.

ENDIF.

Read only

0 Kudos
302

Use B030 in place of subtype .

CALL FUNCTION 'RH_READ_INFTY'

EXPORTING

plvar = '01'

otype = 'QK'

objid = '50001254'

infty = '1001'

istat = ' '

extend = 'X'

subty = 'B030'

begda = '19000101'

endda = '99991231'

TABLES

innnn = itb_p1001

EXCEPTIONS

all_infty_with_subty = 1

nothing_found = 2

no_objects = 3

wrong_condition = 4

wrong_parameters = 5

OTHERS = 6.

IF sy-subrc EQ 0.