cancel
Showing results for 
Search instead for 
Did you mean: 

itcsy structure

Former Member
0 Kudos

Hello,

I am calling a subrouting from SAP SCRIPT.

But in the subroutine I am not able to change the currecy value to integer.

FORM cal_Tot tables ntwr structure itcsy

tot structure itcsy.

DATA value type vbap-netwr.

value = ntwr-value.

ENDFORM.

If the value of ntwr-value is 300.0 its working but

if the value of ntwr-value is 1,345.0 this is giving runtime error.

How can store 1,345 into variable value

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

try to replace command ',' with ' '. it will work i think..

REPLACE ',' IN L_QUANTITY WITH ' '.

CONDENSE L_QUANTITY NO-GAPS.

I THINK IT WILL WORK

Former Member
0 Kudos

Hi sai,

But how do I again convert in the earlier format. As I have to return the value in the earlier format

Former Member
0 Kudos

Hi,

Move your integer value into a string value.

The inerface between Sapscript and perform routines only allows strings.

Gr., Frank

Former Member
0 Kudos

Hi,

Move to string (if it isn't already)

Delete all ',' and '.' in the value.

Move it into integer.

It is possible you have to divede it by 10 or 100 to get the proper value.

This will do.

Gr. Frank