BI Publisher Report for Archived OIM

Hi
We perfomed Request archival operation in our OIM DB using http://docs.oracle.com/cd/E29505_01/doc.1111/e14308/archival_utilities.htm. Now ARCH* tables are created and it has relevant details.
Now our requirment is to create a new report to read data from this archived tables using BI publisher. We are looking something similar to OOTB Attestation Request and Approval Reports -> Request Details in BI.
We created a new report called "Request Details from Archive tables" similar to the OOTB one in BI front end. Also modifed data template by replacing "request*" tables to "arch_request*" as below. When we try to gernerate report now it is not working as expected.
Do we need to change anything else ? Please advise
Modified data template for reference
<dataTemplate name="ArchRequestDetails" description="Each group that contains the logged in user as its direct user. All groups that are administered by the above set of groups are visible to the logged in user.">
<parameters>
<parameter name="xdo_user_name" dataType="character"/>
<parameter name="p_varchar_ReqFN" dataType="character"/>
<parameter name="p_varchar_ReqLN" dataType="character"/>
<parameter name="p_varchar_ReqUID" dataType="character"/>
<parameter name="p_varchar_ReqID" dataType="character"/>
<parameter name="p_varchar_ReqPID" dataType="character"/>
<parameter name="p_varchar_ReqStatu" dataType="character"/>
<parameter name="p_varchar_ReqTyp" dataType="character"/>
<parameter name="p_ReqDtFrom" dataType="date"/>
<parameter name="p_ReqDtTo" dataType="date"/>
<parameter name="p_varchar_BenFN" dataType="character"/>
<parameter name="p_varchar_BenLN" dataType="character"/>
<parameter name="p_varchar_BenUID" dataType="character"/>
</parameters>
<dataquery>
<sqlstatement name="sql_L1_AllRequests">
<![CDATA[ SELECT ReqID as RequestID,
decode(ReqAction, 'Create Entity', 'Self Registration', 'Add', 'Provision Resource', 'Disable', 'Disable Resource', 'Enable', 'Enable Resource', 'Revoke', 'Revoke Resource', 'Modify Entity', 'Modify Profile') as RequestType,
ReqUID as RequesterUserID,
ReqDate as RequestDate,
CurStatus as RequestStatus,
null as ParentRequestID
FROM (select distinct
req.req_key as ReqID,
req.req_obj_action as ReqAction,
usr.usr_login as ReqUID,
req.req_create as ReqDate,
ost.ost_status as CurStatus
from req left outer join rqu on req.req_key = rqu.req_key,
ost,
usr,
act,
usr usr2
where rqu.usr_key = usr2.usr_key
and req.ost_key = ost.ost_key
and req.req_createby = usr.usr_key
and usr2.act_key = act.act_key
and usr2.act_key in (select aad.act_key
from aad,usg,usr
where usg.usr_key = usr.usr_key
and aad.ugp_key = usg.ugp_key
and usr.usr_key = (select usr.usr_key from usr where upper(usr.usr_login) = upper(:xdo_user_name)))
and (nvl(:p_varchar_ReqStatu,' ')=' ' or upper(ost.ost_status) like upper(:p_varchar_ReqStatu))
and (nvl(:p_varchar_ReqID,' ')=' ' or req.req_key like (:p_varchar_ReqID))
and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
union
select
req.req_key as ReqID,
req.req_obj_action as ReqAction,
usr.usr_login as ReqUID,
req.req_create as ReqDate,
ost.ost_status as CurStatus
from
req,
ost,
usr
where
req.ost_key = ost.ost_key
and req.req_createby = usr.usr_key
and req.req_obj_action = 'Create Entity'
and upper(ost.ost_status) like upper(:p_varchar_ReqStatu)
and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
and ost.ost_status != 'Request Complete'
union
select req.req_key as ReqID,
req.req_obj_action as ReqAction,
usr.usr_login as ReqUID,
req.req_create as ReqDate,
ost.ost_status as CurStatus
from req,
ost,
usr,
usr usr2,
act
where req.ost_key = ost.ost_key
and req.req_createby = usr.usr_key
and req.req_obj_action = 'Create Entity'
and usr2.usr_login =(select upper(rqd.rqd_attr_value) from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.User ID')
and usr2.act_key = act.act_key
and upper(ost.ost_status) like upper(:p_varchar_ReqStatu)
and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
and usr2.act_key in (select aad.act_key from aad,usg,usr
where usg.usr_key = usr.usr_key
and aad.ugp_key = usg.ugp_key and usr.usr_key = (select usr.usr_key from usr where upper(usr.usr_login) = upper(:xdo_user_name)))
and ost.ost_status = 'Request Complete')
UNION ALL
SELECT distinct request.request_key as RequestID,
request.request_model_name as RequestType,
usr1.usr_login as RequesterUserID,
request.request_creation_date as RequestDate,
request.request_status as RequestStatus,
request.request_parent_key as ParentRequestID
FROM usr usr1 JOIN request req1 ON usr1.usr_key = req1.requester_key,
request,
(select distinct req3.request_key rk,
usr2.usr_first_name bfn,
usr2.usr_last_name bln,
usr2.usr_login buid
from arch_request req3,
arch_request_beneficiary reqb1,
usr usr2
where req3.request_key = reqb1.request_key
and reqb1.beneficiary_key = usr2.usr_key
UNION
select distinct req3.request_key rk,
usr2.usr_first_name bfn,
usr2.usr_last_name bln,
usr2.usr_login buid
from arch_request req3,
arch_request_entities re1,
usr usr2
where req3.request_key = re1.request_key
and re1.entity_key = usr2.usr_key)user1
WHERE
req1.request_key = request.request_key
and (NVL(:p_varchar_ReqFN, ' ') = ' ' or UPPER(usr1.usr_first_name) LIKE UPPER(:p_varchar_ReqFN))
and (NVL(:p_varchar_ReqLN, ' ') = ' ' or UPPER(usr1.usr_last_name) LIKE UPPER(:p_varchar_ReqLN))
and (NVL(:p_varchar_ReqUID, ' ') = ' ' or UPPER(usr1.usr_login) LIKE UPPER(:p_varchar_ReqUID))
and (NVL(:p_varchar_ReqID, ' ') = ' ' or UPPER(request.request_key) LIKE UPPER(:p_varchar_ReqID))
and (NVL(:p_varchar_ReqPID, ' ') = ' ' or UPPER(request.request_parent_key) LIKE UPPER(:p_varchar_ReqPID))
and (NVL(:p_varchar_ReqStatu, ' ') = ' ' or UPPER(request.request_status) LIKE UPPER(:p_varchar_ReqStatu))
and (NVL(:p_varchar_ReqTyp, ' ') = ' ' or UPPER(request.request_model_name) LIKE UPPER(:p_varchar_ReqTyp))
and request.request_creation_date between :p_ReqDtFrom and :p_ReqDtTo
and (NVL(:p_varchar_BenFN, ' ') = ' ' or (UPPER(user1.bfn) LIKE UPPER(:p_varchar_BenFN) and request.request_key = user1.rk))
and (NVL(:p_varchar_BenLN, ' ') = ' ' or (UPPER(user1.bln) LIKE UPPER(:p_varchar_BenLN) and request.request_key = user1.rk))
and (NVL(:p_varchar_BenUID, ' ') = ' ' or (UPPER(user1.buid) LIKE UPPER(:p_varchar_BenUID) and request.request_key = user1.rk))
ORDER BY RequestID ]]>
</sqlstatement>
<sqlstatement name="sql_L2_Approver_BPEL" dataSourceRef="BPEL JDBC">
SELECT distinct wfproductivity_view.username as ApproverUserID
FROM wfproductivity_view
WHERE identificationkey = :RequestID
</sqlstatement>
<sqlstatement name="sql_L2_Approver">
SELECT distinct usr.usr_login as ApproverUserID
FROM rqh join usr on rqh.rqh_createby = usr.usr_key
WHERE rqh.req_key = :RequestID
And rqh.rqh_status = 'Approved'
</sqlstatement>
<sqlstatement name="sql_L1_Beneficiaries">
<![CDATA[ SELECT distinct
FirstName as BenFName,
LastName as BenLName,
userid as BenUserID,
usr_emp_type as BenEmpType,
UsrStatus as BenUserStatus,
OrgName as BenOrg
FROM
(select distinct
usr2.usr_login AS userid,
usr2.usr_last_name AS LastName,
usr2.usr_first_name AS FirstName,
usr2.usr_emp_type AS usr_emp_type,
usr2.usr_status AS UsrStatus,
act.act_name AS OrgName
from req left outer join rqu on req.req_key = rqu.req_key,
ost,
usr,
act,
usr usr2
where req.req_key = :RequestID
and rqu.usr_key = usr2.usr_key
and req.ost_key = ost.ost_key
and req.req_createby = usr.usr_key
and usr2.act_key = act.act_key
and usr2.act_key in
(select aad.act_key
from aad,usg,usr
where
usg.usr_key = usr.usr_key
and aad.ugp_key = usg.ugp_key
and usr.usr_key = (select usr.usr_key from usr where upper(usr.usr_login) = upper(:xdo_user_name)))
and (nvl(:p_varchar_ReqStatu,' ')=' ' or upper(ost.ost_status) like upper(:p_varchar_ReqStatu))
and (nvl(:p_varchar_ReqID,' ')=' ' or req.req_key like (:p_varchar_ReqID))
and (nvl(:p_varchar_BenUID,' ')=' ' or upper(usr2.usr_login) like upper(:p_varchar_BenUID))
and (nvl(:p_varchar_BenFN,' ')=' ' or upper(usr2.usr_first_name)like upper(:p_varchar_BenFN))
and (nvl(:p_varchar_BenLN,' ')=' ' or upper(usr2.usr_last_name)like upper(:p_varchar_BenLN))
and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
union
select
(select rqd.rqd_attr_value from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.User ID') AS userid,
(select rqd.rqd_attr_value from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.Last Name') AS LastName,
(select rqd.rqd_attr_value from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.First Name') AS FirstName,
(select rqd.rqd_attr_value from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.Xellerate Type') AS usr_emp_type,
null AS UsrStatus,
null AS OrgName
from req,
ost,
usr
where req.req_key = :RequestID
and req.ost_key = ost.ost_key
and req.req_createby = usr.usr_key
and req.req_obj_action = 'Create Entity'
and upper(ost.ost_status) like upper(:p_varchar_ReqStatu)
and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
and ost.ost_status != 'Request Complete'
union
select usr2.usr_login AS userid,
usr2.usr_last_name AS LastName,
usr2.usr_first_name AS FirstName,
usr2.usr_emp_type AS usr_emp_type,
usr2.usr_status AS UsrStatus,
act.act_name AS OrgName
from req,
ost,
usr,
usr usr2,
act
where req.req_key = :RequestID
and req.ost_key = ost.ost_key
and req.req_createby = usr.usr_key
and req.req_obj_action = 'Create Entity'
and usr2.usr_login =(select upper(rqd.rqd_attr_value) from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.User ID')
and usr2.act_key = act.act_key
and upper(ost.ost_status) like upper(:p_varchar_ReqStatu)
and (nvl(:p_varchar_BenUID,' ')=' ' or upper(usr2.usr_login) like upper(:p_varchar_BenUID))
and (nvl(:p_varchar_BenFN,' ')=' ' or upper(usr2.usr_first_name)like upper(:p_varchar_BenFN))
and (nvl(:p_varchar_BenLN,' ')=' ' or upper(usr2.usr_last_name)like upper(:p_varchar_BenLN))
and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
and usr2.act_key in
(select aad.act_key
from aad,usg,usr
where
usg.usr_key = usr.usr_key
and aad.ugp_key = usg.ugp_key and usr.usr_key = (select usr.usr_key from usr where upper(usr.usr_login) = upper(:xdo_user_name)))
and ost.ost_status = 'Request Complete')
UNION ALL
SELECT distinct user1.bfn as BenFName,
user1.bln as BenLName,
user1.buid as BenUserID,
user1.bet as BenEmpType,
user1.bus as BenUserStatus,
user1.bo as BenOrg
FROM
(select distinct req3.request_key rk,
usr2.usr_first_name bfn,
usr2.usr_last_name bln,
usr2.usr_login buid,
usr2.usr_emp_type bet,
usr2.usr_status bus,
act.act_name bo
from arch_request req3,
arch_request_beneficiary reqb1,
usr usr2,
act
where req3.request_key = reqb1.request_key
and reqb1.beneficiary_key = usr2.usr_key
and usr2.act_key = act. act_key
and (nvl(:p_varchar_BenUID,' ')=' ' or upper(usr2.usr_login) like upper(:p_varchar_BenUID))
and (nvl(:p_varchar_BenFN,' ')=' ' or upper(usr2.usr_first_name)like upper(:p_varchar_BenFN))
and (nvl(:p_varchar_BenLN,' ')=' ' or upper(usr2.usr_last_name)like upper(:p_varchar_BenLN))
UNION
select distinct req3.request_key rk,
usr2.usr_first_name bfn,
usr2.usr_last_name bln,
usr2.usr_login buid,
usr2.usr_emp_type bet,
usr2.usr_status bus,
act.act_name bo
from arch_request req3,
arch_request_entities re1,
usr usr2,
act
where req3.request_key = re1.request_key
and re1.entity_key = usr2.usr_key
and usr2.act_key = act. act_key
and (nvl(:p_varchar_BenUID,' ')=' ' or upper(usr2.usr_login) like upper(:p_varchar_BenUID))
and (nvl(:p_varchar_BenFN,' ')=' ' or upper(usr2.usr_first_name)like upper(:p_varchar_BenFN))
and (nvl(:p_varchar_BenLN,' ')=' ' or upper(usr2.usr_last_name)like upper(:p_varchar_BenLN))
)user1
WHERE
user1.rk = :RequestID
]]>
</sqlstatement>
<sqlstatement name="sql_L1_RequestDetails">
SELECT distinct
null as ReqDetailsName,
obj_name as ReqDetailsValue
FROM
req,
rqo,
obj
WHERE
req.req_key = :RequestID
and req.req_key = rqo.req_key
and obj.obj_key = rqo.obj_key
UNION ALL
SELECT distinct reqdet.detname as ReqDetailsName,
reqdet.detval as ReqDetailsValue
FROM
(select req1.request_key rk,
rbe1.rbe_entity_name detval,
rbe1.rbe_entity_type detname
from arch_request_beneficiary_entities rbe1,
request req1
where rbe1.rbe_request_key = req1.request_key
union
select req1.request_key rk,
red1.entity_field_value detval,
red1.entity_field_name detname
from arch_request_entity_data red1,
arch_request_entities re1,
request req1
where red1.request_entity_key = re1.request_entity_key
and re1.request_key = req1.request_key
and red1.entity_field_name != 'Organization'
and red1.entity_field_name != 'User Manager'
union
select req1.request_key rk,
act.act_name detval,
red1.entity_field_name detname
from arch_request_entity_data red1,
arch_request_entities re1,
request req1,
act
where red1.request_entity_key = re1.request_entity_key
and re1.request_key = req1.request_key
and red1.entity_field_value = act.act_key
and red1.entity_field_name = 'Organization'
union
select req1.request_key rk,
usr3.usr_login detval,
red1.entity_field_name detname
from arch_request_entity_data red1,
arch_request_entities re1,
request req1,
usr usr3
where red1.request_entity_key = re1.request_entity_key
and re1.request_key = req1.request_key
and red1.entity_field_value = usr3.usr_key
and red1.entity_field_name = 'User Manager') reqdet
WHERE
reqdet.rk = :RequestID
</sqlstatement>
</dataquery>
<dataStructure>
<group name="AllRequests" source="sql_L1_AllRequests">
<element name="RequestID" value="RequestID"/>
<element name="RequestType" value="RequestType"/>
<element name="RequesterUserID" value="RequesterUserID"/>
<element name="RequestDate" value="RequestDate"/>
<group name="grp_AllApprovers" source="sql_L2_Approver_BPEL">
<element name="ApproverUserID" value="ApproverUserID"/>
</group>
<group name="grp_AllApprovers" source="sql_L2_Approver">
<element name="ApproverUserID" value="ApproverUserID"/>
</group>
<element name="RequestStatus" value="RequestStatus"/>
<element name="ParentRequestID" value="ParentRequestID"/>
<group name="Beneficiaries" source="sql_L1_Beneficiaries">
<element name="BenFName" value="BenFName"/>
<element name="BenLName" value="BenLName"/>
<element name="BenUserID" value="BenUserID"/>
<element name="BenEmpType" value="BenEmpType"/>
<element name="BenUserStatus" value="BenUserStatus"/>
<element name="BenOrg" value="BenOrg"/>
</group>
<group name="RequestDetails" source="sql_L1_RequestDetails">
<element name="ReqDetailsName" value="ReqDetailsName"/>
<element name="ReqDetailsValue" value="ReqDetailsValue"/>
</group>
</group>
</dataStructure>
</dataTemplate>
Thanks
KK

any help please ? if you need any more information to know more about the issue, please do not hesitate to ask.
Thank you.

Similar Messages

  • BI Publisher Report for Archived OIM tables

    Hi
    We perfomed Request archival operation in our OIM DB using http://docs.oracle.com/cd/E29505_01/doc.1111/e14308/archival_utilities.htm. Now ARCH* tables are created and it has relevant details.
    Now our requirment is to create a new report to read data from this archived tables using BI publisher. We are looking something similar to OOTB Attestation Request and Approval Reports -> Request Details in BI.
    We created a new report called "Request Details from Archive tables" similar to the OOTB one in BI front end. Also modifed data template by replacing "request*" tables to "arch_request*" as below. When we try to gernerate report now it is not working as expected.
    Do we need to change anything else ? Please advise
    Modified data template for reference
    <dataTemplate name="ArchRequestDetails" description="Each group that contains the logged in user as its direct user. All groups that are administered by the above set of groups are visible to the logged in user.">
         <parameters>
              <parameter name="xdo_user_name" dataType="character"/>
              <parameter name="p_varchar_ReqFN" dataType="character"/>
              <parameter name="p_varchar_ReqLN" dataType="character"/>
              <parameter name="p_varchar_ReqUID" dataType="character"/>
              <parameter name="p_varchar_ReqID" dataType="character"/>
              <parameter name="p_varchar_ReqPID" dataType="character"/>
              <parameter name="p_varchar_ReqStatu" dataType="character"/>
              <parameter name="p_varchar_ReqTyp" dataType="character"/>
              <parameter name="p_ReqDtFrom" dataType="date"/>
              <parameter name="p_ReqDtTo" dataType="date"/>
              <parameter name="p_varchar_BenFN" dataType="character"/>
              <parameter name="p_varchar_BenLN" dataType="character"/>
              <parameter name="p_varchar_BenUID" dataType="character"/>
         </parameters>
         <dataquery>
              <sqlstatement name="sql_L1_AllRequests">
                   <![CDATA[ SELECT ReqID as RequestID, 
            decode(ReqAction, 'Create Entity', 'Self Registration', 'Add', 'Provision Resource', 'Disable',   'Disable Resource',   'Enable',   'Enable Resource',   'Revoke',   'Revoke Resource',   'Modify Entity',   'Modify Profile') as RequestType,   
            ReqUID as RequesterUserID,
            ReqDate as RequestDate, 
            CurStatus as RequestStatus,
            null as ParentRequestID
       FROM (select distinct
              req.req_key as ReqID,
              req.req_obj_action as ReqAction, 
              usr.usr_login as ReqUID,
              req.req_create as ReqDate,
              ost.ost_status as CurStatus
         from req left outer join rqu on req.req_key = rqu.req_key,
              ost,
              usr,
              act,
              usr usr2
        where rqu.usr_key = usr2.usr_key
          and req.ost_key = ost.ost_key
          and req.req_createby = usr.usr_key
          and usr2.act_key = act.act_key
          and usr2.act_key in (select aad.act_key
                from aad,usg,usr
                where usg.usr_key = usr.usr_key
                  and aad.ugp_key = usg.ugp_key
                  and usr.usr_key = (select usr.usr_key from usr where upper(usr.usr_login) = upper(:xdo_user_name)))
                  and (nvl(:p_varchar_ReqStatu,' ')=' ' or upper(ost.ost_status) like upper(:p_varchar_ReqStatu))
                  and (nvl(:p_varchar_ReqID,' ')=' ' or req.req_key like (:p_varchar_ReqID))
                  and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
            union
            select
              req.req_key as ReqID,
              req.req_obj_action as ReqAction, 
              usr.usr_login as ReqUID,
              req.req_create as ReqDate,
              ost.ost_status as CurStatus
            from
              req,
              ost,
              usr
            where
              req.ost_key = ost.ost_key
              and req.req_createby = usr.usr_key
              and req.req_obj_action = 'Create Entity'
              and upper(ost.ost_status) like upper(:p_varchar_ReqStatu)
              and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
              and ost.ost_status != 'Request Complete'
            union
            select req.req_key as ReqID,
              req.req_obj_action as ReqAction, 
              usr.usr_login as ReqUID,
              req.req_create as ReqDate,
              ost.ost_status as CurStatus
         from req,
              ost,
              usr,
              usr usr2,
              act
        where req.ost_key = ost.ost_key
              and req.req_createby = usr.usr_key
              and req.req_obj_action = 'Create Entity'
              and usr2.usr_login =(select upper(rqd.rqd_attr_value) from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.User ID')
              and usr2.act_key = act.act_key
              and upper(ost.ost_status) like upper(:p_varchar_ReqStatu)
              and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
              and usr2.act_key in (select aad.act_key from aad,usg,usr
          where usg.usr_key = usr.usr_key
            and aad.ugp_key = usg.ugp_key and usr.usr_key = (select usr.usr_key from usr where upper(usr.usr_login) = upper(:xdo_user_name)))
            and ost.ost_status = 'Request Complete')
          UNION ALL
          SELECT distinct request.request_key as RequestID, 
            request.request_model_name as RequestType,
            usr1.usr_login as RequesterUserID,
            request.request_creation_date as RequestDate,
            request.request_status as RequestStatus,
            request.request_parent_key as ParentRequestID
       FROM usr usr1 JOIN request req1 ON usr1.usr_key = req1.requester_key,
            request,
            (select distinct req3.request_key rk,
              usr2.usr_first_name bfn,
              usr2.usr_last_name bln,
              usr2.usr_login buid
            from arch_request req3,
              arch_request_beneficiary reqb1,
              usr usr2
            where req3.request_key = reqb1.request_key
              and reqb1.beneficiary_key = usr2.usr_key
            UNION
            select distinct req3.request_key rk,
              usr2.usr_first_name bfn,
              usr2.usr_last_name bln,
              usr2.usr_login buid
            from arch_request req3,
              arch_request_entities re1,
              usr usr2
            where req3.request_key = re1.request_key
              and re1.entity_key = usr2.usr_key)user1
          WHERE
            req1.request_key = request.request_key
            and (NVL(:p_varchar_ReqFN, ' ') = ' ' or UPPER(usr1.usr_first_name) LIKE UPPER(:p_varchar_ReqFN))
            and (NVL(:p_varchar_ReqLN, ' ') = ' ' or UPPER(usr1.usr_last_name) LIKE UPPER(:p_varchar_ReqLN))
            and (NVL(:p_varchar_ReqUID, ' ') = ' ' or UPPER(usr1.usr_login) LIKE UPPER(:p_varchar_ReqUID))
            and (NVL(:p_varchar_ReqID, ' ') = ' ' or UPPER(request.request_key) LIKE UPPER(:p_varchar_ReqID))
            and (NVL(:p_varchar_ReqPID, ' ') = ' ' or UPPER(request.request_parent_key) LIKE UPPER(:p_varchar_ReqPID))
            and (NVL(:p_varchar_ReqStatu, ' ') = ' ' or UPPER(request.request_status) LIKE UPPER(:p_varchar_ReqStatu))
            and (NVL(:p_varchar_ReqTyp, ' ') = ' ' or UPPER(request.request_model_name) LIKE UPPER(:p_varchar_ReqTyp))
            and request.request_creation_date between :p_ReqDtFrom and :p_ReqDtTo
            and (NVL(:p_varchar_BenFN, ' ') = ' ' or (UPPER(user1.bfn) LIKE UPPER(:p_varchar_BenFN) and request.request_key = user1.rk))
            and (NVL(:p_varchar_BenLN, ' ') = ' ' or (UPPER(user1.bln) LIKE UPPER(:p_varchar_BenLN) and request.request_key = user1.rk))
            and (NVL(:p_varchar_BenUID, ' ') = ' ' or (UPPER(user1.buid) LIKE UPPER(:p_varchar_BenUID) and request.request_key = user1.rk))
    ORDER BY RequestID ]]>
              </sqlstatement>
              <sqlstatement name="sql_L2_Approver_BPEL" dataSourceRef="BPEL JDBC">
    SELECT distinct wfproductivity_view.username as ApproverUserID
    FROM wfproductivity_view
    WHERE identificationkey = :RequestID
    </sqlstatement>
              <sqlstatement name="sql_L2_Approver">
    SELECT distinct usr.usr_login as ApproverUserID
    FROM rqh join usr on rqh.rqh_createby = usr.usr_key
    WHERE rqh.req_key = :RequestID
    And rqh.rqh_status = 'Approved'
    </sqlstatement>
              <sqlstatement name="sql_L1_Beneficiaries">
                   <![CDATA[  SELECT distinct
      FirstName as BenFName, 
      LastName as BenLName,
      userid as BenUserID,
      usr_emp_type as BenEmpType, 
      UsrStatus as BenUserStatus,
      OrgName as BenOrg
    FROM
      (select distinct
        usr2.usr_login AS userid,    
        usr2.usr_last_name AS LastName,
        usr2.usr_first_name AS FirstName,    
        usr2.usr_emp_type AS usr_emp_type,
        usr2.usr_status AS UsrStatus,    
        act.act_name AS OrgName
      from req left outer join rqu on req.req_key = rqu.req_key,
        ost,
        usr,
        act,
        usr usr2
      where req.req_key = :RequestID
        and rqu.usr_key = usr2.usr_key
        and req.ost_key = ost.ost_key
        and req.req_createby = usr.usr_key
        and usr2.act_key = act.act_key
        and usr2.act_key in
          (select aad.act_key
          from aad,usg,usr
          where
            usg.usr_key = usr.usr_key
            and aad.ugp_key = usg.ugp_key
            and usr.usr_key = (select usr.usr_key from usr where upper(usr.usr_login) = upper(:xdo_user_name)))
        and (nvl(:p_varchar_ReqStatu,' ')=' ' or upper(ost.ost_status) like upper(:p_varchar_ReqStatu))
        and (nvl(:p_varchar_ReqID,' ')=' ' or req.req_key like (:p_varchar_ReqID))
        and (nvl(:p_varchar_BenUID,' ')=' ' or upper(usr2.usr_login) like upper(:p_varchar_BenUID))
        and (nvl(:p_varchar_BenFN,' ')=' ' or upper(usr2.usr_first_name)like upper(:p_varchar_BenFN))
        and (nvl(:p_varchar_BenLN,' ')=' ' or upper(usr2.usr_last_name)like upper(:p_varchar_BenLN))
        and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
      union
      select
        (select rqd.rqd_attr_value from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.User ID') AS userid,
        (select rqd.rqd_attr_value from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.Last Name') AS LastName,
        (select rqd.rqd_attr_value from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.First Name') AS FirstName,
        (select rqd.rqd_attr_value from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.Xellerate Type') AS usr_emp_type,
        null AS UsrStatus,    
        null AS OrgName
      from req,
        ost,
        usr
      where req.req_key = :RequestID
        and req.ost_key = ost.ost_key
        and req.req_createby = usr.usr_key
        and req.req_obj_action = 'Create Entity'
        and upper(ost.ost_status) like upper(:p_varchar_ReqStatu)
        and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
        and ost.ost_status != 'Request Complete'
      union
      select usr2.usr_login AS userid,
        usr2.usr_last_name AS LastName,
        usr2.usr_first_name AS FirstName,
        usr2.usr_emp_type AS usr_emp_type,
        usr2.usr_status AS UsrStatus,
        act.act_name AS OrgName
      from req,
        ost,
        usr,
        usr usr2,
        act
      where req.req_key = :RequestID
        and req.ost_key = ost.ost_key
        and req.req_createby = usr.usr_key
        and req.req_obj_action = 'Create Entity'
        and usr2.usr_login =(select upper(rqd.rqd_attr_value) from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.User ID')
        and usr2.act_key = act.act_key
        and upper(ost.ost_status) like upper(:p_varchar_ReqStatu)
        and (nvl(:p_varchar_BenUID,' ')=' ' or upper(usr2.usr_login) like upper(:p_varchar_BenUID))
        and (nvl(:p_varchar_BenFN,' ')=' ' or upper(usr2.usr_first_name)like upper(:p_varchar_BenFN))
        and (nvl(:p_varchar_BenLN,' ')=' ' or upper(usr2.usr_last_name)like upper(:p_varchar_BenLN))
        and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
        and usr2.act_key in
          (select aad.act_key
          from aad,usg,usr
          where
            usg.usr_key = usr.usr_key
            and aad.ugp_key = usg.ugp_key and usr.usr_key = (select usr.usr_key from usr where upper(usr.usr_login) = upper(:xdo_user_name)))
        and ost.ost_status = 'Request Complete')
          UNION ALL
          SELECT distinct user1.bfn as BenFName, 
            user1.bln as BenLName,
            user1.buid as BenUserID,
            user1.bet as BenEmpType, 
            user1.bus as BenUserStatus,
            user1.bo as BenOrg
          FROM
            (select distinct req3.request_key rk,
              usr2.usr_first_name bfn,
              usr2.usr_last_name bln,
              usr2.usr_login buid,
              usr2.usr_emp_type bet,
              usr2.usr_status bus,
              act.act_name bo
            from arch_request req3,
              arch_request_beneficiary reqb1,
              usr usr2,
              act
            where req3.request_key = reqb1.request_key
              and reqb1.beneficiary_key = usr2.usr_key
              and usr2.act_key = act. act_key
              and (nvl(:p_varchar_BenUID,' ')=' ' or upper(usr2.usr_login) like upper(:p_varchar_BenUID))
              and (nvl(:p_varchar_BenFN,' ')=' ' or upper(usr2.usr_first_name)like upper(:p_varchar_BenFN))
              and (nvl(:p_varchar_BenLN,' ')=' ' or upper(usr2.usr_last_name)like upper(:p_varchar_BenLN))
            UNION
            select distinct req3.request_key rk,
              usr2.usr_first_name bfn,
              usr2.usr_last_name bln,
              usr2.usr_login buid,
              usr2.usr_emp_type bet,
              usr2.usr_status bus,
              act.act_name bo
            from arch_request req3,
              arch_request_entities re1,
              usr usr2,
              act
            where req3.request_key = re1.request_key
              and re1.entity_key = usr2.usr_key
              and usr2.act_key = act. act_key
              and (nvl(:p_varchar_BenUID,' ')=' ' or upper(usr2.usr_login) like upper(:p_varchar_BenUID))
              and (nvl(:p_varchar_BenFN,' ')=' ' or upper(usr2.usr_first_name)like upper(:p_varchar_BenFN))
              and (nvl(:p_varchar_BenLN,' ')=' ' or upper(usr2.usr_last_name)like upper(:p_varchar_BenLN))
            )user1
          WHERE
            user1.rk = :RequestID                 
    ]]>
              </sqlstatement>
              <sqlstatement name="sql_L1_RequestDetails">
    SELECT distinct
    null as ReqDetailsName,
    obj_name as ReqDetailsValue
    FROM
    req,
    rqo,
    obj
    WHERE
    req.req_key = :RequestID
    and req.req_key = rqo.req_key
    and obj.obj_key = rqo.obj_key
    UNION ALL
    SELECT distinct reqdet.detname as ReqDetailsName,
    reqdet.detval as ReqDetailsValue
    FROM
    (select req1.request_key rk,
    rbe1.rbe_entity_name detval,
    rbe1.rbe_entity_type detname
    from arch_request_beneficiary_entities rbe1,
    request req1
    where rbe1.rbe_request_key = req1.request_key
    union
    select req1.request_key rk,
    red1.entity_field_value detval,
    red1.entity_field_name detname
    from arch_request_entity_data red1,
    arch_request_entities re1,
    request req1
    where red1.request_entity_key = re1.request_entity_key
    and re1.request_key = req1.request_key
    and red1.entity_field_name != 'Organization'
    and red1.entity_field_name != 'User Manager'
    union
    select req1.request_key rk,
    act.act_name detval,
    red1.entity_field_name detname
    from arch_request_entity_data red1,
    arch_request_entities re1,
    request req1,
    act
    where red1.request_entity_key = re1.request_entity_key
    and re1.request_key = req1.request_key
    and red1.entity_field_value = act.act_key
    and red1.entity_field_name = 'Organization'
    union
    select req1.request_key rk,
    usr3.usr_login detval,
    red1.entity_field_name detname
    from arch_request_entity_data red1,
    arch_request_entities re1,
    request req1,
    usr usr3
    where red1.request_entity_key = re1.request_entity_key
    and re1.request_key = req1.request_key
    and red1.entity_field_value = usr3.usr_key
    and red1.entity_field_name = 'User Manager') reqdet
    WHERE
    reqdet.rk = :RequestID
    </sqlstatement>
         </dataquery>
         <dataStructure>
              <group name="AllRequests" source="sql_L1_AllRequests">
                   <element name="RequestID" value="RequestID"/>
                   <element name="RequestType" value="RequestType"/>
                   <element name="RequesterUserID" value="RequesterUserID"/>
                   <element name="RequestDate" value="RequestDate"/>
                   <group name="grp_AllApprovers" source="sql_L2_Approver_BPEL">
                        <element name="ApproverUserID" value="ApproverUserID"/>
                   </group>
                   <group name="grp_AllApprovers" source="sql_L2_Approver">
                        <element name="ApproverUserID" value="ApproverUserID"/>
                   </group>
                   <element name="RequestStatus" value="RequestStatus"/>
                   <element name="ParentRequestID" value="ParentRequestID"/>
                   <group name="Beneficiaries" source="sql_L1_Beneficiaries">
                        <element name="BenFName" value="BenFName"/>
                        <element name="BenLName" value="BenLName"/>
                        <element name="BenUserID" value="BenUserID"/>
                        <element name="BenEmpType" value="BenEmpType"/>
                        <element name="BenUserStatus" value="BenUserStatus"/>
                        <element name="BenOrg" value="BenOrg"/>
                   </group>
                   <group name="RequestDetails" source="sql_L1_RequestDetails">
                        <element name="ReqDetailsName" value="ReqDetailsName"/>
                        <element name="ReqDetailsValue" value="ReqDetailsValue"/>
                   </group>
              </group>
         </dataStructure>
    </dataTemplate>
    Thanks
    KK

    any help please ? if you need any more information to know more about the issue, please do not hesitate to ask.
    Thank you.

  • How run the run the BI Publisher report for current/active/selected record

    Hi,
    I have one requirement to generate a BI Publisher report in Siebel, which will run on SR's List view. Report should fetch the active SR and its audit trial entities. I know this was achieved easily using Actuate (simply setting "current Recrod only" to true), but I need how to achieve this in BI publisher.
    This report we are creating is in Siebel-BI Publisher integrated environment, not connecting to database. Can body give share your valuble inputs.
    Thanks,
    Ravi

    In my experience with Siebel 8.1.1 and BI Publisher 10.1.3.4.0 when you generate a report from a Siebel View the report will show all data visible on the view. If you wish to have only a few particular records in the report you must query for them first in Siebel then generate the report again. There is useful article describing how to generate the report for the current record but it does require some config on the applet.
    [http://siebel-essentials.blogspot.com/2009/05/siebel-bi-publisher-integration.html]
    -Fred

  • Pulling Signature into an XML Publisher report for Recruitment letters

    Hi All,
    I'm trying to create signed recruitment letters for the Talent Acquisition module and am not quite sure how to handle this technically.. I assume some customizations are in order...
    I guess some of the questions I have are:
    1) Is there OOTB functionality to handle Signatures in PS?
    2) Do i store the image in the database or on an accessible network/local drive location?
    3) Can XML Publisher handle this type of request?
    4) Is there any documentation out there to explain this in more detail?
    5) Any advice on how to proceed?
    I also have a company logo they want pulled into the XML Publisher Report.. i assume it would be a simliar effect.
    Anyway, I was hoping someone out there may have some advice on how to proceed.
    Regards,
    Greg

    Below excerpt from Oracle XML Publisher Core Components Guide
    Images
    XML Publisher supports several methods for including images in your published document:
    Direct Insertion*
    Insert the jpg, gif, bmp, or png image directly in your template.
    URL Reference*
    1. Insert a dummy image in your template.
    2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the
    following syntax in the Alternative text region to reference the image URL:
    url:{'http://image location'}
    For example, enter:
    url:{'http://www.oracle.com/images/ora_log.gif'}
    You can also build a URL based on multiple elements at runtime. Just use the
    concat function to build the URL string. For example:
    url:{concat(SERVER,'/',IMAGE_DIR,'/',IMAGE_FILE)}

  • Can we use xml Publisher reporting for sql* Plus in EBS

    Hello All,
    The current report is designed in Sql* Plus Executable report and the output is in txt format, Now the requirement is to have the output in Excel format.
    So is it possible to use the xml reporting and make the output as Excel from the word template we design from MSword as we do for rdf(I have done few reports created in rdf to xml publisher reports in EBS and stand alone as well.).
    Do the same procedure will suit for Sql*Plus reports tooo or Is there any work around to achieve this.
    Thanks and Regards
    Balaji.

    Hi
    Thanks for the reply..
    I tried to do the follwoing
    1. changed the output to xml in the conc. prog.
    2. ran the same report but i am getting the follwoing error in the output file
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource
    Other reports which are using the Oracle Reports(rdf) as source, i am able to generated the xml as expected....
    So my question is whether we can use sql* reports executable and generate xml in the conc.prog.
    if any one has used the sql*reports for xml publisher reporting... please let me know, so that if its possible i will check my sql needs some validation or tuning...
    thanks in advance
    Balaji.

  • BI Publisher reports for Multilingual environment

    We have implemented ENU and FRA languages in our Siebel Enterprise - 8.0.0.8. I have created the required rtf and xlf files ( an xlf each for ENU and FRA) and moved them to the BIP reports server. The issue I am facing is that the FRA report still shows all the LOVs in English.
    If I change the Language Code parameter for the XMLPReportServer component to FRA, then the English and French reports show LOV values in French.
    How do I get the correct LOVs to show up on the correct language reports. Any ideas ?
    Subbu

    same here.
    I have opened my first SR regarding this problem in May 2010.
    It's hard to understand how Oracle can introduce BIP as the official replacement for Actuate Reports while it is not even fully multilanguage capable.
    Check out Bug 12-1T12HOH: "BI Publisher Reports not showing the translated MLOV values in the report output" on MOS.

  • Require a detail report for  archiving on FI_FICA in SARA

    Hello all,
    When I run the Transaction SARA for the object FI_FICA for the Write step, the report dsiplays only the summary of the results.
    I mean only the count of the number of the Objects that will be archived.
    But I want to display a detailed log of which are the objects that are flagged for archiving. I tried to find out any Enhancements or BADI's but unable to find out.
    Can somone please let me know if there is any scope to pull out the detailed report, by plugging in some custom code or if is there any other way to do that.
    Thanks in advance.
    Thanks & regards,
    Y Gautham

    Hi Gautham,
    I don't know if you have already tried this but what you can do in the variant that you have created for the write program, at the bottom there are several select for the logs. For the first one "Detail Log" select "Complete", for the second one "Log Output" select "List and Application Log", save the variant and run the write program again (in test mode if you just want to see the output that you'd get). This should give you the detailed report that you're looking for.
    Let me know if this works.
    Cheers.

  • How to Publish reports for endusers

    Hi All,
    How can I publish my webI report on server for endusers?
    Thanks
    Rinki.

    Hi
        For WEBI report, actually no need to publish report as it is already behaved as a publish report. If your user want to view their report then they can easily do it using the report server url (providing necessary credential). In this case you have to make sure that your user account has not administrative privilege. You can also schedule your report (output could be .xls, .pdf)  and automatically can send this report to the end users' email / inbox etc.
    Hope it will help you.
    thanks
    arif.

  • Template Builder (XML Publisher Report) for Open Office

    Hi,
    Do any body has any idea, if can have template builder for Open Office also, My company has un installed MS Office from my machine, and they dont have license now.
    Thanks and Regards,
    Nidhi Gupta

    Hi All,
    I think Oracle can provide a BI Publisher Software for the Open Office, since the licencing cost for MS Office is very high.
    "OpenOffice Writer" is a open source alternative to MS Word and can be used on Linux. If I am using Linux OS and have to work on BI Publisher templates then certainly I will have to install Windows or use WINE ( I donno how it works but heard of it)
    Other Oracle tools such as SQL Developer, etc are platform independent.. then why only BI Publisher is limited for windows/MS Office.
    Tim,
    Can you please answer..
    I think it should integrate with OpenOffice too!!
    Regards,
    - Ejaz
    [email protected]

  • How to automatically/programmatically "publish" reports for local users of Crystal Reports 2011?

    Hi,
      I'm not sure if I'm using the correct Crystal Reports terminology here, so apologies in advance.
      We've got Crystal Reports 2011 and are developing an application which comes with a number of report files (.rpt) as part of its installation. These reports are used to provide a view onto the database that our application writes to.
      Is it possible to automatically manage the collection of reports that are available to users of the Crystal Reports application? Ideally this would be done as part of our application's installation/upgrade procedure. In the case of upgrades, it is possible that some report files may be modified, some removed and others added. (i.e. as the application database's underlying schema is modified or new features added/deprecated).
      I believe this could be achieved manually by starting up Crystal Reports and adding and removing reports to/from the Workbench, but we'd like this list of reports to be available to all users on the PC (Crystal Reports is installed on the same PC as our application), and for the update procedure to be something that was automatically scriptable or programmable in something like .NET.
      I've read about the Repository (which sounds like a solution to making reports available for all users), but suspect that this is only usable after some other product(s) has been installed? I'm not entirely sure what products they would be.
      Could you please let us know whether this can be achieved with the version of Crystal Reports we've got, and if so, how?
      The version of Crystal we have is: SAP BusinessObjects, CR Developer, Version 14.0.4.738 RTM, Product Type: Full
      Many thanks in advance,
        -Nige

    CR 2011 does not install any SDK... You can however download SAP Crystal Reports, developer version for Microsoft Visual Studio, which is an SDK that will let you work with VS 2010 and 2012.
    You will then have to decide if you want to use the Crystal Reports SDK or the InProc RAS SDK.
    Samples are here:
    Crystal Reports for .NET SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    NET RAS SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    Dev Help files:
    SAP Crystal Reports .NET SDK Developer Guide
    SAP Crystal Reports .NET API Guide
    Report Application Server .NET SDK Developer Guide
    Report Application Server .NET API Guide
    Discussing your requirements with sales may not be a bad idea either: 866-681-3435
    http://www.sap.com/contactsap/directory/index.epx
    Or, create a phone support incident here:
    Crystal Single Case Technical Support - SAP Business Objects US Online Store | SAP Online Store
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Error in BI publisher report for OIM

    Hi all!
    Can u help me?
    I know that this error is quite common, but I`ve tried out all the soultions and still can`t get the result.
    I`ve installed BI publisher and attached OIM reports there. All the reports work properly except those, which have date properties. For example, Account Activity in Resource. All of them return ora-08143 error ("not a valid month").
    Let me explain situation more clear.
    There are two fields using date in the report creation menu.
    Date Range From:
    Date Range To;
    They automatically get value like "12/06/2011 05:05:05" using their default values ({$SYSDATE()$}).
    But if I use these values, I get an error.
    I`ve found two ways of solving a problem: 1.) Changing the date to something like "12/Jan/2011" manually (note, that by default month stands first, and to solve the problem I should write it second and NOT in digits). 2.) Changing the date mask in report properties to dd/MMM/yyyy.
    But it`s not the best way to solve the problem. In this case I should change these properties everythere. Or user should (and this is bad :) ). I`m sure, that these reports should work without such modifications, so, error borns on my side.
    What I`ve done:
    1.) I tried to change nls_date_format, nls_language, nls_territory, timestamp_format in database session to different formats.
    2.) I`ve tried to manage all the changes that I`ve told about above.
    3.) I`ve tried to change UI language and report locales (if it`s important, I use russian language and russian report locale). xlf files are all ok.
    What shall I do to fix this error?
    My db is: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    My BI publisher is: 10.1.3.4 (may be everything is bad because of version, but it doesn`t seem to be so, because every report except date reports work nice).
    Thank u very muck and looking forward for hearing from u.

    Dewan.Rajiv wrote:
    I don know what issue you are facing due to language.
    Have you tried with changing the query of the report ?Yes, I have.
    By the way, I`ve discovered, that the error appears in line:
    AND myvariablewithdate BETWEEN :p_date_DateFromRange AND :p_date_DateToRange
    If I comment such a lines in the query, everthing works OK.
    But as you understand, that`s not the point :(
    Even if i put to data forms information from sql database (just copy timestamp data), the error continues to appear.
    If i make something like that in sqldeveloper, everything is ok:
    select upa_resource.upa_res_eff_from_date from upa_resource where upa_res_eff_from_date between (select sysdate - 30 from dual) and (select sysdate from dual)
    this statement returns right values.
    So, the problem is somethere in such a chain:
    - select sysdate from dual (it`s ok)
    - put sysdate to form (does it make any type of convert?)
    - take variable (former sysdate) from form.

  • Report for Archived data by using exicutable program.

    Hi,
    In already existed Zreport data is fetching from table like below.
    SELECT belnr bewtp budat lfbnr lfpos FROM ekbe INTO TABLE it_ekbe
                                                   WHERE bewtp IN ('R' , 'Q') "Only IRs
                                                      AND budat IN s_date.
    Like the above in the report fetchnig data from somany tables so mant times.
    Now my requirment is the archived consultants archived old data. some table are archived some are not archived.
    So i need to fetch the old data also from the archived files. Achived consultants given below details.
    zarixmm3------------>zerox table for MM related tables after archived the data.
    I searched in google got some code to fetch the data from archived fiels. The below code.
    1. I fetched the key  archive key number from the zerox table.
    SELECT archivekey  FROM zarixmm3 INTO TABLE it_get
                                       WHERE budat IN s_date
                                         AND werks IN s_werks.
    CLEAR : wa_ekbe.
    LOOP AT it_get INTO wa_get.
      v_arcdoc = wa_get-archivekey+0(6).
      wa_arcindx1a-archivekey = wa_get-archivekey.
      wa_arcindx1a-v_arcdoc = wa_get-archivekey+0(6).
      CLEAR : wa_get.
      APPEND  wa_arcindx1a TO  it_arcindx1a.
    ENDLOOP.
    SORT it_arcindx1a BY v_arcdoc.
    REFRESH it_get.
    CLEAR: v_arcdoc.
    DELETE ADJACENT DUPLICATES FROM it_arcindx1a COMPARING v_arcdoc.
    2. I passed the key in FMs.
    LOOP AT it_arcindx1a INTO wa_arcindx1a.
      v_key = wa_arcindx1a-archivekey+0(6).
      CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ'
        EXPORTING
          archive_document = v_key
    *     archive_name     = wa_arcindx1-archivekey
          object           = 'MM_EKKO'
        IMPORTING
          archive_handle   = lv_handle
        EXCEPTIONS
          OTHERS           = 1.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        EXIT.
      ENDIF.
      DO.
        CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT'
          EXPORTING
            archive_handle = lv_handle
          EXCEPTIONS
            end_of_file    = 1.          "nur die Ausnahmen, auf die man
        IF sy-subrc <> 0.                "wirklich reagieren will
          EXIT.
        ENDIF.
        CALL FUNCTION 'ARCHIVE_GET_TABLE'
          EXPORTING
            archive_handle        = lv_handle
            record_structure      = 'EKBE'
            all_records_of_object = 'X'
          TABLES
            table                 = git_ekbe_temp
          EXCEPTIONS
            end_of_object         = 0.
        LOOP AT git_ekbe_temp ASSIGNING <ls_ekbe>
                               WHERE bewtp = 'R' OR bewtp = 'Q'
                                AND budat IN s_date.
          MOVE-CORRESPONDING <ls_ekbe> TO wa_ekbe.
          APPEND wa_ekbe TO it_ekbe.
          MOVE-CORRESPONDING <ls_ekbe> TO wa_ekbee.
          APPEND wa_ekbee TO it_ekbee.
          CLEAR wa_ekbe.
          CLEAR wa_ekbee.
        ENDLOOP.
      ENDDO.
      CALL FUNCTION 'ARCHIVE_CLOSE_FILE'
        EXPORTING
          archive_handle = lv_handle.
      CLEAR wa_arcindx1a.
    ENDLOOP.
    Like the above i diid for all tables wich are used in the Zreport.
    Please tell me i am going in right direction or not. The above logic taking time because it is reding entire data in the table.
    If new logic is there please provide me to improve performance of the zreport.
    Regards,
    Maruthi S

    Hi Friends,
    I am waiting for solution aobve.
    Regards,
    Maruthi. S

  • Oracle bi publisher report for apex - Report Layout

    Hi There,
    Navigation: Home>Application Builder>Application 20>Shared Components>Report Layouts
    I created rtf template for a Report Query. It worked fine upto certain point.
    However at some point, if I make a minor modification to the layout it is not displaying all the data that it is supposed to.
    I have 3 tables in my RTF template 1) Header 2) Details 3) Summary. Details section has a group. This runs fine.
    Now if I just combine all the above 3 tables into one by adding row above and row below to the "2) details" table and moving the table 1 and table 3 into those rows, makes the data in the group in table 2 disappear when run on the apex application.
    However it works fine when data is loaded on the RTF template and Preview --> PDF is seen.
    Is it a known bug? Because some of my coleagues has same issues.
    Thanks
    Krishna
    Edited by: Krishna on Aug 9, 2010 10:08 AM

    Hi, I think you need to provide more information.
    user452458 wrote:
    Hi There,
    Navigation: Home>Application Builder>Application 20>Shared Components>Report Layouts
    I created rtf template for a Report Query. It worked fine upto certain point.
    However at some point, if I make a minor modification to the layout it is not displaying all the data that it is supposed to. What modification? added extra fields? Are those fields in the corresponding report query? change to the design of the document? did you delete the old template and re-upload after making the changes?
    Moreover the preview on the RTF template works fine with the same data.Preview from where?
    >
    Is it a known bug? Because some of my coleagues has same issues.
    Thanks
    KrishnaAlso, you should change your display name to something better than user452458 ;)
    Trent

  • Oracle bi publisher report for apex

    I am trying to generate rtf word file report and picture is not coming in word.
    I am using Oracle BI Publisher to generate report.

    Can you post a small example up on Oracle's hosted website, that shows what you are trying to do? Just a small sample with a report and your rtf template associated with it.
    Post the login information in this thread and I will take a look at what you are trying to do..
    Thank you,
    Tony Miller
    Webster, TX

  • New report for Archiving data

    Hi to all,
    Can anybody kindly tell me how to solve the following:
    Due to the huge volume of records in the table ZMES_SEQ_DETAIL it required to archive the data based on the Date on which the record was created, which is 18 months older in the table ZMES_SEQ_DETAIL.
    Thanks in advance.
    Regards
    Simi

    Hi,
    SAP provides standard archive objects for standard tables. There is no archive object available to archive custom tables data (Z/Y tables). The option you have is to develop a custom archive object and related programs to archive data from the Z table.
    Checkout the following <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/2a/fa042d493111d182b70000e829fbfe/content.htm">link</a> for more details on developing archiving solutions.
    Hope this helps
    Cheers!
    Samanjay

Maybe you are looking for