Ricardo Ishida
Dicas ABAP / ABAP tips
Translate this blog
quarta-feira, 16 de maio de 2018
Localizar transação da View da tabela transparente / Find a Transparent Table View Transaction
Português
|
English
Português
Para localizar uma transação vinculada a uma tabela transparente (View de manutenção) acesse a tabela TSTCP via SE16 ou SE16N e coloque a instrução no campo PARAM *SM30*(nome da tabela)*. Exemplo - quero localizar a tabela ZMMTXXX e saber se ela possui uma transação para manutenção. Preencho o campo PARAM da seguinte forma na SE16N:
Contribuição de Wagner "Cabelo" da Rocha.
English
To search for a transaction bound to a transparent table (Maintenance View), access the TSTCP table via SE16 or SE16N and fill the statement in the field PARAM with *SM30*(table name)*. Example - I want to find the ZMMTXXX table and if it has a transaction for maintenance. I'll fill in the PARAM field as follows in SE16N:
Contribution of Wagner "Cabelo" da Rocha.
sexta-feira, 11 de agosto de 2017
Call Transaction abre com tema diferente para SAP GUI 7.5 / Call Transaction displayed with different theme with SAP GUI 7.5
Português
|
English
Português
Após fazer o Upgrade para o SAP GUI 7.5, alguns desenvolvimentos apresentaram diferença na visualização de suas telas. No código, ao dar um comando como CALL TRANSACTION ou LEAVE TO TRANSACTION a janela modificava para um tema diferente do que eu estava utilizando.
Tema que estava sendo utilizado (Corbu Theme), que a tela deveria apresentar:
Tema após o comando Call Transaction do programa Z:
Com o Upgrade da versão do SAP GUI, uma opção nas configurações foi modificada e, por isso, obtive este comportamento em alguns dos programas. Para solucionar, basta entrar nas opções do SAP GUI (pode ser no SAP Logon ou mesmo na janela aberta de algum ambiente), clicar na pasta Design Visual > Visualização/configs. tema e desflegar o campo "Aceitar tema visual SAP Fiori" e aceitar as modificações. Lembrando que é necessário reiniciar o SAP GUI para que as modificações sejam efetuadas.
Desmarcando a opção "Aceitar tema visual SAP Fiori" solucionará o problema:
English
After Upgrading to SAP GUI 7.5, some developments showed differences while displaying its screens. On the code, when the program used the CALL TRANSACTION or LEAVE TO TRANSACTION command the screen was displayied with a different theme, as the one it was cofigured to.
Theme that was cofigured (Corbu Theme), which should be displayed:
Theme after the Call Transaction command from the Z program:
When upgrading the SAP GUI version, an option in the settings has been modified so we get this behavior in some of the programs. To solve it, simply enter the SAP GUI options (it can be in SAP Logon or even in the open window of any environment), click in the Visual Design folder & gt; & Nbsp; Preview / Settings Theme and unroll the field "Accept SAP Fiori visual theme" and accept the modifications. Remember that you need to restart the SAP GUI for the changes to take effect.
Unchecking the "Accept SAP Fiori visual theme" will solve the problem:
terça-feira, 16 de maio de 2017
Limpar o buffer do ambiente / Refresh client's buffer
Português
|
English
Português
Se algum dia você fizer alguma modificação em uma estrutura, tabela, etc. e ela não aparecer no seu relatório em ALV ou der algum Dump, pode ser que você precise limpar o Buffer do ambiente. Para isso, digite na barra de navegação do SAP GUI
/$sync
e aperte
Enter
. Uma mensagem de confirmação será exibida.
English
If one day you change an structure, table, etc. and it doesn't update on your ALV report or turns into a Dump, it can mean you'll need to refresh the client buffer. To make it happen, type in the SAP GUI's address bar
/$sync
and
Enter
. A confirmation message will be displayed.
segunda-feira, 4 de abril de 2016
Procurar objetos no SAP / Search objects on SAP
Português
|
English
Português
As vezes precisamos achar um objeto, função, constante, palavra, etc. em algum desenvolvimento que criamos ou utilizamos, mas não temos ideia de onde ele está. Para este problema, uma das soluções existentes no SAP é a transação CODE_SCANNER! Passando alguns parâmetros você poderá localizar qualquer coisa, como implementações de Enhancements rapidamente!
English
Sometimes we need to find an object, function, constant, word, etc. in some development we created or used, but we have no idea where it is. For this problem one of the solutions available on SAP is CODE_SCANNER transaction! Filling out a few parameters you will find anything like in an Enhancement implementation quickly!
terça-feira, 8 de março de 2016
CSapEditorCtrl::GetObject: Object ## does not exist
Português
|
English
Português
Após atualizar o SAP GUI para a versão 7.4, tive que dar manutenção em um Smart Form e, ao clicar em 'Editar' recebia a seguinte mensagem: CSapEditorCtrl::GetObject: Object 15 does not exist. Tratei logo de pesquisar sobre e encontrei uma solução. Em resumo, basta ler e aplicar esta SAP Note
2221815
!
Se você não conseguir achar o arquivo para instalar o path, clique
aqui
para fazer o download!
English
After updating my SAP GUI to 7.4 version, I had to adjust a Smart Form and, after clicking on 'Edit' the following message poped up: CSapEditorCtrl::GetObject: Object 15 does not exist. Right the way I Googled it and I got the solution. In summary you'll need to read and aply this SAP Note
2221815
!
If you couldn't find the file to install the path, click
here
to download it!
terça-feira, 29 de setembro de 2015
Chamar a ajuda para pesquisa via código / Calling the Search Help via code
Português
|
English
Português
A funcionalidade da ajuda para pesquisa é sempre bem vinda, tendo em vista a integridade dos dados de um sistema. Houve uma necessidade para um desenvolvimento de chamar a ajuda para pesquisa de um campo Standard que já possuia esta funcionalidade. O problema é que a criação do campo é dinâmica, o que não permite a forma natural da chamada desta função.
No exemplo abaixo, utilizando a ajuda para pesquisa C_T001 do campo Empresa (BUKRS), implementei uma solução da seguinte forma:
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DATA
:
lt_retval
TYPE
hrreturn_tab
,
ls_shlp
TYPE
shlp_descr
.
FIELD-SYMBOLS
:
<
fs_interf
>
TYPE
ddshiface
.
CALL FUNCTION
'F4IF_GET_SHLP_DESCR'
EXPORTING
shlpname
=
'C_T001'
IMPORTING
shlp
=
ls_shlp
.
READ TABLE
ls_shlp-interface
ASSIGNING
<
fs_interf
>
INDEX
1
.
IF
sy-subrc
=
0
.
<
fs_interf
>
-valfield
=
abap_true
.
CALL FUNCTION
'F4IF_START_VALUE_REQUEST'
EXPORTING
shlp
=
ls_shlp
TABLES
return_values
=
lt_retval
.
ENDIF
.
Tela da ajuda para pesquisa:
O retorno da escolha da ajuda de pesquisa estará no campo da tabela LT_RETVAL-FIELDVAL:
English
The search help resource is pretty useful, once we have to ensure the sistem data integrity. Once in a program development I had to call an already existent search help from a Standard field. The problem was the field should be dynamically created, so I couldn't call it in an usual Standard way.
In the sample code below, using the search help C_T001 from the Company code (BUKRS), I developed a solution like this:
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DATA
:
lt_retval
TYPE
hrreturn_tab
,
ls_shlp
TYPE
shlp_descr
.
FIELD-SYMBOLS
:
<
fs_interf
>
TYPE
ddshiface
.
CALL FUNCTION
'F4IF_GET_SHLP_DESCR'
EXPORTING
shlpname
=
'C_T001'
IMPORTING
shlp
=
ls_shlp
.
READ TABLE
ls_shlp-interface
ASSIGNING
<
fs_interf
>
INDEX
1
.
IF
sy-subrc
=
0
.
<
fs_interf
>
-valfield
=
abap_true
.
CALL FUNCTION
'F4IF_START_VALUE_REQUEST'
EXPORTING
shlp
=
ls_shlp
abaixo
TABLES
return_values
=
lt_retval
.
ENDIF
.
The search help displayed:
The chosen field valeu is returned in the field from the table LT_RETVAL-FIELDVAL:
sexta-feira, 25 de setembro de 2015
Transportar dados de tabelas transparentes não Customizing / Transport data from non Customizing transparent tables
Português
|
English
Português
Em alguns casos temos a necessidade de transportar dados de uma tabela de classe de entrega que não seja do tipo Customizing. Para estes casos podemos proceder da seguinte forma:
Via transação SE09, com duplo clique, acesse a request filho desejada:
Clique no botão Modificar:
Abaixo, nas linhas que existe a possibilidade de inserir conteúdo, digite conforme o nome da coluna:
ID-Programa - R3TR
Tipo de objeto - TABU
Nome do objeto - Nome da tabela transparente
Clique no botão Objeto com chaves da linha inserida:
Adicione os registros chaves que deseja transportar ou preencha os campos chaves com asteriscos (*) para trazer todos os dados da tabela em questão (lembrando de informar o mandante que contém as informações que deseja transportar):
Desta forma, quando você transportar a request, todos registros que as chaves foram informadas e estiverem no respectivo client serão transportados também.
English
Once in a while we need to transport some data from a transparent table in which the delivery class is not set as Customizing. In this case we can proceed following this steps:
Via SE09 transaction, access the desired child request double clicking it:
Click on Change button:
Bellow the table lines, right where you can input data, type this items in its respective columns:
Program ID - R3TR
Object Type - TABU
Object Name - Transparent table name
Click on the Object with keys button on the inserted row:
Add the key datas you want to transport or fill the key fields with asterisks (*) to get and transport all data from that table (don't forget to set the mandant that contains the data you want to transport):
Therefore, when you transport the request, all records that the keys have been informed and are in the respective client will be transported as well.
Postagens mais recentes
Postagens mais antigas
Página inicial
Assinar:
Postagens (Atom)