10-06-2008 10:18 AM
I need to put additional 0 infront of the document nuber... Here is the example:
vbfa-vbeln = 90085804 ..... how can I put additional zerro ifront of the document?
I would like to have 090085804....
CASE xaccit-bschl.
WHEN '01'.
READ TABLE cvbrp WITH KEY vbeln = doc_number.
SELECT SINGLE * FROM vbfa WHERE vbelv = cvbrp-vgbel
AND posnv = cvbrp-vgpos
AND vbtyp_n = 'U'
AND vbtyp_v = 'J'.
IF sy-subrc = 0.
*xaccit-zuonr = 0 + vbfa-vbeln.*
ENDIF.
ENDCASE.
thanks and BR
Saso
10-06-2008 10:20 AM
10-06-2008 10:19 AM
Hi
Use Conversion_Exit_Alpha_Input function module and then pass the value into this..it will add the zeroes.
Regards
Vishwa.
10-06-2008 10:20 AM
10-06-2008 10:27 AM
Try following Example.
DATA: v_vbeln LIKE vbfa-vbeln.
DATA: docno TYPE char20.
docno = '80000001'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = docno
IMPORTING
output = v_vbeln.