{"id":158,"date":"2012-08-27T09:42:43","date_gmt":"2012-08-27T08:42:43","guid":{"rendered":"http:\/\/oprsteny.cz\/?p=158"},"modified":"2012-08-27T09:47:37","modified_gmt":"2012-08-27T08:47:37","slug":"ok-codes-and-hot-keys-in-abap","status":"publish","type":"post","link":"https:\/\/oprsteny.cz\/?p=158","title":{"rendered":"OK codes and hot-keys in ABAP"},"content":{"rendered":"<p>Sometimes it&#8217;s useful to know some hot-key shortcuts or OK-codes when coding in ABAP. So let&#8217;s have brief overview of some of them.<!--more--><\/p>\n<table width=\"1415\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col span=\"2\" width=\"180\" \/>\n<col width=\"1055\" \/> <\/colgroup>\n<thead>\n<tr>\n<th>Category<\/th>\n<th>Code<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td width=\"180\" height=\"17\">ABAP\/4 debugging<\/td>\n<td width=\"180\">\/h<\/td>\n<td width=\"1055\">This switches into debugging mode.<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">ABAP\/4 debugging<\/td>\n<td>\/hs<\/td>\n<td>This switches into debugging mode and activates the debugging of system functions.<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">ABAP\/4 debugging<\/td>\n<td>\/hx<\/td>\n<td>This switches off the external debugger session (new debugger). Must be run from the session where the application runs<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/00<\/td>\n<td>ENTER<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/01<\/td>\n<td>F1<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/02<\/td>\n<td>F2<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/03<\/td>\n<td>F3<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/04<\/td>\n<td>F4<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/05<\/td>\n<td>F5<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/06<\/td>\n<td>F6<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/07<\/td>\n<td>F7<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/08<\/td>\n<td>F8<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/09<\/td>\n<td>F9<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/10<\/td>\n<td>F10<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/11<\/td>\n<td>F11<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/12<\/td>\n<td>F12<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/13<\/td>\n<td>Shift-F1<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/14<\/td>\n<td>Shift-F2<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/15<\/td>\n<td>Shift-F3<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/16<\/td>\n<td>Shift-F4<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/17<\/td>\n<td>Shift-F5<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/18<\/td>\n<td>Shift-F6<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/19<\/td>\n<td>Shift-F7<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/20<\/td>\n<td>Shift-F8<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/21<\/td>\n<td>Shift-F9<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/22<\/td>\n<td>Shift-F10<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/23<\/td>\n<td>Shift-F11<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/24<\/td>\n<td>Shift-F12<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/25<\/td>\n<td>Ctrl-F1<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/26<\/td>\n<td>Ctrl-F2<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/27<\/td>\n<td>Ctrl-F3<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/28<\/td>\n<td>Ctrl-F4<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/29<\/td>\n<td>Ctrl-F5<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/30<\/td>\n<td>Ctrl-F6<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/31<\/td>\n<td>Ctrl-F7<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/32<\/td>\n<td>Ctrl-F8<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/33<\/td>\n<td>Ctrl-F9<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/34<\/td>\n<td>Ctrl-F10<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/35<\/td>\n<td>Ctrl-F11<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/36<\/td>\n<td>Ctrl-F12<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/37<\/td>\n<td>Ctrl-Shift-F1<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/38<\/td>\n<td>Ctrl-Shift-F2<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/39<\/td>\n<td>Ctrl-Shift-F3<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/40<\/td>\n<td>Ctrl-Shift-F4<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/41<\/td>\n<td>Ctrl-Shift-F5<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/42<\/td>\n<td>Ctrl-Shift-F6<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/43<\/td>\n<td>Ctrl-Shift-F7<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/44<\/td>\n<td>Ctrl-Shift-F8<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/45<\/td>\n<td>Ctrl-Shift-F9<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/46<\/td>\n<td>Ctrl-Shift-F10<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/47<\/td>\n<td>Ctrl-Shift-F11<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/48<\/td>\n<td>Ctrl-Shift-F12<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/70<\/td>\n<td>Ctrl-E<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/71<\/td>\n<td>Ctrl-F<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/72<\/td>\n<td>Ctrl-A<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/73<\/td>\n<td>Ctrl-D<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/74<\/td>\n<td>Ctrl-N<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/75<\/td>\n<td>Ctrl-O<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/76<\/td>\n<td>Shift-Del.<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/77<\/td>\n<td>Ctrl-Ins.<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/78<\/td>\n<td>Shift-Ins.<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/79<\/td>\n<td>Alt-Backsp.<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/80<\/td>\n<td>Ctrl-Screen &#8211;<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/81<\/td>\n<td>Screen &#8211;<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/82<\/td>\n<td>Screen +<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/83<\/td>\n<td>Ctrl-Screen +<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/84<\/td>\n<td>Ctrl-G<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/85<\/td>\n<td>Ctrl-R<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/86<\/td>\n<td>Ctrl-P<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/bda<\/td>\n<td>This switches from &#8220;Display errors only&#8221; to &#8220;Process in foreground&#8221;.<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/bde<\/td>\n<td>This switches from &#8220;Process in foreground&#8221; to &#8220;Display errors only&#8221;.<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/bdel<\/td>\n<td>This deletes the current batch input transaction.<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/bend<\/td>\n<td>This terminates batch input processing and sets the session to &#8220;Failed&#8221;.<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/Exxxx<\/td>\n<td>xxxx = function code of the button (Example: in Tx KE1E, Get varaint pushbutton = VAHO = Shift+F1 = \/13 ==&gt; \/13 = \/EVAHO)<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Batch input<\/td>\n<td>\/n<\/td>\n<td>This terminates the current batch input transaction and characterizes it as &#8220;Failed&#8221;.<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Buffer commands<\/td>\n<td>\/$CUA<\/td>\n<td>This resets the CUA buffers of the application server<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Buffer commands<\/td>\n<td>\/$DYNP<\/td>\n<td>This resets the screen buffers of the application server<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Buffer commands<\/td>\n<td>\/$NAM<\/td>\n<td>This resets the nametab buffers of the application server<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Buffer commands<\/td>\n<td>\/$SYNC<\/td>\n<td>This resets all buffers of the application server<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Buffer commands<\/td>\n<td>\/$TAB<\/td>\n<td>This resets the table buffers of the application server<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Normal<\/td>\n<td>%pc<\/td>\n<td>Downloads lists<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Normal<\/td>\n<td>%pri<\/td>\n<td>Prints lists<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Normal<\/td>\n<td>%sc<\/td>\n<td>Searches for a string in lists (like &#8220;System -&gt; List -&gt; Find String&#8221;)<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Normal<\/td>\n<td>.xyzw<\/td>\n<td>Fast path: &#8220;xyzw&#8221; refers to the underlined letters in the menus. This type of navigation is uncommon and is provided more for emergencies (such as a defective mouse).<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Normal<\/td>\n<td>\/*xxxx<\/td>\n<td>Starts Transaction xxxx and skips the first screen. So, it has the same effect as \/nxxxx followed by ENTER.<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Normal<\/td>\n<td>\/i<\/td>\n<td>This terminates the current session (corresponds to &#8220;System -&gt; End session&#8221;).<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Normal<\/td>\n<td>\/i1, \/i2,&#8230;<\/td>\n<td>This terminates the session with the number given.<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Normal<\/td>\n<td>\/n<\/td>\n<td>This terminates the transaction. This generally corresponds to pressing F15 to go back.<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Normal<\/td>\n<td>\/nend<\/td>\n<td>This terminates all separate sessions and logs off (corresponds to &#8220;System -&gt; Log off&#8221;).<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Normal<\/td>\n<td>\/nex<\/td>\n<td>This terminates all separate sessions and logs off immediately (without warning!).<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Normal<\/td>\n<td>\/nxxxx<\/td>\n<td>This terminates the current transaction, and starts transaction &#8220;xxxx&#8221;<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Normal<\/td>\n<td>\/o<\/td>\n<td>This lists existing sessions and allows deletion or opening of a new session.<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Normal<\/td>\n<td>\/oxxxx<\/td>\n<td>This opens a new session and starts transaction xxxx in this session.<\/td>\n<\/tr>\n<tr>\n<td height=\"17\">Normal<\/td>\n<td>?STAT<\/td>\n<td>Displays the status popup (like &#8220;System -&gt; Status&#8230;)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes it&#8217;s useful to know some hot-key shortcuts or OK-codes when coding in ABAP. So let&#8217;s have brief overview of some of them.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[16,9],"tags":[446,36,37,17],"class_list":["post-158","post","type-post","status-publish","format-standard","hentry","category-abap","category-development","tag-abap","tag-hotkey","tag-okcode","tag-sap"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3nYbe-2y","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=158"}],"version-history":[{"count":4,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/158\/revisions"}],"predecessor-version":[{"id":161,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/158\/revisions\/161"}],"wp:attachment":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}