<?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 How i will get subcode along with company code text? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-will-get-subcode-along-with-company-code-text/m-p/5479133#M1254455</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;  Please help me for below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF RDSTDCover = 'ST' do the following:&lt;/P&gt;&lt;P&gt;       If PA0001-BURKS='1009' go to Table&lt;/P&gt;&lt;P&gt;       Z_PR_SOR_LegCoCode to retrieve previous Company Code Text for PA0002-PERID and send &lt;/P&gt;&lt;P&gt;       the corresponding &lt;STRONG&gt;Sub Code&lt;/STRONG&gt; according to &lt;STRONG&gt;ST Translation Table 2&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;       Else if  no value is found Lookup &lt;/P&gt;&lt;P&gt;       PA0001-BURKS along with Report Number '100525' &lt;/P&gt;&lt;P&gt;       and send Sub Code value from &lt;STRONG&gt;ST Translation Table&lt;/STRONG&gt; 1 &lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;       Else, send blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF RDSTDCover = 'ST' do the following:&lt;/P&gt;&lt;P&gt;       If PA0001-BURKS='1009' go to Table&lt;/P&gt;&lt;P&gt;       Z_PR_SOR_LegCoCode to retrieve previous Company Code Text for &lt;/P&gt;&lt;P&gt;       PA0002-PERID and send &lt;/P&gt;&lt;P&gt;       the corresponding &lt;STRONG&gt;Paypoint&lt;/STRONG&gt; according to &lt;STRONG&gt;ST Translation Table 2&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;       Else if If no value is found Lookup &lt;/P&gt;&lt;P&gt;       PA0001-BURKS along with Report Number '100525' &lt;/P&gt;&lt;P&gt;       and send Payoint value from &lt;STRONG&gt;ST Translation Table 1&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;       Else, send blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ST Translation table 1 :&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reportnumber |	companycodetext|		p0001-bukrs |	subcode |	          paypoint &lt;/P&gt;&lt;P&gt;100525 |		       ALP 	|		   1044 	|	   0002  |		0001&lt;/P&gt;&lt;P&gt;100525 |		       JAY 	|		    1032 	|	   0006  |		0001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ST Translation table 1:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reportnumber|	companycodetext|		subcode |	            paypoint &lt;/P&gt;&lt;P&gt;100525 	|	    ABH 	|		  0007 |		0002&lt;/P&gt;&lt;P&gt;100525 	|	    API 	|		  0008 |		0005 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was coded like this to get the company code text.But how i will get the subcode and paypoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if w_MetLife_detail-rdstdcover = c_st.&lt;/P&gt;&lt;P&gt;        if p0001-bukrs = '1009'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         select single ZBUKRS_TEXT from ZGTPA_TL_SSNHIST into l_ZBUKRS_TEXT where perid = w0002-perid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sujan T on Apr 25, 2009 10:38 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sujan T on Apr 25, 2009 10:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Apr 2009 08:37:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-25T08:37:42Z</dc:date>
    <item>
      <title>How i will get subcode along with company code text?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-will-get-subcode-along-with-company-code-text/m-p/5479133#M1254455</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;  Please help me for below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF RDSTDCover = 'ST' do the following:&lt;/P&gt;&lt;P&gt;       If PA0001-BURKS='1009' go to Table&lt;/P&gt;&lt;P&gt;       Z_PR_SOR_LegCoCode to retrieve previous Company Code Text for PA0002-PERID and send &lt;/P&gt;&lt;P&gt;       the corresponding &lt;STRONG&gt;Sub Code&lt;/STRONG&gt; according to &lt;STRONG&gt;ST Translation Table 2&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;       Else if  no value is found Lookup &lt;/P&gt;&lt;P&gt;       PA0001-BURKS along with Report Number '100525' &lt;/P&gt;&lt;P&gt;       and send Sub Code value from &lt;STRONG&gt;ST Translation Table&lt;/STRONG&gt; 1 &lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;       Else, send blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF RDSTDCover = 'ST' do the following:&lt;/P&gt;&lt;P&gt;       If PA0001-BURKS='1009' go to Table&lt;/P&gt;&lt;P&gt;       Z_PR_SOR_LegCoCode to retrieve previous Company Code Text for &lt;/P&gt;&lt;P&gt;       PA0002-PERID and send &lt;/P&gt;&lt;P&gt;       the corresponding &lt;STRONG&gt;Paypoint&lt;/STRONG&gt; according to &lt;STRONG&gt;ST Translation Table 2&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;       Else if If no value is found Lookup &lt;/P&gt;&lt;P&gt;       PA0001-BURKS along with Report Number '100525' &lt;/P&gt;&lt;P&gt;       and send Payoint value from &lt;STRONG&gt;ST Translation Table 1&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;       Else, send blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ST Translation table 1 :&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reportnumber |	companycodetext|		p0001-bukrs |	subcode |	          paypoint &lt;/P&gt;&lt;P&gt;100525 |		       ALP 	|		   1044 	|	   0002  |		0001&lt;/P&gt;&lt;P&gt;100525 |		       JAY 	|		    1032 	|	   0006  |		0001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ST Translation table 1:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reportnumber|	companycodetext|		subcode |	            paypoint &lt;/P&gt;&lt;P&gt;100525 	|	    ABH 	|		  0007 |		0002&lt;/P&gt;&lt;P&gt;100525 	|	    API 	|		  0008 |		0005 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was coded like this to get the company code text.But how i will get the subcode and paypoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if w_MetLife_detail-rdstdcover = c_st.&lt;/P&gt;&lt;P&gt;        if p0001-bukrs = '1009'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         select single ZBUKRS_TEXT from ZGTPA_TL_SSNHIST into l_ZBUKRS_TEXT where perid = w0002-perid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sujan T on Apr 25, 2009 10:38 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sujan T on Apr 25, 2009 10:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2009 08:37:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-will-get-subcode-along-with-company-code-text/m-p/5479133#M1254455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-25T08:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: How i will get subcode along with company code text?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-will-get-subcode-along-with-company-code-text/m-p/5479134#M1254456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sujan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using BAPI_COMPANY_GETDETAIL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shital&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2009 08:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-will-get-subcode-along-with-company-code-text/m-p/5479134#M1254456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-25T08:51:43Z</dc:date>
    </item>
  </channel>
</rss>

