Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Spaces between two variables

Former Member
0 Likes
1,040

Hi All,

I need spaces between variables:

matnr space - space vbeln something like this...

how do i achieve this?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,008

Hi,

write like this

concatenate matnr '-' vbeln into x separated by space.

Regards,

Pankaj

8 REPLIES 8
Read only

Former Member
0 Likes
1,009

Hi,

write like this

concatenate matnr '-' vbeln into x separated by space.

Regards,

Pankaj

Read only

Former Member
0 Likes
1,008

Hi Poonam,

Try this for your requirement.



write : matnr ' '  vbeln.

Hope this works out.

Regards,

Abhinab Mishra

Read only

Former Member
0 Likes
1,008

Hi

I would suggest you to make use of CONCATENATE to achive this.

First concatinate matnr and vblen into a local variable and then display that variable to the user.

SYNTAX:

CONCATENATE matnr vblen INTO result SEPARATED BY space.

Regards

Gaurav

Read only

Former Member
0 Likes
1,008

concatenate MATN '-' VBELN into FINAL separated by space.

Hope it will helps you.

Read only

Former Member
0 Likes
1,008

Hi,

You can concatenate the varibles giving space, hifen, space like ' - '.

concatenate var1 ' - ' var2 into field1.

Regards

Sabu

Read only

GauthamV
Active Contributor
0 Likes
1,008

Check this.



Data : matnr type mara-matnr value'0010000000',
          vbeln type vbak-vbeln value '0020000000'.

data: var(30) type c.

concatenate matnr '-' vbeln into var separated by space.

write: var.

Read only

Former Member
0 Likes
1,008

Thnks All.

Read only

Former Member
0 Likes
1,008

Hi,

Concatenate with space is the best option.

Else you can also try this.

Declare a final_var and then concatenate

data: final_var(30) type c.

concatenate matnr '-' vbeln into final_var

Regards

Ramesh Sundaram