Getting message text into variable

Problem: you want to get message text into a variable for further usage.

Solution: There is a simple and standard way to do this. MESSAGE keyword contains parameter INTO. Using it will do exactly what is needed.

  DATA:
    lv_dummy type string.
 
  MESSAGE w028(CRM_ACTIVITY_I) WITH 'test product' into lv_dummy.
  DATA:
    lv_dummy type string.

  MESSAGE w028(CRM_ACTIVITY_I) WITH 'test product' into lv_dummy.

Komentowanie jest zakończone.