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

Inbound IDOC

Former Member
0 Likes
595

Hi,

I have created a "Z FM" to update the confirmation of Process order in the system. It is an Inbound IDoc. When I am about to test in WE19, using Inbound Function Module - it gives an error that "Interface for the 'Z FM' is incorrect".

I have assigned the process code correctly and I have checked all sort of possibilities. I can't trace this. Can anyone help?

Hi,

I have created a "Z FM" to update the confirmation of Process order in the system. It is an Inbound IDoc. When I am about to test in WE19, using Inbound Function Module - it gives an error that "Interface for the 'Z FM' is incorrect".

I have assigned the process code correctly and I have checked all sort of possibilities. I can't trace this. Can anyone help?

3 REPLIES 3
Read only

Former Member
0 Likes
554

Hi Shrividhya,

The signature (Parameters) of your Z FM is wrong.

Change the parameters to the ones below and try. Im Assuming that the name too matters.

*"----------------------------------------------------------------------
*"*"Local interface:
*"  IMPORTING
*"     VALUE(INPUT_METHOD) LIKE  BDWFAP_PAR-INPUTMETHD
*"     VALUE(MASS_PROCESSING) LIKE  BDWFAP_PAR-MASS_PROC
*"  EXPORTING
*"     VALUE(WORKFLOW_RESULT) LIKE  BDWF_PARAM-RESULT
*"     VALUE(APPLICATION_VARIABLE) LIKE  BDWF_PARAM-APPL_VAR
*"     VALUE(IN_UPDATE_TASK) LIKE  BDWFAP_PAR-UPDATETASK
*"     VALUE(CALL_TRANSACTION_DONE) LIKE  BDWFAP_PAR-CALLTRANS
*"  TABLES
*"      IDOC_CONTRL STRUCTURE  EDIDC
*"      IDOC_DATA STRUCTURE  EDIDD
*"      IDOC_STATUS STRUCTURE  BDIDOCSTAT
*"      RETURN_VARIABLES STRUCTURE  BDWFRETVAR
*"      SERIALIZATION_INFO STRUCTURE  BDI_SER
*"  EXCEPTIONS
*"      WRONG_FUNCTION_CALLED
*"----------------------------------------------------------------------

Regards,

Jovito.

Read only

0 Likes
554

When I am about to use the parameters you have mentioned I am getting a message that" Reference parameters are not allowed with RFC".

Kindly guide me to resolve this.

Read only

0 Likes
554

Hi,

In the FM,

Click on Attributes tab : Choose the Radio Button : Normal Function Module.

If you want this to be an RFC enabled FM.

Go the the Parameter (Import , Export and Tables)

There is a checkbox called Pass Value. Tickmark this checkbox for All the fields.

Regards,

Jovito.