<?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: Error in module pool program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-module-pool-program/m-p/6569859#M1432708</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;Genrally these kind of error occurs because of different data type defined in Screen Layout and in Coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check First the Field which you have created in layout is of same data type as of your internal table field.  If you have specified your field in coding part of type 'I'. So in layout also it should be defined of type 'I' with same length. By default  it takes char format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Suganya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2010 11:59:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-04T11:59:08Z</dc:date>
    <item>
      <title>Error in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-module-pool-program/m-p/6569856#M1432705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am working on a module pool program based on radio buttons and check boxes,  the requirement is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grouping radio Buttons Place 5 radio buttons and group 2 as one group and 3 as another group. If any of the first group radio button is selected a check box should be visible. If any of the second group radio button is selected check box should be invisible. When that Check box is checked a list box should be visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i designed the screen and wrote logic for  button . when i am trying to execute i am getting an error called &lt;/P&gt;&lt;P&gt;invalid field format(screen error)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 11:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-module-pool-program/m-p/6569856#M1432705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T11:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-module-pool-program/m-p/6569857#M1432706</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;Provide more information so that we can help.&lt;/P&gt;&lt;P&gt;At which line are you getting the error? &lt;/P&gt;&lt;P&gt;Debug the program and you will find it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 11:56:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-module-pool-program/m-p/6569857#M1432706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T11:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-module-pool-program/m-p/6569858#M1432707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after executing when i am trying to click radio buttons and push button for 'exit'. i am getting error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 11:58:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-module-pool-program/m-p/6569858#M1432707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T11:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-module-pool-program/m-p/6569859#M1432708</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;Genrally these kind of error occurs because of different data type defined in Screen Layout and in Coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check First the Field which you have created in layout is of same data type as of your internal table field.  If you have specified your field in coding part of type 'I'. So in layout also it should be defined of type 'I' with same length. By default  it takes char format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Suganya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 11:59:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-module-pool-program/m-p/6569859#M1432708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T11:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-module-pool-program/m-p/6569860#M1432709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am declaring my varibles as "char"  type only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 12:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-module-pool-program/m-p/6569860#M1432709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T12:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-module-pool-program/m-p/6569861#M1432710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please explain exactly when are you getting the error ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 13:11:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-module-pool-program/m-p/6569861#M1432710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T13:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-module-pool-program/m-p/6569862#M1432711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gautam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I just tried with 2 check boxes in each group and got it right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the following points:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Declare all the radio buttons and check boxes as character variables with length 1, in the TOP Include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: rad1(1),
      rad2(1),
      rad3(1),
      rad4(4),
      check(1),
      visible(1) value ' ',  " variable declared as a status flag

      ok_code like sy-ucomm.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the  MODULE USER_COMMAND_xxxx (of PAI), write the logic to set / reset the status flag according to the radio button selection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE USER_COMMAND_0100 INPUT.
case ok_code.

when 'R1'.

visible = 'X'.

when 'R2'.

visible = ' '.

when 'EXIT'.
leave program.

endcase.

ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In the PBO, create a module to display the check box if the flag is set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if visible = 'X'.

loop at screen.
if screen-name = 'CHECK'.

screen-invisible = 0.
modify screen .

endif.

endloop.

endif.


if visible = ' '.

loop at screen.
if screen-name = 'CHECK'.

screen-invisible = 1.
modify screen .

endif.

endloop.

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shiny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 15:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-module-pool-program/m-p/6569862#M1432711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T15:32:02Z</dc:date>
    </item>
  </channel>
</rss>

