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

TABLE CONTROL

Former Member
0 Likes
482

Hi Friends

I gave vendor number in a i/o field taken as lfa1-lifnr.Now i want to display the following two at a time to the vendor number i entered.

i) vendor number(i/o field wa-lifnr) and vendor name(i/o field wa-name1) in a seperate box

ii) and ebeln ,aedat , ekorg in a table contol .. please suggest me

Thank U

5 REPLIES 5
Read only

Former Member
0 Likes
452

You have do this using events like say there is a button and when you click it after entering the vendor number taken as lfa1-lifnr then

the event is at user-command.

when the Function code for the button you have to write the code for fetching the vendor name and display it in the wa-lifnr and wa-name1.

also get the relavant data from different tables that you have to put in the table control as well depending on the event you want that to happen and populate it.

Award points if it helps.

Read only

Former Member
0 Likes
452

Hi,

select required data at PAI and keep in a internal table for fuction code enter.

Do loop in PBO and keep data to the table control structure.

Read only

0 Likes
452

Hi friends

I didnt get clearly please help me with code

Thank You

Read only

0 Likes
452

hi,

i) vendor number(i/o field wa-lifnr) and vendor name(i/o field wa-name1) in a seperate box

u need to design the screen with the 2 input fields with the same names as declared in program(wa-lifnr , wa-name1) and in Properties window, select the option OUTPUT ONLY.

ii) and ebeln ,aedat , ekorg in a table contol ..

for this u declare the internal table in the program itself..

example:

DATA: BEGIN OF it_kna1 OCCURS 0,

kunnr LIKE kna1-kunnr,

name1 LIKE kna1-name1,

ort01 LIKE kna1-ort01,

land1 LIKE kna1-land1,

chk1 TYPE c , (checkbox in table control)

END OF it_kna1.

after creating the table control...(SE51)

select GET FROM PROGRAM..

and give the internal table name...

and in pai of first screen say 100.. give as

example:

case sy-ucomm.

when 'ENTE'.

IF NOT v_kunnr IS INITIAL.

SELECT

kunnr

name1

ort01

land1

FROM kna1

INTO CORRESPONDING FIELDS OF TABLE it_kna1

WHERE kunnr EQ v_kunnr.

ENDIF.

LEAVE TO SCREEN 0200.

endcase.

hope this helps,

do reward if it helps,

priya.

Read only

0 Likes
452

Hi

Actually my problem is when i enter a vendor number in an i/o field in frame(box) ... i want the to display vendor number and vendor name in next frame (box) and correspondingly i want ebeln, ekorg,aedat etc..... in a table control of the same screen itself .... please reply me as soon as posible

Thank U