<?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: Abap related knowledge in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-related-knowledge/m-p/3699369#M890766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure &lt;STRONG&gt;KOMP&lt;/STRONG&gt; deals with the &lt;EM&gt;Pricing Communication Item&lt;/EM&gt;. Below I have beautified the coding a little bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default sy-subrc = 4 meaning that in the calling program this might trigger error handling or abortion of the execution. Or this item is excluded from further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If, however, the item number is not zero (often header entries have item number = 0, i.e. we have a true item) &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt; the "Carry out pricing" &lt;STRONG&gt;C&lt;/STRONG&gt; ontains &lt;STRONG&gt;A&lt;/STRONG&gt; ny 'BX' substring&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt; the exclusion indicator is space (i.e. NOT excluded)&lt;/P&gt;&lt;P&gt;then set sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  KOBED_002
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM kobed_002.
  sy-subrc = 4.
  IF komp-kposn NE 0.  " Condition item number &amp;lt;&amp;gt; 0 (probably no header)
    CHECK: komp-prsfd CA 'BX'.  " Carry out pricing
    CHECK: komp-kznep = space.  " Condition exclusion indicator
  ENDIF.
  sy-subrc = 0.
ENDFORM.                                                    "KOBED_002
* Prestep
FORM kobev_002.
  sy-subrc = 0.
ENDFORM.                                                    "KOBEV_002
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Apr 2008 05:17:54 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2008-04-04T05:17:54Z</dc:date>
    <item>
      <title>Abap related knowledge</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-related-knowledge/m-p/3699368#M890765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am layman of this kind of Abap language.Now my job requires to understand these things also.As SD functional Consultant,I need to understand the following things.Can anybody guide me how to understand these kind of stuffs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FORM KOBED_002.               &lt;/P&gt;&lt;P&gt;   SY-SUBRC = 4.               &lt;/P&gt;&lt;P&gt;   IF KOMP-KPOSN NE 0.         &lt;/P&gt;&lt;P&gt;     CHECK: KOMP-PRSFD CA 'BX'.&lt;/P&gt;&lt;P&gt;     CHECK: KOMP-KZNEP = SPACE.&lt;/P&gt;&lt;P&gt;   ENDIF.                      &lt;/P&gt;&lt;P&gt;   SY-SUBRC = 0.               &lt;/P&gt;&lt;P&gt; ENDFORM.                      &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Prestep                     &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; FORM KOBEV_002.               &lt;/P&gt;&lt;P&gt;   SY-SUBRC = 0.               &lt;/P&gt;&lt;P&gt; ENDFORM.                      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 04:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-related-knowledge/m-p/3699368#M890765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T04:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Abap related knowledge</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-related-knowledge/m-p/3699369#M890766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure &lt;STRONG&gt;KOMP&lt;/STRONG&gt; deals with the &lt;EM&gt;Pricing Communication Item&lt;/EM&gt;. Below I have beautified the coding a little bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default sy-subrc = 4 meaning that in the calling program this might trigger error handling or abortion of the execution. Or this item is excluded from further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If, however, the item number is not zero (often header entries have item number = 0, i.e. we have a true item) &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt; the "Carry out pricing" &lt;STRONG&gt;C&lt;/STRONG&gt; ontains &lt;STRONG&gt;A&lt;/STRONG&gt; ny 'BX' substring&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt; the exclusion indicator is space (i.e. NOT excluded)&lt;/P&gt;&lt;P&gt;then set sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  KOBED_002
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM kobed_002.
  sy-subrc = 4.
  IF komp-kposn NE 0.  " Condition item number &amp;lt;&amp;gt; 0 (probably no header)
    CHECK: komp-prsfd CA 'BX'.  " Carry out pricing
    CHECK: komp-kznep = space.  " Condition exclusion indicator
  ENDIF.
  sy-subrc = 0.
ENDFORM.                                                    "KOBED_002
* Prestep
FORM kobev_002.
  sy-subrc = 0.
ENDFORM.                                                    "KOBEV_002
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 05:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-related-knowledge/m-p/3699369#M890766</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-04-04T05:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Abap related knowledge</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-related-knowledge/m-p/3699370#M890767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FORM KOBED_002.   = This is called by a subroutine starting with perform KOBED_002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 4. &amp;gt;  Indicates a failure in any of the step processed above the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF KOMP-KPOSN NE 0. &amp;gt; KOMP-KPOSN not equal to zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK: KOMP-PRSFD CA 'BX'.  if komp-prsfd contains any text having BX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0. Indicates a success in any of the step processed above the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert if you any more doubts.&lt;/P&gt;&lt;P&gt;Award points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gowri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 05:42:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-related-knowledge/m-p/3699370#M890767</guid>
      <dc:creator>former_member873340</dc:creator>
      <dc:date>2008-04-04T05:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Abap related knowledge</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-related-knowledge/m-p/3699371#M890768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you do this for all the SAP ABAP code...&lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/108/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 15:21:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-related-knowledge/m-p/3699371#M890768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-08-15T15:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Abap related knowledge</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-related-knowledge/m-p/3699372#M890769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP code (?) that is setting system field sy-subrc by hand, arrgh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Nobody can guarantee that it is not overridden by the system and nobody would expect that a dang form is setting it ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;A href="http://help.sap.com/abapdocu_750/en/index.htm?file=abensyst_field_access_guidl.htm"&gt;Guideline&lt;/A&gt; and &lt;A href="http://help.sap.com/abapdocu_750/en/index.htm?file=abenreturn_value_guidl.htm"&gt;Guideline&lt;/A&gt; ...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 16:31:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-related-knowledge/m-p/3699372#M890769</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2016-08-15T16:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Abap related knowledge</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-related-knowledge/m-p/3699373#M890770</link>
      <description>&lt;P&gt;Es scheint so aber nicht im EHP8 zu funktionieren.lnachweise ==== Weblinks == &lt;/P&gt;</description>
      <pubDate>Sat, 29 Jan 2022 04:49:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-related-knowledge/m-p/3699373#M890770</guid>
      <dc:creator>brusa</dc:creator>
      <dc:date>2022-01-29T04:49:30Z</dc:date>
    </item>
  </channel>
</rss>

