on 09-02-2008 8:46 PM
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
T77RCF_ATTTYPE would help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.