Skip to Content
0
Former Member
Apr 28, 2009 at 01:45 PM

Iam not getting any values from my code.

28 Views

IF RDSTDCover = 'ST' do the following:

-If PA0001-BURKS='1009' go to Table

ZGTPA_TL_SSNHIST to retrieve previous Company Code Text for

PA0002-PERID and send

the corresponding Sub Code according to table ZGTBA_TL_SUBCODE

-Else if If no value is found Lookup

PA0001-BURKS along with Report Number '100525'

and send Sub Code value from ZGTBA_TL_SUBCODE

Else, send blanks.

I have developed the code.But Iam not getting the any values.

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.

I was stuck up in the code.Please help me.