<?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: Iam not getting any values from my code. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510087#M1259984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply.&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>Wed, 29 Apr 2009 06:03:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-29T06:03:51Z</dc:date>
    <item>
      <title>Iam not getting any values from my code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510077#M1259974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;       ZGTPA_TL_SSNHIST 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 Sub Code according to table ZGTBA_TL_SUBCODE&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 Sub Code value from ZGTBA_TL_SUBCODE  &lt;/P&gt;&lt;P&gt;       Else, send blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed the code.But Iam not getting the any values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if w_MetLife_detail-rdstdcover = c_st.
      if p0001-bukrs = c_1009.
select single ZBUKRS_TEXT from ZGTPA_TL_SSNHIST into l_ZBUKRS_TEXT where perid = w0002-perid.
 if sy-subrc eq 0.
w_MetLife_detail-rdstdsubcde = ZGTBA_TL_SUBCODE-zsubcode.
 else.
  select single HIST_BUKRS from ZGTBA_TL_SUBCODE
                            into   l_bukrs
                            where ZREPORTNO  = c_100525.

          w_MetLife_detail-rdstdsubcde = ZGTBA_TL_SUBCODE-zsubcode.
        endif.
      endif.
    endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was stuck up in the code.Please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 13:45:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510077#M1259974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T13:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Iam not getting any values from my code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510078#M1259975</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;Are you debugging the code. If you can debug it properly then you can know the mistake..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in spec you have If &lt;STRONG&gt;PA0001&lt;/STRONG&gt;-BURKS='1009' go to Table&lt;/P&gt;&lt;P&gt;  but in code it is if &lt;STRONG&gt;p0001&lt;/STRONG&gt;-bukrs = c_1009.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 13:57:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510078#M1259975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T13:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Iam not getting any values from my code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510079#M1259976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the check on sy-subrc after each select single, so that you can put some messages there whether the code find anything in the tables or not. Of course you can try to debug and check sy-subrc and se16 t-code in the meanwhile how many data can be found there!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 13:57:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510079#M1259976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T13:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Iam not getting any values from my code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510080#M1259977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt; 'Not getting any values' &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is bit too general. Try to debug the coding first and see where it fails. It's hard to say what exactly is going wrong 'from a distance'. Debugging will probably help you to get to code running properly, otherwise get back with a more specific question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 14:00:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510080#M1259977</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-04-28T14:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Iam not getting any values from my code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510081#M1259978</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;Ur passing same values in both cases ZGTBA_TL_SUBCODE-zsubcode Any way there are 2 posibilities to get subrc not getting 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)Try w0002-perid &amp;amp; c_100525. Values with PACK &amp;amp; UNPACK statement &lt;/P&gt;&lt;P&gt;2)Use w0002-perid &amp;amp; c_100525 this fields in select selection fields also ( sometime itu2019s required if itu2019s primary key ) means select single perid ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Salil u2026&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: salil chavan on Apr 29, 2009 4:54 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 02:53:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510081#M1259978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T02:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Iam not getting any values from my code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510082#M1259979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;The table in the spec p0001 only.&lt;/P&gt;&lt;P&gt;My doubt is as per requirement is it correct code?or any changes are required.&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>Wed, 29 Apr 2009 04:20:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510082#M1259979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T04:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Iam not getting any values from my code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510083#M1259980</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;Is ZGTBA_TL_SUBCODE is a table or structure.&lt;/P&gt;&lt;P&gt;when u r assigning ZGTBA_TL_SUBCODE-zsubcode to ur variable what value it has as u have not performed any query on this table and stored the data in this structure. U can assign ZGTBA_TL_SUBCODE-zsubcode to a variable only if its a structure. &lt;/P&gt;&lt;P&gt;U should query on this subcode table and select subcode into some variable and then assign it. hope i am clear. Try to debug and see ur value for subcode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 04:46:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510083#M1259980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T04:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Iam not getting any values from my code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510084#M1259981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;ZGTBA_TL_SUBCODE is a table.This table is having report number,ZBUKRS_TEXT(company code text) and subcode and paypoint,bukrs as a filed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if f w_MetLife_detail-rdstdcover = c_st.&lt;/P&gt;&lt;P&gt;      if p0001-bukrs = c_1009.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then iam sending subcode value into final table.That is iam doing.Is it correct way?&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>Wed, 29 Apr 2009 04:58:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510084#M1259981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T04:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Iam not getting any values from my code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510085#M1259982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no problem wiyth these 2 lines.&lt;/P&gt;&lt;P&gt;1. Declare ZGTBA_TL_SUBCODE type ZGTBA_TL_SUBCODE.&lt;/P&gt;&lt;P&gt;2. But after ur first select query u need to fetch subcode value from table  ZGTBA_TL_SUBCODE.&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; if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;Select zsubcode from table ZGTBA_TL_SUBCODE into corresponding fields of ZGTBA_TL_SUBCODE&lt;/P&gt;&lt;P&gt;where .....(whatever ur condition is).&lt;/P&gt;&lt;P&gt;w_MetLife_detail-rdstdsubcde = ZGTBA_TL_SUBCODE-zsubcode.&lt;/P&gt;&lt;P&gt;Similarly, in the else condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 05:05:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510085#M1259982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T05:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Iam not getting any values from my code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510086#M1259983</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;Check this code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF w_metlife_detail-rdstdcover = c_st.
  IF p0001-bukrs = c_1009.
    SELECT SINGLE zbukrs_text FROM zgtpa_tl_ssnhist
      INTO l_zbukrs_text
     WHERE perid = w0002-perid.
    IF sy-subrc EQ 0.
      w_metlife_detail-rdstdsubcde = zgtba_tl_subcode-zsubcode.
    ENDIF.
  ENDIF.
" Get if no values found in case BUKRS is 1009 for the perid
  IF w_metlife_detail-rdstdsubcde IS INITIAL.
    SELECT SINGLE hist_bukrs FROM zgtba_tl_subcode
                              INTO   l_bukrs
                              WHERE zreportno  = c_100525.

    w_metlife_detail-rdstdsubcde = zgtba_tl_subcode-zsubcode.
  ENDIF.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 05:05:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510086#M1259983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T05:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Iam not getting any values from my code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510087#M1259984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply.&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>Wed, 29 Apr 2009 06:03:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iam-not-getting-any-values-from-my-code/m-p/5510087#M1259984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T06:03:51Z</dc:date>
    </item>
  </channel>
</rss>

