‎2006 Nov 14 6:19 AM
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 ?
‎2006 Nov 15 9:54 AM
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
‎2006 Nov 14 6:35 AM
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
‎2006 Nov 14 7:09 AM
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.
‎2006 Nov 14 1:07 PM
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.
‎2006 Nov 15 9:54 AM
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