‎2009 Mar 25 10:57 AM
Hi,
I need logic for stras(Char 60)(Address 1) and LOCAT(Char40)(Address 2).
Concatenate Address line 1 and 2. Put a space between the two fields. Send first 24 characters. Left justify, fill with spaces.
Can any body help me this.
Regards,
Sujan
‎2009 Mar 25 11:02 AM
hi,
check this sample code.
PARAMETERS:
stras(60) TYPE c, " fields for replicating the size
locat(40) TYPE c. " fields for replicating the size
DATA:
target TYPE string.
CONCATENATE stras locat INTO target SEPARATED BY space.
WRITE: target(24).Regards
Sharath
‎2009 Mar 25 11:03 AM
CONCATENATE Address 1 Address 2 INTO finaladdress SEPARATED by SPACE.
var = finaladdress0+(24).
then use SHIFT finaladdress BY 24 PLACES LEFT to append blank to right side of the string.
‎2009 Mar 25 11:04 AM
‎2009 Mar 25 11:06 AM
>
> Hi,
>
> what is meant with send 24 characters ?
It sounds as if they just want you to give them them first 24 characters of the concatenated string. But you should really be checking with whoever is asking you to do this.
‎2009 Mar 25 11:08 AM
hi
DATA:
stras(60) TYPE c,
locat(40) TYPE c,
address TYPE string,
final TYPE string
CONCATENATE stras locat INTO address SEPARATED BY space.
CONDENSE address.
final = address0+(24).
try this.
Best Regards Marco
‎2009 Mar 25 11:10 AM