2011 Feb 17 11:44 AM
Hey Guys
Hoping that someone can help me.
Has anyone used the BAPI RH_GET_PARTIC_CANCELLATION
Reason being i have developed a Web Dynpro Application that through Ess or Mss it allows the user to see there training records.
Now i have been using this BAPI BAPI_ATTENDEE_BOOK_LIST to get the training record back by feeding it the Personnel number. But this Bapi only stores the completed training events that have been completed by the user.
In order for me to get the cancelled training data i have been using RH_GET_CANCELLATION_DATA by also feeding this the personnel number but it wont bring back the user or dates or times just the reason for cancellation.
The bapi that i have mentioned at the top will bring back this information but i am having trouble using it. it seems i have to run it first populate an internal table then run it again with certain info types
This may not make any sense at all but if anyone can help will be very grateful thank you
Shaun
2011 Feb 17 2:22 PM
Hey Guys
Hoping that someone can help me.
Has anyone used the BAPI RH_GET_PARTIC_CANCELLATION
Reason being i have developed a Web Dynpro Application that through Ess or Mss it allows the user to see there training records.
Now i have been using this BAPI BAPI_ATTENDEE_BOOK_LIST to get the training record back by feeding it the Personnel number. But this Bapi only stores the completed training events that have been completed by the user.
In order for me to get the cancelled training data i have been using RH_GET_CANCELLATION_DATA by also feeding this the personnel number but it wont bring back the user or dates or times just the reason for cancellation.
The bapi that i have mentioned at the top will bring back this information but i am having trouble using it. it seems i have to run it first populate an internal table then run it again with certain info types
This may not make any sense at all but if anyone can help will be very grateful thank you
Shaun
2011 Feb 17 2:22 PM
2011 Feb 17 2:48 PM
To get the participation cancellation details you can query the table HRP1001 with
Otype = 'P'
Objid = Personnel Number
Rsign = 'B'
Relat = '040'
The SOBID returned will hold the business event. BEGDA and ENDDA will hold the training duration period.
To use the FM RH_GET_CANCELLATION_DATA pass the personnel number details in the PARTIC_TAB table. Also, make sure the the employee queried is having valid records in IT0000, IT0001 and IT0002 for the period.
Regards
Ranganath
2011 Feb 17 3:00 PM
Thank you very much for getting back to me so quick..
So in my code how do i populate the partic_tab this is my first time using a FM like this one i have this code in my webdynpro but i need to poulate that table before it runs is that correct.
Sorry im new to all this
CALL FUNCTION 'RH_GET_PARTIC_CANCELLATION'
EXPORTING
BEGDA = '19000101'
ENDDA = '99991231'
_ISTAT = ' '
SORT = 'X'
EVTYP =
REASON =
AUTH_SOBID = ' '
TABLES
partic_tab =
stor_tab =
INFOTYPE_1001 =
EXCEPTIONS
NO_PARTICIPANT_FOUND = 1
WRONG_OTYPE = 2
OTHERS = 3
.
IF sy-subrc <> 0.
2011 Feb 17 3:07 PM
partic_tab has 3 fields. Populate the fields as below,
partic_tab-plvar = '01' Generally it will be '01', else check in table t77s0 for values 'PLOGI' and 'PLOGI', use the value from GSVAL field
partic_tab-otype = 'P'
partic_tab-objid = Personnel Number.
append partic_tab.
ISTAT can be passed based on what kind of records you need. Below are the possible values
1 Active
2 Planned
3 Submitted
4 Approved
5 Rejected
The output will be available in stor_tab table.
Regards
Ranganath
2011 Feb 17 3:14 PM
Brilliant thanks very much i will give that a go and get back to you thanks again
Shaun
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |