Skip to Content
0
Former Member
Jan 17, 2013 at 11:16 AM

MIRO-Validation while parking document

320 Views

Dear Expert,

I have a specific requirement while validating MIRO document while parking (posting no issue control is in place) , implemented a BADI name = 'INVOICE_UPDATE' , method = 'CHANGE_AT_SAVE' ; following is the ABAP code in order to get multiline PO references for further manupulating for required validation.

METHOD if_ex_invoice_update~change_at_save.
DATA: lv_drseg(15) TYPE c VALUE '(SAPLMR1M)DRSEG'.
FIELD-SYMBOLS: <fs_drseg> TYPE ANY TABLE.
ASSIGN (lv_drseg) TO <fs_drseg>.
IF <fs_drseg> IS ASSIGNED.
BREAK-POINT.
ENDIF.
ENDMETHOD.

I am getting a runtime error = 'ASSIGN_TYPE_CONFLICT', at line ASSIGN (lv_drseg) TO <fs_drseg>.

please guide how i am able to extract data from multiline for further analysis or is there any other solution to validate multiline during parking MIRO document.