10-08-2008 5:58 PM
Hi Gurus,
i have created a Table maintainance generator for a ztable,and assigned it to a transaction,my req is when i run the transaction, say i have given customer through
F4 help and when i press ENTER the respective cusomers name city region should be displayed in corresponding columns,here my problem comes i am Unable to catch the customer which i have provided through f4 help,i have written the respective code in PAI module of respective screen,i am provinding the code below...
&----
*& Module GET_VALUES INPUT
&----
text
----
module GET_VALUES input.
DATA: W_KNA1 LIKE KNA1.
SELECT SINGLE *
FROM KNA1
INTO W_KNA1
WHERE KUNNR = ZHVDC-SHIPTO. "customer thru f4 help
if sy-subrc eq 0.
zhvdc-SHIPFROM = w_KNA1-name1.
zhvdc-LOCATION = w_KNA1-ORT01.
zhvdc-STATE = w_KNA1-regio.
else.
exit.
endif.
is there any alternative method other than the above or events.
plz assist me.
Regards,
Vijaya.
10-08-2008 6:18 PM
Hi
U can use the event 05 (triggered for a new input): after generating the table maintenance program go to Enviroments->Modifications->Events
Here u can set an your own routine to fill automatically some fields.
Max
10-08-2008 6:18 PM
Hi
U can use the event 05 (triggered for a new input): after generating the table maintenance program go to Enviroments->Modifications->Events
Here u can set an your own routine to fill automatically some fields.
Max
10-08-2008 8:31 PM
Max,
Thats good But can u exactly suggest me which event i should use for my req
and how to proceed.
Regards,
Vijaya.