09-25-2008 11:27 AM
Hi,
I have implemented badi :ME_PROCESS_REQ_CUST and trying to use : IF_EX_ME_PROCESS_REQ_CUST~PROCESS_ITEM method.
data : v_FRGCO type FRGCO.
v_FRGCO = IM_ITEM->IF_RELEASABLE_MM~INITIATE_RELEASE( ).
but i am getting error " method does not have any return parameter".
Please let me know how to get import parameter of method of interface.
Thanks and Regards,
Tamseel Hashmi
09-25-2008 8:22 PM
Hi,
Check the paramterers of IF_RELEASABLE_MM~INITIATE_RELEASE, it does not contain any returning parameters.
Regards,
Ashok.
09-25-2008 10:24 PM
Hello Tamseel
This method has indeed no RETURNING parameter but an EXPORTING parameter IM_CODE:
Function method call are only possible of the method has a (single) RETURNING parameter.
data: ld_frgco type frgco.
CALL METHOD lo_item->if_releasable_mm~initiate_release
EXPORTING
im_code = ld_frgco
* im_all = MMPUR_NO
* im_reset = MMPUR_NO
EXCEPTIONS
failed = 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.
Regards
Uwe