‎2008 May 23 5:32 AM
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.
‎2008 May 23 5:36 AM
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.
‎2008 May 23 5:38 AM
Hi,
Define the varaibles as string or type char with specified length. Move the 2 fields to these variables and then concatenate.
Shruthi
‎2008 May 23 5:52 AM
I tried doing it.
Friendz it is not working.
do u more solutions to this.
plz help.
‎2008 May 23 5:55 AM
Hi,
What is the length of the variable that you are defining? Make sure it is equivalent to the length of the field.
Shruthi
‎2008 May 23 6:20 AM
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
‎2008 May 23 6:42 AM
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