<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Submit program in workflow method. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-in-workflow-method/m-p/4596157#M1083620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Yes my program  is creating a smart form and sending a mail to avoid user action i have called smart form function module in no dialog mode by passing the values.&lt;/P&gt;&lt;P&gt;w_ctrlop-getotf = 'X'.&lt;/P&gt;&lt;P&gt;  w_ctrlop-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;  w_compop-tdnoprint = 'X'.&lt;/P&gt;&lt;P&gt;  w_compop-TDFINAL = 'X'.&lt;/P&gt;&lt;P&gt;  w_compop-tdnoprev = 'X'.&lt;/P&gt;&lt;P&gt;  w_comfin-tddest    = 'LP01'.&lt;/P&gt;&lt;P&gt;  w_compop-tddest    = 'LP01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also there are no write statements in my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i tested only my program it didnot prompt me for any input nor did it give any output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to go to my outbox to see the output of my form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i commented the function module which was calling the smart form and tested my workflow it was working fine&lt;/P&gt;&lt;P&gt;And hence the error is in my call to the smart form .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Below is the part of my program to cal smart form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      formname           = c_form&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      fm_name            = c_fm_name&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      no_form            = 1&lt;/P&gt;&lt;P&gt;      no_function_module = 2&lt;/P&gt;&lt;P&gt;      OTHERS             = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  w_ctrlop-getotf = 'X'.&lt;/P&gt;&lt;P&gt;  w_ctrlop-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;  "w_ctrlop-device = 'LP01'.&lt;/P&gt;&lt;P&gt;  w_compop-tdnoprint = 'X'.&lt;/P&gt;&lt;P&gt;  w_compop-TDFINAL = 'X'.&lt;/P&gt;&lt;P&gt;  w_compop-tdnoprev = 'X'.&lt;/P&gt;&lt;P&gt;  w_comfin-tddest    = 'LP01'.&lt;/P&gt;&lt;P&gt;  w_compop-tddest    = 'LP01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION c_fm_name&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX_TAB          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_PARAMETERS         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     control_parameters         = w_ctrlop&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_APPL_OBJ              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_RECIPIENT             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_SENDER                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     output_options             = w_compop&lt;/P&gt;&lt;P&gt;     user_settings              = 'X'&lt;/P&gt;&lt;P&gt;      im_fs_ekko                 = wa_ekko&lt;/P&gt;&lt;P&gt;      v_rlwrt                    = v_rlwrt&lt;/P&gt;&lt;P&gt;      v_first                    = v_first&lt;/P&gt;&lt;P&gt;      v_last                     = v_last&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DOCUMENT_OUTPUT_INFO       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     job_output_info            = w_return&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOB_OUTPUT_OPTIONS         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      im_it_ekkn                 = it_ekkn&lt;/P&gt;&lt;P&gt;      im_lt_apprhistory          = lt_cdhdr&lt;/P&gt;&lt;P&gt;      im_it_ekpo                 = it_ekpo&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     formatting_error           = 1&lt;/P&gt;&lt;P&gt;     internal_error             = 2&lt;/P&gt;&lt;P&gt;     send_error                 = 3&lt;/P&gt;&lt;P&gt;     user_canceled              = 4&lt;/P&gt;&lt;P&gt;     OTHERS                     = 5&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here after i have called convert_otf and function module to send mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know i am missing out something in my call to the smart form but am not able to figure out what please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Oct 2008 13:31:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-25T13:31:12Z</dc:date>
    <item>
      <title>Submit program in workflow method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-in-workflow-method/m-p/4596155#M1083618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i am calling a method in my workflow for PO approval to send a notification to approver on his external email address in the form of a smart form.&lt;/P&gt;&lt;P&gt;for this i have written a program which creates the smart form output converts it to PDF and sends mail to the approver.&lt;/P&gt;&lt;P&gt;When i test this program it is working properly.&lt;/P&gt;&lt;P&gt;In order to disable preview i am passing the  following parametees&lt;/P&gt;&lt;P&gt;w_ctrlop-getotf = 'X'.&lt;/P&gt;&lt;P&gt;  w_ctrlop-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;  w_compop-tdnoprev = 'X'.&lt;/P&gt;&lt;P&gt;  w_comfin-tddest    = 'LP01'.&lt;/P&gt;&lt;P&gt;  w_compop-tddest    = 'LP01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This program is working properly and when i test my method in which i have called this program using &lt;/P&gt;&lt;P&gt;Submit &amp;lt;program name&amp;gt; and return&lt;/P&gt;&lt;P&gt;With &amp;lt;parameter value&amp;gt;.&lt;/P&gt;&lt;P&gt;This method is also working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when i test my workflow it stops at the step in which i am calling this method and workflow log shows it is in process.&lt;/P&gt;&lt;P&gt;Due to this my workflow is not executing the steps after this. Please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2008 12:17:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-in-workflow-method/m-p/4596155#M1083618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-25T12:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program in workflow method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-in-workflow-method/m-p/4596156#M1083619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel the WF is waiting for the user action in ur submitted report.&lt;/P&gt;&lt;P&gt;Does your report display any output. If YES; then you may have to change your design.&lt;/P&gt;&lt;P&gt;Prabhu Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2008 12:56:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-in-workflow-method/m-p/4596156#M1083619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-25T12:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program in workflow method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-in-workflow-method/m-p/4596157#M1083620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Yes my program  is creating a smart form and sending a mail to avoid user action i have called smart form function module in no dialog mode by passing the values.&lt;/P&gt;&lt;P&gt;w_ctrlop-getotf = 'X'.&lt;/P&gt;&lt;P&gt;  w_ctrlop-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;  w_compop-tdnoprint = 'X'.&lt;/P&gt;&lt;P&gt;  w_compop-TDFINAL = 'X'.&lt;/P&gt;&lt;P&gt;  w_compop-tdnoprev = 'X'.&lt;/P&gt;&lt;P&gt;  w_comfin-tddest    = 'LP01'.&lt;/P&gt;&lt;P&gt;  w_compop-tddest    = 'LP01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also there are no write statements in my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i tested only my program it didnot prompt me for any input nor did it give any output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to go to my outbox to see the output of my form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i commented the function module which was calling the smart form and tested my workflow it was working fine&lt;/P&gt;&lt;P&gt;And hence the error is in my call to the smart form .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Below is the part of my program to cal smart form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      formname           = c_form&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      fm_name            = c_fm_name&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      no_form            = 1&lt;/P&gt;&lt;P&gt;      no_function_module = 2&lt;/P&gt;&lt;P&gt;      OTHERS             = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  w_ctrlop-getotf = 'X'.&lt;/P&gt;&lt;P&gt;  w_ctrlop-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;  "w_ctrlop-device = 'LP01'.&lt;/P&gt;&lt;P&gt;  w_compop-tdnoprint = 'X'.&lt;/P&gt;&lt;P&gt;  w_compop-TDFINAL = 'X'.&lt;/P&gt;&lt;P&gt;  w_compop-tdnoprev = 'X'.&lt;/P&gt;&lt;P&gt;  w_comfin-tddest    = 'LP01'.&lt;/P&gt;&lt;P&gt;  w_compop-tddest    = 'LP01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION c_fm_name&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX_TAB          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_PARAMETERS         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     control_parameters         = w_ctrlop&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_APPL_OBJ              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_RECIPIENT             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_SENDER                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     output_options             = w_compop&lt;/P&gt;&lt;P&gt;     user_settings              = 'X'&lt;/P&gt;&lt;P&gt;      im_fs_ekko                 = wa_ekko&lt;/P&gt;&lt;P&gt;      v_rlwrt                    = v_rlwrt&lt;/P&gt;&lt;P&gt;      v_first                    = v_first&lt;/P&gt;&lt;P&gt;      v_last                     = v_last&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DOCUMENT_OUTPUT_INFO       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     job_output_info            = w_return&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOB_OUTPUT_OPTIONS         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      im_it_ekkn                 = it_ekkn&lt;/P&gt;&lt;P&gt;      im_lt_apprhistory          = lt_cdhdr&lt;/P&gt;&lt;P&gt;      im_it_ekpo                 = it_ekpo&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     formatting_error           = 1&lt;/P&gt;&lt;P&gt;     internal_error             = 2&lt;/P&gt;&lt;P&gt;     send_error                 = 3&lt;/P&gt;&lt;P&gt;     user_canceled              = 4&lt;/P&gt;&lt;P&gt;     OTHERS                     = 5&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here after i have called convert_otf and function module to send mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know i am missing out something in my call to the smart form but am not able to figure out what please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2008 13:31:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-in-workflow-method/m-p/4596157#M1083620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-25T13:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program in workflow method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-in-workflow-method/m-p/4596158#M1083621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chetan,&lt;/P&gt;&lt;P&gt;I think you should call the activity in background which calls your report. Then automatically it will execute your program and generate the smartforms and send it to your reciepent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chidanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2008 14:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-in-workflow-method/m-p/4596158#M1083621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-25T14:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program in workflow method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-in-workflow-method/m-p/4596159#M1083622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chidanand&lt;/P&gt;&lt;P&gt;I am calling the method in background execution.&lt;/P&gt;&lt;P&gt;But when i see my workflow log it shows the task in process&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It shows no errors it says workitem Execution started automatically. and stays there. it is not completing the execution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2008 05:22:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-in-workflow-method/m-p/4596159#M1083622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-27T05:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program in workflow method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-in-workflow-method/m-p/4596160#M1083623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i thing the problem is that you are calling it as background activity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you tested it was forground so there was no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make it dialog step and try again if work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or call this report on some user action in WF such as Approve or reject button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2008 09:58:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-in-workflow-method/m-p/4596160#M1083623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-27T09:58:18Z</dc:date>
    </item>
  </channel>
</rss>

