<?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 help needed in the code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-the-code/m-p/1643612#M286584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help in acquiring this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table control,in which i have 3 columns out of which 2 are input/outfields and one is output field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say i have fld1 fld2 fld3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i entera value for fld1 and fld2 then it bring value in fld3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but sometimes i.e certain values of fld1 the fld2 should be NA and the fld3 should open up for input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say fld1 = def is exception&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first i enter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fld1 = abc and fld2 =aaa then it brings fld3 =bbb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next i enter &lt;/P&gt;&lt;P&gt;fld1 = def and hit enter then fld2 = NA and fld3 should be available for input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following code written for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS: TABLECONTROL TYPE TABLEVIEW USING SCREEN 9002.&lt;/P&gt;&lt;P&gt;DATA  W_TABLECONTROL LIKE LINE OF TABLECONTROL-COLS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB IS MY TABLE CONTROL INTERNAL TABLE I.E MY TABLE CONTROL FIELDS ARE ITAB-FLD1,ITAB-FLD2,ITAB-FLD3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at TABLECONTROL-cols into w_TABLECONTROL.&lt;/P&gt;&lt;P&gt;  IF w_cTABLECONTROL-screen-group4 = 'NAM'.&lt;/P&gt;&lt;P&gt;  loop at iTAB.&lt;/P&gt;&lt;P&gt;    IF ITAB-FLD1 EQ 'DEF'.&lt;/P&gt;&lt;P&gt;        w_TABLECONTROL-SCREEN-INPUT = '1'.&lt;/P&gt;&lt;P&gt;     else.&lt;/P&gt;&lt;P&gt;        w_TABLECONTROL-SCREEN-INPUT = '0'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;modify TABLECONTROL-cols from w_TABLECONTROL.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHAT I SEE NOW WITH THIS CODE IS WHEN I ENTER THE FIRST RECORD IN&lt;/P&gt;&lt;P&gt;ITAB-FLD1 AS DEF AND HIT ENTER THE FLD2 IS NA AND FLD3 IS READY FOR OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOW THE SECOND ROW FLD3 IS AVAILABLE FOR INPUT WHICH I DON'T WANT BECAUSE MY FLD1 OF SECOND IS NOT YET KNOW AGAIN IFITS DEF THEN IT SHOULD BE AVAILABLE FOR INPUT OTHERWISE IT SHOULD GREY OUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HELP ME IN ACHEIVING THIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Nov 2006 20:05:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-15T20:05:42Z</dc:date>
    <item>
      <title>help needed in the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-the-code/m-p/1643612#M286584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help in acquiring this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table control,in which i have 3 columns out of which 2 are input/outfields and one is output field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say i have fld1 fld2 fld3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i entera value for fld1 and fld2 then it bring value in fld3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but sometimes i.e certain values of fld1 the fld2 should be NA and the fld3 should open up for input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say fld1 = def is exception&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first i enter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fld1 = abc and fld2 =aaa then it brings fld3 =bbb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next i enter &lt;/P&gt;&lt;P&gt;fld1 = def and hit enter then fld2 = NA and fld3 should be available for input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following code written for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS: TABLECONTROL TYPE TABLEVIEW USING SCREEN 9002.&lt;/P&gt;&lt;P&gt;DATA  W_TABLECONTROL LIKE LINE OF TABLECONTROL-COLS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB IS MY TABLE CONTROL INTERNAL TABLE I.E MY TABLE CONTROL FIELDS ARE ITAB-FLD1,ITAB-FLD2,ITAB-FLD3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at TABLECONTROL-cols into w_TABLECONTROL.&lt;/P&gt;&lt;P&gt;  IF w_cTABLECONTROL-screen-group4 = 'NAM'.&lt;/P&gt;&lt;P&gt;  loop at iTAB.&lt;/P&gt;&lt;P&gt;    IF ITAB-FLD1 EQ 'DEF'.&lt;/P&gt;&lt;P&gt;        w_TABLECONTROL-SCREEN-INPUT = '1'.&lt;/P&gt;&lt;P&gt;     else.&lt;/P&gt;&lt;P&gt;        w_TABLECONTROL-SCREEN-INPUT = '0'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;modify TABLECONTROL-cols from w_TABLECONTROL.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHAT I SEE NOW WITH THIS CODE IS WHEN I ENTER THE FIRST RECORD IN&lt;/P&gt;&lt;P&gt;ITAB-FLD1 AS DEF AND HIT ENTER THE FLD2 IS NA AND FLD3 IS READY FOR OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOW THE SECOND ROW FLD3 IS AVAILABLE FOR INPUT WHICH I DON'T WANT BECAUSE MY FLD1 OF SECOND IS NOT YET KNOW AGAIN IFITS DEF THEN IT SHOULD BE AVAILABLE FOR INPUT OTHERWISE IT SHOULD GREY OUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HELP ME IN ACHEIVING THIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 20:05:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-the-code/m-p/1643612#M286584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T20:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: help needed in the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-the-code/m-p/1643613#M286585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code seems correct. Can u check in which event code is available?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be in PBO(loop endloop of table control).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 21:19:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-the-code/m-p/1643613#M286585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T21:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: help needed in the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-the-code/m-p/1643614#M286586</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;Have this code inside the LOOP AT ...ENDLOOP of the PBO..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB INTO WA..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;MODULE UPDATE_DATA..&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE UPDATE_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF WA-FIELD1 = 'DEF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add the group for the field3 in the attributes..     &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     IF SCREEN-GROUP1 = 'G1'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Enable for input...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        SCREEN-INPUT = '1'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     IF SCREEN-GROUP1 = 'G1'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;disable for input for other values.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        SCREEN-INPUT = '0'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 21:38:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-the-code/m-p/1643614#M286586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T21:38:23Z</dc:date>
    </item>
  </channel>
</rss>

