Printing Address in standard Format , specified in Oracle Package.
Create a Formula in Report, and pass the below values from Query.
function CF_SHIP_ADDRESSFormula return Char is
lv_address varchar2(2000);
begin
lv_address:= TRIM(arp_addr_pkg.format_address(NULL
,:ACCOUNT_NAME
,:SHIP_TO_ADDRESS1
,:SHIP_TO_ADDRESS2
,:SHIP_TO_ADDRESS3
,:SHIP_LOC_CITY||'|'||:SHIP_LOC_STATE||'|'||:SHIP_LOC_POSTAL_CODE
,NULL
,null
,NULL
,null
,null
)
);
return REPLACE(REPLACE(lv_address,', ',','||chr(10)),'|',',');
exception
when others then
return null;
end;
Create a Formula in Report, and pass the below values from Query.
function CF_SHIP_ADDRESSFormula return Char is
lv_address varchar2(2000);
begin
lv_address:= TRIM(arp_addr_pkg.format_address(NULL
,:ACCOUNT_NAME
,:SHIP_TO_ADDRESS1
,:SHIP_TO_ADDRESS2
,:SHIP_TO_ADDRESS3
,:SHIP_LOC_CITY||'|'||:SHIP_LOC_STATE||'|'||:SHIP_LOC_POSTAL_CODE
,NULL
,null
,NULL
,null
,null
)
);
return REPLACE(REPLACE(lv_address,', ',','||chr(10)),'|',',');
exception
when others then
return null;
end;
No comments:
Post a Comment