Skip to Content
0
Former Member
Mar 18, 2009 at 07:18 AM

concatenate 3 fields

18 Views

Hi,

I have one work area lwa_messtab whose fild values are as below.

Field name Field value

Tcode CJ02

DYNAME SAPLKACB

DYNUMB 0002

MSGTYP E

MSGSPRA E

MSGID KM

MSGNR 183

MSGV1 31730100

MSGV2 8001

MSGV3

MSGV4

ENV CTU

FLDNAME COBL-PRCTR

  • 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

Regards,

Deepthi.