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

display button

Former Member
0 Likes
273

DEAR Experts

i have created following modulpool program

but i want the case like

on the screen when i select KUNNAR ( customer number) after clicking on display button it should show all the remaining field automatically

the remaining fields are

land,name,city,telephone ,address

what modification i will have to do in following coding please tel me

PROGRAM ZAPPLE.

TABLES ZKNA2.

DATA:BEGIN OF ITAB OCCURS 0,

KUNNR LIKE ZKNA2-KUNNR,

LAND1 LIKE ZKNA2-LAND1,

NAME1 LIKE ZKNA2-NAME1,

ORT01 LIKE ZKNA2-ORT01,

TELF1 LIKE ZKNA2-TELF1,

ADRNR LIKE ZKNA2-ADRNR,

DISPLAY TYPE C,

*

OK_CODE LIKE SY-UCOMM,

END OF ITAB.

&----


*& Module USER_COMMAND_0100 INPUT

&----


  • text

----


MODULE USER_COMMAND_0100 INPUT.

CASE SY-UCOMM.

WHEN 'EXIT'.

LEAVE PROGRAM.

WHEN 'DISPLAY'.

SELECT KUNNR LAND1 NAME1 ORT01 TELF1 ADRNR FROM ZKNA2 INTO ITAB

WHERE

KUNNR = ZKNA2-KUNNR.

APPEND ITAB.

ENDSELECT.

ENDCASE.

ENDMODULE.

1 REPLY 1
Read only

Former Member
0 Likes
248

thanks