on 06-19-2008 6:48 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.