‎2006 Jun 15 10:27 AM
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
‎2006 Jun 15 10:32 AM
Hi Federica,
Check the data type of BLCKD as your method might reject the type mismatch..
regards,
ram
‎2006 Jun 15 10:44 AM
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.
‎2006 Jun 15 3:12 PM
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