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

ME_PROCESS_REQ_CUST BADI

Former Member
0 Likes
1,178

hi i have created the copy of ME_PROCESS_REQ_CUST as ZME_PROCESS_REQ_CUST.

i want to put some check on the CHECK Method i am doing so but i am getting some error for tht following code.

METHOD if_ex_me_process_req_cust~check .
*
  DATA i_items   LIKE mmpur_requisition_item.

  CALL METHOD im_header->get_items
    RECEIVING
      re_items = i_items.

ENDMETHOD.

getting the following error

<b>"MMPUR_REQUISITION_ITEM" must be a flat structure. You cannot use

internal tables, strings,references, or structures as components.</b>

can u guys tell me where i am wrong

abhishek suppal

Message was edited by: Abhishek Suppal

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,075

Hi Abhishek,

Try using:

data: i_items <b>type</b> MMPUR_REQUISITION_ITEMS.

Regards,

Akshay Bhagwat

Message was edited by: Akshay Bhagwat

7 REPLIES 7
Read only

Former Member
0 Likes
1,075

Hi,

Try replacing 'like' in the declaration with 'type ref to', this might help,

Rgds,

Read only

Former Member
0 Likes
1,076

Hi Abhishek,

Try using:

data: i_items <b>type</b> MMPUR_REQUISITION_ITEMS.

Regards,

Akshay Bhagwat

Message was edited by: Akshay Bhagwat

Read only

0 Likes
1,075

dear akshay

still i got the error

Read only

0 Likes
1,075

thanx akshay

sorry for the wrong answer

oops i got it

Read only

0 Likes
1,075

Hi Abhishek,

I have tried it in my system and syntax which I mentioned is working perfectly fine.

( In my case I have done it inside BADI implementation- I could not get why you have copied the BADI instead of implementing it!)

Try thro' SE19 creating an implementation and in there you should do this code for Check method.

Regds,

Akshay Bhagwat

Read only

Former Member
0 Likes
1,075

Hi,

Can you create the implementation for this BADI, ME_PROCESS_REQ_CUST and try doing the changes in the implementation rather than copying & modifying the BADI definition itself,

Rgds,

Read only

Former Member
0 Likes
1,075

Abhishek,

If it is not too late...you missed 'S' in the data declaration

Here is the code..

DATA i_items type MMPUR_REQUISITION_ITEMS.

CALL METHOD im_header->get_items

RECEIVING

re_items = i_items.

take care...let me know if I am wrong....