RZ10 to maintain profile parameters

Before we get into how to maintain profile parameter you firstly need to know that there are two types of parameter, those that can be dynamically changed and those that can't. For those that can you are able to change the value directly via transaction RZ11, for the others you need to update the value using a default or instance profile via RZ10.

​DEFAULT & INSTANCE RZ10 parameter profiles

These profiles are basically a group of  parameters and their value which need to be assigned to the SAP system at startup. Just for information when an SAP system starts up it looks for profile parameters within instance profiles first, then default profiles. If neither profile can be found it will use the standard default for the parameter.

Update parameter via RZ10 profile 

It's not that obvious  when using transaction RZ10 but once you know it's quite easy to do if you follow the below simple steps. Although this is really for info only and should be passed to the basis team and should not be performed if you are not sure of the consequences..

1

Execute transaction RZ10

First execute tcode RZ10 and find the profile you want to update. This is actually not that obvious to do which is why this should probably be done by the basis team who know which profile is currently being used.  

Also if you press change on a specific profile it will actually tell you if it is not the current active one.

rz10 change profile
2

Change/add parameter within profile  

Enter the profile you want to update

Press the change button and then click the add new parameter on the next screen

rz10 add parameter

Now enter the parameter details including new value

rz10 add parameter details

Please be aware that if you follow the below step and save the changes they will take effect when the SAP instance is restarted, so be sure you know what the effect of your changes are. 


From this point its not obvious how you save but if you press back button twice a SAVE option will appear on the resultant popup after the second time. Press this save.

add parameter save

You will now have returned to the list of parameters within the profile. Again its not obvious how to save so just  press the  back button again and select SAVE on the resultant popup

profile save

Now on the main RZ10 profile screen press SAVE. The profile will now be saved and activated. I believe this will now become the active default profile for the SAP system. 

save profile
save parameter caution


Your content here...


Setting SAP Rec/Client Parameter for Logging database changes

First of all there is a very simple way to activate change history for database tables in SAP, including your own custom z tables. Within transaction SE11 simply go to menu option 'Technical Settings' and check the 'Log data changes' checkbox for your desired database table which will therefore instruct SAP to start recording all changes for this table. But before this will work you need to ensure that the rec/client parameter is set to the appropriate entry from.

Set Rec/Client parameter to activate the log data changes via RZ11

Here are the available options for the rec/client parameter with the default being 'OFF'.

OFF

logging is turned off for all tables

ALL

​logging is turned on for all tables

Specific client i.e. 500,100...

​logging is turned on for specific clients. Cross-client tables are logged in all clients.

Steps  to set the profile parameter rec/client for table logging

1

Call transaction RZ11.

Execute transaction RZ11 and enter 'rec/client' as the parameter that you want to change 

set rec/client
2

View Rec/Client parameter value

Now press the display button to see what the current value is. As you can see from this image the current value is set to 800 so it will only record change logs on SAP client 800 

rec/client current settings
3

Change Rec/Client parameter value and save

Now to change a parameter value you would need to use the menu option Edit->Change Value if available!!!

change parameter value rz11

Unfortunately this is not available for this parameter as it is not dynamically changeable, which basically means you can't change it on the fly without restating the system. To change the value of the rec/client parameter you need to add/change it via a parameter profile using RZ10

...having said that at this point I will point out that it should really be the role of the basis team to change this value so at least get them involved and discuses any performance implications your requirement may have on the overall SAP landscape .

Beautify, Change case and Indent your ABAP code automatically using SAP Pretty Print

abap pretty printer settings

I guess you may already know about the pretty print functionality within ABAP development which helps make you code more readable, but did you know you can change the pretty print settings so that all your statement keywords are changed to upper case and everything else is changed to lowercase. You can also decide if you want it to indent or not.

To pretty print your ABAP code simply click the pretty print button at the top of the editor. Also a good idea to make sure your sure your code syntax checks and activate it it first.

pretty print abap code

Access and assign Pretty Print Settings

To access the pretty print settings simply choose the main menu option Utilities->Settings

abap pretty print settings

Then within the next screen you need to choose tab 'ABAP Editor' and then 'Pretty Printer' in the sub section.

abap pretty printer settings

​Here you can select your desired code layout from the available indent and uppercase/lowercase options

Indent

This option allows you to decide if you want your code to be indented or not

ABAP code with indent

loop at it_text into wa_text.
   write:/ 'hello'.
   skip 2.
   write:/ 'indented code'.
endloop.

ABAP code without indent

loop at it_text into wa_text.
write:/ 'hello'.
skip 2.
write:/ 'indented code'.
endloop.

Lowercase

If you choose the 'Lowercase' option then as you would expect everything will be converted to lowercase.

loop at it_text into wa_text.
write:/ 'hello'.
skip 2.
write:/ 'indented code'.
endloop.

Uppercase

If you choose the 'Uppercase' option then the result will be that everything will be converted to Uppercase.

LOOP AT it_text INTO wa_text.
WRITE:/ 'hello'.
SKIP 2.
WRITE:/ 'indented code'.
ENDLOOP.

Keyword Uppercase

This is where it gets interesting because if you choose the 'Keyword Uppercase' option, all keywords will be converted to uppercase but this will mean that all variables will be converted to lowercase.

LOOP AT it_text INTO wa_text.
WRITE:/ 'hello'.
SKIP 2.
WRITE:/ 'indented code'.
ENDLOOP.

Keyword Lowercase

Now choose the  'Keyword Lowercase' option, this will then convert all keywords to lowercase but as a result all variables will be converted to Uppercase.

loop at IT_TEXT into WA_TEXT.
write:/ 'hello'.
skip 2.
write:/ 'indented code'.
endloop.