<?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: change modes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596162#M866013</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 am doing it in normal report program. I dont know how to change it???? Is it possible???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2008 06:09:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-03T06:09:31Z</dc:date>
    <item>
      <title>change modes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596154#M866005</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 am creating one table control in module pool..&lt;/P&gt;&lt;P&gt;In selection screen i give 3 pushbuttons like display, insert, exit... When i give input and click display it will display the table control with the values in display mode.. There i give one more button named change.. When i select the particular row and press change button i should be change to edit mode.. I dont know the code for the program.... Can anyone help me......Pls its very urgent........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2008 04:51:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596154#M866005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-30T04:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: change modes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596155#M866006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rajkumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are more possibilities to achieve this. Here I try to describe one alternative in pseudo code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case Pushbutton:&lt;/P&gt;&lt;P&gt;  when Display.&lt;/P&gt;&lt;P&gt;      call transaction 'SE38'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  when insert/change:&lt;/P&gt;&lt;P&gt;    call transaction 'SM30'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  when Exit.&lt;/P&gt;&lt;P&gt;     EXIT.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;when insert/change case&lt;/STRONG&gt; can only be performed properly when the Table Maintenence Generation (SE55) was performed for the relevant table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Heinz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2008 05:34:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596155#M866006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-30T05:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: change modes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596156#M866007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi heinz!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried wht u said.... but i was not able to get the output.... Can u give some more ideassss.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 11:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596156#M866007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T11:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: change modes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596157#M866008</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;Use SCREEN VARIENT TCODE SHD0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here u can give ur tcode Click  Screen varient&lt;/P&gt;&lt;P&gt; give Screen varient name&lt;/P&gt;&lt;P&gt; program name&lt;/P&gt;&lt;P&gt; Screen name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save .Now one popup will be display here u can select wich one display mode and invisible mode whatever u want u can give and save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brown.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 11:28:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596157#M866008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T11:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: change modes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596158#M866009</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;Brown!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur reply.   But it also not helping for me... Can u tell me some other ways without using any tcode only with the use of coding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 06:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596158#M866009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T06:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: change modes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596159#M866010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey in which format u are displaying your report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alv or list display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and what you have to after changing the data,you need it just for display purpose or you need to store it some where&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ashish pandey on Apr 1, 2008 10:25 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 08:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596159#M866010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T08:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: change modes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596160#M866011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first u design a table control with one fixed column in the first positon. &lt;/P&gt;&lt;P&gt;This can be done using w/sel column. Assign one name here eg: CHOOSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now choose acts as a check box.(ie it returns X if particular row is selected in Table control)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when u click on suppose 2nd row in TC, &lt;/P&gt;&lt;P&gt;it places X. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;supppose ur table contrl is like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kunnr-kna1  kunnr-name1 kunnr-land1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now &lt;/P&gt;&lt;P&gt;Loop at screen.&lt;/P&gt;&lt;P&gt;If Choose = 'X'.&lt;/P&gt;&lt;P&gt;   IF Screen-Name = Kunnr-kna1 or &lt;/P&gt;&lt;P&gt;       Screen-Name = kunnr-name1 or&lt;/P&gt;&lt;P&gt;       Screen-Name = kunnr-land1.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;       Screen-input = 1.&lt;/P&gt;&lt;P&gt;       Modify screen.&lt;/P&gt;&lt;P&gt;    EndIF.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;End loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 08:55:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596160#M866011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T08:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: change modes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596161#M866012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;See the following code. It codes for the same requirement as yours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;MODULE set_status.&lt;/P&gt;&lt;P&gt;MODULE get_t_ctrl_lines.&lt;/P&gt;&lt;P&gt;LOOP AT i_makt WITH CONTROL t_ctrl CURSOR t_ctrl-current_line.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Dynamic screen modifications&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MODULE set_screen_fields.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;LOOP AT i_makt.&lt;/P&gt;&lt;P&gt;FIELD i_makt-pick MODULE check.&lt;/P&gt;&lt;P&gt;FIELD i_makt-zmatnr MODULE zmatnr .&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;MODULE user_command_9000.&lt;/P&gt;&lt;P&gt;In the program, write the following code.&lt;/P&gt;&lt;P&gt;PROGRAM SAPMZTC MESSAGE-ID zz.&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Tables Declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;TABLES: zzz_makt.&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table Declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;DATA : i_makt TYPE STANDARD TABLE OF zzz_makt WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Table control Declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;CONTROLS: t_ctrl TYPE TABLEVIEW USING SCREEN '9000'.&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Variable Declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;DATA : flg, "Flag to set the change mode&lt;/P&gt;&lt;P&gt;ln TYPE i. "No. of records&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 get_T_CTRL_lines 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;Populating data&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 get_t_ctrl_lines OUTPUT.&lt;/P&gt;&lt;P&gt;SELECT zmatnr zmaktx&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE i_makt&lt;/P&gt;&lt;P&gt;FROM zzz_makt.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE i_makt LINES ln.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To make the vertical scroll bar to come on runtime&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;t_ctrl-lines = ln + 100.&lt;/P&gt;&lt;P&gt;ENDMODULE. " get_T_CTRL_lines 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; 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;Triggering event according to the user command&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;DATA :lv_fcode LIKE sy-ucomm, "Function Code&lt;/P&gt;&lt;P&gt;lv_answer(1) type c. "Storing the answer&lt;/P&gt;&lt;P&gt;lv_fcode = sy-ucomm.&lt;/P&gt;&lt;P&gt;CASE lv_fcode.&lt;/P&gt;&lt;P&gt;WHEN 'CHANGE'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Setting the flag to make the table control in editable mode[excluding&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;primary key].&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;flg = 'Y'.&lt;/P&gt;&lt;P&gt;WHEN 'DELETE'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Setting the flag to make the table control in editable mode after&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;deleting the selected line&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;flg = 'Y'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Confirmation of delete&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'POPUP_TO_CONFIRM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;TITLEBAR = 'Confirm'&lt;/P&gt;&lt;P&gt;text_question = 'Are you sure to delete from database?'&lt;/P&gt;&lt;P&gt;TEXT_BUTTON_1 = 'Yes'(001)&lt;/P&gt;&lt;P&gt;TEXT_BUTTON_2 = 'No'(002)&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;ANSWER = lv_answer.&lt;/P&gt;&lt;P&gt;if lv_answer eq '1'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Updating the database table from the internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;UPDATE zzz_makt FROM TABLE i_makt.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Deleting the selected row from the internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DELETE i_makt WHERE pick = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Deleting the selected row from the database table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DELETE FROM zzz_makt WHERE pick = 'X'.&lt;/P&gt;&lt;P&gt;MESSAGE s005 WITH 'Deleted Successfully'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;WHEN 'SAVE'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Inserting new record or updating existing record in database table&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;from the internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MODIFY zzz_makt FROM TABLE i_makt.&lt;/P&gt;&lt;P&gt;MESSAGE s005 WITH 'Saved Successfully'.&lt;/P&gt;&lt;P&gt;WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;SET SCREEN '0'.&lt;/P&gt;&lt;P&gt;WHEN 'EXIT' OR 'CANCEL'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Leaving the program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE. " 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;P&gt;*&amp;amp; Module set_screen_fields 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;Setting the screen fields&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 set_screen_fields OUTPUT.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF flg IS INITIAL.&lt;/P&gt;&lt;P&gt;screen-input = 0.&lt;/P&gt;&lt;P&gt;ELSEIF ( flg EQ 'Y' ).&lt;/P&gt;&lt;P&gt;IF ( ( screen-name = 'I_MAKT-ZMAKTX'&lt;/P&gt;&lt;P&gt;OR screen-name = 'I_MAKT-CHECK1' )&lt;/P&gt;&lt;P&gt;AND t_ctrl-current_line LE ln ) .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Making the screen fields as editable&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;screen-input = 1.&lt;/P&gt;&lt;P&gt;ELSEIF ( ( screen-name = 'I_MAKT-ZMATNR' )&lt;/P&gt;&lt;P&gt;AND t_ctrl-current_line LE ln ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Making the screen field as uneditable&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;screen-input = 0.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modifying the screen after making changes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDMODULE. " set_screen_fields 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; Module zmatnr 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;Appending records to the internal table&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 zmatnr INPUT.&lt;/P&gt;&lt;P&gt;MODIFY i_makt INDEX t_ctrl-current_line.&lt;/P&gt;&lt;P&gt;IF t_ctrl-current_line GT ln.&lt;/P&gt;&lt;P&gt;READ TABLE i_makt WITH KEY zmatnr = i_makt-zmatnr.&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Inserting record if it does not exist in database&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;APPEND i_makt.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MESSAGE i005 WITH 'Material Number' i_makt-zmatnr 'already exists'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE. " zmatnr 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;P&gt;*&amp;amp; Module set_status 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;Setting the GUI status&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 set_status OUTPUT.&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'ZSTATUS'.&lt;/P&gt;&lt;P&gt;SET TITLEBAR 'ZTITLE'.&lt;/P&gt;&lt;P&gt;ENDMODULE. " set_status OUTPUT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Module CHECK INPUT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modify the internal table using the current line in table control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;MODULE check INPUT.&lt;/P&gt;&lt;P&gt;MODIFY i_makt INDEX t_ctrl-current_line.&lt;/P&gt;&lt;P&gt;ENDMODULE. " CHECK INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 09:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596161#M866012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T09:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: change modes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596162#M866013</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 am doing it in normal report program. I dont know how to change it???? Is it possible???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 06:09:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-modes/m-p/3596162#M866013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T06:09:31Z</dc:date>
    </item>
  </channel>
</rss>

