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
module GET_VALUES input.
DATA: W_KNA1 LIKE KNA1.
SELECT SINGLE *
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.
is there any alternative method other than the above or events.
plz assist me.
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.