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

Displaying table in smartform depending upon company code

Hi,

my requirement is to display table in a smartform depending upon the company code given as input. Suppose I have two company codes for one it has to display one table and for another another table need to be displayed both of these have different no.of fields, where can I specify the condition.

Thank you in advance

Regards

Srinivas

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2010 at 05:20 AM

    Hi,

    In Smartform when u loop for Displaying the values--> Double click on it there is a tab condition..

    you can do the necessary cahnges there else in driver program ur main internal table whenevr new comp code is there put a flag and accordingly in Smartform in Condition braek w.r.t. flag.

    Regards

    Arbind

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2010 at 05:19 AM

    Hi,

    I think from your driver program you can check for the copmany code condition, If your first company code you can populate data to smartform1 and for your second company code you can populate data as 'smartform2'

    This may help you

    Rani

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 28, 2010 at 05:31 AM

    Hello Sri,

    In the main window you can create two Tables in the main window using the 2 internal tables in question.

    In the "Conditions" tab of the Tables give the condition based on the Company Code.

    BR,

    Suhas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2010 at 05:47 AM

    Hi,

    You can check the company code condition in the driver program or alternatly you can check the company code condition in the smartforms before displaying the data in the tables by creating the two different tables.

    Hope this will help you.

    Jatender

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2010 at 05:49 AM

    Hi,

    In the smartform just before creating the table,

    you can include your program line and validate

    the data as per the user selected COmpany code

    and then pass that internal table filled in your table

    created or you can try including condition tab in your table

    and then fill data in your internal table.

    Hope it helps

    Regards

    Mansi

    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.