Application Development and Automation 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: 
Read only

quantity field in smartform

former_member226419
Contributor
0 Likes
3,936

Hi,

I am trying to print quantity value on smartform. for g_activity = 520.423, it is printing the correct value but when i am printing 520.000,it is printing 520 only on smartform.

g_avtivity type i have given as 'g_activity type menge_d' in global defination.

Kindly help.

Regards

Sumeet

Moderator message : Not enough re-search before posting, discussion un-marked as question.

Message was edited by: Vinod Kumar

Hi,

I am trying to print quantity value on smartform. for g_activity = 520.423, it is printing the correct value but when i am printing 520.000,it is printing 520 only on smartform.

g_avtivity type i have given as 'g_activity type menge_d' in global defination.

Kindly help.

Regards

Sumeet

Moderator message : Not enough re-search before posting, discussion un-marked as question.

Message was edited by: Vinod Kumar

6 REPLIES 6
Read only

Former Member
0 Likes
2,095

To print quantity in smartform, we should mention.

field name = Field name of qty field

reference field  = Unit of measure field

Read only

0 Likes
2,095

Hi,

   U wont calculate Quantity field,so

First Go to Global variable ,take any variable like  var1 type (Here u must put your Quantity field dataelement).

Fieldname is your workarea field( ex:wa-quan) and refference field id var1 .  datatype is q quan

i think is useful for u .

if it is useful please give points

Thanks

Nagaraju.T

Read only

Former Member
0 Likes
2,095

Hi Sumeet,

Define a variable with reference to "BMENG"  & maintain that variable in "Currency/quantity" Tab..

Thanks & Regards,

Shinde

Read only

Former Member
0 Likes
2,095

Hi Sumeet,

Please Provide the currency and quantity field in global definitions .

FYI...

http://wiki.sdn.sap.com/wiki/display/ABAP/How+currency+code+is+determined+in+Smart+Forms+for+a+given...

Regards

Mahesh

Read only

Former Member
0 Likes
2,095

Hi,

Can u explain how u are bring the quantity field..,r u bringing through select statement or using any Fm.,i think some code is there to supress zeros.,please debug the smartform..

Regards,

Shinde

Read only

former_member226419
Contributor
0 Likes
2,095

Hi,

I got the result.

I have collected the g_activity value in 1 more variable as g_activity1 and defined it in global variable as

g_activity1 type p decimals 3.

Thanks for ur responses.I am closing the thread

Regards

Sumeet