<?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: Time out when running program in Foreground in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-when-running-program-in-foreground/m-p/4145962#M991294</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 experianced similar problem with one of the transaction in HR Payroll. There is a setting in Basis through which the interval for time out can be increased. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basis guys should be asked to increase the time out interval for foreground tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jul 2008 21:26:10 GMT</pubDate>
    <dc:creator>former_member214498</dc:creator>
    <dc:date>2008-07-16T21:26:10Z</dc:date>
    <item>
      <title>Time out when running program in Foreground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-when-running-program-in-foreground/m-p/4145957#M991289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing BOM explosion on 4911 materials with one material at a time .After the BOM explosion I need to make sure that I get the correct component by getting the MRP controllers for those components and comparing them with the one on selection screen . &lt;/P&gt;&lt;P&gt;This is the code below. Please advise and your thoughts on this . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Teresa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT t_mattmp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT matnr&lt;/P&gt;&lt;P&gt;           stlan&lt;/P&gt;&lt;P&gt;           stlal&lt;/P&gt;&lt;P&gt;    INTO (mkal-matnr,&lt;/P&gt;&lt;P&gt;           mkal-stlan,&lt;/P&gt;&lt;P&gt;           mkal-stlal)&lt;/P&gt;&lt;P&gt;    FROM mkal&lt;/P&gt;&lt;P&gt;    WHERE werks = p_pwwrk AND&lt;/P&gt;&lt;P&gt;          verid IN s_veri1 AND&lt;/P&gt;&lt;P&gt;          matnr = t_mattmp-nrmit.&lt;/P&gt;&lt;P&gt;    ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF syst-subrc = 0 .&lt;/P&gt;&lt;P&gt;REFRESH:   xstpox,&lt;/P&gt;&lt;P&gt;              xmatcat.&lt;/P&gt;&lt;P&gt;  CLEAR: xstpox,&lt;/P&gt;&lt;P&gt;         xmatcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      ftrel                 = ftrel&lt;/P&gt;&lt;P&gt;      altvo                 = pm_altvo&lt;/P&gt;&lt;P&gt;      aufsw                 = ' '&lt;/P&gt;&lt;P&gt;      auskz                 = pm_ausch&lt;/P&gt;&lt;P&gt;      bagrp                 = pm_bagrp&lt;/P&gt;&lt;P&gt;      beikz                 = pm_beikz&lt;/P&gt;&lt;P&gt;      bessl                 = pm_bessl&lt;/P&gt;&lt;P&gt;      bgixo                 = ' '&lt;/P&gt;&lt;P&gt;      brems                 = ' '&lt;/P&gt;&lt;P&gt;      capid                 = 'PP01'&lt;/P&gt;&lt;P&gt;      datuv                 = syst-datum&lt;/P&gt;&lt;P&gt;      emeng                 = qty&lt;/P&gt;&lt;P&gt;      erskz                 = pm_erskz&lt;/P&gt;&lt;P&gt;      erssl                 = pm_erssl&lt;/P&gt;&lt;P&gt;      mbwls                 = ' '&lt;/P&gt;&lt;P&gt;      mtnrv                 = t_mattmp-nrmit&lt;/P&gt;&lt;P&gt;      mktls                 = 'X'&lt;/P&gt;&lt;P&gt;      mehrs                 = ' '&lt;/P&gt;&lt;P&gt;      mmory                 = ' '&lt;/P&gt;&lt;P&gt;      postp                 = pm_postp&lt;/P&gt;&lt;P&gt;      sanko                 = pm_sanko&lt;/P&gt;&lt;P&gt;      sanfr                 = pm_sanfe&lt;/P&gt;&lt;P&gt;      sanka                 = pm_sanka&lt;/P&gt;&lt;P&gt;      sanin                 = pm_sanin&lt;/P&gt;&lt;P&gt;      sanvs                 = pm_sanvs&lt;/P&gt;&lt;P&gt;      svwvo                 = 'X'&lt;/P&gt;&lt;P&gt;      rndkz                 = ' '&lt;/P&gt;&lt;P&gt;      rvrel                 = pm_rvrel&lt;/P&gt;&lt;P&gt;      schgt                 = pm_schgt&lt;/P&gt;&lt;P&gt;      stkkz                 = pm_stkkz&lt;/P&gt;&lt;P&gt;      stlal                 = mkal-stlal&lt;/P&gt;&lt;P&gt;      stlan                 = mkal-stlan&lt;/P&gt;&lt;P&gt;      werks                 = p_pwwrk&lt;/P&gt;&lt;P&gt;      vrsvo                 = 'X'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      topmat                = xcstmat&lt;/P&gt;&lt;P&gt;      dstst                 = xfeld&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      stb                   = xstpox&lt;/P&gt;&lt;P&gt;      matcat                = xmatcat&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      alt_not_found         = 1&lt;/P&gt;&lt;P&gt;      call_invalid          = 2&lt;/P&gt;&lt;P&gt;      material_not_found    = 3&lt;/P&gt;&lt;P&gt;      missing_authorization = 4&lt;/P&gt;&lt;P&gt;      no_bom_found          = 5&lt;/P&gt;&lt;P&gt;      no_plant_data         = 6&lt;/P&gt;&lt;P&gt;      no_suitable_bom_found = 7&lt;/P&gt;&lt;P&gt;      OTHERS                = 8.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT xstpox.&lt;/P&gt;&lt;P&gt;        CLEAR marc-dispo.&lt;/P&gt;&lt;P&gt;        SELECT SINGLE dispo&lt;/P&gt;&lt;P&gt;          INTO marc-dispo&lt;/P&gt;&lt;P&gt;          FROM marc&lt;/P&gt;&lt;P&gt;          WHERE werks = p_pwwrk&lt;/P&gt;&lt;P&gt;            AND matnr = xstpox-idnrk&lt;/P&gt;&lt;P&gt;            AND dispo IN s_disp.&lt;/P&gt;&lt;P&gt;        IF syst-subrc = 0 .&lt;/P&gt;&lt;P&gt;          MOVE xstpox-idnrk TO t_matc-matc.&lt;/P&gt;&lt;P&gt;          MOVE t_mattmp-nrmit TO t_matc-nrmit.&lt;/P&gt;&lt;P&gt;          APPEND t_matc.&lt;/P&gt;&lt;P&gt;          EXIT.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 20:41:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-when-running-program-in-foreground/m-p/4145957#M991289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T20:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Time out when running program in Foreground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-when-running-program-in-foreground/m-p/4145958#M991290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Teresa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please run a trace on your program using ST05 to find out which segment in your code is taking more time. Is it the select/call function/loop....endloop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The you can try to optimize that section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 20:45:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-when-running-program-in-foreground/m-p/4145958#M991290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T20:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Time out when running program in Foreground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-when-running-program-in-foreground/m-p/4145959#M991291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;select matnr werks dispo
       into table itab
for all entries in xstpox
 where  matnr in xstpox-idnrk
 and werks = p_pwwrk
AND dispo IN s_disp.


loop at ur table ...
read table  itab with key ...
IF syst-subrc = 0 .
MOVE xstpox-idnrk TO t_matc-matc.
MOVE t_mattmp-nrmit TO t_matc-nrmit.
APPEND t_matc. 
EXIT.
ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 20:47:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-when-running-program-in-foreground/m-p/4145959#M991291</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-07-16T20:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Time out when running program in Foreground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-when-running-program-in-foreground/m-p/4145960#M991292</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;In my opinion you can break the code in two programs. One which contains the FM where BOM is exploded in background. After the BOM explosion, call the second program and pass the exploded materials to it and check for the materials with the selection screen parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a thought. Let me know once u try it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Anand Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 20:52:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-when-running-program-in-foreground/m-p/4145960#M991292</guid>
      <dc:creator>former_member189420</dc:creator>
      <dc:date>2008-07-16T20:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Time out when running program in Foreground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-when-running-program-in-foreground/m-p/4145961#M991293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see much that you can do other than run it in the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 20:56:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-when-running-program-in-foreground/m-p/4145961#M991293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T20:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Time out when running program in Foreground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-when-running-program-in-foreground/m-p/4145962#M991294</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 experianced similar problem with one of the transaction in HR Payroll. There is a setting in Basis through which the interval for time out can be increased. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basis guys should be asked to increase the time out interval for foreground tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 21:26:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-when-running-program-in-foreground/m-p/4145962#M991294</guid>
      <dc:creator>former_member214498</dc:creator>
      <dc:date>2008-07-16T21:26:10Z</dc:date>
    </item>
  </channel>
</rss>

