<?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 AVL in Function modul for WorkFlow in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/avl-in-function-modul-for-workflow/m-p/1745236#M323407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am doing an ALV in FM for a WF and I have three possible action there.&lt;/P&gt;&lt;P&gt;VALID &lt;/P&gt;&lt;P&gt;REFUSE&lt;/P&gt;&lt;P&gt;CANCEL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to put a value in my FM export parameter called action and end the FM.&lt;/P&gt;&lt;P&gt;Then the WF use the parameter action to know which action have been chosen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I do exit or leave screen I return to the ALV.&lt;/P&gt;&lt;P&gt;When I code leave program I terminate the FM without passing the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any solution for me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bertrand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  alv_user_command&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Gestion commande écran choix des métiers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FORM alv_user_command  USING ucomm    LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                             selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR w_action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;VAL'.&lt;/P&gt;&lt;P&gt;      w_action = 1.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    leave screen.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     leave program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    WHEN '&amp;amp;REF'.&lt;/P&gt;&lt;P&gt;      w_action = 2.&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;BACK'.&lt;/P&gt;&lt;P&gt;      w_action = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "alv_user_command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Nov 2006 09:50:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-29T09:50:51Z</dc:date>
    <item>
      <title>AVL in Function modul for WorkFlow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avl-in-function-modul-for-workflow/m-p/1745236#M323407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am doing an ALV in FM for a WF and I have three possible action there.&lt;/P&gt;&lt;P&gt;VALID &lt;/P&gt;&lt;P&gt;REFUSE&lt;/P&gt;&lt;P&gt;CANCEL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to put a value in my FM export parameter called action and end the FM.&lt;/P&gt;&lt;P&gt;Then the WF use the parameter action to know which action have been chosen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I do exit or leave screen I return to the ALV.&lt;/P&gt;&lt;P&gt;When I code leave program I terminate the FM without passing the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any solution for me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bertrand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  alv_user_command&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Gestion commande écran choix des métiers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FORM alv_user_command  USING ucomm    LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                             selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR w_action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;VAL'.&lt;/P&gt;&lt;P&gt;      w_action = 1.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    leave screen.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     leave program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    WHEN '&amp;amp;REF'.&lt;/P&gt;&lt;P&gt;      w_action = 2.&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;BACK'.&lt;/P&gt;&lt;P&gt;      w_action = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "alv_user_command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 09:50:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avl-in-function-modul-for-workflow/m-p/1745236#M323407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T09:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: AVL in Function modul for WorkFlow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avl-in-function-modul-for-workflow/m-p/1745237#M323408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp; Form alv_user_command&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Gestion commande écran choix des métiers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FORM alv_user_command USING ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR w_action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;WHEN '&amp;amp;VAL'.&lt;/P&gt;&lt;P&gt;w_action = 1.&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;selfield-exit = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN '&amp;amp;REF'.&lt;/P&gt;&lt;P&gt;w_action = 2.&lt;/P&gt;&lt;P&gt;WHEN '&amp;amp;BACK'.&lt;/P&gt;&lt;P&gt;w_action = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. "alv_user_command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can get what you want with selfield-exit = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 10:02:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avl-in-function-modul-for-workflow/m-p/1745237#M323408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T10:02:24Z</dc:date>
    </item>
  </channel>
</rss>

