<?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 programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/2182745#M464397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;     while giving i/o field in Dialog Programming, check that input not required field.&lt;/P&gt;&lt;P&gt;Thn while declaring that input field in the ABAP Editor assign some MODIF ID for that.Thn while writing PAI,U write the code for changing the screen display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it Helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2007 04:52:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-27T04:52:44Z</dc:date>
    <item>
      <title>dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/2182743#M464395</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 m new in dialog programming please help me to sort out this issue&lt;/P&gt;&lt;P&gt;     my requirement is :&lt;/P&gt;&lt;P&gt;i have one z table that have 2 fields client and type.&lt;/P&gt;&lt;P&gt;client is single. tyep have 25 character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on 100 screen we have only type input field and that is single input output field.&lt;/P&gt;&lt;P&gt;that shoud b inactive initially on screen. when i press the drop down button then it will show the entry in database table when i will press a button new then this field should b active and we can put the entry and when press the save button then save in database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give me solution in details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;points will b sure*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 04:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/2182743#M464395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T04:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/2182744#M464396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) to get your type field to give a list of database values when you hit the dropdown, define it in the data dictionary with a foreign key of the table containing the value list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) To get your field to be display only initially, and then open for input after the pushbutton is pressed you need to do a couple of things.  In the PBO you need a module to conditionally set the attributes of the field.  In the PAI you need a user command module to set the attribute when the pushbutton is pressed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define a global field: V_OPEN_TYPE(1) type c.  "space = off, X = on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the layout, for your field 'type', put a value in one of the groups eg in Group1 put '001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the menu painter, give your pushbutton a fcode eg 'NEW'.  You also need a save button with a fcode eg 'SAVE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  then in the PBO have a module SET_SCREEN_100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module set_screen_100.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;    if v_open_type = space.&lt;/P&gt;&lt;P&gt;      loop at screen.&lt;/P&gt;&lt;P&gt;        check screen-group1 = '001'.&lt;/P&gt;&lt;P&gt;        screen-input = '0'.&lt;/P&gt;&lt;P&gt;        modify screen.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;      loop at screen.&lt;/P&gt;&lt;P&gt;        check screen-group1 = '001'.&lt;/P&gt;&lt;P&gt;        screen-input = '1'.&lt;/P&gt;&lt;P&gt;        modify screen.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the pai you need a user command module&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_100.&lt;/P&gt;&lt;P&gt;  CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;    WHEN 'NEW'.&lt;/P&gt;&lt;P&gt;       V_OPEN_TYPE = 'X'.&lt;/P&gt;&lt;P&gt;    WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      update table set field type = type.  "modify this statement as appropriate for your table and field definitions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd also set it up such that the save icon was only active once the NEW button was pressed.  You can do this in the PBO where you set the pf-status by excluding the ucomm conditionally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module set_status_100.&lt;/P&gt;&lt;P&gt;data: i_ucomm like sy-ucomm occurs 0 with header line.&lt;/P&gt;&lt;P&gt;  clear i_ucomm[].&lt;/P&gt;&lt;P&gt;  if v_open_type = space.&lt;/P&gt;&lt;P&gt;    APPEND 'SAVE' TO i_ucomm.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  set pf-status 'STATUS' excluding i_ucomm.&lt;/P&gt;&lt;P&gt;endmodule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your flow logic should then look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO&lt;/P&gt;&lt;P&gt;MODULE SET_STatus_100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module set_screen_100.&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;module user_command_100.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 04:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/2182744#M464396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T04:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/2182745#M464397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;     while giving i/o field in Dialog Programming, check that input not required field.&lt;/P&gt;&lt;P&gt;Thn while declaring that input field in the ABAP Editor assign some MODIF ID for that.Thn while writing PAI,U write the code for changing the screen display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it Helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 04:52:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/2182745#M464397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T04:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/2182746#M464398</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;First of all , in the PBO event of your sceen, perform following thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-ucomm ne 'NEW'.  (Where NEW is the fcode you have assigned to your pushbutton)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = '&amp;lt;name.&amp;gt;'.&lt;/P&gt;&lt;P&gt;screen-active = 0.  (or 1. just check the value to deactivate the field. i cant remember).&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;This will show the field in inactive mode initially.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the PAI event,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'NEW'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do nothing (the field will be automatically in editable mode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'SAVE'.  (you need to activate this through PF status).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure your field is in both input / output mode when you design your screen. Assign F4 help to your field so that you are able to see the database value even in the inactive mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps. &lt;/P&gt;&lt;P&gt;Revert if you want still detailed explanation clearly stating what is missing. &lt;/P&gt;&lt;P&gt;Pls reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 04:57:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/2182746#M464398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T04:57:09Z</dc:date>
    </item>
  </channel>
</rss>

