<?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: system hanging in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843063#M1318330</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 have written select on view as below the issue is it is taking time to get records of 37 and among those records 8 are correct and others are duplicate.....how to reduce the time and  how to get non duplicate records in it_ekko...even i used select distinct ,but  i am getting onli 8  correct records but the time is not reduced.....please help me in solving this issue..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ebeln&lt;/P&gt;&lt;P&gt;             lifnr&lt;/P&gt;&lt;P&gt;             mtart_i&lt;/P&gt;&lt;P&gt;        FROM wb2_v_ekko_ekpo2&lt;/P&gt;&lt;P&gt;        INTO TABLE it_ekko&lt;/P&gt;&lt;P&gt;        WHERE mtart_i = v_fieldval."wa_shphd-mtart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2009 11:16:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-28T11:16:21Z</dc:date>
    <item>
      <title>system hanging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843057#M1318324</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 have written f4 help for mtart,lifnr as below......in development system i m getting f4 values for both mtart and lifnr whereas in quality for lifnr the system is hanging.............can anyone help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE f4_mtart INPUT.&lt;/P&gt;&lt;P&gt;  SELECT mtart&lt;/P&gt;&lt;P&gt;        FROM ekpo&lt;/P&gt;&lt;P&gt;        INTO TABLE it_mtart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    SORT it_mtart BY mtart.&lt;/P&gt;&lt;P&gt;    DELETE ADJACENT DUPLICATES FROM it_mtart COMPARING mtart.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        retfield        = 'MTART'&lt;/P&gt;&lt;P&gt;        dynpprog        = c_prog&lt;/P&gt;&lt;P&gt;        dynpnr          = sy-dynnr&lt;/P&gt;&lt;P&gt;        dynprofield     = 'WA_SHPHD-MTART'&lt;/P&gt;&lt;P&gt;        value_org       = 'S'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        value_tab       = it_mtart&lt;/P&gt;&lt;P&gt;        return_tab      = it_return&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        parameter_error = 1&lt;/P&gt;&lt;P&gt;        no_values_found = 2&lt;/P&gt;&lt;P&gt;        OTHERS          = 3.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " F4_MTART  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE f4_lifnr INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF it_mtart[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT ebeln&lt;/P&gt;&lt;P&gt;           mtart&lt;/P&gt;&lt;P&gt;      FROM ekpo&lt;/P&gt;&lt;P&gt;      INTO TABLE it_ekpo&lt;/P&gt;&lt;P&gt;      FOR ALL ENTRIES IN it_mtart&lt;/P&gt;&lt;P&gt;      WHERE mtart = it_mtart-mtart.&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      SELECT lifnr&lt;/P&gt;&lt;P&gt;        FROM ekko&lt;/P&gt;&lt;P&gt;        INTO TABLE it_lfa1&lt;/P&gt;&lt;P&gt;        FOR ALL ENTRIES IN it_ekpo&lt;/P&gt;&lt;P&gt;        WHERE ebeln = it_ekpo-ebeln.&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        SORT it_lfa1 BY lifnr.&lt;/P&gt;&lt;P&gt;        DELETE ADJACENT DUPLICATES FROM it_lfa1 COMPARING lifnr.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            retfield        = 'LIFNR'&lt;/P&gt;&lt;P&gt;            dynpprog        = c_prog&lt;/P&gt;&lt;P&gt;            dynpnr          = sy-dynnr&lt;/P&gt;&lt;P&gt;            dynprofield     = 'WA_SHPHD-LIFNR'&lt;/P&gt;&lt;P&gt;            value_org       = 'S'&lt;/P&gt;&lt;P&gt;          TABLES&lt;/P&gt;&lt;P&gt;            value_tab       = it_lfa1&lt;/P&gt;&lt;P&gt;            return_tab      = it_return&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            parameter_error = 1&lt;/P&gt;&lt;P&gt;            no_values_found = 2&lt;/P&gt;&lt;P&gt;            OTHERS          = 3.&lt;/P&gt;&lt;P&gt;        IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " F4_LIFNR  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 05:56:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843057#M1318324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T05:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: system hanging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843058#M1318325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose there are many more data available in Quality system than in development.&lt;/P&gt;&lt;P&gt;Try to optimize your [SELECT|http://help.sap.com/abapdocu/en/ABAPSELECT.htm], use [DISTINCT|http://help.sap.com/abapdocu/en/ABAPSELECT_CLAUSE_LINES.htm#!ABAP_ALTERNATIVE_2@2@] and check existence of indexes. (use tools like [SE30|http://help.sap.com/saphelp_nw70/helpdata/en/c6/617cafe68c11d2b2ab080009b43351/frameset.htm] or[ ST05|http://help.sap.com/saphelp_nw70/helpdata/en/d1/801f7c454211d189710000e8322d00/frameset.htm] to analyze SQL execution)&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>Mon, 06 Jul 2009 06:04:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843058#M1318325</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-07-06T06:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: system hanging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843059#M1318326</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;It will be very simple if you give parameter names as below;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS p_mtart TYPE ekpo-mtart.
PARAMETERS p_lifnr TYPE ekko-lifnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code will give you the default search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why are you using F4IF_INT_TABLE_VALUE_REQUEST FM ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 06:04:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843059#M1318326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T06:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: system hanging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843060#M1318327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is module pool program so i used that function module&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 06:13:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843060#M1318327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T06:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: system hanging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843061#M1318328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your problem can be solved this way. first select the values you want inside an internal table(you can limit tha values being selected here to prevent your system from hanging) and then pass that internal table to the FM for diplaying F4 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This FM is used to dsiplay values stored in an internal table as input help.This FM is used to program our own custom help if no such input help exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB. If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = field from int table whose value will be returned 
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
DYNPROFIELD = 'screen field'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = internal table whose values will be shown.
RETURN_TAB = internal table of type DDSHRETVAL 
EXCEPTIONS
parameter_error = 1
no_values_found = 2
others = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 06:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843061#M1318328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T06:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: system hanging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843062#M1318329</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;If you declare the variable with the exact type you can have the standard F4 help by default in the module pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 06:35:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843062#M1318329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T06:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: system hanging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843063#M1318330</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 have written select on view as below the issue is it is taking time to get records of 37 and among those records 8 are correct and others are duplicate.....how to reduce the time and  how to get non duplicate records in it_ekko...even i used select distinct ,but  i am getting onli 8  correct records but the time is not reduced.....please help me in solving this issue..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ebeln&lt;/P&gt;&lt;P&gt;             lifnr&lt;/P&gt;&lt;P&gt;             mtart_i&lt;/P&gt;&lt;P&gt;        FROM wb2_v_ekko_ekpo2&lt;/P&gt;&lt;P&gt;        INTO TABLE it_ekko&lt;/P&gt;&lt;P&gt;        WHERE mtart_i = v_fieldval."wa_shphd-mtart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 11:16:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843063#M1318330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-28T11:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: system hanging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843064#M1318331</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;After SELECT statement use DELETE ADJACENT DUPLICATES statement for ur internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;lakshman.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 11:27:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843064#M1318331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-28T11:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: system hanging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843065#M1318332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after that i did as below........but the problem is with the select statement it is taking time.........how to reduce that time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      SELECT ebeln&lt;/P&gt;&lt;P&gt;             lifnr&lt;/P&gt;&lt;P&gt;             mtart_i&lt;/P&gt;&lt;P&gt;        FROM wb2_v_ekko_ekpo2&lt;/P&gt;&lt;P&gt;        INTO TABLE it_ekko&lt;/P&gt;&lt;P&gt;        WHERE mtart_i = v_fieldval."wa_shphd-mtart.&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        SORT it_ekko BY ebeln lifnr mtart.&lt;/P&gt;&lt;P&gt;        DELETE ADJACENT DUPLICATES FROM it_ekko COMPARING ebeln lifnr mtart.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: NEED  HELP on Jul 28, 2009 5:01 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 11:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-hanging/m-p/5843065#M1318332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-28T11:31:00Z</dc:date>
    </item>
  </channel>
</rss>

