Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Table Maintenance : Default Values and Checks to Fields

Former Member
0 Likes
1,518

Hi,

I have created a table maintenance. How can we have default values to the fields when new entries button is clicked.

e.g. : I have a username field and I want the sy-uname value to be associated by default when I create a new entry.

-


Also can we add our custom modules to the standard generated screens to perform some checks for data validity or some processing ?

Can nebody tell me the procedure for the same ?

Regards,

Nitin

1 ACCEPTED SOLUTION
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
778

Hi Nitin,

You can create your own module for checking validation and you can display the sy-uname when new entry is pressed.

Step 1: Create table maintenance by

SE11->change mode of a table->Utlities->Table maintenance Generator

Step 2:Clickk create button by giving Authorization group,Function group and Maintenance Steps[fill the screen nos.]

Step 3:THen generate it.

Step 4:In the screen,click Fn.Gr Text push button.

Step 5:Uncomment the includes PAI and PBO and give them valid names.

Step 6: In PBO include,create your own module and code the following

screen-field = sy-uname.

Step 7: In PAI include,create your own module and code for the validations appropraitely.

Kindly reward points if it helps.

Hi Nitin,

You need to use view events for maintenance views.

Check SAP documentation for this.

There are previous posts on View events that you can also check, that has the path..

Rgds,

Prash.

4 REPLIES 4
Read only

Former Member
Read only

Former Member
0 Likes
778

Hi Nitin,

You need to use view events for maintenance views.

Check SAP documentation for this.

There are previous posts on View events that you can also check, that has the path..

Rgds,

Prash.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
779

Hi Nitin,

You can create your own module for checking validation and you can display the sy-uname when new entry is pressed.

Step 1: Create table maintenance by

SE11->change mode of a table->Utlities->Table maintenance Generator

Step 2:Clickk create button by giving Authorization group,Function group and Maintenance Steps[fill the screen nos.]

Step 3:THen generate it.

Step 4:In the screen,click Fn.Gr Text push button.

Step 5:Uncomment the includes PAI and PBO and give them valid names.

Step 6: In PBO include,create your own module and code the following

screen-field = sy-uname.

Step 7: In PAI include,create your own module and code for the validations appropraitely.

Kindly reward points if it helps.

Read only

0 Likes
778

Hi

Can you please tell me briefly how to add code in PAI and PBO module if i want to set sy-unmae in the a field . Evry time I add new entries it the currrent date should be defaulted