cancel
Showing results for 
Search instead for 
Did you mean: 

to pass the values in repetitive structures any function module

Former Member
0 Kudos

hi all,

Is there any function module to pass the values in repetitive structures like infotype 0041(Date spcification). I heard there is a function module, so any of you can tell that function module.

thanks,

sekhar.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Chandra,

If your question is to find a date for a given dar value in IT 0041 then this is the sol:

Yes there is a function Module for IT0041, HR_ECM_READ_IT0041_DATE_TYPE

eg:

INFOTYPES: p0041.

DATA: lv_msg TYPE REF TO if_hrpa_message_handler,

lv_date TYPE D.

*

GET pernr.

*

CLEAR: lv_date.

CALL FUNCTION 'HR_ECM_READ_IT0041_DATE_TYPE'

EXPORTING

datar = 'U2' " specify the value of the dar value, for which u have to find date

p0041 = p0041

message_handler = lv_msg

IMPORTING

date = lv_date.

For the dar value U2, lv_date will have the corresponding date.

Hope this will clear your doubt.

Thanks,

Kishore

Former Member
0 Kudos

hi kishore,

I am glad to get my answer at last what i need.

thanku very much,

sekhar.

Former Member
0 Kudos

HI

We can create a custom Function Module for such repetitive requirements if SAP does not have the one as per our requirement. Please check with technical consultant and tell him the scenario.

Regards

Team member.