Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

module pool

Former Member
0 Likes
344

Hi to all,

I am a ABAP learner..

i have done with table wizard ...table mara...i have got the output of some mara fields...but i wanted make matnr as a select option...what is the syntex and also if i wanted get data from two table in table wizard can i do it any join between these tables....

give me some basic sample codes in table controls..

raju

2 REPLIES 2
Read only

Former Member
0 Likes
313

hi,

for select option you can use:

SELECT-OPTIONS: URART FOR mara-matnr.

to get data from two tables into a table control simply define a internal table in your program and fill it using both the tables.

you can use this internal table in your table control using table control wizard to display data.

regards,

Hemendra

Read only

Former Member
0 Likes
313

To make Matnr as a select option.

tables: mara.

select-options: s_matnr for mara-matnr.

to get data using joins, the syntax is something like this,

select mara~matnr

makt~maktx

from mara inner join makt on mara-matnr = makt-matnr

into table t_itab

where matnr in s_matnr

use the internal table t_itab in the table control you have created, using the wizard.(Use get from program option in the screen painter)

Ravi

Message was edited by: Ravi Kanth Talagana

Message was edited by: Ravi Kanth Talagana