‎2007 Mar 19 3:27 PM
Hi ,
I have a field value in the Itab like this
Itab-vbeln = 2000283
I need to add 3 characters IMP in front of each value of this field ..How do I write the concatenate code for this requirement?
Output must be
Itab-vbeln = IMP2000283
My problem is I cannot simply guess at what place I need to add this string.
I mean Itab-vbeln value might be 2000283 sometimes and 0020083 sometimes.
Anyone please help with the code
‎2007 Mar 19 3:36 PM
Hi ramana,
Do like this.
shift itab-vbeln left deleting leading '0'.
concatenate 'IMP itab-vbeln into itab-vbeln.
Regards,
Ravi
‎2007 Mar 19 3:36 PM
Hi ramana,
Do like this.
shift itab-vbeln left deleting leading '0'.
concatenate 'IMP itab-vbeln into itab-vbeln.
Regards,
Ravi
‎2007 Mar 19 3:37 PM
data : v_char(13).
Concatenate 'IMP' Itab-vbeln into v_char.If you want to remove the zeroes and concatenate
use this
data : v_char(13).
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = itab-vbeln
IMPORTING
OUTPUT = itab-vbeln.
Concatenate 'IMP' Itab-vbeln into v_char.
Message was edited by:
Chandrasekhar Jagarlamudi