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

Help need in Table control

Former Member
0 Likes
407

Hi guys,

I am new to dialog programming , I have the following requirement in table control.

I have to be displayed 4 fields in Table control

1. Mara-MATNR (Match code)

2.Mara-BISMT

3. Mara-MATKL

4. Makt-MAKTX

Based on Material number the rest of the fields to be displayed automatically.

If possible send the sample code for the above requirement.

Thanks & Regards

Raj

3 REPLIES 3
Read only

Former Member
0 Likes
377

Hi,

Create a screen and create those fields in that screen with proper data element type.

in the PAI event, create a Module like MODULE_FILL_DATA. and double click on that one, in that module write this code

IF MATNR IS INITIAL.

  • Write the Error like please enter the material No

ELSE.

Select BISMT MATKL MAKTX into those screen field from MARA where

MARA = Screenfield-MATNR.

ENDIF.

that's it, and when you run the screen enter the material no and press enter, then all the fields will come over there

Regards

Sudheer

Read only

Manohar2u
Active Contributor
Read only

abdul_hakim
Active Contributor
0 Likes
377

hi

chk the sample on table control in the transaction ABAPDOCU.

Cheers,

Abdul Hakim