Curso ABAP 013: Debug básico Flashcards

1
Q

Qual o comando para ir para um determinado statement dentro de um debug?

A

SHIFT+F12

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Faça um debug deste programa. Analise e mude as variáveis várias vezes para dar valores diferentes na média.
Use break points e faça debug direto.

REPORT zlinl_01.

SELECTION-SCREEN BEGIN OF BLOCK b1.
PARAMETERS p_1bim(12) TYPE p DECIMALS 2.
PARAMETERS p_2bim(12) TYPE p DECIMALS 2.
PARAMETERS p_3bim(12) TYPE p DECIMALS 2.
PARAMETERS p_4bim(12) TYPE p DECIMALS 2.
SELECTION-SCREEN END OF BLOCK b1.

START-OF-SELECTION.
DATA ld_media(12) TYPE p DECIMALS 2.

ld_media = ( p_1bim + p_2bim + p_3bim + p_4bim ) / 4.

IF ld_media >= 0 AND ld_media <= 50.
WRITE: ‘Mau’.
ELSEIF ld_media >= 50 AND ld_media < 59.
WRITE: ‘Médio’.
ELSEIF ld_media >= 60 AND ld_media <= 100.
WRITE: ‘B0m’.
ELSE.
WRITE: ‘Valor errado.’.
ENDIF.

A

Ver notas no Onenote

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly