01-28-2010 5:11 AM
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
01-28-2010 5: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
01-28-2010 5: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
01-28-2010 5: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
01-28-2010 5: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
01-28-2010 5: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
01-28-2010 5: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