cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms line item

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member609120
Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Answers (5)

Answers (5)

Former Member
0 Kudos

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

Former Member
0 Kudos
Former Member
0 Kudos

create a table node . then in rthat u specify ur internal table and work area it will automaticaaly loop at internal table

Former Member
0 Kudos

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.

former_member181995
Active Contributor
0 Kudos

Hi She,

Explore these search results:

https://www.sdn.sap.com/irj/sdn/advancedsearch?query=howtoloopinsmartform+&cat=sdn_all