<?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 field value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-value/m-p/2476413#M557486</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;while validating i think ur giving error message and clearing it. check the field and give wronging message or information mesaage n  dont erase or clear the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2007 10:12:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-25T10:12:24Z</dc:date>
    <item>
      <title>screen field value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-value/m-p/2476411#M557484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ALL,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  We have added a new field to the existing transaction using a screen exit and provided the screen field with some validations. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When ever the user enter a rong value its throwing a message and coming back to the same screen... and  the value in that particular field is getting erased.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want the field value to be present , so that user can correct it. &lt;/P&gt;&lt;P&gt;can any body pls advice..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 10:08:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-value/m-p/2476411#M557484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T10:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: screen field value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-value/m-p/2476412#M557485</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;try to hold that value in a variable before throwing a message in PAI event, then in the pbo event replace the value of that field with the value of this variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Navneeth K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 10:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-value/m-p/2476412#M557485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T10:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: screen field value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-value/m-p/2476413#M557486</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;while validating i think ur giving error message and clearing it. check the field and give wronging message or information mesaage n  dont erase or clear the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 10:12:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-value/m-p/2476413#M557486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T10:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: screen field value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-value/m-p/2476414#M557487</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;this validation u can do chain and endchain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex code is as below.&lt;/P&gt;&lt;P&gt;chain.&lt;/P&gt;&lt;P&gt;      field po_details-matnr.&lt;/P&gt;&lt;P&gt;      field po_details-plant.&lt;/P&gt;&lt;P&gt;      field po_details-sloc.&lt;/P&gt;&lt;P&gt;      field po_details-mat_group.&lt;/P&gt;&lt;P&gt;      field po_details-po_quantity.&lt;/P&gt;&lt;P&gt;      field po_details-or_unit.&lt;/P&gt;&lt;P&gt;      field po_details-netpr.&lt;/P&gt;&lt;P&gt;      module chain_handle_fields3 on chain-request.&lt;/P&gt;&lt;P&gt;    endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"and module&lt;/P&gt;&lt;P&gt;module chain_handle_fields3 input.&lt;/P&gt;&lt;P&gt;  data: l_matnr type matnr.&lt;/P&gt;&lt;P&gt;  select single matnr from mseg into l_matnr where matnr eq po_details-matnr.&lt;/P&gt;&lt;P&gt;  move: l_matnr to g_po_details-matnr.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    clear: l_matnr, g_po_details.&lt;/P&gt;&lt;P&gt;    message e011(zct).&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  clear l_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: l_uom type meins.&lt;/P&gt;&lt;P&gt;  select single meins from mara into l_uom where meins eq po_details-or_unit.&lt;/P&gt;&lt;P&gt;  move l_uom to g_po_details-or_unit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    clear: l_uom, g_po_details.&lt;/P&gt;&lt;P&gt;    message e013(zct).&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  clear l_uom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: l_plant type werks_d.&lt;/P&gt;&lt;P&gt;  select single werks from mseg into l_plant where werks eq po_details-plant&lt;/P&gt;&lt;P&gt;                                               and matnr eq po_details-matnr.&lt;/P&gt;&lt;P&gt;  move: l_plant to g_po_details-plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    clear: l_plant, g_po_details.&lt;/P&gt;&lt;P&gt;    message e009(zct).&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  clear l_plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: l_sloc type lgort_d.&lt;/P&gt;&lt;P&gt;  select single lgort from mseg into l_sloc where werks eq po_details-plant&lt;/P&gt;&lt;P&gt;                                              and matnr eq po_details-matnr&lt;/P&gt;&lt;P&gt;                                              and lgort eq po_details-sloc.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IF sy-subrc NE 0.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CLEAR: l_sloc, g_po_details.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE e010(zct).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXIT.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move: l_sloc to g_po_details-sloc.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SORT g_po_details.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; DELETE g_po_details WHERE matnr EQ ''.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IF NOT g_po_details[] IS INITIAL.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MODIFY g_po_details TRANSPORTING matnr plant sloc WHERE matnr EQ po_details-matnr.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ELSE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  move: po_details-mat_group to g_po_details-mat_group.&lt;/P&gt;&lt;P&gt;  if po_details-po_quantity le 0.&lt;/P&gt;&lt;P&gt;    message e015(zct).&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    move:po_details-po_quantity to g_po_details-po_quantity.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IF po_details-netpr EQ ''.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE e012(zct).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ELSE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  move po_details-netpr to g_po_details-netpr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  move po_details-or_unit to g_po_details-or_unit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  on change of g_po_details-matnr.&lt;/P&gt;&lt;P&gt;    append g_po_details.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    modify g_po_details index sy-tabix.&lt;/P&gt;&lt;P&gt;  endon.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear: l_sloc, g_po_details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " chain_handle_fields3  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;seshu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 10:15:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-value/m-p/2476414#M557487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T10:15:01Z</dc:date>
    </item>
  </channel>
</rss>

