Application Development and Automation 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: 
Read only

Native SQL Procedure inside ABAP code

ullas_u2
Explorer
0 Likes
1,036

Dear All,

On debugging the standard SAP program /SAPAPO/BOP; I found a native SQL stored procedure has been called (inside EXEC SQL...ENDEXEC block). Inside this block some parameters are passed to the procedure and some others has been returned after processing inside the block.

The procedure name is "APS_ORDER_GET_DATA".

I need to know the way to check the underlying code that has been written for this procedure or I need to know the logic/purpose of this procedure.

My problem is; I found that in one of the returning parameters (internal table), found one record is missing and I need to know the reason.

Can anybody help..?

Regards

Ullas.

1 ACCEPTED SOLUTION
Read only

franois_henrotte
Active Contributor
0 Likes
682

you have to execute some DB statement to get the code of stored procedure

the statement depends on your DB system

for example, Oracle :

SELECT line FROM all_source WHERE name=u2019MY_STORED_PROCu2019 ORDER BY line

put it also inside a EXEC / ENDEXEC.

1 REPLY 1
Read only

franois_henrotte
Active Contributor
0 Likes
683

you have to execute some DB statement to get the code of stored procedure

the statement depends on your DB system

for example, Oracle :

SELECT line FROM all_source WHERE name=u2019MY_STORED_PROCu2019 ORDER BY line

put it also inside a EXEC / ENDEXEC.