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 Maintanence validations

Former Member
0 Likes
398

Hi All,

I have a requierement where i need to create a custom table with 7 feilds. I have created the table and table maintanence also. And while creating entries in table maintanence i need to do some validations like date feild should be defaulted with the today's date(this i did it) and some feilds needs like ready for input after saving also. And while deleting it should check whether that data is 3 year old or not? if so they can delete other wise the canot delete that. For this i have made some code, but how to capture all selected entries which need to delete. Because user may select one entry or multiple!! So please get back to me ASAP

So finally what i rewuire is how to make those fields ready to input and capturing multiple values while deleting...?

Thanks & regards,

raghu...

2 REPLIES 2
Read only

Former Member
0 Likes
367

Hello Raghu,

Go through the following Document

1. specially function group.. what is its significance

When we generate table maintenance,

the system , based upon the table fields,

automatically,

generates

PROGRAM CODE, SCREEN FOR ENTERING DATA,

LOGIC FOR SAVING DATA, LOGIC FOR DISPLAYING DATA

ETC.

2. All this are BUNCHED under

a FUNCTION GROUP

(if you open that function group in se80, after

creatting table maintenacne,

u will see the program code, screens, gui status etc)

3. Hence, to BUNCH all these various objects,

SAP uses the concept of function group.

*----


4. And also why do we need to give two screens there

Its not necessary to have to screens.

5. ONE SCREEN MEANS:

only one screen with table control to enter data

TWO SCREEN means :

first screen : only primary key fields will appear

second screen : rest of the fields will appear to enter data

6. When the table consists of many fields,

its practically more convenient to have two screens,

so that all fields come vertically downwards.

(instead of scrolling horizontally in the table

control, in case of one screen concept)

The use of the FG is only this the Table Maintainance Generator part. Neednt be declared anywhere else.

yes u need to create a FG and the use it in Table maint. gen.

See the below thread

/people/sudheer.cheedella/blog/2006/02/20/extracting-data-in-table-maintenance

Reward Points if it is helpful

Thanks

Seshu

Read only

Former Member
0 Likes
367

Hi Raghu,

You can set events on your table.

Go to SE54->Environment->Events.

Write a form routine for the events (I guess 01 and 03 would meet your requirement) and code as per your requirement. These events are automatically fired when the conditions are matched (ie, if you have set a form to be executed before saving the data to the database, ie, event 01, it will be executed while data is being saved to the database.

Thanks & Regards

Anil Madhavan