Skip to Content

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 04, 2015 at 06:20 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 04, 2015 at 05:48 PM

    HI Surya,

    I think you are using Message class like

    and then displaying it like

    DATA: A TYPE C LENGTH 20,
           B TYPE C LENGTH 20,
           C TYPE C LENGTH 20,
           D TYPE C LENGTH 20.

    A = 'GMS'.
    B = 'V0001'.
    C = '2015'.
    D = '01234'.

    MESSAGE E001(ZR) WITH  A B C D .


    isn't?


    Untitled.png (14.2 kB)
    Add comment
    10|10000 characters needed characters exceeded