Concatenate

Question: Hi All,

I am concatenating some fields to download a file on application sever.
data: v_file(80).
CONCATENATE f1
f2
f3
f4
f5
f6
f7
f8
into w_file.

Move w_file to v_file.
f8 = india
e.g. yahoogroupsindia


The problem is coming that as some fields may have value or not so when all fields have value I am getting the v_file 80 character long but suppose any fields is missing than it that space is vanishing in v_file.

I suggest the one solution as if any field doesn't has value than it can be filled by some special charcter like #,_etc.

But client wants space to maintained if some field doesn't has value .


Anybody has any idea please mail me pankaj.bhosale@gm.com

Regards,

Pankaj Bhosale

Answer:
Press F1 on CONCATENATE, read the help, and you'll know why it doesn't help you in this case.
Then. press F1 on COMPUTE and/or MOVE.
Of course, you could TRANSLATE ... USING ..., but '_' might be a character which regularly appears in the input.
Why are you concateating into w_file, and moving w_file to v_file?
Anybody has any idea please mail me pankaj.bhosale@gm.com
It that a fake, or can't GM afford some ABAP programmers with decent knowledge?

Answer:
We all have to learn. GM perhaps is at fault for not providing training. I'll send them an invoice for this . ( Slightly OT; but in another place I get lots of ABAP questions, some really dumb, from very interesting email domains. sap.com, .mil ... )

Concatenate is not the correct keyword if you wish fixed record size as it will get rid of trailing spaces. It will work with the DELIMITED addition, if you want a CSV file.

Otherwise, you need a structure with types f1, f2 etc.

So,

Mind you, nowadays, hardly anyone wants to do decent programming. They just want it to work long enough that they can get promoted to functional analyst...

m@t
[OT mode]Good. The more garbage they produce, the more work there is for the real programmers. Furthermore, hopefully they will understand that good programming is a trade, just like good customizing is.
It is very frustrating than a func telling me how I should write my code with F all knowledge of the tools available.
_________________
Only sheep and Tuly Idiots need a leader

Answer:
Hi All,

I am not a programmer , I just posted the query to help by ABAP colleague as he was not having ID.
I want to tell all the nobody comes out of mother's womb with all the knowledge...It takes a learning curve......If you people don't want to answer to hell with it.
It just reflects the kind of upbringing you people have had.

Bye
Pankaj

Answer:
Calm down , calm down. I had OT mode (=off topic) on .
My upbringing taught me that if I don't know the answer first I'll have to try and find it myself, not to find somebody who can tell me .
I am well of aware of a learning curve, I am learning everyday , that is what keeps me going in SAP.
A basic statement like CONCATENATE , is well documented and has been the subject to many topics. It shouldn't be that much of an issue.

Complain not about us, but about your company that is relying on SAPFans for explaining basic ABAP statements and apparently can't provide proper support / training for its programmers.
_________________
Only sheep and Tuly Idiots need a leader

Answer:
I just posted the query to help by ABAP colleague as he was not having ID.
Looks like he was not having an F1 key either. In any case, could you not have used the search? This gets asked just about every week.
_________________
First he pinches my sig, Now he's cribbing my posts too!
Copyright ?2007 - 2008 www.jt77.com