Skip to Content
author's profile photo Former Member
Former Member

Smartform - Format quantity field - CIZ

Hello all,

I have a quantity field which has a value 11.000.

I need to print it as 11 (no trailing zeroes ). But if the quantity is 11.23, then it shud print 11.23.

To acheive this, In sapscript, We used to write the quantity field with a C in bracket.

for eg. &CAUFVD-GAMNG(C)&

How Could I acheive this same functionality in smart forms ?

I beleive CIZ shud work in smartforms also..but unfortunately it is not..

Am i missing something.. ?

Thank you so much for your time.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 07:51 PM

    I donot think control commands are possible in Smartform like in sapscript. You have to create a program lines node and there u can write ur logic to meet this requirment.


    data: val type p decimals 3 value '10.230'.

    data: l_char type c length 10.

    data: l_whole_no type c length 10.

    data: l_decimal type c length 3.

    l_char = val.

    split l_char at '.' into l_whole_no l_decimal.

    if l_decimal = '000'.

    l_char = l_whole_no.




    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you Joyjit.

      I still cant beleive, Smart forms dont have any short cut to do this.

      Those 3 (CIZ) were such beautiful commands.. Smart forms is the advanced version of sapscripts, and ..

      There might be some other short cut..other than writing code for each and every currency and quantity fields..

      Thanks much for your response.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.