<?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: Dual Nature for Abap code. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842740#M44528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Subramanian,&lt;/P&gt;&lt;P&gt;If on change makes the problem, how its working in Debugging?&lt;/P&gt;&lt;P&gt;And as you said i have tried by using at end of also. it does nt work.&lt;/P&gt;&lt;P&gt;To use function modules, whether we require some authorization?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lijo Joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Dec 2004 10:42:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-12-21T10:42:08Z</dc:date>
    <item>
      <title>Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842728#M44516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Requirment is &lt;/P&gt;&lt;P&gt;For a Material,&lt;/P&gt;&lt;P&gt;Orders  required quantity&lt;/P&gt;&lt;P&gt;components for that material&lt;/P&gt;&lt;P&gt;their requirment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my program takes material and orders from RESB table.&lt;/P&gt;&lt;P&gt;to get components i am looping through header table using Function module -'CS_BOM_EXPL_MAT_V2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i do the debugginf i am able to see that data is going properly to internal table. but when i execute, Components data is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any body can help me in this?&lt;/P&gt;&lt;P&gt;What might be the cause?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lijo Joseph&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 06:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842728#M44516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-21T06:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842729#M44517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will be really difficult to address your issue with the info. you have given. Can you post the code here , that will help us to analyze it better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 06:50:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842729#M44517</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2004-12-21T06:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842730#M44518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT aufnr matnr werks bdmng meins bdter INTO CORRESPONDING FIELDS OF TABLE it_resb FROM resb WHERE aufnr IN s_aufnr AND matnr IN s_matnr.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE 'No Values Found' TYPE 'I'.&lt;/P&gt;&lt;P&gt;  LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Checking Status of order.&lt;/P&gt;&lt;P&gt;*************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; LOOP AT it_afko.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CALL FUNCTION 'ZPP_VALID_REL_ORDER'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       aufnr = it_afko-lead_aufnr&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       valid = it_afko-stat.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MODIFY it_afko TRANSPORTING stat.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; DELETE it_afko WHERE stat = 'N'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE it_resb WHERE aufnr = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT it_resb BY matnr.&lt;/P&gt;&lt;P&gt;LOOP AT it_resb.&lt;/P&gt;&lt;P&gt;  ON CHANGE OF it_resb-matnr.&lt;/P&gt;&lt;P&gt;    FORMAT COLOR COL_HEADING ON.&lt;/P&gt;&lt;P&gt;    WRITE:/ sy-vline,it_resb-matnr,sy-uline.&lt;/P&gt;&lt;P&gt;    FORMAT COLOR OFF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDON.&lt;/P&gt;&lt;P&gt;  WRITE:/ sy-vline,it_resb-aufnr,it_resb-bdmng,it_resb-meins.&lt;/P&gt;&lt;P&gt;  AT END OF matnr.&lt;/P&gt;&lt;P&gt;      READ TABLE it_resb INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;      SUM.&lt;/P&gt;&lt;P&gt;      l_bdmng = it_resb-bdmng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM bom_explode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT stb.&lt;/P&gt;&lt;P&gt;        WRITE:/ sy-vline,stb-idnrk,stb-mnglg.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE: sy-uline.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ZCA_REPORT_HEADER'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      hdval  = 'Cutting List For Stores'&lt;/P&gt;&lt;P&gt;      rpsize = 130&lt;/P&gt;&lt;P&gt;      plant  = 'BLR'.&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;      Form  bom_explode&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        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;FORM bom_explode .&lt;/P&gt;&lt;P&gt;&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;      aufsw                 = ' '&lt;/P&gt;&lt;P&gt;      aumng                 = 0&lt;/P&gt;&lt;P&gt;      capid                 = 'PP01'&lt;/P&gt;&lt;P&gt;      datuv                 = sy-datum&lt;/P&gt;&lt;P&gt;      ehndl                 = '1'&lt;/P&gt;&lt;P&gt;      emeng                 = it_resb-bdmng&lt;/P&gt;&lt;P&gt;      mktls                 = 'X'&lt;/P&gt;&lt;P&gt;      mehrs                 = 'X'&lt;/P&gt;&lt;P&gt;      mtnrv                 = it_resb-matnr&lt;/P&gt;&lt;P&gt;      stpst                 = 0&lt;/P&gt;&lt;P&gt;      svwvo                 = 'X'&lt;/P&gt;&lt;P&gt;      werks                 = it_resb-werks&lt;/P&gt;&lt;P&gt;      vrsvo                 = 'X'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      topmat                = topmat&lt;/P&gt;&lt;P&gt;      dstst                 = dstst&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      stb                   = stb&lt;/P&gt;&lt;P&gt;      matcat                = matcat&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;      conversion_error      = 8&lt;/P&gt;&lt;P&gt;      OTHERS                = 9.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    WRITE:/ sy-uline.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " bom_explode&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 07:40:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842730#M44518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-21T07:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842731#M44519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The subject line of this message has been very interesting. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some questions that come to my mind are :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Do you see the output perfectly in debugging mode ?&lt;/P&gt;&lt;P&gt;b) Is the subroutine &amp;lt;i&amp;gt;bom_explode&amp;lt;/i&amp;gt; working as you have intended it to ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something to try :&lt;/P&gt;&lt;P&gt;a) In debugging mode, try pressing F6 when it comes to the &amp;lt;b&amp;gt;PERFORM bom_explode&amp;lt;/b&amp;gt;, line, and check whether the internal table still has proper values ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) Try the same with F5 and check again if it has proper values ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c) If it does not, check whether the values of it_resb internal table are proper while  you pass it to the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d) Instead of using '&amp;lt;b&amp;gt;ON CHANGE OF&amp;lt;/b&amp;gt;', try &amp;lt;b&amp;gt;'AT NEW MATNR'&amp;lt;/b&amp;gt;. It is a little dangerous to use 'ON CHANGE OF' in LOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I have seen, there might be some oversight/trivial issue which needs to be solved with patience.&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;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 07:55:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842731#M44519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-21T07:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842732#M44520</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;Its clear now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are looping at it_resb and within that loop &amp;lt;b&amp;gt;at end of matnr&amp;lt;/b&amp;gt; you have &amp;lt;b&amp;gt;PERFORM bom_explode&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that perform you are calling FM 'CS_BOM_EXPL_MAT_V2' and passing   it_resb-bdmng ,it_resb-matnr and it_resb-werks .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case since the perfrom is within at end of and end at the vales of it_resb-bdmng &amp;amp; it_resb-werks will be  ******* , only the value of matnr will be there . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am surprised that it worked in debuggin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try moving the it_resb to a work area before using at end of stt. and use that to pass it to the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i am clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 09:06:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842732#M44520</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2004-12-21T09:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842733#M44521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before the subroutine call, the read statement     &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
READ TABLE it_resb INDEX sy-tabix.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would populate the header. Correct me if I'm wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joseph :&lt;/P&gt;&lt;P&gt;Sorry if this sounds a little silly, but did you, by accident declare another STB internal table within the subroutine? Because, in that case, the declaration you have made globally will always be empty. And in the debugging mode you will still be able to see the entries in the internal table (the one that's declared locally)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do get back on this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 09:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842733#M44521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-21T09:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842734#M44522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)I am getting Result perfectly in Debugging mode when i go through it by pressing f6. &lt;/P&gt;&lt;P&gt;2)Subroutine is working accrding to the expectation when i do debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When debugging comes to Internal table data is populated in internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me clear one thing.. Why you have mention use of on change is danger? in what aspect?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lijo Joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 09:58:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842734#M44522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-21T09:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842735#M44523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Poornanand Mandalika  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AS you said my read statement populate the header.&lt;/P&gt;&lt;P&gt;I have not declared two internal tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting output properly while i do debugging by pressing f6 and excecute it.&lt;/P&gt;&lt;P&gt;If required i will write whole code in the forum. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lijo Joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 10:04:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842735#M44523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-21T10:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842736#M44524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry i missed the stt. you are correct, that would populate the header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joseph :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you come out of the perform, and try to loop at stb, are the values available in stb. If not then i would assume that stb is not declared globally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 10:09:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842736#M44524</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2004-12-21T10:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842737#M44525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Durai raj,&lt;/P&gt;&lt;P&gt;I am getting data in STB after performing BOM explode.&lt;/P&gt;&lt;P&gt;Even i get desired output if i go through debugging.&lt;/P&gt;&lt;P&gt;Only if i execute directly, i am loosing some data which comes from BOM Function module.&lt;/P&gt;&lt;P&gt;Will it be because of lack of authorizations?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lijo Joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 10:26:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842737#M44525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-21T10:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842738#M44526</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 still feel the problem should not lie with/without debugging. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below note has been fetched from SAP Help, why ON CHANGE OF should not be used with LOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Note

There are special control structures for processing control breaks in 

LOOPs on internal tables or extract datasets ( 
AT ).

ON CHANGE OF is unsuitable for recognizing control levels
in loops of this type because it always creates a global 
auxiliary field which is used to check for changes. This 
global auxiliary field is only changed in the relevant ON 
CHANGE OF statement. It is not reset when the processing
enters loops or subroutines, so unwanted effects can 
occur if the loop or subroutine is executed again. Also, 
since it is set to its initial value when created (like 
any other field), any ON CHANGE OF processing will be 
executed after the first test, unless the contents of the 
field concerned happen to be identical to the initial 
value.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 10:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842738#M44526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-21T10:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842739#M44527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try one thing out - include the write statements in the subroutine itself. For example,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT it_resb.

  ................................
  ................................
  ................................
  ................................

  AT END OF matnr.

    READ TABLE it_resb INDEX sy-tabix.
    SUM.
    l_bdmng = it_resb-bdmng.

    PERFORM bom_explode.

    WRITE: sy-uline.

  ENDAT.

ENDLOOP.


FORM bom_explode .

  CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
    EXPORTING
      .....      
      .....
      .....
    TABLES
      stb = stb
      matcat = matcat
    EXCEPTIONS
      .....      
      .....

  IF sy-subrc &amp;lt;&amp;gt; 0.
  ELSE.
    WRITE:/ sy-uline.
  ENDIF.

    LOOP AT stb.
      WRITE:/ sy-vline,stb-idnrk,stb-mnglg.
    ENDLOOP.

endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that still doesn't work, then please paste your entire code here in the forum. We will be able to help you better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please note that the ON CHANGE OF  block will fail in some cases eg: where the matnr is initial for the first (few) loop pass(es).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to see your problem resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 10:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842739#M44527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-21T10:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842740#M44528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Subramanian,&lt;/P&gt;&lt;P&gt;If on change makes the problem, how its working in Debugging?&lt;/P&gt;&lt;P&gt;And as you said i have tried by using at end of also. it does nt work.&lt;/P&gt;&lt;P&gt;To use function modules, whether we require some authorization?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lijo Joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 10:42:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842740#M44528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-21T10:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842741#M44529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has got nothing to do with authorizations. If you are saying that it is working in the debug-mode, it means that you have the authorizations required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that's clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also please refer to my post below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. : As and when you read a response, if you like it, please reward the points to the person posting the message. Click the yellow icon in the Post's header to do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 10:46:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842741#M44529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-21T10:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842742#M44530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Anand said, it has nothing to do with authorization as its working in debug mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i thinks its time that you have to provide us the full code here to analyze the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 10:57:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842742#M44530</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2004-12-21T10:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842743#M44531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lijo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you copy-paste the program here. I do not have the answer to the question "How is this 'On Change Of' working properly in debugging mode?". Probably one of those weird days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Anand has already said, there is no authorisation problem. Had this been an issue, even in debugging, it would not work. First , you need to remove the floating theory that, ABAP compiler has dual roles. (If this really is true, my goodness, can't even imagine..)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 10:58:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842743#M44531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-21T10:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842744#M44532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends, here is the code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zpp_cut_mat_issue LINE-SIZE 130 LINE-COUNT 65(3) NO STANDARD PAGE HEADING    .&lt;/P&gt;&lt;P&gt;*************************************************************************&lt;/P&gt;&lt;P&gt;*Tables&lt;/P&gt;&lt;P&gt;*************************************************************************&lt;/P&gt;&lt;P&gt;TABLES : resb,makt,marc,afko,mara,aufk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************************************************************************&lt;/P&gt;&lt;P&gt;*Inputs&lt;/P&gt;&lt;P&gt;*************************************************************************&lt;/P&gt;&lt;P&gt;*PARAMETERS :&lt;/P&gt;&lt;P&gt;*Lead Production Order No.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             P_AUFNR LIKE AFPO-AUFNR OBLIGATORY.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT-OPTIONS :&lt;/P&gt;&lt;P&gt;*From No. to No.&lt;/P&gt;&lt;P&gt;              s_matnr FOR resb-matnr ,&lt;/P&gt;&lt;P&gt;              s_bdter FOR resb-bdter ,  "&lt;/P&gt;&lt;P&gt;              s_ekgrp FOR marc-ekgrp,&lt;/P&gt;&lt;P&gt;              s_mtyp FOR mara-extwg NO-EXTENSION NO INTERVALS ," TYPE  C OBLIGATORY.&lt;/P&gt;&lt;P&gt;              s_aufnr FOR resb-aufnr,  "production order&lt;/P&gt;&lt;P&gt;              s_dispo FOR marc-dispo,  "MRP type&lt;/P&gt;&lt;P&gt;              s_erdat FOR aufk-erdat. "prdn order creation date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS :&lt;/P&gt;&lt;P&gt;             p_print TYPE c AS CHECKBOX,&lt;/P&gt;&lt;P&gt;             p_sum TYPE c AS CHECKBOX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES :      r_resb FOR afko-rsnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************************************************&lt;/P&gt;&lt;P&gt;*Constants&lt;/P&gt;&lt;P&gt;********************************************************************&lt;/P&gt;&lt;P&gt;*************************************************************************&lt;/P&gt;&lt;P&gt;*Type Pools&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;TYPE-POOLS : cs01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************************************************************************&lt;/P&gt;&lt;P&gt;*Data Declaration&lt;/P&gt;&lt;P&gt;*************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :&lt;/P&gt;&lt;P&gt;       ismast TYPE cs01_mastb OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       topmat TYPE cstmat OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       stb TYPE stpox OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       matcat TYPE cscmat OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       dstst TYPE csdata-xfeld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA it_resb LIKE resb OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT aufnr matnr werks bdmng meins bdter INTO CORRESPONDING FIELDS OF TABLE it_resb FROM resb WHERE aufnr IN s_aufnr AND matnr IN s_matnr.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE 'No Values Found' TYPE 'I'.&lt;/P&gt;&lt;P&gt;    LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DELETE it_resb WHERE aufnr = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT it_resb BY matnr.&lt;/P&gt;&lt;P&gt;  LOOP AT it_resb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Writing header&lt;/P&gt;&lt;P&gt;    ON CHANGE OF it_resb-matnr.&lt;/P&gt;&lt;P&gt;      FORMAT COLOR COL_HEADING ON.&lt;/P&gt;&lt;P&gt;      WRITE:/ sy-vline,it_resb-matnr,sy-uline.&lt;/P&gt;&lt;P&gt;      FORMAT COLOR OFF.&lt;/P&gt;&lt;P&gt;      DATA: l_bdmng LIKE resb-bdmng.&lt;/P&gt;&lt;P&gt;    ENDON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Writing Line Items.&lt;/P&gt;&lt;P&gt;    WRITE:/ sy-vline,it_resb-aufnr,it_resb-bdmng,it_resb-meins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    AT END OF matnr.&lt;/P&gt;&lt;P&gt;*Writing Components Details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        READ TABLE it_resb INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;        SUM.&lt;/P&gt;&lt;P&gt;        l_bdmng = it_resb-bdmng.&lt;/P&gt;&lt;P&gt;*Getting Components&lt;/P&gt;&lt;P&gt;        PERFORM bom_explode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Displaying Components.&lt;/P&gt;&lt;P&gt;        LOOP AT stb.&lt;/P&gt;&lt;P&gt;          WRITE:/ sy-vline,stb-idnrk,stb-mnglg.&lt;/P&gt;&lt;P&gt;        ENDLOOP.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      WRITE: sy-uline.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&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;      Form  bom_explode&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        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;FORM bom_explode .&lt;/P&gt;&lt;P&gt;&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;      aufsw                 = ' '&lt;/P&gt;&lt;P&gt;      aumng                 = 0&lt;/P&gt;&lt;P&gt;      capid                 = 'PP01'&lt;/P&gt;&lt;P&gt;      datuv                 = sy-datum&lt;/P&gt;&lt;P&gt;      ehndl                 = '1'&lt;/P&gt;&lt;P&gt;      emeng                 = it_resb-bdmng&lt;/P&gt;&lt;P&gt;      mktls                 = 'X'&lt;/P&gt;&lt;P&gt;      mehrs                 = 'X'&lt;/P&gt;&lt;P&gt;      mtnrv                 = it_resb-matnr&lt;/P&gt;&lt;P&gt;      stpst                 = 0&lt;/P&gt;&lt;P&gt;      svwvo                 = 'X'&lt;/P&gt;&lt;P&gt;      werks                 = it_resb-werks&lt;/P&gt;&lt;P&gt;      vrsvo                 = 'X'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      topmat                = topmat&lt;/P&gt;&lt;P&gt;      dstst                 = dstst&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      stb                   = stb&lt;/P&gt;&lt;P&gt;      matcat                = matcat&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;      conversion_error      = 8&lt;/P&gt;&lt;P&gt;      OTHERS                = 9.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    WRITE:/ sy-uline.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " bom_explode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ZCA_REPORT_HEADER'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      hdval  = 'Cutting List For Stores'&lt;/P&gt;&lt;P&gt;      rpsize = 130&lt;/P&gt;&lt;P&gt;      plant  = 'BLR'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 11:10:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842744#M44532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-21T11:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842745#M44533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lijo&lt;/P&gt;&lt;P&gt;Firstly, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"ON CHANGE OF" has a buggy situation (Subramanian pointed before) as far as I know. Hence, just after your loop ends, insert the code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLEAR it_resb-matnr .
ON CHANGE OF it_resb-matnr .
ENDON .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This will clear the temporary work area that "ON CHANGE OF" uses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly,&lt;/P&gt;&lt;P&gt;I do not know what the "CS_BOM..." function is used for. Will a commit work statement after it do any work? I know, you do not seem updating anything, however although this is a very very poor possibility but the function may need it. So put a commit statement after calling your FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 11:45:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842745#M44533</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2004-12-21T11:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842746#M44534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.What's the sy-subrc check doing within the AT END OF block ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. It is my opinion that the program is not sufficiently modularized. The subroutine must have an interface and all the values used within it should be passed into it. Similarly, the values required outside the subroutine should be pssed out of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I have mentioned in an earlier post, in this case, the write statements for the STB internal table are best written inside the subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of trying to analyze why the program you have written is not working, (which is most probably because of some global data issue), it is better that you first try to modularize the subroutine properly. That would localize the area of error.&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;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 11:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842746#M44534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-21T11:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Nature for Abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842747#M44535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Serdar,&lt;/P&gt;&lt;P&gt;Thank you for your points. But my problem is not fully solved. Given function module explode the Bill of Material and list all the child materials.&lt;/P&gt;&lt;P&gt;As you said i have coded commit work after perform.&lt;/P&gt;&lt;P&gt;Now i am able to get last explosion result. but i want that explosion details for all the materials. I f i give two materials, i should get components for that materials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i have commented "On change of" it is used just to display the material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you briefly tell me what Commit work do? and work and wait?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2004 11:59:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dual-nature-for-abap-code/m-p/842747#M44535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-21T11:59:21Z</dc:date>
    </item>
  </channel>
</rss>

