<?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: FunCode in List box throws error. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/funcode-in-list-box-throws-error/m-p/5038074#M1171672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul Thanks again for showing the interest .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this statement I am passign the values.  VALUE4[]  =  l4_dd07[].&lt;/P&gt;&lt;P&gt;The reason why I am passing the function code value in the field attributes is ,once the user selects any one value from the dropdown ,based on that field value , I should de avtivate some of the other fields in the same screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure I would try your way  , I would try to handle the screen modifications in the PBO of  902 screen.&lt;/P&gt;&lt;P&gt;Pls also confirm if placing a FuncCode does work or its not the to be handled at all.&lt;/P&gt;&lt;P&gt;Sorry for poking into this FuncCode thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krishna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Krishna on Jan 20, 2009 9:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jan 2009 20:07:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-20T20:07:15Z</dc:date>
    <item>
      <title>FunCode in List box throws error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funcode-in-list-box-throws-error/m-p/5038069#M1171667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;           &lt;/P&gt;&lt;P&gt;             I got the fixed values of a Domain into a list box in a screen.&lt;/P&gt;&lt;P&gt;Now Based on the selection in the List box I need some other screen number say 902 values to be changed say disabling a radio button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I declared the FunCode and wrote some piece to chek if it triggers in the PAI of the screen 902.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I on the debugging and see the FuncCode it only says me Enter the Valid value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am seeing only the correct values everytime ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Krishna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guys ......Can someone try this for me and tell a solution ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope all understood the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Krishna on Jan 20, 2009 5:53 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 09:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funcode-in-list-box-throws-error/m-p/5038069#M1171667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T09:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: FunCode in List box throws error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funcode-in-list-box-throws-error/m-p/5038070#M1171668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Show us code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 18:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funcode-in-list-box-throws-error/m-p/5038070#M1171668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T18:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: FunCode in List box throws error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funcode-in-list-box-throws-error/m-p/5038071#M1171669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope you've assigned the function code to the list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 18:21:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funcode-in-list-box-throws-error/m-p/5038071#M1171669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T18:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: FunCode in List box throws error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funcode-in-list-box-throws-error/m-p/5038072#M1171670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt; The code i as below.&lt;/P&gt;&lt;P&gt;ZSELCONSUL is the domain and it has some 10 fixed values declared.&lt;/P&gt;&lt;P&gt;I can see all the values in the drop down but the issue is when I try to select anyone , then it says "Enter a valid value ".Strangely this happens only if I put the Function Code value in the attributes of the Field. If I remove the FunCode it just works fine.&lt;/P&gt;&lt;P&gt;But based on the value selected I need to modify screen values.Like want to deactivate some radio buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*GET THE DOMAIN VALUES FOR THE PROC METHOD CONSULTANTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : LIST4 type VRM_VALUES OCCURS 0,&lt;/P&gt;&lt;P&gt;         VALUE4 LIKE LINE OF LIST3,&lt;/P&gt;&lt;P&gt;         L4_DD07 TYPE DD07V OCCURS 0,&lt;/P&gt;&lt;P&gt;         ZSELCONSUL TYPE DDOBJNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DDIF_DOMA_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      NAME                = 'ZSELCONSUL'&lt;/P&gt;&lt;P&gt;     STATE               = 'A'&lt;/P&gt;&lt;P&gt;     LANGU               = SY-LANGU&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GOTSTATE            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DD01V_WA            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;     DD07V_TAB           =  L4_DD07&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ILLEGAL_INPUT       = 1&lt;/P&gt;&lt;P&gt;   OTHERS              = 2&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;  VALUE4[] = l4_dd07[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'VRM_SET_VALUES'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      ID              = 'Z712-SELMETHOD'&lt;/P&gt;&lt;P&gt;      VALUES          = value4[]&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      ID_ILLEGAL_NAME = 1&lt;/P&gt;&lt;P&gt;      OTHERS          = 2.&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;ENDMODULE.                 " FILL  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your interest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krishna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 19:07:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funcode-in-list-box-throws-error/m-p/5038072#M1171670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T19:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: FunCode in List box throws error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funcode-in-list-box-throws-error/m-p/5038073#M1171671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I don't see in your code is where you would move from the DD07_TAB to your VRM_RESULTs tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I suggest you build the listbox data like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
" In your TOP Include
TYPE-POOLS             vrm.


DATA: applvl_field       TYPE vrm_id,
      applvl_result      TYPE STANDARD TABLE OF vrm_value,
      applvl_val         LIKE LINE OF applvl_result,
      applvl_rec         TYPE vrm_value.


" In your Screen PBO
PROCESS BEFORE OUTPUT.
  MODULE status_0100.

  MODULE init_0100.

" In your Screen OUT Include
MODULE init_0100 OUTPUT.

  PERFORM build_drop_down_tables.

  applvl_field = 'MT_APPROVERS_REC-APPR_LEVEL'.
  CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
            id              = applvl_field
            values          = applvl_result
       EXCEPTIONS
            id_illegal_name = 1
            OTHERS          = 2.

ENDMODULE.                 " init_0100  OUTPUT

" In your Screen Function Include

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  build_drop_down_tables
*&amp;amp;---------------------------------------------------------------------*
FORM build_drop_down_tables.

  PERFORM build_appr_lvl_values.

ENDFORM.                    " build_drop_down_tables


FORM build_appr_lvl_values.
  CHECK applvl_result IS INITIAL.

  REFRESH: applvl_result.

  SELECT domvalue_l ddtext
    INTO TABLE applvl_result
    FROM dd07t
    WHERE domname = 'Z_APPR_REQ2'
      AND ddlanguage = sy-langu
      AND domvalue_l NE c_field_rep.

ENDFORM.                    " build_appr_lvl_values
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the other poster mentioned you should have your Function Code on the field itself.&lt;/P&gt;&lt;P&gt;Why you would need a Function Code.. unless your changes area on the same screen, I have no idea.&lt;/P&gt;&lt;P&gt;Way I would handle it is that every time you process through your PBO of the 902 screen, you make&lt;/P&gt;&lt;P&gt;determinations there as to how to change SCREEN attributes.  Switches and such are a request for&lt;/P&gt;&lt;P&gt;unneeded trouble.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Paul Chapman on Jan 20, 2009 2:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 19:47:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funcode-in-list-box-throws-error/m-p/5038073#M1171671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T19:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: FunCode in List box throws error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funcode-in-list-box-throws-error/m-p/5038074#M1171672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul Thanks again for showing the interest .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this statement I am passign the values.  VALUE4[]  =  l4_dd07[].&lt;/P&gt;&lt;P&gt;The reason why I am passing the function code value in the field attributes is ,once the user selects any one value from the dropdown ,based on that field value , I should de avtivate some of the other fields in the same screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure I would try your way  , I would try to handle the screen modifications in the PBO of  902 screen.&lt;/P&gt;&lt;P&gt;Pls also confirm if placing a FuncCode does work or its not the to be handled at all.&lt;/P&gt;&lt;P&gt;Sorry for poking into this FuncCode thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krishna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Krishna on Jan 20, 2009 9:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 20:07:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funcode-in-list-box-throws-error/m-p/5038074#M1171672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T20:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: FunCode in List box throws error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funcode-in-list-box-throws-error/m-p/5038075#M1171673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;           &lt;/P&gt;&lt;P&gt;              Thanks , that worked .&lt;/P&gt;&lt;P&gt;May be i doubt I am passing some wrong parameter value to the FM below.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CALL FUNCTION 'DDIF_DOMA_GET'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     NAME                = 'ZCONTRACTTYP'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    STATE               = 'A '     -------------------------&amp;gt;  I doubt this.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    LANGU               = SY-LANGU&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  GOTSTATE            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  DD01V_WA            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    DD07V_TAB           =  L_DD07&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  ILLEGAL_INPUT       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  OTHERS              = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the Functin code also works fine.I made you a bit richer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krishna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 11:27:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funcode-in-list-box-throws-error/m-p/5038075#M1171673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T11:27:00Z</dc:date>
    </item>
  </channel>
</rss>

