Application Development 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: 

Interface of BADI : ME_PROCESS_REQ_CUST

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

Hi,

Check the paramterers of IF_RELEASABLE_MM~INITIATE_RELEASE, it does not contain any returning parameters.

Regards,

Ashok.

uwe_schieferstein
Active Contributor
0 Kudos

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