Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Table Maintainance

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.

Tags:
Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question