<?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 module programming issue ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-issue/m-p/2681229#M619725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First Screen &amp;#150; 100 ( single box to enter the reservation no: RKPF-RSNUM) &lt;/P&gt;&lt;P&gt;Based on this reservation design next screen (200) showing the reservation header (Table - RKPF) with 5 fields only (RSNUM, RSDAT, USNAM, BWART, WEMPF) and below that a item (Table &amp;#150; RESB) area where all the items shud be displayed in a table control (with the following fields only &amp;#150; RSPOS, MATNR, LGORT, BDMNG, MEINS, ENWRT, (a calculated field say x = BDMNG minus ENWRT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could any1 tell me the complete steps n wht all should i code in pbo n pai?&lt;/P&gt;&lt;P&gt;please write the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE REPLY ASAP.&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;Essam&lt;/P&gt;&lt;P&gt;essamsaud@yahoo.co.in&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Aug 2007 05:53:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-12T05:53:08Z</dc:date>
    <item>
      <title>module programming issue ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-issue/m-p/2681229#M619725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First Screen &amp;#150; 100 ( single box to enter the reservation no: RKPF-RSNUM) &lt;/P&gt;&lt;P&gt;Based on this reservation design next screen (200) showing the reservation header (Table - RKPF) with 5 fields only (RSNUM, RSDAT, USNAM, BWART, WEMPF) and below that a item (Table &amp;#150; RESB) area where all the items shud be displayed in a table control (with the following fields only &amp;#150; RSPOS, MATNR, LGORT, BDMNG, MEINS, ENWRT, (a calculated field say x = BDMNG minus ENWRT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could any1 tell me the complete steps n wht all should i code in pbo n pai?&lt;/P&gt;&lt;P&gt;please write the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE REPLY ASAP.&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;Essam&lt;/P&gt;&lt;P&gt;essamsaud@yahoo.co.in&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Aug 2007 05:53:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-issue/m-p/2681229#M619725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-12T05:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: module programming issue ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-issue/m-p/2681230#M619726</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;I ll give you the basic steps, try using this code .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*for screen 100

PROCESS BEFORE OUTPUT.
  MODULE STATUS_0100.

PROCESS AFTER INPUT.
  MODULE CANCEL AT EXIT-COMMAND.
  module user_command_0100.

*for screen 200.
PROCESS BEFORE OUTPUT.
  MODULE STATUS_0200.
      LOOP AT ITAB2 WITH CONTROL reservation.
    ENDLOOP. 

PROCESS AFTER INPUT.
  MODULE CANCEL1 AT EXIT-COMMAND.
  LOOP AT ITAB2.
  ENDLOOP.
  module user_command_0200.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE status_0100 OUTPUT.
  SET PF-STATUS 'SCREEN_100'.
ENDMODULE.

MODULE cancel INPUT.
  LEAVE PROGRAM.
ENDMODULE.

MODULE user_command_0100 INPUT.
  save_ok = ok_code.
  CLEAR ok_code.
  CASE save_ok.
    WHEN 'DETAIL'.
        CALL SCREEN 200.
  ENDCASE.
ENDMODULE.

MODULE STATUS_0200 OUTPUT.
  SET PF-STATUS 'SCREEN_200'.
select RSNUM RSDAT USNAM BWART WEMPF into table itab1 from
resb where rsnum = p_rsnum.
read table itab1 index 1.
p_rsdat = itab1-rsdat.
p_usnam = itab1-usnam.
p_bwart = itab1-bwart.
p_wempf = itab1-wempf.
select RSPOS, MATNR, LGORT, BDMNG, MEINS, ENWRT into corresponding fields of table itab2 table resb where rsnum = p_rsnum.
loop at itab2.
itab2-x = itab2-BDMNG - itab2-ENWRT.
modify itab2 index sy-tabix.
endloop.
ENDMODULE.

MODULE CANCEL1 INPUT.
 LEAVE PROGRAM.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy coding ... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 06:58:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-programming-issue/m-p/2681230#M619726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T06:58:11Z</dc:date>
    </item>
  </channel>
</rss>

