<?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 message and set cursor field in subscreen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-and-set-cursor-field-in-subscreen/m-p/6652658#M1445176</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Asa Moked,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Once you issue type E message the system stop there itself and will not process further.

So in PAI you need to validate your fields within FIELD fname MODULE module_name.

In PAI

FIELD f1 MODULE validate.

in Program.
" For more info Please take F1 Help on CHAIN ENDCHAIN key Word
module validate.
if f1 is not initial.
"Validate here
message 'Please enter correct Value' TYPE 'E'" Now this field is again Editable
endif.
endmodule.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Mar 2010 11:36:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-19T11:36:34Z</dc:date>
    <item>
      <title>error message and set cursor field in subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-and-set-cursor-field-in-subscreen/m-p/6652657#M1445175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a program with main screen 500 and many subscreens 501,502 and so own .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i  want to validate wrong input in a field and set message type 'E' in the PAI of the subscreen the program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;raise the message and exit from the program . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i try to put the message in the PBO of the subscreen it dosn't exit but after the message the program dosn't flow to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;command SET CURSOR FIELD that i wrote after the message . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i solve this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there somthing that i'm missing in the basic code flow of the program ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( screen 500 PBO - PAI -&amp;gt;  SUBSCREEN 50x PBO - PAI ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 11:09:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-and-set-cursor-field-in-subscreen/m-p/6652657#M1445175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-19T11:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: error message and set cursor field in subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-and-set-cursor-field-in-subscreen/m-p/6652658#M1445176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Asa Moked,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Once you issue type E message the system stop there itself and will not process further.

So in PAI you need to validate your fields within FIELD fname MODULE module_name.

In PAI

FIELD f1 MODULE validate.

in Program.
" For more info Please take F1 Help on CHAIN ENDCHAIN key Word
module validate.
if f1 is not initial.
"Validate here
message 'Please enter correct Value' TYPE 'E'" Now this field is again Editable
endif.
endmodule.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 11:36:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-and-set-cursor-field-in-subscreen/m-p/6652658#M1445176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-19T11:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: error message and set cursor field in subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-and-set-cursor-field-in-subscreen/m-p/6652659#M1445177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try to validate the input field using Chain and Endchain like below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validate the period range (it should not be &amp;gt; 12 months)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CHAIN.&lt;/P&gt;&lt;P&gt;    FIELD:zpprs_period-zperiod_from, zpprs_period-zperiod_to.&lt;/P&gt;&lt;P&gt;    MODULE check_period_range.&lt;/P&gt;&lt;P&gt;  ENDCHAIN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 12:28:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-and-set-cursor-field-in-subscreen/m-p/6652659#M1445177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-19T12:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: error message and set cursor field in subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-and-set-cursor-field-in-subscreen/m-p/6652660#M1445178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello and thanks for the answer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me  clarify my problem : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to issue a message ( type e or i ) only if some fields are null and the user pressed on SAVE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i'm in the tab-strip and writing error message in : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field XXX&lt;/P&gt;&lt;P&gt;field YYY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module issue_warning_message on chain-request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in  module issue_warning_message :  if XXX is initial --&amp;gt; message type E --&amp;gt; set cursor field XXX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i get the message and cursor is set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i try to post the message in without chain or any events :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module user_command_tab502 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the message is issued and it exit the program if the type is e and if type message is I the cursor is not set . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advice &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 16:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-and-set-cursor-field-in-subscreen/m-p/6652660#M1445178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-22T16:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: error message and set cursor field in subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-and-set-cursor-field-in-subscreen/m-p/6652661#M1445179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;post the mesage as type I in the PBO &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;of every subscreen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 08:42:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-and-set-cursor-field-in-subscreen/m-p/6652661#M1445179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T08:42:53Z</dc:date>
    </item>
  </channel>
</rss>

