on 12-08-2005 5:05 AM
Hi,
when i am trying to creat sales order using bapi 'BAPI_SALESORDER_CREATEFROMDAT2' in BSP program iam geting the following exception.
An exception with the type CX_SY_DYN_CALL_ILLEGAL_TYPE occurred, but was neither handled locally, nor declared in a RAISING clause
Exception Class: CX_SY_DYN_CALL_ILLEGAL_TYPE
Error Id:
Program: CL_O2AXZG4R3LD7CRXUAEKYMRHCDL8CP
Include: CL_O2AXZG4R3LD7CRXUAEKYMRHCDL8CM007
Line: 78
Long Text
Hi Nagaraju,
The Type Definitions while using bapi 'BAPI_SALESORDER_CREATEFROMDAT2' should be as follows:
1.)BAPI header type:
types : order_header_in_struc1 type bapisdhead.
2.)BAPI Item row type for Ordered Material and Ordered Quantity.
types : order_items_in_tab1 type table of bapiitemin.
3.)BAPI Item table type for Ordered Material and Ordered Quantity.
types : order_items_in_tab2 type bapiitemin.
4.)BAPI row type for Partner Details.
types : order_partners_tab1 type table of bapipartnr.
5.)BAPI table type for Partner Details.
types : order_partners_tab2 type bapipartnr.
6.)For Sales Document Number
types : sales_doc_number1 type bapivbeln-vbeln.
7.)For return type.
types : RETURN1 type BAPIRETURN1 .
These types should be strictly follwed or else this exception is thrown.
Regards,
Ravikiran.C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nagaraju,
Check this thread
/message/463412#463412 [original link is broken]
If not check the parameters what your are passing to to the bapi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Are you 100% sure that all structures/tables and parameters in the BSP have the same types as needed for the BAPI? They should have an exact match.
If somet types are not supported in BSP environment, you should try to solve it with a CHAR or NUM type with the same size. If that isn't feasable, you should create your own types and domains via SE11.
Required parameters can't be left out either.
Eddy
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.