on 2020 Feb 12 10:52 AM
Hello,
we have a workflow with some decisions and some documents in circulation.
As last step and if all decision steps where marked as “ok” we want to create an email to our supplier with the pdf documents.
Unfortunately the comments of the decision steps are in container element _Attach_Objects as well.
As you can see there are 2 SOFM-entries with doctp = RAW, these are the comments in the decision steps and will be attached as txt-file to the outgoing email as well:
Sometimes the comments in decision steps are not for the supplier 😉
How is it possible to attach only the pdf documents to the outgoing email?
Thanks and regards,
Marc
Hello Sue,
well now I have in my new small method a defined table of SOFM and it looks like this:
begin_method delete_attachment changing container.
DATA: it_sofm TYPE TABLE OF swc_object WITH HEADER LINE,
is_sofm LIKE LINE OF it_sofm.
DATA: et_sofm TYPE TABLE OF swc_object WITH HEADER LINE.
DATA: wf_obj_type TYPE sofolenti1-obj_type.
swc_get_table container 'ATTACH_OBJECTS' it_sofm.
LOOP AT it_sofm.
swc_get_object_type it_sofm wf_obj_type.
IF wf_obj_type <> 'RAW'.
APPEND it_sofm TO et_sofm.
ENDIF.
ENDLOOP.
swc_set_table container 'MAILATTACHMENT' et_sofm.
end_method.
Table Entry 3 and 4 are the attachments to delete.
How am i able now to refer to the _ATTACH_OBJECTS? I have to find out witch one of these entries refer to doctp RAW or doctp EXT.
Regards,
Marc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marc,
You should create a container element in your WF template container for MAILATTACHMENT (type SOFM) and mark it as importing and multiline. Then, at your task to DELETE_ATTACHMENT, bind _ATTACH_OBJECTS into your method's import parameter (ATTACH_OBJECTS with no underscore) and bind MAILATTACHMENT back as an exporting parameter.
I don't have a system at hand.
Hope this helps,
Sue
User | Count |
---|---|
70 | |
11 | |
10 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.