‎2006 Jul 10 6:17 AM
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
‎2006 Jul 10 6:27 AM
Hi Abhishek,
Try using:
data: i_items <b>type</b> MMPUR_REQUISITION_ITEMS.
Regards,
Akshay Bhagwat
Message was edited by: Akshay Bhagwat
‎2006 Jul 10 6:24 AM
Hi,
Try replacing 'like' in the declaration with 'type ref to', this might help,
Rgds,
‎2006 Jul 10 6:27 AM
Hi Abhishek,
Try using:
data: i_items <b>type</b> MMPUR_REQUISITION_ITEMS.
Regards,
Akshay Bhagwat
Message was edited by: Akshay Bhagwat
‎2006 Jul 10 6:29 AM
‎2006 Jul 10 6:56 AM
‎2006 Jul 10 7:01 AM
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
‎2006 Jul 10 6:37 AM
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,
‎2006 Aug 23 10:41 PM
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....