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

Stored Procedure into Internal Table

$
0
0

Hi All,

 

My aim is to triggered the stored procedure in SQL and get the data into Internal table. Connections looks good.

 

My Code -

 

types: begin of ithead,
            ID1(10) type c,
            ID2(10) type c,
          end of ithead.

data: wa type ithead,
          it type table of ithead.

DATA: year(4TYPE C VALUE '2012',
           month  TYPE I value 12,
           CB type string.

* opening the connection
EXEC SQL.
   CONNECT TO 'ELIPSE'
ENDEXEC.

*executing procedure
  EXEC SQL.
   EXECUTE PROCEDURE GetTrialBalTable ( IN :year,
                                        IN :month,
                                        OUT :it )
  ENDEXEC.

 

But it is going to dump saying "The error 8144 occurred in the current database connection "ELIPSE"."

 

But when i write EXECUTE PROCEDURE without OUT then procedure is working but i need the data into my internal table.

  EXEC SQL.
   EXECUTE PROCEDURE GetTrialBalTable ( IN :year,
                                        IN :month )
  ENDEXEC.

 

Any help on this ?

 

Regards

VEnk@


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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