10-01-2007 10:49 AM
Hi,
For FM IDOC_INBOUND_SINGLE I am passing following parameters
wa_idoc_ctrl-mandt = sy-mandt.
wa_idoc_ctrl-mestyp = c_bomord.
wa_idoc_ctrl-idoctyp = c_bomord01.
wa_idoc_ctrl-cimtyp = c_bomord01.
wa_idoc_ctrl-direct = c_2.
wa_idoc_ctrl-rcvpor = c_fp00000001.
wa_idoc_ctrl-rcvprn = C_ QSACLNT210.
wa_idoc_ctrl-rcvprt = c_ls.
wa_idoc_ctrl-sndpor = c_fp00000001.
wa_idoc_ctrl-sndprn = c_devclnt110.
wa_idoc_ctrl-sndprt = c_ls.
APPEND wa_idoc_ctrl TO i_idoc_ctrl.
wa_idoc_ctrl is type edi_dc40.
when I execute the program, getting the following dump...
Error analysis
An exception occurred. This exception will be dealt with in more detail
below. The exception, assigned to the class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was
not caught, which
led to a runtime error. The reason for this exception is:
The call to the function module "IDOC_INBOUND_SINGLE" is incorrect:
In the function module interface, you can specify only
fields of a specific type and length under "PT_IDOC_DATA_RECORDS_40".
Although the currently specified field
" " is the correct type, its length is incorrect.
Could you please tell me whether I need to pass any addl. parameters?
Thanks in advance.
Regards,
Balaji Viswanath.
10-01-2007 11:00 AM
Hi Balaji..
In this case the Actual parameters not with the Same type as the Formal parameters in the FM IDOC_inbound_single.
So you open this FM in SE37 and Declare the Actual parameters exactly same as the FORMAL Parameters.
Then it will work.
Paste ur code if u still didnt get the solution.
<b>Reward if Helpful.</b>
10-01-2007 11:00 AM
Hi Balaji..
In this case the Actual parameters not with the Same type as the Formal parameters in the FM IDOC_inbound_single.
So you open this FM in SE37 and Declare the Actual parameters exactly same as the FORMAL Parameters.
Then it will work.
Paste ur code if u still didnt get the solution.
<b>Reward if Helpful.</b>
10-01-2007 11:04 AM
Hi Varma,
I have declared as below.
wa_idoc_ctrl type edi_dc40.
wa_idoc_ctrl-mandt = sy-mandt.
wa_idoc_ctrl-mestyp = c_bomord.
wa_idoc_ctrl-idoctyp = c_bomord01.
wa_idoc_ctrl-cimtyp = c_bomord01.
wa_idoc_ctrl-direct = c_2.
wa_idoc_ctrl-rcvpor = c_fp00000001.
wa_idoc_ctrl-rcvprn = C_ QSACLNT210.
wa_idoc_ctrl-rcvprt = c_ls.
wa_idoc_ctrl-sndpor = c_fp00000001.
wa_idoc_ctrl-sndprn = c_devclnt110.
wa_idoc_ctrl-sndprt = c_ls.
Regards,
Balaji Viswanath.
10-01-2007 11:13 AM
Hi . Balaji..
But the Error is coming in Data records table
PT_IDOC_DATA_RECORDS_40 STRUCTURE EDI_DD40
Have u declared it like
data : it_Data type table of EDI_DD40.
Otherwise paste the Entire code including Call function.
Then only i can find the error.
<b>reward if Helpful.</b>
10-01-2007 11:10 AM
hi
good
go through this link,hope this ll help you to solve your probel
http://logosworld.de/ftp/cook_destiller.pdf
thanks
mrutyun^