Skip to Content
avatar image
Former Member

E recruitement - Accessing the attachments

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 03, 2008 at 05:35 PM

    T77RCF_ATTTYPE would help

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • avatar image
    Former Member
    Oct 20, 2008 at 11:25 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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