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

quick tutorial of using methods of class

former_member552147
Participant
0 Likes
453

Hi,

I have never use methods of class before. Is there anyone can give me a quick tutorial how to do it?

To be more specific – I need convert field 'DAUER' into the required format using one of the following methods of class 'CL_HR_T510_PSRCL':

• CONVERT_DURATION_TO_MMMM: Duration Conversion to Format 'MMMM'

• CONVERT_DURATION_TO_MMMM: Duration Conversion to Format 'YYMM'

Please be more detailed in describing it.

Your help will greatly appreciate.

Thanks,

Veb

Hi,

I have never use methods of class before. Is there anyone can give me a quick tutorial how to do it?

To be more specific – I need convert field 'DAUER' into the required format using one of the following methods of class 'CL_HR_T510_PSRCL':

• CONVERT_DURATION_TO_MMMM: Duration Conversion to Format 'MMMM'

• CONVERT_DURATION_TO_MMMM: Duration Conversion to Format 'YYMM'

Please be more detailed in describing it.

Your help will greatly appreciate.

Thanks,

Veb

2 REPLIES 2
Read only

Former Member
0 Likes
433

Hello Veb,

You will find at this sdn page at section ABAP Objects , documentations and links about ABAP OO :

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/35eaef9c-0b01-0010-dd8b-e3b0f... [original link is broken]

For your example :

1) You can use like this :

CALL METHOD CL_HR_T510_PSRCL=>CONVERT_DURATION_TO_MMMM

EXPORTING

DURATION = old_duration

RECEIVING

MMMM = new_duration.

1) Like this :

l_dauer = convert_duration_to_mmmm(

duration = l_dauer).

Best regards

Read only

suresh_datti
Active Contributor
0 Likes
433

deleted.. irrelevant

Message was edited by:

Suresh Datti