<?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: How i will get the subcode &amp; paypoint? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-will-get-the-subcode-paypoint/m-p/5499137#M1257977</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;You will have to perform a join on the table ST1 and ST2 as follows&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 Sub Code according to ST Translation Table 2.&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 ST Translation Table 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 Paypoint according to ST Translation Table 2 &lt;/P&gt;&lt;P&gt;Else if If no value is found Lookup &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

select subcode paypoint
from ST1 as a inner join st2 as b
on a~reportnumber = b~reportnumber and
     a~companycodetext = b~companycodetext
where a~bukrs = PA0001-bukrs and
           a~reportnumber = '100525'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;PA0001-BURKS along with Report Number '100525' &lt;/P&gt;&lt;P&gt;and send Payoint value from ST Translation Table 1 &lt;/P&gt;&lt;P&gt;Else, send blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mansi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2009 05:21:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-27T05:21:09Z</dc:date>
    <item>
      <title>How i will get the subcode &amp; paypoint?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-will-get-the-subcode-paypoint/m-p/5499136#M1257976</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 Sub Code according to ST Translation Table 2.&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 ST Translation Table 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 Paypoint according to ST Translation Table 2 &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 ST Translation Table 1 &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 :(z_tran1_subcode)&lt;/P&gt;&lt;P&gt;this table is having the folling fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;100525 | APL | 1099 | 0006 | 0001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ST Translation table 2:(z_tran2_subcode)&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;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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 04:43:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-will-get-the-subcode-paypoint/m-p/5499136#M1257976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-27T04:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: How i will get the subcode &amp; paypoint?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-will-get-the-subcode-paypoint/m-p/5499137#M1257977</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;You will have to perform a join on the table ST1 and ST2 as follows&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 Sub Code according to ST Translation Table 2.&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 ST Translation Table 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 Paypoint according to ST Translation Table 2 &lt;/P&gt;&lt;P&gt;Else if If no value is found Lookup &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

select subcode paypoint
from ST1 as a inner join st2 as b
on a~reportnumber = b~reportnumber and
     a~companycodetext = b~companycodetext
where a~bukrs = PA0001-bukrs and
           a~reportnumber = '100525'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;PA0001-BURKS along with Report Number '100525' &lt;/P&gt;&lt;P&gt;and send Payoint value from ST Translation Table 1 &lt;/P&gt;&lt;P&gt;Else, send blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mansi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 05:21:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-will-get-the-subcode-paypoint/m-p/5499137#M1257977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-27T05:21:09Z</dc:date>
    </item>
  </channel>
</rss>

