Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

small programming help needed

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

Tags:
replied

HI

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

Regards

MD

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question