2010 Aug 17 8:34 AM
Hello,
How can we read the release code (Data element FRGCO in ME54N) in the ME_PROCESS_REQ_CUST Badi ?
We would like to modify some datas only for specific release code.
Thank you for your help,
Jocelyne
I have solved my problem with the following code :
Data : w_frgzu type frgzu.
call method im_item->get_data
receiving
re_data = t_item.
call method im_item->if_releasable_mm~get_data
importing
ex_strategy = t_rel_strategy_mm
ex_state = t_rel_state_mm.
call method t_rel_strategy_mm->get_info
importing
ex_codes = t_code_strat.
loop at t_code_strat into st_code_strat.
concatenate w_frgzu 'X' into w_frgzu.
if st_code_strat-rel_code = <rel_code>.
w_ok = 'T'.
exit.
endif.
endloop.
check w_ok = 'T' and t_item-frgzu = w_frgzu.
JG
2010 Aug 17 8:51 AM
2010 Aug 17 9:24 AM
Hi,
With the get data method on mereq_item, we have not all the informations.
I think we must read
EX_STRATEGY Exporting Type Ref To IF_RELEASE_STRATEGY_MM
EX_STATE Exporting Type Ref To IF_RELEASE_STATE_MM
Do you have some examples to read the informations about the strategy ?
Thanks
Jocelyne
2010 Aug 23 7:35 AM
I have solved my problem with the following code :
Data : w_frgzu type frgzu.
call method im_item->get_data
receiving
re_data = t_item.
call method im_item->if_releasable_mm~get_data
importing
ex_strategy = t_rel_strategy_mm
ex_state = t_rel_state_mm.
call method t_rel_strategy_mm->get_info
importing
ex_codes = t_code_strat.
loop at t_code_strat into st_code_strat.
concatenate w_frgzu 'X' into w_frgzu.
if st_code_strat-rel_code = <rel_code>.
w_ok = 'T'.
exit.
endif.
endloop.
check w_ok = 'T' and t_item-frgzu = w_frgzu.
JG
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |