Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Powerbuilder application error R0002

Hi I am unable to call an oracle procedure from power builder 12.5 classic.

I am trying to call an oracle procedure Processattendance which has three String parameters employeeid, startdate and end date

As per the following instrucrtions in powerbuilder help, i have created a user object 'proccall'

  1.   From the Objects tab in the New dialog box, define a standard class user object inherited from the built-in Transaction object.
  2. In the Script view in the User Object painter, use the RPCFUNC keyword to declare the stored procedure as an external function or subroutine for the user object.

  3. Save the user object.

  4. In the Application painter, specify the user object you defined as the default global variable type for SQLCA.

  5. Code your PowerBuilder application to use the user object.

In the window i use following statement to call procedure.

proccall.PROCESSATTENDANCE('1' , '21/10/2014' , '20/11/2014')

The application compile successfully.

But when i run the application, i get the error.

Powerbuilder application error R0002

Application terminated.

Error: Null object reference at line 14 in clicked even of object cb_1 of w_attendanceprocessing.

I get the same error even when i hardcode the parameter.

The same statement works in an sql editor.

Please help

Not what you were looking for? View more on this topic or Ask a question