BAPI_ERC_UPDATE_ATTACHMENT

Hi,
We r interfacing the Erec 6 with web application , for the same we need to pull the application attachment from web apllication and upload it into the SAP Erecuit Content server.
I tried to use BAPI_ERC_UPDATE_ATTACHMENT for the same , but it has a table file_split, which is raw string  which requires the unicode formatt of file, w/o which it cannot upload the file, so how do we convert the file to unicode before passing the file to this BAPI ?
Or any other FM/Baapi in Erec to uplaod direcectly upload it to content server.
CALL FUNCTION 'BAPI_ERC_UPDATE_ATTACHMENT'
  EXPORTING
    application_id          = '50025438'
    attachment_type         = '0012'
    language                = 'E'
    attachment_header       = 'TEST HDR2'
    filename                = 'C:\test.doc'
  tables
    file_split              = FILE_SPLIT
    return                  =  RETURN.
Replies will be highly appreciated.

Thanks Paramesh,
I already tried GUI_Upload , but it accepts only text files, I have to upload all the .doc,.excel,.pdf,etc or any other formatt  , any idea which FM can help me to convert this other file types into unicode file formatt before passing to Bapi ?
Regards
Jignesh

Similar Messages

  • Resume Attachment to E-Recruitment System.

    Hi All ,
    We are doing a data Migration project to E-recruitment system . To upload and create the candidates and Application id , we have successfully done it through BAPI_ERC_APPL_CREATE_EXT . This is also being reflected in Portal .
    But when i use BAPI_ERC_UPDATE_ATTACHMENT to upload attachment , i neither get any error message nor there is an entry in HRP5134 table .
    This is the vales that I am passing to the Bapi .
    Import parameters               Value
    APPLICATION_ID                  50000150
    ATTACHMENT_TYPE                 0001
    LANGUAGE                        EN
    ATTACHMENT_HEADER               RESUME
    FILENAME                        C:\TEMP\DATA_UPLOADTEST1.TXT
    Tables                          Value
    FILE_SPLIT                         0 Entries
    RETURN                             0 Entries.
    Should i pass something to File_Split ?
    Also , i see a BADI HRRCF_DOC_UPLOAD  for the same kind of requirement .
    Could you please let me know how to save the attachment  ? The project is supposed to go live on 20th Feb , So appreciate your quick help .
    Thanks
    Raghu

    Dear Hussain,
    Thank you for your response.
    Website of the company is hosted by a different software, and we have to link SAP E-Rec with that. Will Web dispatcher suffice this requirement.
    Regards,
    Siv

  • E-Rec (ECC 6.0) Upload Resume

    Hi,
    I need to upload resumes to E-Rec(ECC 6.0)  from .net and attach it with applicant. When i tested the  BAPI_ERC_UPDATE_ATTACHMENT BAPI, i am getting "attachement cannot be saved".
    any help is appreciated.
    Regards,
    Venkat

    Hi Mark
    Please put this request in the correct forum of CRM Middleware.
    I am sure your will get the right help from the middleware experts.
    Regards

  • CV upload in E-Rec

    Hi,
    I need to know steps to upload CVs in e-recruitment.

    Hello,
    in that case you will need to write your own ABAP program. You can use the FM BAPI_ERC_UPDATE_ATTACHMENT for this.
    hope it helps
    Koen Van Loocke

Maybe you are looking for