It is easy to invoke Floe from a Posting Adapter in Varo/Stelo
Within the posting adapter Requirement, add logic to determine whether the particular e-mail should be sent.
Add a separate posting adapter for each e-mail to be sent.
Simply call the Floe API from the posting adapter as follows:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: |
FUNCTION Z_TRIGGER_FLOE_DEMO_700 . *"-------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" VALUE(IM_FORMS_DATA) TYPE /FLM/XML_TAB_T *" VALUE(IM_STEP) TYPE /FLM/PROCESS_SEQ *" VALUE(IM_DIALOGUE_MODE) TYPE CHAR1 *" VALUE(IM_FPE) TYPE /FLM/FPE *" VALUE(IM_STATUS_T) TYPE /FLM/FPE_STATUS_T *" VALUE(IM_RFCDEST) TYPE /FLM/FPE_RFCDEST *" EXPORTING *" VALUE(EX_POSTED_DOC) TYPE /FLM/PDOC *" VALUE(EX_SUBRC) TYPE SYSUBRC *" VALUE(EX_NO_POST_ATTEMPT) TYPE FLAG *" CHANGING *" REFERENCE(CH_RETURN) TYPE /FLM/MESS_T *"-------------------------------------------------------------------- CALL FUNCTION '/FLOE/EMAIL_OUT' destination 'DV1CLNT800' EXPORTING im_etype = 'CAR1' im_elang = 'E' im_form_data = IM_FORMS_DATA im_send_immediately = 'X' IMPORTING ex_subrc = ex_subrc EX_MESS = ch_return. EX_POSTED_DOC = IM_FPE-id. ENDFUNCTION. |
All the form fields are automatically available as Floe variables.
Use the Floe Email Data User-Exit to add any formatting, such as:
- Dates
- Quantities
- Amounts in currency
- Get field description
- Get drop-down list value description
Alternatively you can run this logic within the posting adapter and add variables for the formatted field values.