I am trying to get Customer name from RM00101 using Stored Procedures.
Here is my SQL Server Stored procedure
CREATE PROCEDURE [dbo].[GET_CUSTOMER_NAME]
(
@IN_customer_number char(21),
@INOUT_customer_name varchar(50) output
)
As
Begin
select @INOUT_customer_name = CUSTNAME from RM00101 where CUSTNMBR = @IN_customer_number
GO
My Prototype Script named "GET_CUSTOMER_NAME"
sproc returns long l_ReturnCode;
in string IN_customer_number;
inout string INOUT_customer_name;
call sproc "GET_CUSTOMER_NAME",
l_ReturnCode,
IN_customer_number,
INOUT_customer_name;
I have called the procedure in field script
local long l_ReturnCode;
local string INOUT_customer_name;
call GET_CUSTOMER_NAME, l_ReturnCode, 'Customer Number' of window CUSTOMER_WINDOW,INOUT_customer_name;
set 'Customer Name' of window CUSTOMER_WINDOW to INOUT_customer_name;
My Question is ,
1. I am not able to get the customer name through stored procedures.
2. Am i following the currect process for implementing stored procedures.
3. Can anyone share some Reference documents of dexterity .
Thanks ,
Mohammed Irfan.