Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

hiii- urgent

hii i am a new employee.

can anyone please explain wat the following code is doing

IF sy-subrc = 0.

l_mstring = t100-text.

IF l_mstring CS '&1'.

REPLACE '&1' WITH wa_messtab-msgv1 INTO l_mstring.

REPLACE '&2' WITH wa_messtab-msgv2 INTO l_mstring.

REPLACE '&3' WITH wa_messtab-msgv3 INTO l_mstring.

REPLACE '&4' WITH wa_messtab-msgv4 INTO l_mstring.

ELSE.

REPLACE '&' WITH wa_messtab-msgv1 INTO l_mstring.

REPLACE '&' WITH wa_messtab-msgv2 INTO l_mstring.

REPLACE '&' WITH wa_messtab-msgv3 INTO l_mstring.

REPLACE '&' WITH wa_messtab-msgv4 INTO l_mstring.

ENDIF.

CONDENSE l_mstring.

i am supposed to use a function module for it

i have got a function module.

but i am not understanding wat fields shd i put in it

the function module is

CALL FUNCTION 'MESSAGE_TEXT_BUILD'

EXPORTING

msgid =

msgnr =

  • MSGV1 = ' '

  • MSGV2 = ' '

  • MSGV3 = ' '

  • MSGV4 = ' '

  • IMPORTING

  • MESSAGE_TEXT_OUTPUT =

can anyone tell wat shd i put on msgid ,msgnr and other fields.

saurabh102@gmail.com

Former Member
Not what you were looking for? View more on this topic or Ask a question