<?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: Module (Dialogue) pool program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-dialogue-pool-program/m-p/7594599#M1567652</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;your OK code field (e.g. SY-UCOMM) has to be defined on your screen. You can check this in SE51 in the element list of your dynpro. This field has type OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you edit this dynpro first the cursor position is the OK code field in the upper left corner (not visible!). Give it a name, save it and generate the dynpro. You should see this field now in the element lsit and can use it in the program!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jan 2011 05:51:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-24T05:51:04Z</dc:date>
    <item>
      <title>Module (Dialogue) pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-dialogue-pool-program/m-p/7594594#M1567647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi viewers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 I'm striving sample module pool program. I'm unable to get/retrieve the value from the screen. I developed the screen with three fields. First field name is username with input filed, second field name is password and third field name is push button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For username input field name I have taken as zpassword-uname and for password zpassword-psw. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Note: zpassword  is the table name I have created and storing some values.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this I have choosen PAI event and I have clicked on flow logic option and it is redirected to flow logic for this program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I have defined as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :  WA_PSW TYPE ZPASSWORDS,&lt;/P&gt;&lt;P&gt;             USERNAME TYPE ZPASSWORDS-UNAME,&lt;/P&gt;&lt;P&gt;             PASS TYPE ZPASSWORDS-PSW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0100 INPUT.&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 'LOGON'.&lt;/P&gt;&lt;P&gt;        WA_PSW-UNAME =  USERNAME.&lt;/P&gt;&lt;P&gt;        WA_PSW-PSW   =  PASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            SELECT * FROM ZPASSWORDS INTO WA_PSW WHERE UNAME = WA_PSW-UNAME ."AND PSW = WA_PSW-PSW.&lt;/P&gt;&lt;P&gt;            ENDSELECT.&lt;/P&gt;&lt;P&gt;              IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;                MESSAGE USERNAME TYPE 'I'.&lt;/P&gt;&lt;P&gt;                 MESSAGE 'LOGIN SUCCESSFULLY' TYPE 'I'.&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;                 MESSAGE USERNAME TYPE 'I'.&lt;/P&gt;&lt;P&gt;                 MESSAGE 'HELLO VENKAT this is INVALID USERNAME AND PASSWORD' TYPE 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             ENDIF.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.               &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I have created Tcode which is called as ZTEST and run the TCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen is showing and action is performing but entered filed values are not retrieving. I mean input field values are showing empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANYBODY PLEASE GUIDE ME HOW TO RETRIEVE THE VALUES FROM INPUT FILEDS? I HOPE AND WAIT FOR YOUR KIND INFORMATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 04:58:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-dialogue-pool-program/m-p/7594594#M1567647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-24T04:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Module (Dialogue) pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-dialogue-pool-program/m-p/7594595#M1567648</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;   Please check the values in sy-ucomm. Check if the control is coming into the case.&lt;/P&gt;&lt;P&gt;   Give the function code(FctCode) to the Button you have declared.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 05:17:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-dialogue-pool-program/m-p/7594595#M1567648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-24T05:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Module (Dialogue) pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-dialogue-pool-program/m-p/7594596#M1567649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Srini for your kind information. I have defined function code and controller is executing into the sy-ucomm. But entered input values are not picking. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you explain ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;venkaT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: venkatehBI on Jan 24, 2011 6:21 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 05:21:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-dialogue-pool-program/m-p/7594596#M1567649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-24T05:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Module (Dialogue) pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-dialogue-pool-program/m-p/7594597#M1567650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN PAI , you need to process fieild &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process After Input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD WA_PSW-PSW. &lt;/P&gt;&lt;P&gt;  FIELD WA_PSW-UNAME.&lt;/P&gt;&lt;P&gt; module user_command_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 05:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-dialogue-pool-program/m-p/7594597#M1567650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-24T05:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Module (Dialogue) pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-dialogue-pool-program/m-p/7594598#M1567651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are your declarations global?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 05:35:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-dialogue-pool-program/m-p/7594598#M1567651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-24T05:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Module (Dialogue) pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-dialogue-pool-program/m-p/7594599#M1567652</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;your OK code field (e.g. SY-UCOMM) has to be defined on your screen. You can check this in SE51 in the element list of your dynpro. This field has type OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you edit this dynpro first the cursor position is the OK code field in the upper left corner (not visible!). Give it a name, save it and generate the dynpro. You should see this field now in the element lsit and can use it in the program!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 05:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-dialogue-pool-program/m-p/7594599#M1567652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-24T05:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Module (Dialogue) pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-dialogue-pool-program/m-p/7594600#M1567653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in module pool program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can get the screen values to abap variable in PAI EVENT&lt;/P&gt;&lt;P&gt;and then u can give back abap variables to same screen values in PBO EVENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here u need to get screen values in ur abap variables, so first u need to declare the variables in ur program to hold the screen values once u vl have it u can get screen values in ur variables in PAI event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;okay , as i can understand from ur question is u need to check ur input values in database, so for tht in screen prograaming, u have provision to check by writing in pai event:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD f MODULE mod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;  FIELD: f1, f2,...&lt;/P&gt;&lt;P&gt;  MODULE mod1. &lt;/P&gt;&lt;P&gt;  FIELD: g1, g2,...&lt;/P&gt;&lt;P&gt;  MODULE mod2.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the link : &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/47/a19fd982841503e10000000a42189c/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/47/a19fd982841503e10000000a42189c/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also when u design the screen, u have got the option like get from dictionay and get from program, if u select get from program, then u need to have those variables or tables declared in ur program in top include.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 05:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-dialogue-pool-program/m-p/7594600#M1567653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-24T05:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Module (Dialogue) pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-dialogue-pool-program/m-p/7594601#M1567654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is ur screen field name, is it WA_PSW-UNAME or  USERNAME. If it is this field WA_PSW-UNAME then in user command u r replacing it here &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WA_PSW-UNAME = USERNAME.
WA_PSW-PSW = PASS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in user command, and if ur screen field is  USERNAME then enter the value and start the debugger and press the logon button check where is it clearing the variable USERNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhukar Shetty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 05:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-dialogue-pool-program/m-p/7594601#M1567654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-24T05:54:17Z</dc:date>
    </item>
  </channel>
</rss>

