Table Events 1. Create A Database Table YTEST - CUSTOMER
Table Events 1. Create A Database Table YTEST - CUSTOMER
4. Choose the appropriate event. Here I want to fill the full name once first name
and last name are entered in the table so I have choosen event 1 i.e. before saving
the data.
5. Create a subroutine from the custom code and click on the editor button to write
your code.
6. In the new include explicitly write FORM.ENDFORM and your code in between.
<vim_total_struc> holds the new entry and total[] holds the whole table.
*----------------------------------------------------------------------*
***INCLUDE LYTEST_CUSTOMERF01 .
*----------------------------------------------------------------------*
FORM yfill_complete_name .
DATA : ls_customer TYPE ytest_customer.
DATA : lt_customer TYPE STANDARD TABLE OF ytest_customer.
IF <action> = 'N'.
lt_customer[] = total[].
7. Now create a new entry , and the full name should get autopopulated upon save.