Hello,
You have to create an internal table type table of BAPIRET2.
you have to pass this internal table in your bapi fm...
BAPI_OUTB_DELIVERY_CHANGE
Tables
RETURN = it_return
it collects all messages(Success, error)....
put code:
READ TABLE IT_RETURN INTO WA_RETURN WITHKEYTYPE = 'S'.
LOOP AT IT_RETURN INTO WA_RETURN.
WRITE:/ WA_RETURN-MESSAGE.
ENDLOOP.
FREE IT_RETURN.
Thanks
Sabyasachi