‎2007 Feb 21 3:58 PM
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
‎2007 Feb 21 4:03 PM
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.
‎2007 Feb 21 4:32 PM
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.
‎2007 Feb 22 9:16 AM
Hi friends
I didnt get clearly please help me with code
Thank You
‎2007 Feb 22 9:21 AM
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.
‎2007 Feb 23 4:50 AM
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