cancel
Showing results for 
Search instead for 
Did you mean: 

convert a number from xxxxxxxx (8 char) to 00xxxxxxxx (10 char) in sapscipt

was_wasssu
Participant
0 Kudos

INCLUDE &VBDKR-VBELN& OBJECT VBBK ID XXXX PARAGRAPH TT LANGUAGE &VBDKR-SPRAS&

I have a problem regarding that import in a sapscript. This import reads from STXH with the vbdkr-vbeln like this: XXXXXXXX (8 char) but in the STXH i have a value like this 00XXXXXXXX (10 char). How can i add two 0 in the sapscipt in order to read corectly? I don't know the sapscipt syntax, please write me all the lines is it's possible.

Thank you.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

You can use PERFORM to call a subroutine to do the job above.

But, the easiest way is:

/: DEFINE &TXT_ID& = '00&VBDKR-VBELN&'.

then &TXT_ID& will have 00xxxxxxxx.

Cheers.

Former Member
0 Kudos

Hi,

You can try concatenating the two zero's using the below statement.


concatenate '00' STXH-TDOBJECT into STXH-TDOBJECT .

else in the driver program, you can use the conversion routine before calling the write_form


call function 'CONVERSION_EXIT_ALPHA_INPUT'
           exporting
                input  = STHX-TDOBJECT
           importing
                output = STHX-TDOBJECT.

regards,

Vik