<?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: how to use the custom control ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-the-custom-control/m-p/3578257#M861388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Custom Control is the area defined on the screen .... For output ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto SE51 ... Layout ... Click on Custom control ... draw it .... Give it a name ....say ... CC_AREA ... &lt;/P&gt;&lt;P&gt; Goto SE38 ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- Name of the custom control added on the screen&lt;/P&gt;&lt;P&gt;DATA GC_CUSTOM_CONTROL_NAME TYPE SCRFNAME VALUE 'CC_AREA' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- Custom container instance reference&lt;/P&gt;&lt;P&gt;DATA GR_CCONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER .&lt;/P&gt;&lt;P&gt;**********************************&lt;/P&gt;&lt;P&gt; IF GR_CCONTAINER IS INITIAL .&lt;/P&gt;&lt;P&gt;*----Creating custom container instance&lt;/P&gt;&lt;P&gt;    CREATE OBJECT GR_CCONTAINER&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        CONTAINER_NAME              = GC_CUSTOM_CONTROL_NAME&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        CNTL_ERROR                  = 1&lt;/P&gt;&lt;P&gt;        CNTL_SYSTEM_ERROR           = 2&lt;/P&gt;&lt;P&gt;        CREATE_ERROR                = 3&lt;/P&gt;&lt;P&gt;        LIFETIME_ERROR              = 4&lt;/P&gt;&lt;P&gt;        LIFETIME_DYNPRO_DYNPRO_LINK = 5&lt;/P&gt;&lt;P&gt;        OTHERS                      = 6.&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2008 03:44:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-25T03:44:01Z</dc:date>
    <item>
      <title>how to use the custom control ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-the-custom-control/m-p/3578256#M861387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help to use of  custom control in screen painter ?&lt;/P&gt;&lt;P&gt;and how to use the custom control ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 03:30:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-the-custom-control/m-p/3578256#M861387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T03:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to use the custom control ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-the-custom-control/m-p/3578257#M861388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Custom Control is the area defined on the screen .... For output ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto SE51 ... Layout ... Click on Custom control ... draw it .... Give it a name ....say ... CC_AREA ... &lt;/P&gt;&lt;P&gt; Goto SE38 ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- Name of the custom control added on the screen&lt;/P&gt;&lt;P&gt;DATA GC_CUSTOM_CONTROL_NAME TYPE SCRFNAME VALUE 'CC_AREA' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- Custom container instance reference&lt;/P&gt;&lt;P&gt;DATA GR_CCONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER .&lt;/P&gt;&lt;P&gt;**********************************&lt;/P&gt;&lt;P&gt; IF GR_CCONTAINER IS INITIAL .&lt;/P&gt;&lt;P&gt;*----Creating custom container instance&lt;/P&gt;&lt;P&gt;    CREATE OBJECT GR_CCONTAINER&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        CONTAINER_NAME              = GC_CUSTOM_CONTROL_NAME&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        CNTL_ERROR                  = 1&lt;/P&gt;&lt;P&gt;        CNTL_SYSTEM_ERROR           = 2&lt;/P&gt;&lt;P&gt;        CREATE_ERROR                = 3&lt;/P&gt;&lt;P&gt;        LIFETIME_ERROR              = 4&lt;/P&gt;&lt;P&gt;        LIFETIME_DYNPRO_DYNPRO_LINK = 5&lt;/P&gt;&lt;P&gt;        OTHERS                      = 6.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 03:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-the-custom-control/m-p/3578257#M861388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T03:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to use the custom control ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-the-custom-control/m-p/3578258#M861389</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;check the links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/17/5bf1af2ba211d2954f0000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/17/5bf1af2ba211d2954f0000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://abapprogramming.blogspot.com/2007/07/lesson-34-alv-grid-control.html" target="test_blank"&gt;http://abapprogramming.blogspot.com/2007/07/lesson-34-alv-grid-control.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://safari.oreilly.com/0672328224/ch18" target="test_blank"&gt;http://safari.oreilly.com/0672328224/ch18&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="778716"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;sowjanya.b&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 03:47:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-the-custom-control/m-p/3578258#M861389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T03:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to use the custom control ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-the-custom-control/m-p/3578259#M861390</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;Screen Elements &lt;/P&gt;&lt;P&gt;A screen can contain a wide variety of elements, either for displaying field contents, or for allowing the user to interact with the program (for example, filling out input fields or choosing pushbutton functions). You use the Screen Painter to arrange elements on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the following elements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Text fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Display elements, which cannot be changed either by the user or by the ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Input/output fields and templates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Used to display data from the ABAP program or for entering data on the screen. Linked to screen fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Dropdown list boxes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Special input/output fields that allow users to choose one entry from a fixed list of possible entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Checkbox elements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Special input/output fields that the user can either select (value &amp;#145;X&amp;#146;) or deselect (value SPACE). Checkbox elements can be linked with function codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Radio button elements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Special input/output fields that are combined into groups. Within a radio button group, only a single button can be selected at any one time. When the user selects one button, all of the others are automatically deselected. Radio button elements can be linked with function codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Pushbuttons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Elements on the screen that trigger the PAI event of the screen flow logic when chosen by the user. There is a function code attached to each pushbutton, which is passed to the ABAP program when it is chosen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Frame&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pure display elements that group together elements on the screen, such as radio button groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Subscreens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Area on the screen in which you can place another screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Table controls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tabular input/output fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Tabstrip controls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Areas on the screen in which you can switch between various pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Custom Controls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Areas on the screen in which you can display controls. Controls are software components of the presentation server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Status icons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Display elements, indicating the status of the application program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        OK field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every screen has a twenty-character OK_CODE field (also known as the function code field) that is not displayed directly on the screen. User actions that trigger the PAI event also place the corresponding function code into this field, from where it is passed to the ABAP program. You can also use the command field in the standard toolbar to enter the OK field. To be able to use the OK field, you need to assign a name to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All screen elements have a set of attributes, some of which are set automatically, others of which have to be specified in the Screen Painter. They determine things such as the layout of the screen elements on the screen. You can set the attributes of screen elements in the Screen Painter - either for a single element, or using the element list, which lists all of the elements belonging to the current screen. Some of the attributes that you set statically in the Screen Painter can be overwritten dynamically in the ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;sowjanyagosala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 04:28:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-the-custom-control/m-p/3578259#M861390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T04:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to use the custom control ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-the-custom-control/m-p/3578260#M861391</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;refer to this link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c2/27e14e59ed11d29bd90000e8a47b2e/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c2/27e14e59ed11d29bd90000e8a47b2e/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sreelakshmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 04:42:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-the-custom-control/m-p/3578260#M861391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T04:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to use the custom control ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-the-custom-control/m-p/3578261#M861392</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;Custom Controls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A custom control is an area on a screen. You create them in the Screen Painter, and, like all other screen objects, they have a unique name. You use custom controls to embed controls. A control is a software component on the presentation server, which can be either an ActiveX control or a JavaBean, depending on the SAPgui you are using. They allow you to perform tasks, such as editing texts, locally on the presentation server. The control is driven by the application logic, which still runs on the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP Control Framework&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The controls on the presentation server and the ABAP application programs on the application server communicate using the Structure link SAP Control Framework. This is programmed in ABAP Objects, and contains a set of global classes that you can find in the Class Browser under Basis ® Frontend services. These classes encapsulate the communication between the application server and presentation server, which is implemented using Remote Function Call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All application controls are encapsulated in a global class. You can find the SAP Basis controls in the Class Browser under Basis ® Frontend Services or Basis ® Component Integration. Programs that use controls on a screen work with the methods and events of the global classes that encapsulates them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through these link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/e4/6013361d5af835e10000009b38f839/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/e4/6013361d5af835e10000009b38f839/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/ravikumar.allampallam/blog/2005/06/01/alv-reporting-using-controls--part-i&lt;/P&gt;&lt;P&gt;/people/ravikumar.allampallam/blog/2005/06/01/alv-reporting-using-controls-control-layouts--part-ii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also check report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEMO_CUSTOM_CONTROL &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 05:23:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-the-custom-control/m-p/3578261#M861392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T05:23:09Z</dc:date>
    </item>
  </channel>
</rss>

