‎2007 Dec 07 4:49 PM
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
‎2007 Dec 07 4:53 PM
Declare return1 like BAPIRET1 occurs 0 with header line,
BAPIRET1 not 2.
Rob
‎2007 Dec 07 4:53 PM
Declare return1 like BAPIRET1 occurs 0 with header line,
BAPIRET1 not 2.
Rob
‎2007 Dec 07 4:53 PM
‎2007 Dec 07 4:54 PM
You need to define your RETURN1 structure like this:
Data: RETURN1 type BAPIRET1.REgards,
Naimesh Patel
‎2007 Dec 07 4:55 PM