‎2007 Jan 20 12:18 PM
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
‎2007 Jan 20 12:29 PM
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
‎2007 Jan 20 12:34 PM
Refer to these examples
http://www.sappoint.com/PHPWebUI/Documents/ABAP%20Reporting%20-%20Dialog%20Programming.pdf
http://www.planetsap.com/online_pgm_main_page.htm
Cheers
Manohar
‎2007 Jan 21 9:40 PM
hi
chk the sample on table control in the transaction ABAPDOCU.
Cheers,
Abdul Hakim