Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Want to get a recordset from oracle database directly into an internal tabl

Former Member
0 Kudos

Hi,

I want to get a recordset being returned by an oracle stored procedure directly into an internal table

types: begin of type_cfgi,

kunnr type kunnr, "END_CUSTOMER_NUMBER NUMBER

cust_name(60) type c, "NAME1_GP, "END_CUSTOMER_NAME VARCHAR2(80)

lgort type lgort_d, "STORAGE_LOCATION VARCHAR2(80)

matnr type matnr,

orig_qty type kwmeng, "ORIGINAL_QTY NUMBER

avl_qty type kwmeng, "AVAILABLE_QTY NUMBER

all_qty type kwmeng, "ALLOCATED_QTY NUMBER

end of type_cfgi.

data: t_cfgi type STANDARD TABLE OF type_cfgi.

EXEC SQL.

execute PROCEDURE scmp4_1.zpkg_ipn_pdad.zpro_ipn_Get_CFGI_Values

(out :v_return,

out :t_cfgi)

ENDEXEC.

however it gives me an error

The DSQL interface was called with invalid parameters. I also tried making all the variables to char in the internal table. For some reason the oracle people dont want me to fire a direct query or open cursor from in native SQL in SAP. So that option is off the table.

1 REPLY 1

Former Member
0 Kudos

Found the answer myself