We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-dev] How to Attach Dynamic Internal Table As Attachment in Mail

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from avikg on Jun 4 at 3:15 PM
Thanks Terry for your message. But the thing is that the function module should be valid in SCM Landscape.
In that case I have re declared a structure of SOLI and assigned to <output_struc> and then wrote the code mentioned by you. And later attaching the way I have done. It's working. But there is only single issue i.e. in a structure I have field which do summation of rest of the packed values, which it is not doing currently.

But I am really thankful to you for all the help you offered over here.

Regards,
Avik

---------------Original Message---------------
From: Terry Barker
Sent: Monday, June 04, 2012 1:21 PM
Subject: How to Attach Dynamic Internal Table As Attachment in Mail

You have to have a defined structure for <OUTPUT_STRUC>. That structure would be the same as your dynamic itab, except the packed fields would be replaced by text fields. The key to this technique is that the two structures must have the same number of components, in the same order.
Once you have an itab with all the packed values converted to text, try function module CBRC_LIB2_CONVERT_ITAB_TO_CSV to convert it to a tab-delimited byte stream that you will attach to the email.
Cheers,
Terry

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2012 Toolbox.com and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
 
avikg  
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Become a blogger at Toolbox.com and share your expertise with the community. Start today.

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language