Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Simple Select Help

$
0
0

I have the below code and it's not pulling the chart of accounts.  What could I be doing wrong? It looks fine to me...

 

PARAMETERS: d_cc TYPE bukrs OBLIGATORY.

DATA: wa TYPE t001.

SELECT ktopl FROM t001 INTO wa WHERE bukrs EQ d_cc.

      IF wa-ktopl IS NOT INITIAL.

           WRITE: 'Company Code ', d_cc, ' uses Chart of Accounts ', wa-ktopl.

      ELSE. WRITE: 'Company Code ', d_cc, ' has not been assigned a Chart of Accounts.'.

ENDIF.

ENDSELECT.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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