Hello everybody!
I apologize for my English in advance, but I will try what I want. I need that the invoce will be done (Mir7 or miro) in the order would be put tiked final invoice like on a picture, but I need that it would be tiked automatically.
It is necessary for commercial closing PM Orders, so a have tried use BADI INVOICE_UPDATE. I have created implementation. There are an interface IF_EX_INVOICE_UPDATE and method CHANGE_AT_SAVE. In this method I was trying all time write this kod
method if_ex_invoice_update~change_at_save. data: wa_reseg_new like line of ti_rseg_new. field-symbols: <fs_ydrseg> type MRM_TAB_MRMRSEG . ASSIGN ti_rseg_new TO <fs_ydrseg>. * loop at <fs_ydrseg> into wa_reseg_new. BREAK-POINT. * " ASSIGN wa_reseg_new TO <fs_ydrseg>. wa_reseg_new-erekz = 'X'. MODIFY <fs_ydrseg> FROM wa_reseg_new . endloop.
Then I have activated, but during creating invoice the programm is falls down in dump and there written that all parameters are defended and I can not change any. Did somebody meet this problem? May be somebody did this?