<?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: field validation and set cursor in modulepool program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-and-set-cursor-in-modulepool-program/m-p/6714635#M1454355</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  this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

INSIDE OF PAI MODULE WRITE THIS CODE.

DATA : CURSORFIELD(25),	 "DECLEAR IN TOP INCLUDE

PERFORM GET_CURSOR.


FORM GET_CURSOR .

IF AGE GE '20' AND AGE LE '120'.

  CLEAR : CURSORFIELD.
  GET CURSOR FIELD CURSORFIELD.

MESSAGE  'text xyz' TYPE 'S' DISPLAY LIKE 'E'.

ENDIF.

ENDFORM.                    " GET_CURSOR

****************************************************************


INSIDE OF PBO WRITE THIS CODE.

  PERFORM SET_CURSOR.

FORM SET_CURSOR .

    SET CURSOR FIELD CURSORFIELD.

ENDFORM.                    " SET_CURSOR


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cursor position set into ur Age Text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhilash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Mar 2010 09:33:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-13T09:33:33Z</dc:date>
    <item>
      <title>field validation and set cursor in modulepool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-and-set-cursor-in-modulepool-program/m-p/6714633#M1454353</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;&lt;/P&gt;&lt;P&gt;   I  would like to know the validations of fileds in  module pool program. &lt;/P&gt;&lt;P&gt;i   have two problems in   field validations &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.      i   have written  validation  CODE for the filed  Age   &lt;/P&gt;&lt;P&gt;       FILED AGE VALUES ( BETWEEN '20' AND '120')  in table control between   chain  and chain. &lt;/P&gt;&lt;P&gt;     it  show error while entering age  like  20 ,21......,  validation is not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.    i want  keep cursor where fields are showing the  error, when i  pressed enter   or something. &lt;/P&gt;&lt;P&gt;       i  have   validation  code for all fileds. &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;thanks &amp;amp; regard &lt;/P&gt;&lt;P&gt;spnadana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 07:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-and-set-cursor-in-modulepool-program/m-p/6714633#M1454353</guid>
      <dc:creator>spandana_babu</dc:creator>
      <dc:date>2010-03-12T07:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: field validation and set cursor in modulepool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-and-set-cursor-in-modulepool-program/m-p/6714634#M1454354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FIELD ... VALUES is deprecated. Use modules instead.&lt;/P&gt;&lt;P&gt;Look at the examples in SE38, menu Environment | Examples | ABAP examples, then select User interfaces | Screens in the tree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 23:00:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-and-set-cursor-in-modulepool-program/m-p/6714634#M1454354</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-03-12T23:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: field validation and set cursor in modulepool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-and-set-cursor-in-modulepool-program/m-p/6714635#M1454355</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  this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

INSIDE OF PAI MODULE WRITE THIS CODE.

DATA : CURSORFIELD(25),	 "DECLEAR IN TOP INCLUDE

PERFORM GET_CURSOR.


FORM GET_CURSOR .

IF AGE GE '20' AND AGE LE '120'.

  CLEAR : CURSORFIELD.
  GET CURSOR FIELD CURSORFIELD.

MESSAGE  'text xyz' TYPE 'S' DISPLAY LIKE 'E'.

ENDIF.

ENDFORM.                    " GET_CURSOR

****************************************************************


INSIDE OF PBO WRITE THIS CODE.

  PERFORM SET_CURSOR.

FORM SET_CURSOR .

    SET CURSOR FIELD CURSORFIELD.

ENDFORM.                    " SET_CURSOR


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cursor position set into ur Age Text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhilash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Mar 2010 09:33:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-and-set-cursor-in-modulepool-program/m-p/6714635#M1454355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-13T09:33:33Z</dc:date>
    </item>
  </channel>
</rss>

