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

BADI ME_PROCESS_REQ_CUST

Former Member
0 Likes
913

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

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

3 REPLIES 3
Read only

former_member404244
Active Contributor
0 Likes
735

Hi,

Please go through the below links..Might be useful for your scenario.

Regards,

Nagaraj

Read only

0 Likes
735

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

Read only

0 Likes
735

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