Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAdi: Upload Documents

Former Member
0 Likes
1,343

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,078

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.

5 REPLIES 5
Read only

Former Member
0 Likes
1,078

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

Read only

0 Likes
1,078

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

Read only

Former Member
0 Likes
1,079

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.

Read only

Former Member
0 Likes
1,078

Hi,

I am also working on same requirement ie..finding uploaded file size. Please forward if you have solution for this.

Thanks&Regards,

Srinivas.

Read only

Former Member
0 Likes
1,078

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 &#147;Enter your implementation code between the method <Interface Name>~<Name of Method> and endmethod.statements.&#148;

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&#146;m not sure how to write this. Any help would be appreciated.

Thanks!

Heather

Regards,

Srinivas.