I have one work area lwa_messtab whose fild values are as below.
Field name Field value
Catch Error Message in Record
SELECT SINGLE text FROM t100 INTO lwa_report-message
WHERE sprsl = sy-langu
AND arbgb = lwa_messtab-msgid
AND msgnr = lwa_messtab-msgnr.
Now, lwa_report-message = "No postings can be made to profit center &1 in company code &2"
I want to put &1 place MSGV1 = 31730100 and &2 place MSGV2 = 8001.
The output should be as below
No postings can be made to profit center 31730100 in company code 8001