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

Re: convert BAPI tables parameter data from structure to transparent table

$
0
0

Hi Eric,

 

I think you missunderstand ABAP table logic.

 

Internal table is not database table, It's local array for program, so you can not use SELECT for this situation. If you want to access to data in your table you can use READ or LOOP:

 

data : ls_T_BAPI2080_1 like line of T_BAPI2080_1

" declare work area for your table, if your table has header line you dont need this and in code you dont have to write into statement, but you can not use table with header line in Object oriented ABAP.

 

READ T_BAPI2080_1

   INTO ls_T_BAPI2080_1

WITH KEY <field> = <value>

 

Or :

 

LOOP AT T_BAPI2080_1

      INTO ls_T_BAPI2080_1.

"in here you can use where condition like SELECT statement

 

ENDLOOP.

 

I hope this will help.

Tolga


Viewing all articles
Browse latest Browse all 10548

Trending Articles



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