Posts

Showing posts from January, 2017

Sending Image in Mail body using SAP ABAP + HTML Code

Image in Mail Body Steps : Enter Transaction : Se80 Select/Choose       :    MIME repository option Path to be used to upload image:   /SAP/PUBLIC/Image.jpg (Image upload from PC) Click on   Import jpg picture Sample picture name : img_happy .jpg (Example) =================================================================================   Write a below program(report with Mailer functionality) to send an Image in Mail body . Program : report   zimage_in_mail_body . "For Mime Repository data  :  gv_mr_api   type ref to  if_mr_api ,  "mime repository object        gv_content  type  xstring ,           "image in XSTRING        is_folder  type  boole_d ,        l_loio      type  skwf_io . *&------------------------------------ *&source Code for image in mail body *&------------------------------------ *&Image to Xstring Table form data  :  l_obj_len   type  so_obj_len ,        lv_graphic_length  type  tdlength ,        gr_xstr

Attachments of different types of files Using Webdynpro ABAP

Image
  How to attach files through Web Dynpro Application ? Steps : O/P: To get above Output we need to follow below steps: Table Required as Below: Create a web dynpro application as below: 1.        Create a web dnpro application with one main view. Go to CONTEXT node of Main View   and Assign 2 nodes as below: Cardinality of nodes as follows : Go to Layout   Tab To Achieve the below : We need to create UI Elements as below Text View   Properties: File Upload properties: Attach Button Properties:   Source Code for On Action ( ATTACH ) : method  onactionattach  . data  lo_nd_input             type ref to  if_wd_context_node .    data  lo_el_input             type ref to  if_wd_context_element .    data  ls_input                type  wd_this -> element_input .    data  lo_nd_attachment_list   type ref to  if_wd_context_node .    data  lt_attachment_list      type  wd_this -> elements_attachments .