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.
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.
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.