After call metho GET_TEXTSTREAM, call the method flush
Example.
IF o_editor_test IS BOUND.
o_editor_test->get_textstream( IMPORTING text = DATA(lv_text) ).
cl_gui_cfw=>flush( ).
ENDIF.
After call metho GET_TEXTSTREAM, call the method flush
Example.
IF o_editor_test IS BOUND.
o_editor_test->get_textstream( IMPORTING text = DATA(lv_text) ).
cl_gui_cfw=>flush( ).
ENDIF.
F3 - Igual F2 no SAPGUI - entra no método ou perform
F2 - Exibe campos de estrutura/função/tabelas etc.
CTRL+F3 = Ativar
CTRL+SHIFT+F3 = Ativar vários objetos
F8 = F8 no SAPGUI - executa programa
CTRL+SHIFT+< = Comentar código
CTRL+SHIFT+> = Descomentar código
CTRL+SHIFT+X = upper case
CTRL+SHIFT+Y = lower case
CTRL+1 = opções para implementar, renomear, excluir método
ALT+SHIFT+R = Renomeia uma variável de qualquer tipo em todos os lugares onde a variável é utilizado no mesmo objeto (as vezes dá pau mas funciona)
CTRL + O - Lista de métodos ou subrotinas para navegação
CTRL+SHIFT+G - Lista de utilização do objeto
Navegar para elemento de texto.
Alt+F2 - Shows the signature of the method you are currently editing
Tab/Shift+Tab - When selecting a multiple lines of code, Tab indents the selection and Shift+Tab decreases the indent
CTRL+SHIFT+L - This open a list with all shortcuts available.
https://blogs.sap.com/2022/12/06/abap-cheat-sheets/
from blog
https://blogs.sap.com/2013/11/21/useful-keyboard-shortcuts-for-abap-in-eclipse/
Editing source code:
| Shortcut | What it will do |
| CTRL+D | Deletes the selected codeline |
| CTRL+SHIFT+DELETE | Deletes the content from the cursor position to the end of the line |
| CTRL+DELETE | Deletes the next word in the editor |
| CTRL+BACKSPACE | Deletes the previous word in the editor |
| ALT+UP/DOWN | Moves the selected codelines up/down in the editor |
| CTRL+ALT+UP/DOWN | Duplicates Codelines before/after the selected codeline |
| CTRL+UP/DOWN | Scrolls Line up/down |
| SHIFT+ENTER | Adds a new line below the current line and positions the cursor in that line |
| CTRL+SHIFT+ENTER | Adds a new line above the current line and positions the cursor in that line |
| CTRL+Z | Undo changes |
| ALT+SHIFT+R | Rename the selected object, e.g. variable, method, class |
| CTRL+1 | Opens Quickfix/Quickassist Dialog on the selected element |
| CTRL+7 | Comments/Uncomments selected code in the editor |
| SHIFT+F1 | Formats the source code (aka. Pretty Printer) |
| CTRL+SHIFT+F1 | Formats the marked source code or source code block (e.g. method) |
| CTRL+N | Creates new development object |
| CTRL+SHIFT+X | Convert marked editor content to upper case |
| CTRL+SHIFT+Y | Convert marked editor content to lower case |
| CTRL+U | Unlock Editor |
Navigation:
| CTRL-L | Jump to line in editor |
| CTRL-O | Launch the quick outline |
| ALT+LEFT/RIGHT | Navigate through the editor navigation history |
| CTRL+ ; / : | Step quickly through the editor markers, like tasks, bookmarks, error markers, ATC findings etc. |
| F3 | Navigate to the definition of the selected element, e.g. variable, method, attribute etc. |
Editor Tabs:
| CTRL + E | Displays a list of all open editors |
| CTRL + F6 | Easily switch between the editor tabs (Like Tab for Windows) |
| CTRL + F7 | Easily switch between all eclipse views |
| CTRL + F8 | Easily switch between the perspectives |
| CTRL + M | Maximize the active editor or viewer to full-screen mode |
| CTRL+3 | Easily open Eclipse views or trigger command via the Quick Access Input field |
| CTRL+PAGE UP/PAGE DOWN | Navigate through the editor tabs forward and backward |
| ALT+PAGE UP/PAGE DOWN | Navigate through the tabs of the class editor between global class, local class and test classes |
| CTRL + F4 | Close the active editor tab |
| CTRL+SHIFT+F4 | Close all editor tabs |
Debugging:
| CTRL+SHIFT+B | Set a line break point in the ABAP editor |
- Para exibição de HTML no container da SBWP por mais que o HTML funcione 100% no ambiente tipo chrome, edge ou qualquer outra ferramenta para exibição no SAP especificamente na exibição de conteúdo as vezes aparece algumas tags fora de posição ou aparece a tag mesmo, etc..
Para resolver esse problema fiquei procurando até achar um cara que fala de uma nota da SAP q desconhecia até então falando justamente da do HTML em editor sapscript.
2472157 - Work item description with HTML table in expression is not displayed correctly
Resumindo a nota a estrutura que deve ser usado para montar o HTML deve ser a RSWEBPUB_T_W3HTML que é a mesma estrutura do editor sapscript
Na primeira linha do sapscript no container do workflow deve ser colocado o texto MAIL_HTML_ONLY e depois a tabela que tem o HTML.
Ficaria dessa forma.
==== Eu alterei o TLINE_T pela RSWEBPUB_T_W3HTML que é mais apropriado
AT FIRST.
APPEND '<html>' TO rt_html.
APPEND '<style>' TO rt_html.
APPEND 'table, th, td{ text-align: left; font-family: "Helvetica"; }' TO rt_html.
APPEND '</style>' TO rt_html.
APPEND '<body>' TO rt_html.
APPEND '<h2>Liberação de Pagamento para Fornecedor</h2> <p>' TO rt_html.
APPEND |<table>| TO rt_html.
APPEND |<tr>| TO rt_html.
APPEND |<th style="width:200px; text-align:left;">Fornecedor:</th>| TO rt_html.
APPEND |<td style="width:500px; text-align:left;">{ lr_doc->supplier }-{ lr_doc->supplierfullname }</td>| TO rt_html.
APPEND |</tr>| TO rt_html.
APPEND |<tr>| TO rt_html.
APPEND |<th style="width:200px; text-align:left;">Data do Lançamento :</th>| TO rt_html.
APPEND |<td style="width:500px; text-align:left;">{ lr_doc->postingdate DATE = ENVIRONMENT }</td>| TO rt_html.
APPEND |</tr>| TO rt_html.
APPEND |<tr>| TO rt_html.
APPEND |<th style=<th style="width:200px; text-align:left;">Data do Vencimento :</th>| TO rt_html.
APPEND |<td style="width:500px; text-align:left;">{ lr_doc->netduedate DATE = ENVIRONMENT }</td>| TO rt_html.
APPEND |</tr>| TO rt_html.
APPEND |<tr>| TO rt_html.
APPEND |<th style="width:200px; text-align:left;">Texto Cabeçalho :</th>| TO rt_html.
APPEND |<td style="width:500px; text-align:left;">{ lr_doc->documentitemtext }</td>| TO rt_html.
APPEND |</tr>| TO rt_html.
APPEND |<tr>| TO rt_html.
APPEND |<th style="width:200px; text-align:left;">Documento criado por :</th>| TO rt_html.
APPEND |<td style="width:500px; text-align:left;">{ lr_doc->accountingdoccreatedbyuser }-{ lv_username }</td>| TO rt_html.
APPEND |</tr>| TO rt_html.
APPEND |<tr>| TO rt_html.
APPEND |</table>| TO rt_html.
APPEND '</p><p/>' TO rt_html.
APPEND '<table>' TO rt_html.
APPEND |<th style="width:80px; text-align:left; border:1px solid ;">Item</th>| TO rt_html.
APPEND |<th style="width:200px; text-align:center; border:1px solid black;">Valor do item</th>| TO rt_html.
APPEND |<th style="width:70px; text-align:left; border:1px solid black;">Moeda</th>| TO rt_html.
APPEND |<th style="width:150px; text-align:left; border:1px solid black;">Centro de Lucro</th>| TO rt_html.
APPEND |<th style="width:500px; text-align:left; border:1px solid black;">Atribuição</th>| TO rt_html.
APPEND '</tr>' TO rt_html.
ENDAT.
APPEND '<tr>' TO rt_html.
APPEND |<th style="width:80px; text-align:left; border:1px solid ;">{ lr_doc->accountingdocumentitem }</td>| TO rt_html.
APPEND |<th style="width:200px; text-align:right; border:1px solid black;">{ abs( lr_doc->amountincompanycodecurrency ) NUMBER = ENVIRONMENT }</td>| TO rt_html.
APPEND |<th style="width:70px; text-align:left; border:1px solid black;">{ lr_doc->companycodecurrency }</td>| TO rt_html.
APPEND |<th style="width:150px; text-align:left; border:1px solid black;">{ lr_doc->profitcenter }</td>| TO rt_html.
APPEND |<th style="width:500px; text-align:left; border:1px solid black;">{ lr_doc->assignmentreference }</td>| TO rt_html.
APPEND '</tr>' TO rt_html.
ENDLOOP.
APPEND '</table>' TO rt_html.
APPEND '</body>' TO rt_html.
APPEND '</html>' TO rt_html.
SWU3 - Configuração de jobs automáticos
SWIA - Para eliminar processos de workflow parados na caixa de entrada
Ao testar a conexão dava um erro que não acha o grupo SPACE, nessa transação SMLG o grupo para o servidor estava em branco, eu preenchi com o SPACE e deu certo
| SWU_OBUF | manual buffer refresh | SWPC | continue WF after a system crash |
| SWI6 | show all WF instances, work item IDs by BOR/CL name & Object Key (optional) | SWI5 | work item per work center, job, organizational unit, position, user |
| SWIA | work item administration (WI) | SWI2_DIAG | error diagnosis |
| SWWL | delete work item | SWI2_DEAD | deadline monitor |
| SWWL_TOPLEVEL | delete a parent workflow with all of its child work items | SWI2_DURA | process duration |
| SWUD | WF diagnosis | SWI2_ADM1 | find orphaned work item |
| SWELS | event trace | SM12 | lock, unlock the object |
| SWEL | display event trace | SARA | archiving |
Workflow Development
| SWDD | WF builder | SWNADMIN | notification management |
| PFTC | template, task management (WS, TS) | SM37 | view scheduled and processed jobs |
| PFTC_DIS | assigning possible agent | SBWP | WF inbox |
| PFAC | rule creation, editing, testing | SWU0 | simulate the event linkage |
| SWO1 | business object builder (BOR) | SWEQADM | event queue, preventing RFC-problem |
| SWUS | test, execute WF | SWB_COND | all start conditions |
| SWEINST | all terminating events linkage | SWU9 | WF trace for the session |
| SWUI_VERIFY | WF verification | SWI1 | selection report for work item |
| SOST | SAPconnect transmission request | SWPA | customizing WF runtime system |
| SWNCONFIG | notification configuration | PPOM | organization & staffing |
| SWEQBROWSER | event waiting in the event queue | PPOME | organizational management, structure & staff assignment, user mapping |
| SM52 | view tRFC | SWI2_FREQ | opened task statistic |
ABAP Development
| SE24 | classes | SE11 | data types, domains, tables |
| SE37 | function modules, functions | SE09 | list of change requests per SAP user |
| SE38 | programs | SE03 | change requests management |
| ST22 | runtime error logs, dumps | STMS | change requests transferring |