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
681

Hi,

I have implemented BADI "ME_PROCESS_REQ_CUST", within the method PROCESS_ITEM I tried to update two standard fields.

In the following, the code that I implemented:

...

l_mereq_item = im_item->get_data( ).

MOVE '1' TO l_mereq_item-blckd.

MOVE '999' TO l_mereq_item-afnam.

CALL METHOD im_item->set_data( l_mereq_item ).

...

The field AFNAM was update correctly, but this didn't happen for the field BLCKD. How can I do?

thanks in advance

3 REPLIES 3
Read only

Former Member
0 Likes
543

Hi Federica,

Check the data type of BLCKD as your method might reject the type mismatch..

regards,

ram

Read only

Former Member
0 Likes
543

Hello Federica,

The code which u have put in should update both the fields. However what u can do is set break point just after this BADI and confirm if the data is properly updated and then set a watchpoint for the blckd if it gets reset anywhere else in the program.

if this doesn't work u can use user exit EXIT_SAPLMEREQ_005 which is fired just after the BADI is called.

Read only

0 Likes
543

Thanks for your replay.

The function exit EXIT_SAPLMEREQ_005 doesn't work as the BADI. I try this: after the statement "set_data"

I insert a new statement "get_data", but, in debug mode, I see that the field BLCKD is empty again.

What does it mean "Check the data type...."?

Federica