‎2008 Aug 13 5:50 PM
Hello there guys, I need to get strings of the same lentgh, for example if I declare name(30) type C, surname(40) type C and I do the following : concatenate name surname into fullname .where name = 'Julia' and Surname = 'Smith' I want Julia plus 25 caracters in blank remaining Smith Plus 35 Caract. remaining. 70 caracters as a result , is that possible?
‎2008 Aug 13 5:53 PM
Instead of concatenate, use structure to move your data.
Like:
TYPES: BEGIN OF TY_ADD,
FIRST TYPE CHAR30,
LAST TYPE CHAR40,
END OF TY_ADD.
DATA: L_ADD TYPE TY_ADD,
L_RESULT TYPE CHAR70.
L_ADD-FIRST = 'Naimesh'.
L_ADD-LAST = 'Patel'.
MOVE L_ADD TO L_RESULT.
WRITE: L_RESULT.
Regards,
Naimesh Patel
‎2008 Aug 13 5:53 PM
Instead of concatenate, use structure to move your data.
Like:
TYPES: BEGIN OF TY_ADD,
FIRST TYPE CHAR30,
LAST TYPE CHAR40,
END OF TY_ADD.
DATA: L_ADD TYPE TY_ADD,
L_RESULT TYPE CHAR70.
L_ADD-FIRST = 'Naimesh'.
L_ADD-LAST = 'Patel'.
MOVE L_ADD TO L_RESULT.
WRITE: L_RESULT.
Regards,
Naimesh Patel
‎2008 Aug 13 6:29 PM