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

Cannot save data in IF_EX_ME_PROCESS_REQ_CUST~PROCESS_ACCOUNT

Former Member
0 Likes
712

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

1 REPLY 1
Read only

surajarafath
Contributor
0 Likes
487

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.