on 08-18-2009 7:10 AM
Hi all
i have data in my itab in following format
Month 1 2 3 4 5 6 7 total
nov a a a a a a a 7a
dec P A P P A p A 4p
3a
i have to print data from col month to 7 in main area of the table in smart forms but it shows the 3rd line as well(an empty extra line) . is there any way that i may be able to delete or truncate third line ? as i have to print total below some where.
Regards
Ammad
Hi Ammad
i have a solution to ur question.
well u only want to print a line in the smartform Main window table if u have data in the first field of ur internal table lets take name as T_FINAL.
So u want to print lines in Smartform if T_Final-Field1 (which for month) is not empty.
For this go to the Condition tab of the Line (ROW) inside ur MAIN AREA In TABLE which must be there in any window probably in the Main window.
Double click on the Line (ROW) in MAIN AREA, It will contain 2 tabs Output option and Condition.
Click On condition and write under FIELD NAME the field of ur internal table WA u r using in TABLE for eg T_Final-Field1 if its Internal table with header line or if u r using a separate Work area use the work area like WA_Final-FIELD1, then click on the Square button just in front of it to select an RELATIONAL OPERATOR , put there the RELATIONAL OPERATOR as "Not Equal to" and in the comparison value column write a space quoted with single quotation as ' '.
After u do this any line encountered with its first field of WA_FINAL i.e wa_final-field1as empty wont be printed.
This Reloves ur issue.
Regards,
Akash Rana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ammad
i have a solution to ur question.
well u only want to print a line in the smartform Main window table if u have data in the first field of ur internal table lets take name as T_FINAL.
So u want to print lines in Smartform if T_Final-Field1 (which for month) is not empty.
For this go to the Condition tab of the Line (ROW) inside ur MAIN AREA In TABLE which must be there in any window probably in the Main window.
Double click on the Line (ROW) in MAIN AREA, It will contain 2 tabs Output option and Condition.
Click On condition and write under FIELD NAME the field of ur internal table WA u r using in TABLE for eg T_Final-Field1 if its Internal table with header line or if u r using a separate Work area use the work area like WA_Final-FIELD1, then click on the Square button just in front of it to select an RELATIONAL OPERATOR , put there the RELATIONAL OPERATOR as "Not Equal to" and in the comparison value column write a space quoted with single quotation as ' '.
After u do this any line encountered with its first field of WA_FINAL i.e wa_final-field1as empty wont be printed.
This Reloves ur issue.
Regards,
Akash Rana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have you checked the window size fitted with the internal table data.
GR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.