<?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 Programming  PBO and PAI flow. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-pbo-and-pai-flow/m-p/1816602#M349560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare data as you are doing for any other program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that use call screen 2000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then define the PBO of the screen 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PAI you have to validate ,update and call the 2000 screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for different buttons you have to assign different fncode and do appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose you have two three buttons save,next,exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save will save data.&lt;/P&gt;&lt;P&gt;next will call 2000 screen and exit will come out of the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just code in the module of PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module m1 input.&lt;/P&gt;&lt;P&gt;&amp;lt;validate your data&amp;gt;&lt;/P&gt;&lt;P&gt;case okcode.&lt;/P&gt;&lt;P&gt;when 'SAVE'.&lt;/P&gt;&lt;P&gt;save data in database.&lt;/P&gt;&lt;P&gt;when 'NEXT'.&lt;/P&gt;&lt;P&gt;call screen 2000.&lt;/P&gt;&lt;P&gt;when 'EXIT".&lt;/P&gt;&lt;P&gt;leave program.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;like that&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for screen 2000 also you have to define PBO and PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jan 2007 07:51:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-24T07:51:27Z</dc:date>
    <item>
      <title>Module Programming  PBO and PAI flow.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-pbo-and-pai-flow/m-p/1816601#M349559</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 am new to module programming, &lt;/P&gt;&lt;P&gt;My req are -  I have 4 input fields and button in my first screen(1000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After user enters these values then I have to validate this values in the database and then &lt;/P&gt;&lt;P&gt;I need to update 1 field value in the database. After updating I need to display the results in second screen (2000).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one please let me know what is the process in PBO and PAI modules.&lt;/P&gt;&lt;P&gt;How to write code . &lt;/P&gt;&lt;P&gt;1.	where to validate field values&lt;/P&gt;&lt;P&gt;2.	where to write code for updating database.&lt;/P&gt;&lt;P&gt;3.	where to write code for displaying success/failure message in second screen(2000)&lt;/P&gt;&lt;P&gt;4.	where to write declarations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for ur time .&lt;/P&gt;&lt;P&gt;I highly appreciate ur help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 07:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-pbo-and-pai-flow/m-p/1816601#M349559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T07:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Module Programming  PBO and PAI flow.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-pbo-and-pai-flow/m-p/1816602#M349560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare data as you are doing for any other program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that use call screen 2000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then define the PBO of the screen 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PAI you have to validate ,update and call the 2000 screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for different buttons you have to assign different fncode and do appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose you have two three buttons save,next,exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save will save data.&lt;/P&gt;&lt;P&gt;next will call 2000 screen and exit will come out of the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just code in the module of PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module m1 input.&lt;/P&gt;&lt;P&gt;&amp;lt;validate your data&amp;gt;&lt;/P&gt;&lt;P&gt;case okcode.&lt;/P&gt;&lt;P&gt;when 'SAVE'.&lt;/P&gt;&lt;P&gt;save data in database.&lt;/P&gt;&lt;P&gt;when 'NEXT'.&lt;/P&gt;&lt;P&gt;call screen 2000.&lt;/P&gt;&lt;P&gt;when 'EXIT".&lt;/P&gt;&lt;P&gt;leave program.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;like that&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for screen 2000 also you have to define PBO and PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 07:51:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-pbo-and-pai-flow/m-p/1816602#M349560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T07:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Module Programming  PBO and PAI flow.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-pbo-and-pai-flow/m-p/1816603#M349561</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; all the validation code is written in PBO module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all the data updations are done in PAI module.&lt;/P&gt;&lt;P&gt;data declarations and calling second screen is also done in  PAI module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful dont forget to award some points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 07:52:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-pbo-and-pai-flow/m-p/1816603#M349561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T07:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Module Programming  PBO and PAI flow.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-pbo-and-pai-flow/m-p/1816604#M349562</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;Check this out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                            INCLUDES                                 *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;INCLUDE ZIMMFORM001_TOP.&lt;/P&gt;&lt;P&gt;INCLUDE ZIMMFORM001_PBO.&lt;/P&gt;&lt;P&gt;INCLUDE ZIMMFORM001_PAI.&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Main Process&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SCREEN 100. -&amp;gt; double click&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uncomment the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt; MODULE STATUS_0100.   -&amp;gt; double click&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt; MODULE USER_COMMAND_0100.  -&amp;gt; double click&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;  Include           ZIMMFORM001_TOP&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global Definitions                                   *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Your definitions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;  Include           ZIMMFORM005_PBO&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE status_0100 OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'MEN'.  -&amp;gt; double click -&amp;gt; CREATE SCREEN STATUS 'EXE' AND 'BACK'&lt;/P&gt;&lt;P&gt;  SET TITLEBAR 'ZTIT'.  -&amp;gt; double click&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; INITIATE WHATEVER YOU NEED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;  Include           ZIMMFORM001_PAI&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSIDE THE CASE YOU CAN VALIDATE.WHEN 'EXE' IS SELECTED FOR EXAMPLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_0100 INPUT.&lt;/P&gt;&lt;P&gt;  CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;    WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;      LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;    WHEN 'EXE'.&lt;/P&gt;&lt;P&gt;      PERFORM validate_form. &lt;/P&gt;&lt;P&gt;      PERFORM save_form_to_db. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, dont forget to reward&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GABRIEL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Gabriel Fernando Pulido V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 07:56:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-pbo-and-pai-flow/m-p/1816604#M349562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T07:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Module Programming  PBO and PAI flow.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-pbo-and-pai-flow/m-p/1816605#M349563</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 the screen mask is displayed by the SAPgui, two events are triggered:&lt;/P&gt;&lt;P&gt;Before the screen is displayed, the Process Before Output (PBO) event is processed. When the&lt;/P&gt;&lt;P&gt;user interacts with the screen, the Process After Input (PAI) event is processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the declarations in top include&lt;/P&gt;&lt;P&gt;write the validations and updating in PAI&lt;/P&gt;&lt;P&gt;weite th msg in the PBO of the screen 2000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 08:00:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-pbo-and-pai-flow/m-p/1816605#M349563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T08:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Module Programming  PBO and PAI flow.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-pbo-and-pai-flow/m-p/1816606#M349564</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;(Usually screen 1000 is meant for selection screen. So try to avoid using screen 1000.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No code sequence as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;step1: in PBO 0f 1000 you just output GUI status &amp;amp; Title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2 : in PAI of 1000 write  the code to handle  the push button once the user enters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step3: in PAI after step 2 (for screen 1000) write chain and endchain and inside it wite a module to check the values against the database field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step4: You don't need another screen to dispaly S/E messages.&lt;/P&gt;&lt;P&gt;This is automatically dispalyed, if you use Message statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please feel free to revert in case any help needed on coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points are welcome if this is valid for you!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-B S B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 08:06:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-pbo-and-pai-flow/m-p/1816606#M349564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T08:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Module Programming  PBO and PAI flow.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-pbo-and-pai-flow/m-p/1816607#M349565</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;Thanks for all ur answers,&lt;/P&gt;&lt;P&gt;but I not able to continue .... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put my code like this ...&lt;/P&gt;&lt;P&gt;in PBO&lt;/P&gt;&lt;P&gt;MODULE STATUS_1000 OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'STATUS_1000'.&lt;/P&gt;&lt;P&gt;  SET TITLEBAR 'ZTIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_1000  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF  SY-UCOMM = 'SUB'.&lt;/P&gt;&lt;P&gt;PERFORM VALIDATE&lt;/P&gt;&lt;P&gt;PERFORM UPDATE &lt;/P&gt;&lt;P&gt;PERFORM MESSAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...but when I check in debug mode, it is even comming to PAI code. not able to find whats wrong ..  some one  can help me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 09:07:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-pbo-and-pai-flow/m-p/1816607#M349565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T09:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Module Programming  PBO and PAI flow.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-pbo-and-pai-flow/m-p/1816608#M349566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in screen flow logic&amp;gt;&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;module m1.&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;module m2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in abap code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module m1 output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set pf-status 'ZSPD'.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module m2 input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;validation&amp;gt;&lt;/P&gt;&lt;P&gt;if zzmara-matnr = ''.&lt;/P&gt;&lt;P&gt;message e001(zspd).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case okcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'SAVE'.&lt;/P&gt;&lt;P&gt;&amp;lt;update dbtab&amp;gt;&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;in screen element tab at the last line you have to type okcode you can see it will be blank just type okcode (type will be ok there).&lt;/P&gt;&lt;P&gt;in your abap you have to declare the same fields like screen field and okvcode also .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : okcode like sy-ucomm.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 09:19:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-pbo-and-pai-flow/m-p/1816608#M349566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T09:19:51Z</dc:date>
    </item>
  </channel>
</rss>

