cancel
Showing results for 
Search instead for 
Did you mean: 

SMARTFORMS

Former Member
0 Kudos

hi guru's,

i have a urgent requirement to develop a purchase order smartform.

from table ekpo and eket the required fields are

matnr meins menge netpr netwr banfn eindt for this i have created a view with all these fields usings these two tables

and from makt table i need maktx for the matnr from the above view.

now i have declared two internal tables in global definition

TYPES:BEGIN OF T_EKPO,

MATNR LIKE EKPO-MATNR,

MEINS LIKE EKPO-MEINS,

MENGE LIKE EKPO-MENGE,

NETPR LIKE EKPO-NETPR,

NETWR LIKE EKPO-NETWR,

EINDT LIKE EKET-EINDT,

BANFN LIKE EKPO-BANFN,

END OF T_EKPO.

TYPES:TT_EKPO TYPE T_EKPO OCCURS 0.

TYPES:BEGIN OF T_MAKT,

MATNR LIKE MAKT-MAKTX,

MAKTX LIKE MAKT-MAKTX,

END OF T_MAKT.

TYPES:TT_MAKT TYPE T_MAKT OCCURS 0.

and declared them in global data also.

now my question is how to many loops should i take and how should i declare .please help me immediately.

thanks and regards,

siri

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member195383
Active Contributor
0 Kudos

Hi...

If u want simply to display data from the stated tables..then wy to go for loops....

Just select data from these tables to the internal tables that you have created and then

Pass them to the smartform..That will solve ur requirement....

Reward points if the above ans is useful...

Regards

Rudra

0 Kudos

i think this code may help u.

loop at main inttab.

read table <another inttab> with key <key> binary seach.

assign the fieelds here.

modify main inttab transporting <fields>.

endloop.

now u can have one main inttab and u can display from this.

Former Member
0 Kudos

Hi Sirisha,

Please check this link

Smart Forms - Working with Loop

http://www.saptechnical.com/Tutorials/Smartforms/Loop/Create.htm

If u have any quires regarding Smartforms Please check this site

http://www.saptechnical.com/Tutorials/Smartforms/SFMain.htm

Best regards,

raam