on 11-10-2008 3:51 AM
Hi,
Consider me newbie..Am trying to explore the smartforms.. i was able to capture all the header information but i am stuck on how to print/ loop the multiple line item from table ekpo. How to achieve this ...appreciate step by step guideline...thank you
ekpo-ebelp,ekpo-txz01,ekpo-menge,ekpo-meins ekkn-sakto
She
If you want 5 columns, you need to declare 5 cells in one line type of the table
Click on Table -> Details, then do the following
Line Type 1 2 3 4 5
L1 2mm 3mm etc
Here specify the width of the columns as many as you want..
then in the header/main area of the table, click create Table Line, Rowtype is L1, automatically 5 cells will come,In each cell create a text element, display the variable to be printed there
&wa_ekpo-ebelp&
&wa_ekpo-txz01&
&wa_ekpo-menge&
&wa_ekpo-meins&
&wa_ekpo-sakto&
and so on
In the Table,
Loop IT_EKPO into WA_EKPO.
I hope this helps you.
Regards,
Vanessa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vanessa,
Tried as you suggested and its working fine..though i have some clarification still regarding smartform
1. how to remove the leading zero (it_ekpo-ebelp) when displaying in the main area ? 10 instead of 00010
2. how to captured /insert program to get information from other table?
Eg. it_ekpo-ebelp, it_ekpo-txz01,it_ekpo-menge, EKKN-SAKTO?
3. how to achieve printing the line item text ( stxh-textname =ebeln+ebelp) in the next row, before a
2nd line item of the PO ( will be printed? )
Eg. line 10 - Computer 1 pc etc
<<specs of computer >>>
line 20 - printer 2 pc etc
Thanks in advance again.
HI..
u can use table to print items...
just create table with how much colums you want and then
using loop insert data into the table
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
create a table node . then in rthat u specify ur internal table and work area it will automaticaaly loop at internal table
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
U can get all the final data into one final internal table(itab).After that create table in Main Window.in that table u can mention final internal table(itab) under DATA tab.The main window acts like a loop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi She,
Explore these search results:
https://www.sdn.sap.com/irj/sdn/advancedsearch?query=howtoloopinsmartform+&cat=sdn_all
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
9 | |
7 | |
6 | |
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.