<?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: screen default values not validating in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-default-values-not-validating/m-p/2140940#M451004</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this fm and try he follwing piece of code to kno how to buffer 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;substitute for dynname = sy-cprog in ur code&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------" /&gt;&lt;P&gt;tables tcurt.&lt;/P&gt;&lt;P&gt;DATA DYFIELDS LIKE DYNPREAD OCCURS 1 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS: P_WAERS LIKE TCURT-WAERS, "Currency&lt;/P&gt;&lt;P&gt;P_LTEXT LIKE TCURT-LTEXT, "Long Text&lt;/P&gt;&lt;P&gt;P_KTEXT LIKE TCURT-KTEXT. "Short Text&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;*--- Example of updating value of another field on the screen -&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WAERS.&lt;/P&gt;&lt;P&gt;CLEAR: DYFIELDS[], DYFIELDS.&lt;/P&gt;&lt;P&gt;*--- select currency&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HELP_VALUES_GET'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;fieldname = 'WAERS'&lt;/P&gt;&lt;P&gt;tabname = 'TCURT'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;SELECT_VALUE = P_WAERS.&lt;/P&gt;&lt;P&gt;*--- get long text for the selected currency&lt;/P&gt;&lt;P&gt;SELECT SINGLE LTEXT FROM TCURT&lt;/P&gt;&lt;P&gt;INTO DYFIELDS-FIELDVALUE&lt;/P&gt;&lt;P&gt;WHERE SPRAS = SY-LANGU&lt;/P&gt;&lt;P&gt;AND WAERS = P_WAERS.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;CLEAR DYFIELDS-FIELDVALUE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;*--- update another field&lt;/P&gt;&lt;P&gt;DYFIELDS-FIELDNAME = 'P_LTEXT'.&lt;/P&gt;&lt;P&gt;APPEND DYFIELDS.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DYNP_VALUES_UPDATE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DYNAME = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNUMB = SY-DYNNR&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;dynpfields = DYFIELDS .&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;**--- Example of reading value of another field&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------" /&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_KTEXT.&lt;/P&gt;&lt;P&gt;*--- read another field&lt;/P&gt;&lt;P&gt;CLEAR: DYFIELDS[], DYFIELDS.&lt;/P&gt;&lt;P&gt;DYFIELDS-FIELDNAME = 'P_WAERS'.&lt;/P&gt;&lt;P&gt;APPEND DYFIELDS.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DYNAME = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNUMB = SY-DYNNR&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DYNPFIELDS = DYFIELDS .&lt;/P&gt;&lt;P&gt;READ TABLE DYFIELDS INDEX 1.&lt;/P&gt;&lt;P&gt;*--- get short text and update current field&lt;/P&gt;&lt;P&gt;SELECT SINGLE KTEXT FROM TCURT&lt;/P&gt;&lt;P&gt;INTO P_KTEXT&lt;/P&gt;&lt;P&gt;WHERE SPRAS EQ SY-LANGU&lt;/P&gt;&lt;P&gt;AND WAERS EQ DYFIELDS-FIELDVALUE.&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;&lt;/P&gt;&lt;P&gt;navjot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward accordingly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Mar 2007 06:10:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-30T06:10:11Z</dc:date>
    <item>
      <title>screen default values not validating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-default-values-not-validating/m-p/2140934#M450998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a standard SAP screen when I fill some fields and press enter for validation, it is giving error list on top to show that one of the field is required to be filled. I wrote a screen module to fill in the default value for those fields in the PBO of the screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But even though the screen is showing those default value for the field. It is not validating (i.e. the &amp;lt;b&amp;gt;description is not shown for those field values&amp;lt;/b&amp;gt;) hence the error is still shown. In this case if I change one of the value manually and press enter on the field, the description is shown and the error disappears. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So can you kindly guide me that how can the default value be properly validated so the error does not appear. Thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Faiq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 23:48:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-default-values-not-validating/m-p/2140934#M450998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T23:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: screen default values not validating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-default-values-not-validating/m-p/2140935#M450999</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 some more detail so we can understand you issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- What is the standard SAP screen&lt;/P&gt;&lt;P&gt;- What are the fields are you talking about&lt;/P&gt;&lt;P&gt;- How did you wrote the screen module to fill the default value ( is it a screen exit )&lt;/P&gt;&lt;P&gt;- What error message are you getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 01:21:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-default-values-not-validating/m-p/2140935#M450999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T01:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: screen default values not validating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-default-values-not-validating/m-p/2140936#M451000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Faiq,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; As soon as you fill in the default values in the PBO screen ,make sure enter button is triggered or may be try filling the default description  in the PBO screen only.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The problem is enter button is not triggered so the error throws.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 01:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-default-values-not-validating/m-p/2140936#M451000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T01:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: screen default values not validating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-default-values-not-validating/m-p/2140937#M451001</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;May be check PAI of the screen, where the field is validating, if it validating " on request" ie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD &amp;lt;f&amp;gt; MODULE &amp;lt;mod&amp;gt; ON REQUEST. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, the ON REQUEST condition is triggered through any form of "manual input". As well as user input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 01:36:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-default-values-not-validating/m-p/2140937#M451001</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-03-30T01:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: screen default values not validating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-default-values-not-validating/m-p/2140938#M451002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I did try different approaches mentioned including the function module 'SAPGUI_SET_FUNCTIONCODE'. with okcode /00 for 'Enter'. But still it does not validate and the error still appears. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is happening in CRM screen. &lt;/P&gt;&lt;P&gt;I am using the program 'SAPLCRM_ORGMAN_UI' with screen '1001'. The screen fields is CRMT_1001_ORGMAN_UI-DIS_CHANNEL. I modified the screen in PBO and PAI to include the default value but still it displays those value but does not validate them (as descrition not displayed) hence the error is still displayed on top of screen as the field is required to be entered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also put the default values in PAI for the field in its CHAIN. But still they are not accepted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise. Any suggestion will be really appreciated. Thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Faiq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 04:18:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-default-values-not-validating/m-p/2140938#M451002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T04:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: screen default values not validating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-default-values-not-validating/m-p/2140939#M451003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that for the values to be validated I need to update the value in the screen buffer also in addition to updating the screen fields. Any ideas how that can be done. Thanks for your assistance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Faiq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 05:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-default-values-not-validating/m-p/2140939#M451003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T05:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: screen default values not validating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-default-values-not-validating/m-p/2140940#M451004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this fm and try he follwing piece of code to kno how to buffer 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;substitute for dynname = sy-cprog in ur code&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------" /&gt;&lt;P&gt;tables tcurt.&lt;/P&gt;&lt;P&gt;DATA DYFIELDS LIKE DYNPREAD OCCURS 1 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS: P_WAERS LIKE TCURT-WAERS, "Currency&lt;/P&gt;&lt;P&gt;P_LTEXT LIKE TCURT-LTEXT, "Long Text&lt;/P&gt;&lt;P&gt;P_KTEXT LIKE TCURT-KTEXT. "Short Text&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;*--- Example of updating value of another field on the screen -&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WAERS.&lt;/P&gt;&lt;P&gt;CLEAR: DYFIELDS[], DYFIELDS.&lt;/P&gt;&lt;P&gt;*--- select currency&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HELP_VALUES_GET'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;fieldname = 'WAERS'&lt;/P&gt;&lt;P&gt;tabname = 'TCURT'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;SELECT_VALUE = P_WAERS.&lt;/P&gt;&lt;P&gt;*--- get long text for the selected currency&lt;/P&gt;&lt;P&gt;SELECT SINGLE LTEXT FROM TCURT&lt;/P&gt;&lt;P&gt;INTO DYFIELDS-FIELDVALUE&lt;/P&gt;&lt;P&gt;WHERE SPRAS = SY-LANGU&lt;/P&gt;&lt;P&gt;AND WAERS = P_WAERS.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;CLEAR DYFIELDS-FIELDVALUE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;*--- update another field&lt;/P&gt;&lt;P&gt;DYFIELDS-FIELDNAME = 'P_LTEXT'.&lt;/P&gt;&lt;P&gt;APPEND DYFIELDS.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DYNP_VALUES_UPDATE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DYNAME = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNUMB = SY-DYNNR&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;dynpfields = DYFIELDS .&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;**--- Example of reading value of another field&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------" /&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_KTEXT.&lt;/P&gt;&lt;P&gt;*--- read another field&lt;/P&gt;&lt;P&gt;CLEAR: DYFIELDS[], DYFIELDS.&lt;/P&gt;&lt;P&gt;DYFIELDS-FIELDNAME = 'P_WAERS'.&lt;/P&gt;&lt;P&gt;APPEND DYFIELDS.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DYNAME = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNUMB = SY-DYNNR&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DYNPFIELDS = DYFIELDS .&lt;/P&gt;&lt;P&gt;READ TABLE DYFIELDS INDEX 1.&lt;/P&gt;&lt;P&gt;*--- get short text and update current field&lt;/P&gt;&lt;P&gt;SELECT SINGLE KTEXT FROM TCURT&lt;/P&gt;&lt;P&gt;INTO P_KTEXT&lt;/P&gt;&lt;P&gt;WHERE SPRAS EQ SY-LANGU&lt;/P&gt;&lt;P&gt;AND WAERS EQ DYFIELDS-FIELDVALUE.&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;&lt;/P&gt;&lt;P&gt;navjot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward accordingly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 06:10:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-default-values-not-validating/m-p/2140940#M451004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T06:10:11Z</dc:date>
    </item>
  </channel>
</rss>

