Skip to Content

Disclosure mail body in SMARTFORM NACE output - Application driven SODIS

We want to use the disclosure functionality to populate the E-mail body of the existing NACE based output using SMARTform. When enabling Disclosure in transaction SODIS with setting = 'Always append', everything works fine.

However, I only want the disclosure for purchase order output and plan to use 'Application driven' in SODIS. I first tried to add the call to disclosure determination in the initialization, before the call of the SMARTform - something like:

DATA: lv_discl TYPE bcs_discl.
DATA: send_request TYPE REF TO cl_bcs.
DATA bcs_exception TYPE REF TO cx_bcs.
lv_discl = 1. " Insert Disclosures in Main Document

* create the send request
send_request = cl_bcs=>create_persistent( ).
send_request->set_disclosure( lv_discl ).

This did not work. I can see that it creates 1 record in table SOOS and 2 in BCST_SR- the first linked to the SOOS record without disclosure, the second without link but with disclosure = 1. I can also see that if I manipulate BCST_SR with disclosure = 1, I will get disclosure when executing SOST.

After the SMARTFORM is called, I get a new mail request ID. I assume I need to convert that and get the instance and have tried a number of methods in class CL_BCS and CL_SEND_REQUEST_BCS. I must admit my OO skills are not the best ...

I do not want to redo the sending concept with e.g. SO_NEW_DOCUMENT_ATT_SEND_API1

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers