Untitled

You might also like

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

METHOD S0001_G02_R1 BY DATABASE PROCEDURE FOR HDB LANGUAGE SQLSCRIPT OPTIONS READ-

ONLY
using /BIC/PZCOMPCODE.
-- target field: ZCOUNTRY
-- *** Begin of routine - insert your code only below this line ***

-- Note the _M class are not considered for DTP execution.


-- AMDP Breakpoints must be set in the _A class instead.

gt_compcode =
SELECT DISTINCT
A."/BIC/ZCOMPCODE",
A."/BIC/ZCOUNTRY"
FROM "/BIC/PZCOMPCODE" as A
inner join :intab as B
on A."/BIC/ZCOMPCODE" = B.bukrs;

outTab =
SELECT
B."/BIC/ZCOUNTRY",
A.record,
A.sql__procedure__source__record
FROM :inTab as A
LEFT JOIN :gt_compcode as B
ON A.bukrs = B."/BIC/ZCOMPCODE";

errorTab =
SELECT
'' as ERROR_TEXT,
'' as sql__procedure__source__record
FROM DUMMY
WHERE DUMMY <> 'X';

-- *** End of routine - insert your code only before this line ***
ENDMETHOD.

You might also like