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

Table node in Smart Forms

Hi all,

I have a bit of a problem in smartforms.

I created a table node with two loops, the first loop is at the internal table it_contrato, this loop is the one you declare on the table, the other one is at the internal table it_bsid. which is in the table positions.(main area of my table node).

my problem is that I want to compare in the where clause of the second loop this two fields: wa_contrato-matnr (containing 700005) = wa_bsid-xblnr(containing 0000700005). this is, to loop only when this two fields are the same.

How can I compare this two field in the where clause if the matnr has leading zeros and the matnr doesn't ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 28, 2005 at 01:25 PM

    Before sending the data to the smartform, you would have to make sure that those fields are of the same format.

    When filling the internal tables, do the conversion routine against them to make them the same.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 29, 2005 at 04:03 AM

    Hi,

    Create one more field in the internal table(say field1).Once data are getting populated in that internal table,just create a program line and in that

    loop at that populated table.

    Use conversion_exit_alpha_output to remove leading zero.

    modify that new field.

    Then use that new field to compare.

    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.