@AbapCatalog.sqlViewAppendName:'ZE_O2C_SETTMTWF'
@AbapCatalog.viewEnhancementCategory: #PROJECTION_LIST
extend view C_SettlmtDocWrkflwDet with ZE_O2C_C_SETTLMTDOCWRKFLWDE_01
{ /* Field 1: Company Code( Description Text ) */
concat_with_space(_PayerPartyCompany.CompanyCode,
concat('(',concat(_PayerPartyCompany._CompanyCode[1: Language='E'].CompanyCodeName,
')' )
),1
) as CompanyCodeInfo,
/* Field 2: Sales Office( Description Text ) */
concat_with_space(SalesOffice,
concat('(',concat(_SalesOffice._Text[1: Language='E'].SalesOfficeName,
')' )
),1
) as SalesOfficeInfo,
/* Field 3: Customer ID( Customer Name) */
concat_with_space(_ConditionContract.Customer,
concat('(', concat(_ConditionContract._Customer.CustomerName,
')' )
),1
) as Customer_ID,
/* Field 4: Condition Contract Type( Description Text ) */
concat_with_space( _ConditionContract._CndnContrType.CndnContrType,
concat('(',
concat(_ConditionContract._CndnContrType._Text[1: Language='E'].CndnContrTypeDesc,
')' )
),1
) as CndnContrType,
/* Field 5: Payment Method (Description) */
concat_with_space( I_SettlmtDoc.CustomerPaymentMethod,
concat('(', concat(I_SettlmtDoc.PaymentMethodName,
')' )
), 1
) as PaymentMethod,
/* Field 6: Settlement Period ( StartDate - EndDate ) */
//Settlement Period End Date
concat_with_space( cast(
Concat(
Concat(
Concat(substring(SettlmtPeriodStartDate, 5, 2), '.'), //Day
Concat(substring(SettlmtPeriodStartDate, 7, 2), '.') //Month
), Substring(SettlmtPeriodStartDate, 1, 4) //Year
) as char10 preserving type
) ,
concat_with_space( '-',
//Settlement Period End Date
cast(
Concat(
Concat(
Concat(substring(SettlmtPeriodEndDate, 5, 2), '.'), //Day
Concat(substring(SettlmtPeriodEndDate, 7, 2), '.') //Month
), Substring(SettlmtPeriodEndDate, 1, 4) //Year
) as char10 preserving type
)
, 1 ) , 1 ) as SettlementPeriod,
/* Field 7: Sales Manager */
_ConditionContract.ZZ_SalesManagerName
};
|