11-17-2020 1:53 PM
Hello all,
We created a new checkbox column for an existing table and it is maintainable using SM30. However before transporting it into Production we need to make sure that the default value of this checkbox field is 'X' (set) ie the checkbox should be ACTIVE(Set /ticked) for all entries (rows) by default.
Once imported into production, since it is a new checkbox, it will be inactive and some important functions will fail to work (have written code to ensure that some functions will work only if this new Checkbox is set to ACTIVE). The user wants to avoid manually setting the checkbox for all entries through SM30 as soon as the change is imported into production.
Apart from table maintenance events, is there any other way to do this ? We have used the domain XFELD for the new data element.
Thanks in Advance !
11-17-2020 2:36 PM
Create a small report to set this field in every client and add this report twice in the transport request
You can add a message of success (or failure) to import log using FM TR_APPEND_LOG in the report. (Browse the many *XPRA* reports created by SAP)
11-17-2020 2:36 PM
Create a small report to set this field in every client and add this report twice in the transport request
You can add a message of success (or failure) to import log using FM TR_APPEND_LOG in the report. (Browse the many *XPRA* reports created by SAP)
11-17-2020 5:58 PM
Don't forget that the program runs in client 000 so use UPDATE ... CLIENT SPECIFIED ... and things like that.
11-17-2020 3:14 PM
Thanks Raymond for your Reply. Very interesting to know about XPRA. Writing a report was suggested before for another case however since the report was to be only run once and will have to be in production without any further use or have to be deleted- this was not done.
we are trying this solution:
the recording routine is activated for the table and now any data changes in the development System will hopefully be transported to production !
11-17-2020 5:59 PM
Please use COMMENT to Raymond answer. The button ANSWER is only for solutions.
11-17-2020 3:15 PM
Insure that
11-17-2020 3:25 PM
Hello jibin.mathews
The correct solution in this case, since you want to have the checkbox set to ACTIVE anyways, is to have the functionality NOT work when the checkbox is set to ACTIVE (in other words, work when the checkbox is set to INACTIVE).
This way marking the checkbox as ACTIVE will disable the functionality, but by default it (the functionality) will be enabled (as per your requirement).
Kind regards,11-17-2020 4:00 PM
Thanks Mateusz ! This could have been done but i forgot to mention that the table itself has about 10 columns (all checkboxes) and some exist since a decade. Doing it for one column may confuse users regarding other columns as, the table is maintainable by multiple users in production. Each user has an entry in the table and he can set each checkbox based on whether he wants a certain functionality to work for let us say his group. While importing into a production just wanted to make sure that the functionality is activated by default (as 'X').