10-24-2006 9:25 PM
In a report, i want to concatenate:
'User requests' vbeln 'info' into a workarea and display it on the output.
(where vbeln is replaced by a sales order).
For ex: a sample output would look like:
User requests 0000012345 info
Can you give me a sample code here please?
Thanks.
10-24-2006 9:33 PM
hi,
Use the function module CONVERSION_EXIT_ALPHA_OUTPUT with the vbeln before doing the concatenation..
DATA: V_STRING TYPE STRING.
DATA: V_VBELN TYPE VBELN.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = V_VBELN
IMPORTING
OUTPUT = V_VBELN.
CONCATENATE 'User requests ' V_VBELN 'info'
INTO V_STRING SEPARATED BY SPACE.
Thanks,
Naren
10-24-2006 9:26 PM
Concatenate 'User requests' vbeln 'info' into wa separated by space.
10-24-2006 9:27 PM
Hi,
Check this example..
DATA: V_STRING TYPE STRING.
DATA: V_VBELN TYPE VBELN.
CONCATENATE 'User requests ' V_VBELN 'info'
INTO V_STRING SEPARATED BY SPACE.
Thanks,
Naren
10-24-2006 9:31 PM
what if i want to take out the leading zeros in the vbeln?
thanks a lot
10-24-2006 9:34 PM
10-24-2006 9:33 PM
hi,
Use the function module CONVERSION_EXIT_ALPHA_OUTPUT with the vbeln before doing the concatenation..
DATA: V_STRING TYPE STRING.
DATA: V_VBELN TYPE VBELN.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = V_VBELN
IMPORTING
OUTPUT = V_VBELN.
CONCATENATE 'User requests ' V_VBELN 'info'
INTO V_STRING SEPARATED BY SPACE.
Thanks,
Naren