on 05-11-2011 4:54 AM
hiiiii,
I am new to smartforms.
My query is i am using table under loop and when there is no data in table it is not showing table heading.
So Please try to solve my query.
Thanks........
Hi Sanket,
Even I had this problem some time back. I have solved this problem in some unconventional method.
I have created a templet similar to the table header. In the conditions I have checked if the table is initial I would populate this template else, I have populated the table itself.
As its the property of the table by default that if there doesnot exist any data in the table, the table would be displayed in the Smartform. Your table header also would not be displayed.
There is also another unconventional way of solving this which is a little lengthy procedure:
While inserting data into your internal table, in the first loop manully insert your hearder field names as a first record.
In the smart form, in your table, create two line types, and in first line time populate only first record (which will have your header data) using the conditions. So there would not be a use of HEADER section of the smartform TABLE. This way, your table will never be empty, and your table would always be executed.
Hope this solves your issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sanket sagar,
you can copy same table next to loop and write a condition like loop itab is empty you can display copied table then it will display header details, If loop itab is not initial it will display data..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Welcome. Create a small template and maintain headings there like serial no , material no,quantity and all.Under that keep that loop for body and get that data. I think this is only issue if it is not solve please post .
Regards,
Madhu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Here you can display data either through table or template.For header use template .
http://help.sap.com/saphelp_nw04/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
Regards,
Madhu.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.