<?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: Dialog programing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/1079969#M97496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally, when the user hits the enter button, the screen is refreshed (ie, the PAI and PBO are executed). Thus, you do not really need to code for this event if all you want to do is populate the internal table. Just make sure that the select is executed in the PBO, so that the values are selected into the internal table. These should reflect in the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to explicitely code for the event, you can do it the way Max has suggested above, or create an OK-CODE for the enter button (in the status) and code for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Oct 2005 14:37:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-22T14:37:09Z</dc:date>
    <item>
      <title>Dialog programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/1079966#M97493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;I HAVE AN ISSUE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a table-control in dialog programing.&lt;/P&gt;&lt;P&gt;It has five columns. i have set the first column in active mode and the remaining column four column in inactive mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if i enter the first column value and press 'ENTER' in the keyboard the other column should also be filled dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So can you suggest me how does the system recognize the 'ENTER' button in the keyboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Oct 2005 13:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/1079966#M97493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-22T13:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/1079967#M97494</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;you have to check the value of OK_CODE, if user press enter the OK_CODE has the value of the first function of standard toolbar of your gui status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't usually give a value to that function, so if user press key, the OK_CODE value is space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Oct 2005 14:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/1079967#M97494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-22T14:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/1079968#M97495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi deepak,&lt;/P&gt;&lt;P&gt;   To handle any user comand, like enter or any other key, you need to assign an ok code to that user action.&lt;/P&gt;&lt;P&gt;YOu can do that in a PF status.&lt;/P&gt;&lt;P&gt;TO handle what is to be done when the user presses enter,&lt;/P&gt;&lt;P&gt; write the code in PAI module, User_command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that module,&lt;/P&gt;&lt;P&gt;check for the Sy-ucomm value and if it is &lt;/P&gt;&lt;P&gt;'ENTE' (For enter) write the logic to make your table control's fields to be populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Oct 2005 14:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/1079968#M97495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-22T14:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/1079969#M97496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally, when the user hits the enter button, the screen is refreshed (ie, the PAI and PBO are executed). Thus, you do not really need to code for this event if all you want to do is populate the internal table. Just make sure that the select is executed in the PBO, so that the values are selected into the internal table. These should reflect in the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to explicitely code for the event, you can do it the way Max has suggested above, or create an OK-CODE for the enter button (in the status) and code for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Oct 2005 14:37:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/1079969#M97496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-22T14:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/1079970#M97497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what u need to do is to fill the underlying internal table in the PAI ...that means when u fill the first column, based on that fill your internal table in PAI..even if you don't specify an OK CODE...just write the code to retrieve values for other columns....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once your internal table is populated, the values will be visible once the PBO is executed....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;PJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Oct 2005 17:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/1079970#M97497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-22T17:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/1079971#M97498</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;When ever ENTER Key is executed, the flows into the PAI of the screen and then it gets the Next screen number from the attributes of the current screen and it goes into the PBO of the next screen number. Usually we give the same number as the current screen number for better control over the flow. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, we have the material number as one of the field in the table control which is active, once we enter the material number and press on the ENTER key it should fill the material description in the other field which is in display mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screen fields names on the table table controls are for material(MARA-MATNR) and for Material description(MAKT-MAKTX).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Pseudo logic in flow logic:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;PROCESS BEFORE OUTPUT.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  MODULE STATUS_0100.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Assignign data to the screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT IT_ITAB CURSOR TC1-CURRENT_LINE .&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Module to populate the table control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    MODULE SCREEN_MODIFY.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;PROCESS AFTER INPUT.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_ITAB.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Module to get material description&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    MODULE GET_MATERIAL_DESCRIPTION.&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;&amp;lt;b&amp;gt;Code in the above modules&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MODULE SCREEN_MODIFY.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  MARA-MATNR = IT_ITAB-MATNR.&lt;/P&gt;&lt;P&gt;  MAKT-MAKTX = IT_ITAB-MAKTX.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ENDMODULE.      " SCREEN_MODIFY  OUTPUT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MODULE GET_MATERIAL_DESCRIPTION.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  select maktx &lt;/P&gt;&lt;P&gt;    into it_itab-maktx&lt;/P&gt;&lt;P&gt;    from makt&lt;/P&gt;&lt;P&gt;    where matnr = it_itab-matnr and&lt;/P&gt;&lt;P&gt;          spras = sy-langu.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;To modify data from the table control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    MODIFY IT_ITAB INDEX TC1-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ENDMODULE.      " GET_MATERIAL_DESCRIPTION INPUT.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2005 19:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/1079971#M97498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-23T19:33:11Z</dc:date>
    </item>
  </channel>
</rss>

