Skip to Content
0
Former Member
Sep 04, 2013 at 10:32 AM

Enhancement of webdynpro component /SAPSRM/WDC_DODC_NA.

34 Views

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.