0% found this document useful (0 votes)
18 views3 pages

@AbapCatalog - sqlViewName 'ZV - EXP - PM

The document defines a SQL view named 'ZDDLSD_EXP_OS_PAYMENT' which aggregates payment amounts in local and foreign currencies from a joined dataset of bill and payment information. It includes various calculations based on conditions related to payment types and statuses. Additionally, it outlines paths for integration logs and specifies details related to packaging and production for export documentation.

Uploaded by

Ganesh Chaudhary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views3 pages

@AbapCatalog - sqlViewName 'ZV - EXP - PM

The document defines a SQL view named 'ZDDLSD_EXP_OS_PAYMENT' which aggregates payment amounts in local and foreign currencies from a joined dataset of bill and payment information. It includes various calculations based on conditions related to payment types and statuses. Additionally, it outlines paths for integration logs and specifies details related to packaging and production for export documentation.

Uploaded by

Ganesh Chaudhary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

@AbapCatalog.

sqlViewName: 'ZV_EXP_PMT'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Export OS Bill Payment'
@Metadata.ignorePropagatedAnnotations: true
define view ZDDLSD_EXP_OS_PAYMENT
as select from ZDDLSD_EXP_OS_BILL as Bill
left outer join bsid_view as bsid on Bill.Refno = bsid.zuonr
{
key bsid.bukrs,
key bsid.kunnr,
// key bsid.umskz,
key bsid.zuonr,
// key bsid.gjahr,
// key bsid.belnr,
// key bsid.buzei,

// bsid.budat,
// bsid.bldat,
// bsid.xblnr,
// bsid.blart,
// bsid.shkzg,

//Advance
@EndUserText.label: 'Payment Amt LC'
@Semantics.amount.currencyCode: 'waers'
sum(
case when bsid.umskz = 'A' and bsid.shkzg = 'S' then bsid.dmbtr * -1
when bsid.umskz = 'A' and bsid.shkzg = 'H' then bsid.dmbtr
else
cast( 0 as abap.curr( 23, 2 ) )
end ) as AdvLC,

// case bsid.umskz
// when 'A' then
// case bsid.shkzg
// when 'S' then bsid.dmbtr
// else bsid.dmbtr * -1
// end
// else
// cast( 0 as abap.curr( 23, 2 ) )
// end as AdvLC,
//
@EndUserText.label: 'Payment Amt FC'
@Semantics.amount.currencyCode: 'waers'
sum(
case when bsid.umskz = 'A' and bsid.shkzg = 'S' then bsid.wrbtr * -1
when bsid.umskz = 'A' and bsid.shkzg = 'H' then bsid.wrbtr
else
cast( 0 as abap.curr( 23, 2 ) )
end ) as AdvFC,

// case bsid.umskz
// when 'A' then
// case bsid.shkzg
// when 'S' then bsid.wrbtr
// else bsid.wrbtr * -1
// end
// else
// cast( 0 as abap.curr( 23, 2 ) )
// end as AdvFC,

//Payment
@EndUserText.label: 'Payment Amt LC'
@Semantics.amount.currencyCode: 'waers'
sum(
case when bsid.umskz <> 'A' and bsid.shkzg = 'S' then bsid.dmbtr * -1
when bsid.umskz <> 'A' and bsid.shkzg = 'H' then bsid.dmbtr
else
cast( 0 as abap.curr( 23, 2 ) )
end ) as PmtLC,

// case WHEN bsid.umskz isnull


// case bsid.shkzg
// when 'S' then bsid.dmbtr
// else bsid.dmbtr * -1
// end
// else
// cast( 0 as abap.curr( 23, 2 ) )
// end as PmtLC,

@EndUserText.label: 'Payment Amt FC'


@Semantics.amount.currencyCode: 'waers'
sum(
case when bsid.umskz <> 'A' and bsid.shkzg = 'S' then bsid.wrbtr * -
1
when bsid.umskz <> 'A' and bsid.shkzg = 'H' then bsid.wrbtr
else
cast( 0 as abap.curr( 23, 2 ) )
end ) as PmtFC,

// case bsid.umskz
// when '' then
// case bsid.shkzg
// when 'S' then bsid.wrbtr
// else bsid.wrbtr * -1
// end
// else
// cast( 0 as abap.curr( 23, 2 ) )
// end as PmtFC,

@Semantics.currencyCode
bsid.waers
}

where
bsid.blart <> 'RV'
group by bsid.bukrs, bsid.kunnr, bsid.zuonr, bsid.waers

TCODE : ZPAL_G

TABLE : ZTPP_PALLET_PCK

PATH
/integration/PARI/1003/SAP_WMS/PALLET/LOG/1391264269.txt
/integration/PARI/1003/WMS_SAP/PALLET/LOG/0000520755.txt

TCODE : ZWMS_SCANR

Tables :
zcta_wms_plist
ztpp_pick_item

PATH
/integration/PARI/1001/SAP_WMS/PLIST/LOG/0000005152_3100001165.txt

/integration/PARI/1003/WMS_SAP/PLIST/TEMP/00013107130350_24390118131.txt

1. Comapany Name ( Blank in Merchange Export)


2. ISI Logo
3. Text . etc FULLY DRAWN YARN/TWISTED YARN/INDUSTRIAL YARN/TEXTURISED YARN
4. Text . etc MADE IN INDIA/ Blank
5. Material Description - PLY/DEN/FIL
6. Type - Package Description
7. Date of Production
8. Log No
9. Box/Pallet/Trolly No
10. Shade
11. No of Cones
12. Grade
13. Gross Wt
14. Tare Wt
15. Net Wt
16 Work Center
17.Paper Tube
18. Ply Sum ( Pallet )
19.Bis declaration
20.Terminal Id/userid

You might also like