cancel
Showing results for 
Search instead for 
Did you mean: 

E recruitement - Accessing the attachments

Former Member
0 Kudos

Hello,

In e-recruitment, employees can attach resumes to their applications on the BSP pages. How do I know where these attachments are saved. I need to create a program which when run will be able to access these attachments and without opening them save them on the C drive. Is it possible to do this if i know the Rec Guid

Thanks,

Amina

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

T77RCF_ATTTYPE would help

Former Member
0 Kudos

Hi,

Thanks. This table will let me know the activity type the attachment is attached to but how do i access this attachment using ABAP programing?

Thanks

Former Member
0 Kudos

I am not sure how to access the documents as they are stored in content repository HR_KW in the E-rec Server.

However there is a way of getting the index of the documents. This index could be used to fetch the documents.

To derive at the index you will have to explore the classes CL_HRRCF_*BL. this will give the list of classes called bl facade of e-recruitment you can create a report which would use the classes and the methods to derive the index.

Regards,

Divya

Former Member
0 Kudos

Thanks Divya.

I can use the classes to get the GUID ( i think this is what you mean by the index) but then where do i go to retreive teh document using this index?

Thanks

Former Member
0 Kudos

Hi,

I am not sure how to access the documents through GUID or index.

However i can suggest to explore the standard code of BSP.

Or go to the smartform for the Candidate profile where the logic for fetching the document from guid might be mentioned.

Regards,

divya

Former Member
0 Kudos

That is a great idea Divya. I will try to look though that. Thanks.

Former Member
0 Kudos

Amina

Did you find the way, I am also trying to look BSP page HRRCF_REQ_MNT to see where the attachements are getting stored but I dont see the views and controllers for 'ATTACHMENTS' tab in BSP page. Please let me know if you find the answer.

Thanks

Srini

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Infotype where reference to attachments stored is 5134 and table name is HRP5134. You can find out all the attachments for an object in this table. Once you found the attachment you want to retrieve, you can use the FM HRRCF_MDL_CAND_ATT_GET. This FM retrieves the attachment in XSTRING format.

You can use FM SCMS_XSTRING_TO_BINARY to convert it into BINARY if required.

Please award points if this is helpful.

Thanks

Naresh

Former Member
0 Kudos

Naresh

First of all thanks a lot for your response, FM 'HRRCF_MDL_CAND_ATT_GET' does not exist in our SAP version, we are in E RECRUIT 300. Please let me know if you have any other solution.

Thanks

Srini

Edited by: srini rao on Oct 21, 2008 3:41 PM

Edited by: srini rao on Oct 21, 2008 3:42 PM

Former Member
0 Kudos

HI Srini,

I am not exactly sure what your requirement is, but if you want to retrieve the documents stored as attachments you can do so my getting the URL link to the document. This link will open in a browser to give you the document.

for this you can use class cl_hrrcf_attachment_bl method: get_attachment_url

*select attachment records for a particular ID , could be type any ( *NE, NB, etc)

SELECT *

FROM hrp5134

INTO CORRESPONDING FIELDS OF attachment_record

WHERE plvar = '01'

AND otype = 'NE'

AND objid = gs_canid.

APPEND attachment_record TO it_attachment_record.

ENDSELECT.

  • retreive URL

TRY.

CALL METHOD cl_hrrcf_attachment_bl=>get_instance

RECEIVING

return = go_attach.

.

ENDTRY.

CLEAR url.

TRY.

CALL METHOD go_attach->get_attachment_url

EXPORTING

ps_attachment = attachment_record

ps_hrobject = go_req->hrobject

IMPORTING

p_attachment_url = url.

CATCH cx_hrrcf .

ENDTRY.

Amina