<?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: view maintenance call in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-maintenance-call/m-p/6709695#M1453594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may "include" the dialog maintenance in one custom program, eg. you can build a selection-screen and there call the dialog maintenance with the selected records.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zsample.

TYPE-POOLS: sscr,
            icon.
TABLES: zfsf_airport,
        zfsf_airportt,
        vimsellist,
        sscrfields.
DATA: dba_sellist TYPE TABLE OF vimsellist,
      t_ddes TYPE TABLE OF zfsf_airport,
      smp_dyntxt TYPE smp_dyntxt.
* Parameters
SELECT-OPTIONS: s-zicao FOR zfsf_airport-zicao NO-EXTENSION,
                s-ziata FOR zfsf_airport-ziata NO-EXTENSION,
                s-zland FOR zfsf_airport-zland NO-EXTENSION,
                s-zaurpt FOR zfsf_airportt-zaurpt NO-EXTENSION.
SELECTION-SCREEN FUNCTION KEY 1.
INITIALIZATION.
  PERFORM restrict_select.
  CLEAR smp_dyntxt.
  smp_dyntxt-text = 'F1T'(f1t).
  smp_dyntxt-icon_id = icon_create.
  smp_dyntxt-icon_text = 'F1I'(f1i).
  smp_dyntxt-quickinfo = 'F1Q'(f1q).
  sscrfields-functxt_01 = smp_dyntxt.
AT SELECTION-SCREEN.
  CASE sy-ucomm.
    WHEN 'FC01'.
      CLEAR zfsf_airport-zicao.
      CALL FUNCTION 'VIEW_MAINTENANCE_SINGLE_ENTRY'
           EXPORTING
                action               = 'INS'
                view_name            = 'ZFSF_V_AIRPORT'
                insert_key_not_fixed = 'X'
                no_transport         = 'X'
           CHANGING
                entry                = zfsf_airport-zicao
           EXCEPTIONS
                OTHERS               = 1.
  ENDCASE.
END-OF-SELECTION.
* Build selection
  REFRESH dba_sellist.
  CLEAR vimsellist.
  DEFINE buildkey.
    vimsellist-viewfield = &amp;amp;2.
    vimsellist-and_or = 'AND'.
*    read table &amp;amp;1 index 1.
    case &amp;amp;1-sign.
      when 'I'.
        case &amp;amp;1-option.
          when 'BT'.
            vimsellist-operator = 'GE'.
            write &amp;amp;1-low to vimsellist-value.
            append vimsellist to dba_sellist.
            vimsellist-operator = 'LE'.
            write &amp;amp;1-high to vimsellist-value.
            append vimsellist to dba_sellist.
          when others.
            vimsellist-operator =  &amp;amp;1-option.
            write &amp;amp;1-low to vimsellist-value.
            append vimsellist to dba_sellist.
        endcase.
    endcase.
  END-OF-DEFINITION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Mar 2010 08:27:10 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2010-03-16T08:27:10Z</dc:date>
    <item>
      <title>view maintenance call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-maintenance-call/m-p/6709692#M1453591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the use of fm. "view_maintenance_call" and how will i use it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 07:18:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-maintenance-call/m-p/6709692#M1453591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T07:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: view maintenance call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-maintenance-call/m-p/6709693#M1453592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(Use in a program of a generated table maintenance dialog created via SE54/SE11 as in SM30/SM34)&lt;/P&gt;&lt;P&gt;First read FM documentation and online information like [Lowest level entry|http://help.sap.com/saphelp_sm32/helpdata/en/2a/fa0091493111d182b70000e829fbfe/content.htm] in [Extended table maintenance|http://help.sap.com/saphelp_sm32/helpdata/en/2a/fa0029493111d182b70000e829fbfe/frameset.htm]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 07:21:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-maintenance-call/m-p/6709693#M1453592</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-03-16T07:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: view maintenance call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-maintenance-call/m-p/6709694#M1453593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually i havent used this fm at all.  i have maintained the table by using sm30.  so kindly explain it by a code.  why will i use this fm  if we can maintain the table by sm30?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 08:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-maintenance-call/m-p/6709694#M1453593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T08:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: view maintenance call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-maintenance-call/m-p/6709695#M1453594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may "include" the dialog maintenance in one custom program, eg. you can build a selection-screen and there call the dialog maintenance with the selected records.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zsample.

TYPE-POOLS: sscr,
            icon.
TABLES: zfsf_airport,
        zfsf_airportt,
        vimsellist,
        sscrfields.
DATA: dba_sellist TYPE TABLE OF vimsellist,
      t_ddes TYPE TABLE OF zfsf_airport,
      smp_dyntxt TYPE smp_dyntxt.
* Parameters
SELECT-OPTIONS: s-zicao FOR zfsf_airport-zicao NO-EXTENSION,
                s-ziata FOR zfsf_airport-ziata NO-EXTENSION,
                s-zland FOR zfsf_airport-zland NO-EXTENSION,
                s-zaurpt FOR zfsf_airportt-zaurpt NO-EXTENSION.
SELECTION-SCREEN FUNCTION KEY 1.
INITIALIZATION.
  PERFORM restrict_select.
  CLEAR smp_dyntxt.
  smp_dyntxt-text = 'F1T'(f1t).
  smp_dyntxt-icon_id = icon_create.
  smp_dyntxt-icon_text = 'F1I'(f1i).
  smp_dyntxt-quickinfo = 'F1Q'(f1q).
  sscrfields-functxt_01 = smp_dyntxt.
AT SELECTION-SCREEN.
  CASE sy-ucomm.
    WHEN 'FC01'.
      CLEAR zfsf_airport-zicao.
      CALL FUNCTION 'VIEW_MAINTENANCE_SINGLE_ENTRY'
           EXPORTING
                action               = 'INS'
                view_name            = 'ZFSF_V_AIRPORT'
                insert_key_not_fixed = 'X'
                no_transport         = 'X'
           CHANGING
                entry                = zfsf_airport-zicao
           EXCEPTIONS
                OTHERS               = 1.
  ENDCASE.
END-OF-SELECTION.
* Build selection
  REFRESH dba_sellist.
  CLEAR vimsellist.
  DEFINE buildkey.
    vimsellist-viewfield = &amp;amp;2.
    vimsellist-and_or = 'AND'.
*    read table &amp;amp;1 index 1.
    case &amp;amp;1-sign.
      when 'I'.
        case &amp;amp;1-option.
          when 'BT'.
            vimsellist-operator = 'GE'.
            write &amp;amp;1-low to vimsellist-value.
            append vimsellist to dba_sellist.
            vimsellist-operator = 'LE'.
            write &amp;amp;1-high to vimsellist-value.
            append vimsellist to dba_sellist.
          when others.
            vimsellist-operator =  &amp;amp;1-option.
            write &amp;amp;1-low to vimsellist-value.
            append vimsellist to dba_sellist.
        endcase.
    endcase.
  END-OF-DEFINITION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 08:27:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-maintenance-call/m-p/6709695#M1453594</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-03-16T08:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: view maintenance call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-maintenance-call/m-p/6709696#M1453595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;  buildkey s-zicao 'ZICAO'.
  buildkey s-ziata 'ZIATA'.
  buildkey s-zland 'ZLAND'.
  buildkey s-zaurpt 'ZAURPT'.
* Call dialog
  CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
       EXPORTING
            action      = 'U'
            view_name   = 'ZFSF_V_AIRPORT'
       TABLES
            dba_sellist = dba_sellist.
* Restrict select-option 
FORM restrict_select.
  DATA: restrict TYPE sscr_restrict,
        opt_list TYPE sscr_opt_list,
        ass TYPE sscr_ass.
  CLEAR opt_list.
  MOVE 'LIM' TO opt_list-name.
  MOVE 'X' TO: opt_list-options-bt,
               opt_list-options-cp,
               opt_list-options-eq,
               opt_list-options-ge,
               opt_list-options-gt,
               opt_list-options-le,
               opt_list-options-lt,
*               opt_list-options-nb,
               opt_list-options-ne,
               opt_list-options-np.
  APPEND opt_list TO restrict-opt_list_tab.
  CLEAR ass.
  MOVE: 'A'          TO ass-kind,
        'I'          TO ass-sg_main,
        'LIM'        TO ass-op_main.
  APPEND ass TO restrict-ass_tab.
* Call FM to restrict SO
  CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
       EXPORTING
            restriction = restrict
       EXCEPTIONS
            OTHERS      = 1.
ENDFORM.                    " restrict_select&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 08:28:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-maintenance-call/m-p/6709696#M1453595</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-03-16T08:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: view maintenance call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-maintenance-call/m-p/6709697#M1453596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please explain the utility of " view_maintenance_call"  and where shud i use it.  i can use tmg from se11 or using a maintenance view on a table, then why shud i go for this func module?    pls explain elaborately&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 20:52:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-maintenance-call/m-p/6709697#M1453596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T20:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: view maintenance call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-maintenance-call/m-p/6709698#M1453597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - This FM &lt;U&gt;is&lt;/U&gt; documented. Please ask a specific question - post locked

Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 21:04:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-maintenance-call/m-p/6709698#M1453597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T21:04:07Z</dc:date>
    </item>
  </channel>
</rss>

