‎2008 Apr 11 3:04 PM
Dear all
i am adding one functional module to get the inspection lot status.
i am getting error in calling functional module.please help me on this.
i am using status_text_edit module.
i am passing all the importing parameters but i am not entering any exporting parameters.
i am getting call_function_conflict type error.
wat needs to be done for this.please help me.
‎2008 Apr 11 3:08 PM
one of your import / export / tables parameter does not have the correct type. Check FM for exact type and use it for your parameter as well.
‎2008 Apr 11 3:08 PM
Hi,
The variables in your program need to be defined in exactly the same way as the parameters in the function module they are matched to (i.e. the same data type and size).
The dump will tell you which field is wrong, look at the definition of the function module to find the correct definition.
Regards,
Nick
‎2008 Apr 11 3:08 PM
Hi,
Check the types of the variables you give to your FM. They should be exact the same as the types of the import-parameters in the FM.
Hope it helps you,
Bert
‎2008 Apr 11 3:08 PM
Hi,
The function module would have some particular parameters, which have to be passed. First identify those parameters and pass values to all those parameters. The error is either due to this, or you are passing a value to one of the parameters whose type differs from the value passed.Pls check it.
Thanks
Nayan
‎2008 Apr 11 3:10 PM
the base pattern for that module is this
CALL FUNCTION 'STATUS_TEXT_EDIT'
EXPORTING
* CLIENT = SY-MANDT
* FLG_USER_STAT = ' '
objnr =
* ONLY_ACTIVE = 'X'
spras =
* BYPASS_BUFFER = ' '
* IMPORTING
* ANW_STAT_EXISTING =
* E_STSMA =
* LINE =
* USER_LINE =
* STONR =
* EXCEPTIONS
* OBJECT_NOT_FOUND = 1
* OTHERS = 2
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Therefore the only thing you MUST pass are the 2 fields that are not comment out in the EXPORTING list.
If you want info back, you will need the values in the IMPORTING.
Double click on the FM name and look at the IMPORT and EXPORT tabs to ensure you use the same field types when sending
and receiving.
‎2008 Apr 11 3:11 PM
Hi Kaushik,
R U passing exporting parameters OBJNR SPRAS. These are mandatory fields. Similarly all importing parameters are mandatory. Also check whether the object u trying to edit exist in the system or not.
Thanks,
Vinod