Skip to Content

SmartForms - output field of type Quan

I have a few db fields of type quan that I am trying to put into my form. When I view the output (preview or print) all fields of type quan are right-aligned. I have the paragraph format (via smartstyles) as left-aligned but these fields (and only these fields) are right aligned. Is there any way to get the quan types left-aligned?

Regards,

Davis

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

8 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 29, 2007 at 02:58 PM

    Hi Davis,

    Just before specifying the field in the text element, u need the insert a program code line.

    Suppose u need to condense itab-vbeln

    In the input parameters, give itab

    in output parameters give a field quant which has been declared as char type and declared in global definitions.

    Add the code as follows

    quant = itab-vbeln.

    condense quant.

    Now pass this variable 'quant' for displaying in the smartform.

    Reward points if useful

    Add a comment
    10|10000 characters needed characters exceeded

    • Anoop,

      Thank you so much for that post! That did the trick. I forget to add input and output parameters because the window is centered and the input and output parameters do not show unless you scroll up. Thanks so much for your help!

      Regards,

      Davis

  • Posted on May 29, 2007 at 02:47 PM

    Hi Davis,

    Did you declare gs_vblkp-lfimg in global data?

    Regards,

    Ferry Lianto

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 29, 2007 at 02:19 PM

    Hi,

    You need to move these fields to a Charecter type fields then print those charecter fields then it will be left aligned

    Regards

    Sudheer

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 29, 2007 at 02:37 PM

    Hi,

    Please try this.

    data: w_lfmig(13) type c.
    
    w_lfimg = gs_vblkp-lfimg.
    
    ...
    &w_lfmig(L)& 
    

    Regards,

    Ferry Lianto

    Add a comment
    10|10000 characters needed characters exceeded

    • Ferry,

      It still gives me a error saying that "Field GS_VBLKP-LFIMG is unknown". I don't understand this because I am using this field in other parts of my form (but only in text nodes). Should I not put this in a Program Lines node?

      Regards,

      Davis

  • Posted on May 29, 2007 at 02:19 PM

    Pass these fields to Char Variable before displaying.

    Then apply your font format.

    Regards,

    Amit

    Reward all helpful replies.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 29, 2007 at 02:21 PM

    Thanks to both of you. I'm going to try that now.

    Regards,

    Davis

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 29, 2007 at 02:25 PM

    I tried your solution, in a Program Lines node, and I got a syntax error. The error says "Field &GS_VBLKP-LFIMG& is unknown. I am using this field all over my form but it doesn't like it here. Below is the code that I put in the Program Lines node:

    w_lfimg = &gs_vblkp-lfimg&.

    Regards,

    Davis

    Message was edited by:

    Davis

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 29, 2007 at 02:25 PM

    Hi,

    Please try something like this and define v_kbetr as a charecter type.

    &v_kbetr(L)& 
    

    Regards,

    Ferry Lianto

    Add a comment
    10|10000 characters needed characters exceeded

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.