Data validation in Table maintaince generator
I have created a ztable with two fields zparcela,zparcelb and maintained table maintaince generator.i have creted tranaction for sm30.Now i need to validate if the user enters value of zparcela and if zparcelb is empty,error message should be thrown.
I have created events create new entry and written following code
IF /SPXTM/TA_PARCEL-ZPARCELB IS INITIAL.
MESSAGE TEXT-T02 TYPE 'E'.
But i have an issue i not getting the message even the zparcelb is empty.
Suhas Saha replied
Be more specific in your queries if you want better responses! For e.g., you should've provided the TMG event you're using.
Anyway basck to your qn:
IF /SPXTM/TA_PARCEL-ZPARCELB IS INITIAL. MESSAGE TEXT-T02 TYPE 'E'. ENDIF.
I don't think you can access the table data this way. Depending on the event you're using there are 2 table [TOTAL|http://help.sap.com/saphelp_nw04s/helpdata/en/91/ca9fb9a9d111d1a5690000e82deaaa/content.htm] & [EXTRACT|http://help.sap.com/saphelp_nw04s/helpdata/en/91/ca9f89a9d111d1a5690000e82deaaa/content.htm] which should be used to acess the data.
Read the online documentation on [TMG events|http://help.sap.com/saphelp_nw04s/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/content.htm] & get back if there are any issues.
@: Directly changing the TMG screen modules is the last thing you would want to do. If later on someone tries to regenerate the TMG all these changes will be overwritten!
Edited by: Suhas Saha on May 20, 2011 7:19 PM