Skip to Content
avatar image
Former Member

I am geting Exception type CX_SY_DYN_CALL_ILLEGAL_TYPE

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Dec 08, 2005 at 05:37 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 10, 2005 at 06:51 AM

    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

    Add comment
    10|10000 characters needed characters exceeded