Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3548

Re: Issue with the code in record display

$
0
0

I have made modifications to the code and the code works for most of the records. But for the same fiscal year when 230 and *** are showing up. I will only need to select 230. I am unable to

determine how to accomplish this. I request you to let me know your valuable suggestions.

 

asset abap 5.png

 

 

 

data : ls_tab type  _ty_s_SC_1,

            ls_srs type  _ty_s_SC_1,

            lt_tab TYPE STANDARD TABLE OF  _ty_s_SC_1.

 

 

 

     refresh lt_tab .

 

     append LINES OF SOURCE_PACKAGE to lt_tab.

 

     LOOP AT  lt_tab into ls_tab.

       LOOP at SOURCE_PACKAGE into ls_srs

               where        COMP_CODE    = ls_tab-COMP_CODE  and

                            ASSET_MAIN   = ls_tab-ASSET_MAIN and

                            ASSET        = ls_tab-ASSET     and

                            FISCPER       = ls_tab-FISCPER and

                            TRANSTYPE   ca '0123456789'.

       endloop.

       IF sy-subrc = 0.

         delete SOURCE_PACKAGE

                 where   COMP_CODE    = ls_tab-COMP_CODE  and

                         ASSET_MAIN   = ls_tab-ASSET_MAIN and

                         ASSET        = ls_tab-ASSET     and

                         FISCPER       = ls_tab-FISCPER and

                         ( transtype = '***'   or    transtype = 'PLN' ).

       else.

         delete SOURCE_PACKAGE

             where   COMP_CODE    = ls_tab-COMP_CODE  and

                     ASSET_MAIN   = ls_tab-ASSET_MAIN and

                     ASSET        = ls_tab-ASSET     and

                     FISCPER       = ls_tab-FISCPER and

                     transtype = 'PLN'  .

       ENDIF.

     ENDLOOP.


Viewing all articles
Browse latest Browse all 3548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>