cancel
Showing results for 
Search instead for 
Did you mean: 

Current release code/indicator in BADI ME_PROCESS_REQ_CUST

former_member300754
Participant
0 Kudos

Hi all,

I'm working on BADI ME_PROCESS_REQ_CUST on Method PROCESS_HEADER. Could you suggest me to get the current release code or release indicator. My trial returns the processed release code/strategy but I want to get the thing before process (what user choose on screen).

Please help me on this, Thanks in advance.

Peerasit

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member300754
Participant
0 Kudos

Problem solved.



data: l_items       type mmpur_requisition_items,
      line_item     type mmpur_requisition_item,
      pr_item       type mereq_item,
      wa_eban       type eban.

try.
    call method im_header->get_items
      receiving
        re_items = l_items.
  catch cx_sy_ref_is_initial.
endtry.

loop at l_items into line_item.
*-> Get before-process data
  call method line_item-item->get_persistent_data
    receiving
      re_data = wa_eban.
*-> Get processed data
  call method line_item-item->get_data
    receiving
      re_data = pr_item.
endloop.