cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform sent as PDF not found in user business workplace

Former Member
0 Kudos

Hi,

I have enhanced the standard sales order quote and the form is sent as a PDF through external send medium to the customer mail id. Form uses the standard print program.

The mail that is sent is not found in the business workplace (outbox) of the user. Tcode SBWP.

But business user needs the mail that is sent out in his sap outbox. Is there any configuration settings need to done or it should be achieved through programming.

Please help me out.

Thanks in advance

Praba

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Prabavathi,

Run this program RSSOSOSTSTAT and check whether the mails are sent friom your server first then check the reason why they are not in the user outbox

Answers (1)

Answers (1)

agnihotro_sinha2
Active Contributor
0 Kudos

hi,

i hope you are using the FM "WFMC_PREPARE_SMART_FORM" to set print parameters.

if the return code of this FM is 0 , then set the NO DIALOG parameter as 'X'.

Add FM "SO_NEW_DOCUMENT_ATT_SEND_API1" to the driver program.

Here you can set

put_in_outbox = 'X'.

Try with this code for setting print parameters:.

 DATA: LS_CONTROL_PARAM TYPE SSFCTRLOP.
LS_CONTROL_PARAM-NO_DIALOG   = LC_X.

.

try this for sending mail as PDF attachment:


  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      document_data              = lwa_doc_chng
      put_in_outbox              = 'X'
      commit_work                = gc_x
    TABLES
      packing_list               = li_objpack
      object_header              = li_objhead
      contents_bin               = li_objbin
      contents_txt               = li_objtxt
      receivers                  = li_reclist

.

regards,

ags.