cancel
Showing results for 
Search instead for 
Did you mean: 

How to Concatenate 2 Variables in SAP APO DP Macro

Former Member
0 Kudos

Hi All


I am trying to concatenate 2 variables in a single third variable. Can some body please guid me on how this can be achieved

e.g.  I have a variable containting a characteristic Value - "1010101" and Another Variable have a number "12345"

I want to show a string -  "1010101 with value 12345"

Can somebody please guide on how this can be achieved


Any help in this regard is highly appreciated

Thanks

Vijay

Accepted Solutions (0)

Answers (1)

Answers (1)

marianoc
Active Contributor
0 Kudos

Hi Vijay,

Try with with the command STRINGS_CONCATENATE().

Syntax

STRINGS_CONCATENATE ('String1'...'Stringn')

Thanks and Regards,

Mariano

Former Member
0 Kudos

HI Mariano,


Thanks for quick response

I did try using Strings_Concatenate function. However I am not able to get the right value in the third variable. Do you have the syntax for Strings_Concatenate, using variables ?. I have tried a number of ways but nothing seems to work. The latest I tried was to put the variable values in a auxillary row and then try to concatenate. The same is given below. It is also not working. Can you please look at the same and suggest any changes to make this work

wa

marianoc
Active Contributor
0 Kudos

Hi Vijay,

I tested in my APO system and it did not work.

I was trying to find something but I couldn't.

I would try with some ABAP code.

Kind Regards,

Mariano