Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

small programming help needed

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI

concatenate '0' vbfa-vbeln into xaccit-zuonr.

Regards

MD

3 REPLIES 3

Former Member
0 Kudos

Hi

Use Conversion_Exit_Alpha_Input function module and then pass the value into this..it will add the zeroes.

Regards

Vishwa.

Former Member
0 Kudos

HI

concatenate '0' vbfa-vbeln into xaccit-zuonr.

Regards

MD

Former Member
0 Kudos

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.