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 Maintainace Generator

Former Member
0 Likes
579

Whenever I am creating a table maintainance generator for Z-Table, and if any -ve value is encountered , system throws an error. Can anybody guide me to avoid this problem ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
549

In your Table maintenance overview screen ,

go to the field where you enter negative values in the screen painter and there

you should enter _______________V in the Text of the attributes screen for that field and then activate and save.

and now check it.

Regards

Vijay

4 REPLIES 4
Read only

anversha_s
Active Contributor
0 Likes
549

hi sachin,

warm welcome to SDN.

Hi,

Table Maintenance generator is required to do Manual entries in the Table.

If the requirement is to update the table only programmatically and not manually then table maint generator is not required.

Manual entries in table can be maintained ( New record can be inserted / existing can be modified )

using transaction SM 30, if the table maintenance for the table is generated.

<u>http://help.sap.com//saphelp_470/helpdata/EN/a7/5133ac407a11d1893b0000e8323c4f/frameset.htm</u>

How to activate Table maint.

Goto SE11 and open the table.

Click UTILITIES -> Table Maint. Generator, Enter the details and click on Save. Then activate the table.

chk a sample 1.

refer.

<u>https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc</u>

Rgds

Anver

if hlped pls mark points

Read only

former_member283648
Participant
0 Likes
549

Hi,

If you want to control data entered in the Z table then it is easy by implementing events.

For doing this go to transaction SE55 and then create a table maintanence generator screen. Go to the menu path Environment->modification->events.

Here u can create new events based on your requirement. Say u want to raise error while user saves a record then Press new entries button. It will open up the table control. In the event id enter '01' -> Before saving entries to database. then in the form routine mention a form routine name. Press enter. It will create an icon. Pressing this will take u to the include where u need to code. The standard sap fieldsymbol EXTRACT will have the data entered. Then u can loop at this to do ur validations.

Read only

Former Member
0 Likes
549

1)Generate the table maintenance

2) Go to the screen created using SE51

3) Go to the field creating problem.Adjust the field length...increase it so that it can accumulate the ';-'; character also.

It will work fine.

Read only

Former Member
0 Likes
550

In your Table maintenance overview screen ,

go to the field where you enter negative values in the screen painter and there

you should enter _______________V in the Text of the attributes screen for that field and then activate and save.

and now check it.

Regards

Vijay