<?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 Set-Cursor In TableControl Help Help Help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-in-tablecontrol-help-help-help/m-p/2921878#M688119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please HelpOut for Sure &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had an table control which is filled by internal Table itab_emp &lt;/P&gt;&lt;P&gt;i m applying condition on that internal table &lt;/P&gt;&lt;P&gt;its giving error message &lt;/P&gt;&lt;P&gt;i want that cursor should be placed to that position that gives errormessage &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m sending u code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just tell me changes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB_EMP WHERE MARK = 'X' .&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      ITAB_TEST[] = ITAB_EMP[].&lt;/P&gt;&lt;P&gt;      DELETE ADJACENT DUPLICATES FROM ITAB_TEST.&lt;/P&gt;&lt;P&gt;      LOOP AT ITAB_TEST.&lt;/P&gt;&lt;P&gt;        CLEAR SUM .&lt;/P&gt;&lt;P&gt;        LOOP AT ITAB_EMP WHERE PERID = ITAB_TEST-PERID.&lt;/P&gt;&lt;P&gt;          SUM = SUM + ITAB_EMP-OTIME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF SUM &amp;gt; '100000'.&lt;/P&gt;&lt;P&gt;          MESSAGE E018.&lt;/P&gt;&lt;P&gt;        &amp;lt;b&amp;gt;ELSEIF ITAB_EMP-OTIME &amp;gt; '010000'.&lt;/P&gt;&lt;P&gt;          MESSAGE E017.&lt;/P&gt;&lt;P&gt;        SET CURSOR FIELD ITAB_EMP-OTIME .&amp;lt;/b&amp;gt;        ELSE.&lt;/P&gt;&lt;P&gt;          MOVE-CORRESPONDING ITAB_EMP TO ITAB_OTAPP .&lt;/P&gt;&lt;P&gt;          ITAB_OTAPP-OBJID = 1.&lt;/P&gt;&lt;P&gt;          ITAB_OTAPP-INACT = 'X'.&lt;/P&gt;&lt;P&gt;          ITAB_OTAPP-TODTE = ZHR_PR_M_OTAPP-TODTE.&lt;/P&gt;&lt;P&gt;          ITAB_OTAPP-FRDTE = ZHR_PR_M_OTAPP-FRDTE.&lt;/P&gt;&lt;P&gt;          ITAB_OTAPP-IMMHD = ZHR_PR_M_OTAPP-IMMHD.&lt;/P&gt;&lt;P&gt;          ITAB_OTAPP-CRETM = SY-UZEIT.&lt;/P&gt;&lt;P&gt;          ITAB_OTAPP-CREON = SY-DATUM.&lt;/P&gt;&lt;P&gt;          ITAB_OTAPP-CREBY = SY-UNAME.&lt;/P&gt;&lt;P&gt;          APPEND ITAB_OTAPP.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;    LOOP AT ITAB_OTAPP INTO WA_ITAB_OTAPP.&lt;/P&gt;&lt;P&gt;      MODIFY ZHR_PR_M_OTAPP FROM WA_ITAB_OTAPP.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BOLD lines are the condition checking &lt;/P&gt;&lt;P&gt;if check all the lines and then if any of the line gives error it reflects now i want to place cursor on that field which is giving error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-tabix will work &lt;/P&gt;&lt;P&gt;BUT HOW?????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this time any of the genius gotmy problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Best Regards&lt;/P&gt;&lt;P&gt;Ruby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2007 07:12:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-17T07:12:00Z</dc:date>
    <item>
      <title>Set-Cursor In TableControl Help Help Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-in-tablecontrol-help-help-help/m-p/2921878#M688119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please HelpOut for Sure &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had an table control which is filled by internal Table itab_emp &lt;/P&gt;&lt;P&gt;i m applying condition on that internal table &lt;/P&gt;&lt;P&gt;its giving error message &lt;/P&gt;&lt;P&gt;i want that cursor should be placed to that position that gives errormessage &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m sending u code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just tell me changes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB_EMP WHERE MARK = 'X' .&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      ITAB_TEST[] = ITAB_EMP[].&lt;/P&gt;&lt;P&gt;      DELETE ADJACENT DUPLICATES FROM ITAB_TEST.&lt;/P&gt;&lt;P&gt;      LOOP AT ITAB_TEST.&lt;/P&gt;&lt;P&gt;        CLEAR SUM .&lt;/P&gt;&lt;P&gt;        LOOP AT ITAB_EMP WHERE PERID = ITAB_TEST-PERID.&lt;/P&gt;&lt;P&gt;          SUM = SUM + ITAB_EMP-OTIME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF SUM &amp;gt; '100000'.&lt;/P&gt;&lt;P&gt;          MESSAGE E018.&lt;/P&gt;&lt;P&gt;        &amp;lt;b&amp;gt;ELSEIF ITAB_EMP-OTIME &amp;gt; '010000'.&lt;/P&gt;&lt;P&gt;          MESSAGE E017.&lt;/P&gt;&lt;P&gt;        SET CURSOR FIELD ITAB_EMP-OTIME .&amp;lt;/b&amp;gt;        ELSE.&lt;/P&gt;&lt;P&gt;          MOVE-CORRESPONDING ITAB_EMP TO ITAB_OTAPP .&lt;/P&gt;&lt;P&gt;          ITAB_OTAPP-OBJID = 1.&lt;/P&gt;&lt;P&gt;          ITAB_OTAPP-INACT = 'X'.&lt;/P&gt;&lt;P&gt;          ITAB_OTAPP-TODTE = ZHR_PR_M_OTAPP-TODTE.&lt;/P&gt;&lt;P&gt;          ITAB_OTAPP-FRDTE = ZHR_PR_M_OTAPP-FRDTE.&lt;/P&gt;&lt;P&gt;          ITAB_OTAPP-IMMHD = ZHR_PR_M_OTAPP-IMMHD.&lt;/P&gt;&lt;P&gt;          ITAB_OTAPP-CRETM = SY-UZEIT.&lt;/P&gt;&lt;P&gt;          ITAB_OTAPP-CREON = SY-DATUM.&lt;/P&gt;&lt;P&gt;          ITAB_OTAPP-CREBY = SY-UNAME.&lt;/P&gt;&lt;P&gt;          APPEND ITAB_OTAPP.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;    LOOP AT ITAB_OTAPP INTO WA_ITAB_OTAPP.&lt;/P&gt;&lt;P&gt;      MODIFY ZHR_PR_M_OTAPP FROM WA_ITAB_OTAPP.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BOLD lines are the condition checking &lt;/P&gt;&lt;P&gt;if check all the lines and then if any of the line gives error it reflects now i want to place cursor on that field which is giving error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-tabix will work &lt;/P&gt;&lt;P&gt;BUT HOW?????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this time any of the genius gotmy problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Best Regards&lt;/P&gt;&lt;P&gt;Ruby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 07:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-in-tablecontrol-help-help-help/m-p/2921878#M688119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T07:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set-Cursor In TableControl Help Help Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-in-tablecontrol-help-help-help/m-p/2921879#M688120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the check should be in a FIELD statement in the PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 21:00:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-in-tablecontrol-help-help-help/m-p/2921879#M688120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T21:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set-Cursor In TableControl Help Help Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-in-tablecontrol-help-help-help/m-p/2921880#M688121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;Set the cursor before raising the error message and in the set cursor statement pass the Line number of the table control being processed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 22:48:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-in-tablecontrol-help-help-help/m-p/2921880#M688121</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-10-17T22:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set-Cursor In TableControl Help Help Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-in-tablecontrol-help-help-help/m-p/2921881#M688122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some of the logic is a bit confusing (would be easier to read if you used the "Code" button in the SDN message editor)... for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT ITAB_EMP WHERE MARK = 'X' .
  IF SY-SUBRC = 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;... the "IF SY-SUBRC" won't be reached unless there is at least one row where "mark = 'X'.''...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow, where is this code implemented currently?... the usual approach to validating a table control is to have a module called inside the "loop at table control" in the PAI of the screen flow... then the contents of each row on the screen will get passed into your logic a row at a time automatically and the "set cursor field" + "message e999(zz)" type code should work as it will refer to the current row being checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 23:33:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-in-tablecontrol-help-help-help/m-p/2921881#M688122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T23:33:08Z</dc:date>
    </item>
  </channel>
</rss>

