‎2011 Nov 17 12:42 PM
Hallo gurus.
I am working on the Badi ME_PROCESS_REQ_CUST.
My business case is to change the accounting field FIPOS in the purchase requisition.
So, I put my code into the method PROCESS_ACCOUNT.
my code is like that:
CALL METHOD IM_ACCOUNT->GET_EXKN
RECEIVING
RE_EXKN = lv_exkn.
CALL METHOD IM_ACCOUNT->GET_EXKNX
RECEIVING
RE_EXKNX = lv_exknx.
*......
* do something with the FIPOS
*.....
lv_exkn-fipos = <ls_entry_tab>-fipos.
lv_exknx-fipos = 'X'.
CALL METHOD IM_ACCOUNT->SET_EXKN( lv_exkn ).
CALL METHOD IM_ACCOUNT->SET_EXKNX( lv_exknx ).
so far so good. the problem is that the values in the purchase requisition don't change at all...
As far as I know the values in MEPOITEM_TECH and MEPOSCHEDULE_TEC cannot be changed in the Badi. but FIPOS is not part of this fields..... so I am clueless.
Every help is appreciated....<removed by moderator>.
Thanks and best regards,
Alex
Edited by: Thomas Zloch on Nov 17, 2011 1:56 PM
‎2011 Nov 18 2:55 AM
Whatever You used is correct,
You put the debugger and see what is happening.
or after you set the data, now retreive those data again (Using Get_..)
now you check.