Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

*&---------------------------------------------------------------------*

*& Report ZP59


*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

REPORT ZP59.

PARAMETER P_CSTNO type kna1-kunnr.


data : kunnr type kna1-kunnr,
land1 type kna1-land1,
name1 type kna1-name1,
ort01 type kna1-ort01.

EXEC SQL.
select kunnr,land1,name1,ort01
from kna1
into :kunnr, :land1, :name1, :ort01
where kunnr = :P_CSTNO
ENDEXEC.
if sy-subrc eq 0.
write : / 'Customer ',P_CSTNO,'is found...',
: /(25) 'Customer Number :',kunnr,
: /(25) 'Customer Country :',land1,
: /(25) 'Customer Name :',name1,
: /(25) 'Customer City :',ort01.
else.
write : /'Customer ',P_CSTNO,'is not found...'.
ENDIF.

You might also like