cancel
Showing results for 
Search instead for 
Did you mean: 

re : external subroutines in scripts

Former Member
0 Kudos

hii all,

when calling external subroutine from script, i am getting the currency and quantity fields in character format.(the quantity is being printed as 1.99,000 in smart form so i am getting as the same in the variable in my external subroutine).how to proceed in this ,as i am passing it to another function module where it is requried for me to pass it as quantity field.

with regards,

sandeep akella.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

nil

Former Member
0 Kudos

Hi run and check the code below;

you can pass values from quantity to char and vice versa..

DATA :lv_quan TYPE vbap-zmeng, "quantity field
         lv_char TYPE c.

lv_quan = '12.500'.
lv_char = lv_quan.
lv_quan = lv_char.

After the execution both variables contain the same value. so you can assign the char value back to a quan variable and pass it to the FM.

Regards

Karthik D

Former Member
0 Kudos

hii, but my problem is the same quantity filed is printed as 10,00 or 10,000 at that times i cant convert it that way.

with regards,

sandeep akella.