on 09-04-2013 11:32 AM
Thanking you advance.
please help.
View : V_DODC_ADDATTACHMENT
Method: ONACTIONON_SAVE ( pre or overwrite exit )
Context Node ATTACHMENT contains all existing attachment(file) details.
Context Node FILE contains new attachment(file) details.
Loop through all the attachments in node ATTACHMENT collecting value in attribute PHIO_FSIZE(bytes).
Get file size for new attachment from node FILE ,
lon_file->get_attribute(
EXPORTING
name = lc_fcontent
IMPORTING
value = lv_item_file_content ).
lv_content = lv_item_file_content.
lv_fsize = XSTRLEN( lv_content ).
Add new file size to existing file size and compare with threshold limit ( e.g. lv_tot_size > 60mb).
Throw error and return.
Hi,
Unfortunately, I don't have access to SRM system. Is the node ATTACHMENT already being read in the ONACTIONON_SAVE method? If so, to avoid redundancy you can go for overwrite/ post exit.
If you have to read the ATTACHMENT node and calculate, go for Pre-Exit and display exception if total size exceeds threshold.
Hope this helps u.,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.