<?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 POOL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/1731368#M318428</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;Placing table controls and transferring data from one table control to other. ( Add, Insert, remove)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a.	Make all matnr from MARA to display in the first table control. &lt;/P&gt;&lt;P&gt;b.	Place three push buttons ADD, INSERT, And REMOVE.&lt;/P&gt;&lt;P&gt;c.	If Add is pressed the selected row in the first table control should be displayed in second table control and that should be deleted in the first table control.&lt;/P&gt;&lt;P&gt;d.	If Insert is pressed the selected row in the first table control should be inserted after the selected row in the second table control.&lt;/P&gt;&lt;P&gt;e.	If Remove is pressed it is reverse to Add. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THIS IS THE REQUIREMENT..CAN SOME ONE HELP ME HOW TO DO THAT...........I AM NEW TO MODULE POOL PROGRAMMING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKING U IN ANTICIPATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS,&lt;/P&gt;&lt;P&gt;SUPRIYA MANIK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Dec 2006 11:56:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-05T11:56:26Z</dc:date>
    <item>
      <title>MODULE POOL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/1731368#M318428</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;Placing table controls and transferring data from one table control to other. ( Add, Insert, remove)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a.	Make all matnr from MARA to display in the first table control. &lt;/P&gt;&lt;P&gt;b.	Place three push buttons ADD, INSERT, And REMOVE.&lt;/P&gt;&lt;P&gt;c.	If Add is pressed the selected row in the first table control should be displayed in second table control and that should be deleted in the first table control.&lt;/P&gt;&lt;P&gt;d.	If Insert is pressed the selected row in the first table control should be inserted after the selected row in the second table control.&lt;/P&gt;&lt;P&gt;e.	If Remove is pressed it is reverse to Add. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THIS IS THE REQUIREMENT..CAN SOME ONE HELP ME HOW TO DO THAT...........I AM NEW TO MODULE POOL PROGRAMMING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKING U IN ANTICIPATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS,&lt;/P&gt;&lt;P&gt;SUPRIYA MANIK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 11:56:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/1731368#M318428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T11:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: MODULE POOL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/1731369#M318429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this program the Functioncode Arrow is used to move a row from one table control to another table control &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Flow Logic.&amp;lt;/b&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 STATUS_9000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB WITH CONTROL TC.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1 WITH CONTROL TC1.&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;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_9000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;MODULE SC.&lt;/P&gt;&lt;P&gt;MODULE LIST_9000.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Main Program&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTCONTROL                               .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : ZSALESITEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : ITAB LIKE TABLE OF ZSALESITEM WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       ITAB1 LIKE TABLE OF ZSALESITEM WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       ITAB2 LIKE TABLE OF ZSALESITEM WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : FLAG TYPE I, SC TYPE C, LINES TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS TC  TYPE TABLEVIEW USING SCREEN 9000.&lt;/P&gt;&lt;P&gt;CONTROLS TC1 TYPE TABLEVIEW USING SCREEN 9000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS VRM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA LIST TYPE VRM_VALUES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SCREEN 9000.&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_9000  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;MODULE USER_COMMAND_9000 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_9000  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM MOVETC.&lt;/P&gt;&lt;P&gt;ITAB1-ITEMNO = ITAB-ITEMNO.&lt;/P&gt;&lt;P&gt;ITAB1-MATERIALNO = ITAB-MATERIALNO.&lt;/P&gt;&lt;P&gt;ITAB1-QUANTITY = ITAB-QUANTITY.&lt;/P&gt;&lt;P&gt;ITAB1-PRICE = ITAB-PRICE.&lt;/P&gt;&lt;P&gt;ITAB1-AMOUNT = ITAB-AMOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*MODIFY ITAB1 INDEX TC1-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    APPEND ITAB1.&lt;/P&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&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;      Module  LIST_9000  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;MODULE LIST_9000 INPUT.&lt;/P&gt;&lt;P&gt;SELECT SALESORDERNO FROM ZSALESITEM INTO TABLE LIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'VRM_SET_VALUES'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    ID                    = 'ITAB-SALESORDERNO'&lt;/P&gt;&lt;P&gt;    VALUES               = LIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB-ITEMNO = SY-STEPL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE MATERIALNO PRICE FROM ZSALESITEM INTO&lt;/P&gt;&lt;P&gt;(ITAB-MATERIALNO,ITAB-PRICE)&lt;/P&gt;&lt;P&gt;WHERE SALESORDERNO = ITAB-SALESORDERNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ITAB-AMOUNT = ITAB-QUANTITY * ITAB-PRICE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MODIFY ITAB INDEX TC-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    APPEND ITAB.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " LIST_9000  INPUT&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;      Module  STATUS_9000  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_9000 OUTPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET PF-STATUS 'xxxxxxxx'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PERFORM SCROLL.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_9000  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM SCROLL.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE ITAB LINES LINES.&lt;/P&gt;&lt;P&gt;IF LINES IS INITIAL.&lt;/P&gt;&lt;P&gt;  TC-LINES = LINES + 1.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  TC-LINES = LINES + 1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&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  SC  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;MODULE SC INPUT.&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'ARROW'.&lt;/P&gt;&lt;P&gt;  IF SC = 'X'.&lt;/P&gt;&lt;P&gt;  PERFORM MOVETC.&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;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " SC  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 12:20:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/1731369#M318429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T12:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: MODULE POOL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/1731370#M318430</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;Goto SE81. create a new program.&lt;/P&gt;&lt;P&gt;Define two internal tables itab1 and itab2.&lt;/P&gt;&lt;P&gt;in first internal table get all the material master data.&lt;/P&gt;&lt;P&gt;create a new screen.&lt;/P&gt;&lt;P&gt;drag the table control wizard and associate the table itab1 with this table control. Include the button add, insert and delete.&lt;/P&gt;&lt;P&gt;drag another table control wizard and associate the table itab2 with this table control.&lt;/P&gt;&lt;P&gt;the code gets generated for the buttons as well as the table control.&lt;/P&gt;&lt;P&gt;you need to make some changes in the code as per your requirement.&lt;/P&gt;&lt;P&gt;for first table control chck out the code for insert/add/delete button and comment the code used in this. Instead, add the record(that is selected in itab1) in table itab2 and delete this record from itab1.&lt;/P&gt;&lt;P&gt;Do this as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 12:29:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/1731370#M318430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T12:29:11Z</dc:date>
    </item>
  </channel>
</rss>

