Skip to Content

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

display a dynamic string with table fields

HI Gurus,

Please help me with the below string display with dynamic variables

display the message - 'Document <Company Code> <Vendor> <Fiscal year> <Document Number> successfully posted'.

i am trying to display with the help of & &

  CONCATENATE &ACCOUNTGL-COMP_CODE& &ACCOUNTPAYABLE-VENDOR_NO& &DOCUMENTHEADER-FIS_PERIOD& &BDWFRETVAR-DOC_NUMBER& INTO gv_mail_text SEPARATED BY space.

but i am getting the below error.

field &ACCOUNTGL-COMP_CODE&  is unknown.

Br,

Surya

Tags:
Former Member replied

Hi Surya,

You can pass the dynamic values into local variables like (

lv1 = ACCOUNTGL-COMP_CODE , lv2 = ACCOUNTPAYABLE-VENDOR_NO )

and then concatenate.


CONCATENATE LV1 LV2 LV3 LV4 INTO gv_mail_text SEPARATED BY space.

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question