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

IDOC_INBOUND_SINGLE

Former Member
0 Likes
946

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.

1 ACCEPTED SOLUTION
Read only

varma_narayana
Active Contributor
0 Likes
789

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>

4 REPLIES 4
Read only

varma_narayana
Active Contributor
0 Likes
790

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>

Read only

0 Likes
789

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.

Read only

0 Likes
789

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>

Read only

Former Member
0 Likes
789

hi

good

go through this link,hope this ll help you to solve your probel

http://logosworld.de/ftp/cook_destiller.pdf

thanks

mrutyun^