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

Run time error message

Former Member
0 Likes
521

Hi Gurus,

I have a small question, I am trying to use BAPI_PRODORDCONF_CREATE_TT, but I am getting this run time error:

<b>

Error analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was

not caught in

procedure "CALL_BAPI" "(FORM)", nor was it propagated by a RAISING clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

The call to the function module "BAPI_PRODORDCONF_CREATE_TT" is incorrect:

In the function module interface, you can specify only

fields of a specific type and length under "RETURN".

Although the currently specified field

"RETURN1" is the correct type, its length is incorrect.</b>

I have declared the data elements as :

data: ord_num TYPE bapi_order_key-order_number,

timetickets like bapi_pp_timeticket occurs 0 with header line,

goodsmovements like bapi2017_gm_item_create occurs 0 with header line,

return1 like BAPIRET2 occurs 0 with header line,

return2 type BAPIRET2.

so can you please tell me what's the problem with it.

Thanks,

Rajeev

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
491

Declare return1 like BAPIRET1 occurs 0 with header line,

BAPIRET1 not 2.

Rob

4 REPLIES 4
Read only

Former Member
0 Likes
492

Declare return1 like BAPIRET1 occurs 0 with header line,

BAPIRET1 not 2.

Rob

Read only

Former Member
0 Likes
491

Return parameter should be of type BAPIRET1 not BAPIRET2.

A

Read only

naimesh_patel
Active Contributor
0 Likes
491

You need to define your RETURN1 structure like this:

Data: RETURN1 type BAPIRET1.

REgards,

Naimesh Patel

Read only

Former Member
0 Likes
491

Hi,

It should be BAPIRET1.

Thanks,

Sriram Ponna.