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

CONCATENATE problem.

Former Member
0 Likes
665

Hi all

see this. In this code it_file-brgew it_file-volum this two fields are giving me as they shud be character or string. when I assign them type c the value is not comming in fields in the output file I am getting "*" instead of value.

what I shud do. Plz.

CONCATENATE it_file-matnr it_file-maktx it_file-msehi it_file-brgew it_file-volum it_file-wheel_width it_file-wheel_diam

INTO v_data SEPARATED BY ','.

CONDENSE v_data NO-GAPS.

TRANSFER v_data TO v_filename.

6 REPLIES 6
Read only

Former Member
0 Likes
640

Define fields it_file-brgew it_file-volum as they are in database (where value is cmoing fine).

define another two variables of TYPE CHAR and write these values in those variables.

Now you can concatenate these new variables.

write it_file-brgew to lv_var1

write it_file-volum to lv_var2

Now use ur CONCATENATE statement using new variables..

thnx,

Ags.

Read only

Former Member
0 Likes
640

Hi,

Define the varaibles as string or type char with specified length. Move the 2 fields to these variables and then concatenate.

Shruthi

Read only

Former Member
0 Likes
640

I tried doing it.

Friendz it is not working.

do u more solutions to this.

plz help.

Read only

0 Likes
640

Hi,

What is the length of the variable that you are defining? Make sure it is equivalent to the length of the field.

Shruthi

Read only

Former Member
0 Likes
640

Hello Mona,

Instead of using the datatype char for defining ur fields, use the standard datatypes

for example

for the begru field, instead of using the char datatype use MARA-BEGRU

This might solve ur problem..

Tell me if that helped u

Read only

Former Member
0 Likes
640

Hi,

First all the numeric variables in string or char or numc type variables say for fields...

it_file-brgew it_file-volum it_file-wheel_width it_file-wheel_diam

Also check the total length of all the fields i guess it should not be greater than 255 characters.

Reward if helpful...

Regards,

Ramkumar.K