2007 Jun 27 3:17 PM
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
2007 Jun 27 3:31 PM
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
2007 Jun 27 3:36 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |