I’ve been trying to make a dynamic col for a select. it’s just for learning.
I’ve made a selection screen with some select-options and checkbox parameters. whenever i have a checked checkbox i want to concatenate a string to my lineselection var.
lineselect = ' CARRID CONNID'.
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-001.
[...]
SELECTION-SCREEN END OF BLOCK block1.
IF cbcofr EQ 'X'. "where cbcofr is checkbox
CONCATENATE text-cb1 INTO lineselect SEPARATED BY space. "where text-cb1 is 'CONTRYFR
ENDIF.
When i check for error the compiler just says “Unable to interpret “text-cb1″. possible cause: incorrect spelling or comma error.”
Is not about text-cb1 , i’ve tried with string ‘COUNTRYFR’ and says the same thing. I don’t get where my error is.
The syntax for concatenate is as follows:
or
As you have already noted, you need at least two source variables to concatenate.
Full documentation can be found here
As of Netweaver release 7.02 you can also do this:
In this case, you lose the “separator” functionality, though.