<?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: Module pool screen(conditional field statement) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen-conditional-field-statement/m-p/5273280#M1217271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case you can do it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the place where you write code for section head,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write if condition in this way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if group head is initial.&lt;/P&gt;&lt;P&gt;   " Write your logic for clearing fields....&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the similar way write the if codition for all the field statements where you are writing logic for those fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Mar 2009 06:08:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-13T06:08:23Z</dc:date>
    <item>
      <title>Module pool screen(conditional field statement)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen-conditional-field-statement/m-p/5273276#M1217267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have four list box fields in the screen, &lt;/P&gt;&lt;P&gt;Example : &lt;/P&gt;&lt;P&gt;1. Section Head&lt;/P&gt;&lt;P&gt;2. Department Head&lt;/P&gt;&lt;P&gt;3. Group Head&lt;/P&gt;&lt;P&gt;4. Project Manager&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have used field statement for each field(except Section Head) to populate the below fields.&lt;/P&gt;&lt;P&gt;Section Head is populated manually thru FM VRM_SET_VALUES.&lt;/P&gt;&lt;P&gt;Depending upon the value of the above field the below field is populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works well when Section head executes it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if Group head executes it then the Section head and department head should not be filled and group head and project head should be filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is not happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually basically.&lt;/P&gt;&lt;P&gt;I want to execute the field statement conditionally.&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kunal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2009 05:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen-conditional-field-statement/m-p/5273276#M1217267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-13T05:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool screen(conditional field statement)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen-conditional-field-statement/m-p/5273277#M1217268</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;Firstly set a flag when group head executes, and then with the help of the flag value,&lt;/P&gt;&lt;P&gt;in the pbo set the condition accrodingly and free the values from section head and department head&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2009 05:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen-conditional-field-statement/m-p/5273277#M1217268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-13T05:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool screen(conditional field statement)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen-conditional-field-statement/m-p/5273278#M1217269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi... hope this this gives u an idea&lt;/P&gt;&lt;P&gt;try this way... consider the below example&lt;/P&gt;&lt;P&gt;in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;    FIELD : ZVSTEL,&lt;/P&gt;&lt;P&gt;           ZSERNR,&lt;/P&gt;&lt;P&gt;           ZVBELN,&lt;/P&gt;&lt;P&gt;           ZTDLNR,&lt;/P&gt;&lt;P&gt;           ZTRGNO,&lt;/P&gt;&lt;P&gt;           ZSDABW MODULE INPUT_CHECK.&lt;/P&gt;&lt;P&gt;  ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN MODULE INPUT_CHECK&lt;/P&gt;&lt;P&gt; you can  validate the your screen field name whether it is initial or not&lt;/P&gt;&lt;P&gt;then you can popup the corresponding fields you want.&lt;/P&gt;&lt;P&gt;for ex :&lt;/P&gt;&lt;P&gt;if field1 is not initial.&lt;/P&gt;&lt;P&gt;... populate remaining fields..&lt;/P&gt;&lt;P&gt;if field2 is not initial.&lt;/P&gt;&lt;P&gt;   popultate corr.. fields..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2009 06:03:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen-conditional-field-statement/m-p/5273278#M1217269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-13T06:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool screen(conditional field statement)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen-conditional-field-statement/m-p/5273279#M1217270</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;I am doing this.&lt;/P&gt;&lt;P&gt;But the field statements executes in an order. Since the first two are not executed, hence nothing is executed. hence the logic for GM and PM ate not executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way that i can have condition field statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kunal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2009 06:03:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen-conditional-field-statement/m-p/5273279#M1217270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-13T06:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool screen(conditional field statement)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen-conditional-field-statement/m-p/5273280#M1217271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case you can do it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the place where you write code for section head,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write if condition in this way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if group head is initial.&lt;/P&gt;&lt;P&gt;   " Write your logic for clearing fields....&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the similar way write the if codition for all the field statements where you are writing logic for those fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2009 06:08:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen-conditional-field-statement/m-p/5273280#M1217271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-13T06:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool screen(conditional field statement)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen-conditional-field-statement/m-p/5273281#M1217272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here, the screen would process all the logic for all field at one go and not display the screen for the field turn by turn.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2009 06:15:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen-conditional-field-statement/m-p/5273281#M1217272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-13T06:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool screen(conditional field statement)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen-conditional-field-statement/m-p/5273282#M1217273</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;Not a problem even if the logic is executed for all the fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the condition as I mentioned... for eachfield....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the place where you write the logic for the field....&lt;/P&gt;&lt;P&gt;use if condition to execute the logic....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the sample logic for selection_head.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; " Field GROUP HEAD  logic
if selection_head is not initial.
 " write the logic which you have written for selection_head here.
endif.

 " Field  DEPARTMENT HEAD  logic
if selection_head is not initial.
 " write the logic which you have written for department_head here.
endif.

" Logic for FIELD Group Head
if group_head is not initial.
 " write the logic which you have written for group_head here.
endif.

" Logic for FIELD Project Manager
if group_head is not initial.
 " write the logic which you have written for Project_Manager here.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2009 09:22:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen-conditional-field-statement/m-p/5273282#M1217273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-14T09:22:04Z</dc:date>
    </item>
  </channel>
</rss>

