‎2007 May 16 9:07 PM
Hi,
I am trying to implement the BAdi Upload Documents (HRRCF00_DOC_UPLOAD) for our E-Recruiting system. It is used to check the size of files that are uploaded as attachments to the system. I followed all of the necessary steps until I got to the point where it asks you to Enter your implementation code between the method <Interface Name>~<Name of Method> and endmethod.statements.
I am not sure what this code should be. I am guessing it should check the file size and if it is too large then produce an error message, but I am new to ABAP and Im not sure how to write this. Any help would be appreciated.
Thanks!
Heather
‎2007 May 16 9:36 PM
ok.. (I didn't help you there very much - sorry) well my best guess is that there probably is a standard SAP FM Function module for a 'file size check' Please check transaction SE37 and use as search keywords ' file size' or what you think is best. If there is a FM for checking the file size, then you might use it (or part of it's coding) for your specific requirements. I'm not logged in to SAP at the moment
else I would have looked for it myself.
‎2007 May 16 9:12 PM
Perhaps you need to finish the implementation in a correct way:
Steps:
1. Execute Business Add-In(BADI) transaction SE18
2. Enter BADI name i.e. HRPBSGB_HESA_NISR and press the display
button
3. Select menu option Implementation->Create
4. Give implementation a name such as Z_HRPBSGB_HESA_NISR
5. You can now make any changes you require to the BADI within this
implementation, for example choose the Interface tab
6. Double click on the method you want to change, you can now enter
any code you require.
7. Please note to find out what import and export parameters a
method has got return the original BADI definition
(i.e. HRPBSGB_HESA_NISR) and double click on the method name
for example within HRPBSGB_HESA_NISR contract is a method
8. When changes have been made activate the implementation
‎2007 May 16 9:22 PM
Thanks for the response! I have completed the steps you posted and I see the method CHECK_ATTACH_FILE_SIZE. My problem is that I don't know what the code should be in the method so that it will actually check the size of the file and and not accept it if it is too large.
Thanks!
Heather
‎2007 May 16 9:36 PM
ok.. (I didn't help you there very much - sorry) well my best guess is that there probably is a standard SAP FM Function module for a 'file size check' Please check transaction SE37 and use as search keywords ' file size' or what you think is best. If there is a FM for checking the file size, then you might use it (or part of it's coding) for your specific requirements. I'm not logged in to SAP at the moment
else I would have looked for it myself.
‎2008 Jul 18 2:02 PM
Hi,
I am also working on same requirement ie..finding uploaded file size. Please forward if you have solution for this.
Thanks&Regards,
Srinivas.
‎2008 Jul 21 10:41 AM
Dear Heather,
This is Srinivas. I hope you are doing well. I need help from you.
You have posted one Question on May 16, 2007 in SDN.
Please find your question below for your reference. Please forward me solution if you have solution for the same question. Thanks in advance.
Hi,
I am trying to implement the BAdi Upload Documents (HRRCF00_DOC_UPLOAD) for our E-Recruiting system. It is used to check the size of files that are uploaded as attachments to the system. I followed all of the necessary steps until I got to the point where it asks you to “Enter your implementation code between the method <Interface Name>~<Name of Method> and endmethod.statements.”
I am not sure what this code should be. I am guessing it should check the file size and if it is too large then produce an error message, but I am new to ABAP and I’m not sure how to write this. Any help would be appreciated.
Thanks!
Heather
Regards,
Srinivas.