Database adapter not returning error immediately in table space error.
Hi,
In my BPEL process I have an invoke activity to call Database adapter for a PL/SQL procedure invocation.
The adapter received TABLESPACE error. The wiered thing is the error response we got after 3 hours? I am expecting immediately.
How do I need to configure this?
Here is more about my process.
My BPEL process is an asynchronous process. Before and after the database adapter call I have a java embeded activity with checkpoint();
retryIntervalValue is 60.
Is there any thing I have to specify? Why it is taking 3 hours? is there a way to reduce this?
-- Khaleel
Hi. Is this still a problem or is it solved? As far as I know how BPEL works this can not really take 3 hours before erroring. You are the one that knows the application best so you can check some things. Maybe the time reported is from the database machine on which time is set different from BPEL machine? What database are you using? Is it Oracle? I guess so. What version? I assume the BPEL repository is in different database from DB Adapter? Can you confirm that checkpoint() is really done? What error is exactly thrown from DB Adapter? How does your BPEL process start? Is it adapter-driven and is the process XA-Transacted? In that case the whole process could be in retry for a longer period of time.
Regards,
Jos Baan
Similar Messages
-
Database adapter not returning all the records
I've taken over a BPEL from a developer who left the organization and have been having an issue during our User Acceptance Testing. We are querying a table that will return the insurance enrollment information for employee's and their dependants. When an employee change plans, or adds people, the old plan is terminated and a new once is created. When this happens there will be two records on the database to show the old plan and the new plan.
When we run the SQL thru JDEV or SQLDeveloper, the data comes out fine. When we run it through a BPEL Database Adapter we are only getting one of the rows returned.
I have created a small tester BPEL that is easily modified and deployed to run the same query to try multiple configurations changes within the DBAdapter. What I have found is all the records are returned when the "Return single result set" box on the DBAdapter Wizard is unchecked. When it's checked then it only returns one record for the employees with an old and a new plan.
Can someone explain what the "Return single result set" option does, and what the impact will be if it's unchecked?Hello,
In same way i am using two parent-child(header-line) tables. they have one to many relationship.
I want to generate XML which contains multiple line items under a child elements for header elements.
I have tried it but i am getting only one line under that child item. i am using jdev10.0.3.3.0
can u help me please.
-regards
satyendra -
How to restart after table space error
Hi,
While loading a big file ( 360 MB) with the File -> XI-<ABAP prodxy from source, we got the table space error in middle of load. Due to Content conversion split for 20K we normally get many messages per load.
In this case after basis increased the disk space, how do i restart the process so that it start from where it is left. I checked Moni and there is no Que. I checked RWB for adapter also and there is no message with error. I also checked integration and all possible places..
The Alert that came in for failure has a message ID. I checked and found that message ID has been processed successfully. Still the count of records at the source does not match with target and lot of records are missing.
Is there any way to re run the process from where it was left.
ThanksHi,
Check following:
- RWB->Message monitoring->Adapter engine (not integration server)
-Check for follwing status:
"Holding", "Waiting" "To be delivering" "Error" your message should be here any of above status.
Note: in RWB message monitoring select "Adapter engine"
Regards,
Gourav
reward points if it helps you -
Database adapter not importing table having data type as WF_EVENT_T
Hi All,
I have a requirement to import a table in the Database adapter. That table is having a column of data type “WF_EVENT_T”.
When I tried to import the table in database adapter I got the error as "The following tables are not supported in the Database Adapter and were not imported".
Then I modified the table by adding one more column with some other data type and tried to import that table.
It got imported successfully but I was not able to see the column with data type WF_EVENT_T in the table.
Any pointers to this would be of great help.
Thanks.Hi Harish
Thanks for your response.
I can create the table with the data type 'String'. However, the problem is when I try to update the table from a program in SE38 or a Function Module in SE37.
When I try to activate the PROGRAM or FUCNTION, I GET A MESSAGE THAT I MENTIONED EARLIER.
Here is the simple program that I have created that I am not able to activate
==========================================
REPORT ZTEST_STRING1.
tables: ztest.
ztest-zid = 2.
ztest-zstring1 = 'ABC'.
insert ztest.
===========================================
ztest has two fields
zid which is NUMC type
and zstring1 which is STRING type.
When I try to activate I get an error message as follows:
'ztest' must be a flat structure. You cannot use internal tables,
strings, references, or structures as components.
Edited by: Ram Prasad on Mar 20, 2008 6:08 PM -
Oracle database Adapter starts up even before the BPEL services & errors
Here is the scenario:
We have an Oracle database adapter in an ESB service polling a table & then invokes a BPEL service.
During startup, the database adapter is loaded first & polls data & immediately invokes the BPEL which is not even loaded still & errors.
Is there a way to avoid this.
Any help would be great.All three of your errors seem to be pointing to a configuration gap between
* the JNDI name used by the SOA composite to obtain a JCA connection in the soa-infra engine
* the ConnectionFactory configuration used by the DbAdapter process that then connects to the JDBC connection pool managed by the WebLogic server
* the actual JDBC connection from WebLogic to your database
You've indicated the JDBC connection layer from WebLogic to the database has been verified so the following things should be checked:
* access the WebLogic console of your domain and verify the DbAdapter application is deployed and active on the server hosting your soa-infa SOA engine
* click on the DbAdapter entry and go to the Configuration tab and the Outbound Connections sub-tab
* expand the tree under javax.resource.cci.ConnectionFactory and verify your JNDI name within the SOA composite is listed (it probably looks something like eis/db/yourdbname)
* click on that JDNI name and verify on the subsequent screen that the JDBC connection pool name is present under dataSourceName or xADataSourceName
* verify your SOA composite is using eis/db/yourdbname as the reference in its database service --- it CANNOT use the JDNI name of the JDBC connection pool managed by WebLogic cuz composites run inside the soa-infra engine which uses JCA connections to get out of the soa-infra engine to the rest of the world
Hope that helps -
AQ Adapter Not Returning Fault Message even if the Enqueue is disabled
Hi....
i am using Oracle SOA 10.1.3.5 and we are trying to catch the error/fault returned by the AQ Adapter...
to create the scenario i have disabled the Enqueue on the Adapter and put the message...but the we are not receiving the fault message (the control is not going to CatchAll Block defined for the scope...)
the message we are getting is witht eh fault tag and not a exception....
i also tried to add the pick activity after invoke...but can someone provide any link to configure the pick for fault callback...
<fault>
-<exception class="com.collaxa.cube.ws.WebServiceException">
EJB Transaction Error.
EJB exception happened while invoking the partner.
Please verify partner service.
-<stack>
<f>com.collaxa.cube.ws.WSIFInvocationHandler.invoke#647
</f>
<f>com.collaxa.cube.ws.WSInvocationManager.invoke2#538
</f>
<f>com.collaxa.cube.ws.WSInvocationManager.invoke#286
</f>
<f>com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke#832
</f>
<f>com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements#413
</f>
<f>com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform#200
</f>
<f>com.collaxa.cube.engine.CubeEngine.performActivity#4330
</f>
<f>com.collaxa.cube.engine.CubeEngine.handleWorkItem#1837
</f>
<f>com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal#77
</f>
<f>com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage#240
</f>
<f>com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory#345
</f>
<f>com.collaxa.cube.engine.CubeEngine.endRequest#6464
</f>
<f>com.collaxa.cube.engine.CubeEngine.handleWorkItem#1908
</f>
<f>com.collaxa.cube.engine.ejb.impl.CubeEngineBean.handleWorkItem#415
</f>
<f>sun.reflect.NativeMethodAccessorImpl.invoke0
</f>
<f>sun.reflect.NativeMethodAccessorImpl.invoke#39
</f>
<f>...
</f>
</stack>
</exception>
-<root class="org.collaxa.thirdparty.apache.wsif.WSIFException">
file:/u01/oracle/product/10.1.3.1/OracleAS/bpel/domains/default/tmp/.bpel_InterfaceCustomerToBillingEBF_1.0_9da16e94dedd6d829b47b8d4b4a5ab53.tmp/EnqueueCreatePortalAccountMessage.wsdl [ Produce_Message_ptt::Produce_Message(CreateCustomerPartyEBM) ] - WSIF JCA Execute of operation 'Produce_Message' failed due to: ERRJMS_PROVIDER_ERR.
Could not produce message due to JMS provider error.
; nested exception is:
ORABPEL-12165
ERRJMS_PROVIDER_ERR.
Could not produce message due to JMS provider error.
Please examine the log file to determine the problem.
-<stack>
<f>oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation#644
</f>
<f>oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeInputOnlyOperation#739
</f>
<f>com.collaxa.cube.ws.WSIFInvocationHandler.invoke#474
</f>
<f>com.collaxa.cube.ws.WSInvocationManager.invoke2#538
</f>
<f>com.collaxa.cube.ws.WSInvocationManager.invoke#286
</f>
<f>com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke#832
</f>
<f>com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements#413
</f>
<f>com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform#200
</f>
<f>com.collaxa.cube.engine.CubeEngine.performActivity#4330
</f>
<f>com.collaxa.cube.engine.CubeEngine.handleWorkItem#1837
</f>
<f>com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal#77
</f>
<f>com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage#240
</f>
<f>com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory#345
</f>
<f>com.collaxa.cube.engine.CubeEngine.endRequest#6464
</f>
<f>com.collaxa.cube.engine.CubeEngine.handleWorkItem#1908
</f>
<f>com.collaxa.cube.engine.ejb.impl.CubeEngineBean.handleWorkItem#415
</f>
<f>...
</f>
</stack>
</root>
</fault
regards
\Sanju03I have found problem. My application name in iStudio was different from adapter. Once they are same it is ok
Regards Robert -
Database Adapter not working properly for more input parameters in OSM
Hi,
We are using OSM 7.0.0.3 and using design studio for development.
Recently we are facing issue with the database adapter.In Studio,we have options for configuring the JDBC adapter.
we have custom table in the database which has four columns with it.we are suppose to retrieve this table data using database adpater.
so,whats happening here is,when we are sending two parameters as input to database adapter,we are able to retrive the table data properly.
but,
when we are sending morethan two parameters as input adapter,it is not giving right results.
so,
is there any constarint on how many parameters to be send as inut to adapter???
any opinoin on first look at the issue??i will share the sample code if needed.Hi Naidu,
OSM 7.0.0.3 is a very old version and they are many fixes on top of it. So request you to please use any of the latest versions of OSM 7.0.1/7.0.2/7.0.3 and retest the issue. We are not giving any patches on top of OSM 7.0.0. You can also raise a service request for further investigation and analysis.
Regards,
JP -
Database adapter not refreshing unless the SOA server is restarted.
Hi,
I am using the SOA Soute 10.1.3.4 , I have several BPEL processes that are using the DB adapter for Oracle database. If I am invoking a procedure or function from the database using the Database adapter first time everything works fine. However if I do a small change (without changing the signature of the function) in the BODY of the function or procedure and recomplile it. Then the the DB adapter throws the following error.
Why the changes done and compling in Database binding with SOA server. it will be resolved only when we restart the SOA server. Any suggestions are welcome.
The error I am getting is :
file:/oracle/product/10.1.3/soa/bpel/domains/WebCrmDev/tmp/.bpel_RbaCreateWebCustomerWS_1.0_e05533c0baa1ddf2c43af6f6b1c34bf6.tmp/DBSearchCustomer.wsdl [ DBSearchCustomer_ptt::DBSearchCustomer(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'DBSearchCustomer' failed due to: Error while trying to prepare and execute an API.
An error occurred while preparing and executing the XXRBA.XXRBA_WEB_SEARCH.SEARCH_CUSTOMER API. Cause: java.sql.SQLException: ORA-04045: errors during recompilation/revalidation of XXRBA.XXRBA_WEB_SEARCH
ORA-01013: user requested cancel of current operation
ORA-06508: PL/SQL: could not find program unit being called: "XXRBA.XXRBA_WEB_SEARCH"
ORA-06512: at line 1
[Caused by: ORA-04045: errors during recompilation/revalidation of XXRBA.XXRBA_WEB_SEARCH
ORA-01013: user requested cancel of current operation
ORA-06508: PL/SQL: could not find program unit being called: "XXRBA.XXRBA_WEB_SEARCH"
ORA-06512: at line 1
; nested exception is:
ORABPEL-11811
Error while trying to prepare and execute an API.
An error occurred while preparing and executing the XXRBA.XXRBA_WEB_SEARCH.SEARCH_CUSTOMER API. Cause: java.sql.SQLException: ORA-04045: errors during recompilation/revalidation of XXRBA.XXRBA_WEB_SEARCH
ORA-01013: user requested cancel of current operation
ORA-06508: PL/SQL: could not find program unit being called: "XXRBA.XXRBA_WEB_SEARCH"
ORA-06512: at line 1
[Caused by: ORA-04045: errors during recompilation/revalidation of XXRBA.XXRBA_WEB_SEARCH
ORA-01013: user requested cancel of current operation
ORA-06508: PL/SQL: could not find program unit being called: "XXRBA.XXRBA_WEB_SEARCH"
ORA-06512: at line 1
Check to ensure that the API is defined in the database and that the parameters match the signature of the API. Contact oracle support if error is not fixable.
</summary
Thanks
--KhaleelHi,
Thanks for reply. We have applied the patch MLR7 on top of OAS 10.1.3.4
--Khaleel -
Hi Friends,
We are using two fact tables in a query along with three master tables.
We have tried to increase the table space for temp several times. But due to loads of data increasing in the facts We are struck back by the error could not increase the temp tablespace by 256M.
The total row counts for the tables are Table1:6872692, Table2:5365824.
Please suggest what could be done to over come the error. I know view could be used but even that is not jelling.
Thanks,
ravi.Are the tables in the local or remote database? Trying to understand if your problem is related to Heterogeneous Connectivity (this forum) since you didn't give details
-
Snap Shot too old error And UNDO Table space.
I posted [This Question|http://forums.oracle.com/forums/thread.jspa?threadID=718704&tstart=0] in PL/SQL forum. Now thought this would be a better place.
Thanks,
Karthick.Karthik,
Its actually not the same thing when we talk about manual Rollback Segments and Automatic Undo Segments. Besides the fact that the former is created by us and thus needs to be managed properly in the terms of the size and other things, the later one is far more performance oriented. There are couple of enhancements which are done in terms of Automatic Undo , to quote a few, Undo Stealing is one .Another is the on the fly making the undo segments offfline and while starting up the database, only the needed ones are available . This enables the fast instance startup.
Wont oracle automatically adjust the UNDO_RETENTION parameter based on the UNDO table space size.
If you have read it from Orcle docs than you must have seen this advice is correct when the release is 10.2 onwards and the tablespace is autoextensible. If the tablespace is autoextensible than from 10.2 onwards, you don't need to worry about the undo_retention period. It will be set automatically. If the tablespace is not autoextensible than Oracle would set the parameter value to the duration of the query.
For the snapshot too old error, I would suggest you read this link,
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:275215756923
There is no other document AFAIK which explains it more clearly than this one.
HTH
Aman.... -
DB Adapter not returning all columns from a sql table type
Using Soa Suite 10.1.3.4.
Calling DB Adapter from bpel to a database package procedure with an OUT NOCOPY parameter based on a TABLE OF type.
It works fine except that I only get the first 14 columns out of 55.
Can query all columns from Sqldeveloper or Sqlplus.
XML skema reflects all columns correct.
Same result without NOCOPY in parameter.
HaveI missed some details/limitations?hi
here is how I solved it.
first create custom view that will find all requred data.
in my case it was
tables :
ADRCITYT
ADRCITY
ADRPCDCITY
T005S
T005U
joins :
ADRCITY CLIENT = ADRCITYT CLIENT
ADRCITY COUNTRY = ADRCITYT COUNTRY
ADRCITY CITY_CODE = ADRCITYT CITY_CODE
ADRCITY CLIENT = ADRPCDCITY CLIENT
ADRCITY COUNTRY = ADRPCDCITY COUNTRY
ADRCITY CITY_CODE = ADRPCDCITY CITY_CODE
T005S MANDT = ADRCITY CLIENT
T005S BLAND = ADRCITY REGION
T005S MANDT = T005U MANDT
T005S LAND1 = T005U LAND1
T005S BLAND = T005U BLAND
and finaly searh help
ORT01 3 3 PAD_ORT01
CITY_CODE 0 2 CITY_CODE
PSTLZ 1 1 PSTLZ_HR
STATE 4 4 REGIO
BEZEI 5 5 BEZEI20
COUNTRY 0 6 LAND1
LANGU 0 7 LANGU -
DB adapter not returning return variable from database function
Hi,
We are calling a function using db adapter from our BPEL Process. It worked fine in 10.1.3.3.
after we migrated to 10.1.3.4 MLR# 8 , we are not able to see the return variable which function is returing.
Function is working fine when executed standalone. Its returing the variable. But we are not able to see that variable in bpel process invoke response variable. This is causing issue.
Any idea what causing the issue.
ThanksCheck your XSD to see if it is qualified (elementFormDefault="qualified") or unqualified. The XSDs were unqualified in 10.1.3.3. They became qualified in 10.1.3.4. If you have an unqualified XSD and you're using a 10.1.3.4 runtime you will likely have namespace issues that cause problems with the generated XML. The solution is to regenerate your XSD so that it becomes qualified.
-
BR0370I Directory /oracle/NW4/sapreorg/sdybsgtj created
BR0280I BRSPACE time stamp: 2008-06-05 10.12.05
BR0301E SQL error -1587 at location BrCtlCopy-1, SQL statement:
'/* BRSPACE */ ALTER DATABASE BACKUP CONTROLFILE TO '/oracle/NW4/sapreorg/sdybsgtj/cntrlNW4.old''
ORA-01587: error during control file backup file copy
ORA-27091: unable to queue I/O
ORA-27072: File I/O error
Linux-x86_64 Error: 5: Input/output error
Additional information: 4
Additional information: 515
Additional information: -1
BR0320E Copying of control file to /oracle/NW4/sapreorg/sdybsgtj/cntrlNW4.old failed
BR0280I BRSPACE time stamp: 2008-06-05 10.12.05
BR0700E Fatal errors occurred - terminating processing...
BR1020I Number of tablespaces processed: 0
BR1004E BRSPACE function 'tscreate' failed
BR1008I End of BRSPACE processing: sdybsgtj.tsc 2008-06-05 10.12.05
BR0280I BRSPACE time stamp: 2008-06-05 10.12.05
BR1007I BRSPACE terminated with errorsHi again
I still have no doubt, the filesystem is full, under linux df is often misleading especially when there are a lot of small files.
BR0370I Directory /oracle/NW4/sapreorg/sdybsgtj created
Why is there no directory /oracle/NW4/sapreorg/sdybsgtj ?
Can you please try to create the control file in the sapreorg filesystem:
ALTER DATABASE BACKUP CONTROLFILE TO '/oracle/NW4/sapreorg/cntrlNW4.old';
If this fails, try to copy a controlfile to sapreorg:
oranw4 % cp /oracle/NW4/sapdata1/cntrl/cntrlNW4.dbf /oracle/NW4/sapreorg/cntrlNW4.old
If all this does not help, please have a look at /var/log/messages for io errors or something like this.
Regards
Michael -
Table Space Error using BRTOOLS
Hi Friends,
I have a query to ask please help me out.
iam getting an error while trying to extend tablespace PSAPSR3(auto extended-YES).Iam pasting the error bellow
BR1049W Not enough free space in E:\oracle\ETS\sapdata1\sr3_72 for total maximum
size of all database files of tablespace PSAPSR3 located on this disk volume, m
issing at least 479456.371 MB
BR1049W Not enough free space in E:\oracle\ETS\sapdata1\sr3_72 for total maximum
size of all database files of tablespace PSAPSR3701 located on this disk volume
, missing at least 484456.371 MB
BR0668I Warnings or errors occurred - you can continue to ignore them or go back
to repeat the last action
BR0280I BRSPACE time stamp: 2011-02-17 14.54.09
BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:
please do me a favour ASAPproblem not yet solved..!!!
please revrt -
Urgent: Error-Record 39,779, segment 0001 is not in the cross-record table
Hi Gurus,
This is an urgent production issue: I got the following error-
I am updating data records from a DSO to Infocube in delta mode,
1.Record 39,779, segment 0001 is not in the cross-record table
2.Error in substep: End Routine
I dont know problem is in the End Routine or somewhere else,
The End routine is this:
PROGRAM trans_routine.
CLASS routine DEFINITION
CLASS lcl_transform DEFINITION.
PUBLIC SECTION.
Attributs
DATA:
p_check_master_data_exist
TYPE RSODSOCHECKONLY READ-ONLY,
*- Instance for getting request runtime attributs;
Available information: Refer to methods of
interface 'if_rsbk_request_admintab_view'
p_r_request
TYPE REF TO if_rsbk_request_admintab_view READ-ONLY.
PRIVATE SECTION.
TYPE-POOLS: rsd, rstr.
Rule specific types
TYPES:
BEGIN OF tys_TG_1,
InfoObject: ZVEHICLE Unique Vehicle ID.
/BIC/ZVEHICLE TYPE /BIC/OIZVEHICLE,
InfoObject: ZLOCID Mine Site.
/BIC/ZLOCID TYPE /BIC/OIZLOCID,
InfoObject: ZLOCSL Location Storage Location.
/BIC/ZLOCSL TYPE /BIC/OIZLOCSL,
InfoObject: 0VENDOR Vendor.
VENDOR TYPE /BI0/OIVENDOR,
InfoObject: ZNOMTK Nomination Number.
/BIC/ZNOMTK TYPE /BIC/OIZNOMTK,
InfoObject: ZNOMIT Nomination Item.
/BIC/ZNOMIT TYPE /BIC/OIZNOMIT,
InfoObject: ZNOMNR Nomination number.
/BIC/ZNOMNR TYPE /BIC/OIZNOMNR,
InfoObject: ZVSTTIME Vehicle Starting Time Stamp.
/BIC/ZVSTTIME TYPE /BIC/OIZVSTTIME,
InfoObject: ZVEDTIME Vehicle Ending Time Stamp.
/BIC/ZVEDTIME TYPE /BIC/OIZVEDTIME,
InfoObject: ZNETWT Net Weight.
/BIC/ZNETWT TYPE /BIC/OIZNETWT,
InfoObject: TU_GRS_WG Gross Wgt.
/BIC/TU_GRS_WG TYPE /BIC/OITU_GRS_WG,
InfoObject: ZTU_TRE_W Tare Wgt.
/BIC/ZTU_TRE_W TYPE /BIC/OIZTU_TRE_W,
InfoObject: ZCUSTWT Customer Weight.
/BIC/ZCUSTWT TYPE /BIC/OIZCUSTWT,
InfoObject: ZCAR_NO Car Number.
/BIC/ZCAR_NO TYPE /BIC/OIZCAR_NO,
InfoObject: ZINBND_ID Train Consist Inbound ID.
/BIC/ZINBND_ID TYPE /BIC/OIZINBND_ID,
InfoObject: ZOTBND_ID Train Consist Return Load.
/BIC/ZOTBND_ID TYPE /BIC/OIZOTBND_ID,
InfoObject: 0SOLD_TO Sold-to Party.
SOLD_TO TYPE /BI0/OISOLD_TO,
InfoObject: 0CUSTOMER Customer Number.
CUSTOMER TYPE /BI0/OICUSTOMER,
InfoObject: 0SHIP_TO Ship-To Party.
SHIP_TO TYPE /BI0/OISHIP_TO,
InfoObject: ZVEHI_NO Vehicle Number.
/BIC/ZVEHI_NO TYPE /BIC/OIZVEHI_NO,
InfoObject: ZCARSTDAT Car Start Date.
/BIC/ZCARSTDAT TYPE /BIC/OIZCARSTDAT,
InfoObject: ZCAREDDAT Car End Date.
/BIC/ZCAREDDAT TYPE /BIC/OIZCAREDDAT,
InfoObject: ZCARSTTIM Car Start Time.
/BIC/ZCARSTTIM TYPE /BIC/OIZCARSTTIM,
InfoObject: ZCAREDTIM Car End Time.
/BIC/ZCAREDTIM TYPE /BIC/OIZCAREDTIM,
InfoObject: 0COMPANY Company.
COMPANY TYPE /BI0/OICOMPANY,
InfoObject: ZCONTRACT Contract.
/BIC/ZCONTRACT TYPE /BIC/OIZCONTRACT,
InfoObject: 0PLANT Plant.
PLANT TYPE /BI0/OIPLANT,
InfoObject: ZLOADTIME Total Vehicle Loading time.
/BIC/ZLOADTIME TYPE /BIC/OIZLOADTIME,
InfoObject: ZSHIPDATE Shipping Date.
/BIC/ZSHIPDATE TYPE /BIC/OIZSHIPDATE,
InfoObject: ZSHIPTIME Shipping Time.
/BIC/ZSHIPTIME TYPE /BIC/OIZSHIPTIME,
InfoObject: ZMNEDDT Manifest End Date.
/BIC/ZMNEDDT TYPE /BIC/OIZMNEDDT,
InfoObject: ZMNEDTM Manifest End Time.
/BIC/ZMNEDTM TYPE /BIC/OIZMNEDTM,
InfoObject: ZLDEDDT Loaded End Date.
/BIC/ZLDEDDT TYPE /BIC/OIZLDEDDT,
InfoObject: ZLDEDTM Loaded End Time.
/BIC/ZLDEDTM TYPE /BIC/OIZLDEDTM,
InfoObject: ZMANVAR Manifest Variance.
/BIC/ZMANVAR TYPE /BIC/OIZMANVAR,
InfoObject: ZTU_TYPE Trpr Unit Type.
/BIC/ZTU_TYPE TYPE /BIC/OIZTU_TYPE,
InfoObject: ZACTULQTY Actual posted quantity.
/BIC/ZACTULQTY TYPE /BIC/OIZACTULQTY,
InfoObject: ZVEDDT Vehicle End Date.
/BIC/ZVEDDT TYPE /BIC/OIZVEDDT,
InfoObject: ZVEDTM Vehicle End Time.
/BIC/ZVEDTM TYPE /BIC/OIZVEDTM,
InfoObject: ZVSTDT Vehicle Start Date.
/BIC/ZVSTDT TYPE /BIC/OIZVSTDT,
InfoObject: ZVSTTM Vehicle Start Time.
/BIC/ZVSTTM TYPE /BIC/OIZVSTTM,
InfoObject: ZTRPT_TYP Vehicle type.
/BIC/ZTRPT_TYP TYPE /BIC/OIZTRPT_TYP,
InfoObject: 0CALMONTH Calendar Year/Month.
CALMONTH TYPE /BI0/OICALMONTH,
InfoObject: 0CALYEAR Calendar Year.
CALYEAR TYPE /BI0/OICALYEAR,
InfoObject: ZLOEDDT Quality Sent End Date.
/BIC/ZLOEDDT TYPE /BIC/OIZLOEDDT,
InfoObject: ZLOEDTM Quality sent End Time.
/BIC/ZLOEDTM TYPE /BIC/OIZLOEDTM,
InfoObject: ZATMDDT At Mine End Date.
/BIC/ZATMDDT TYPE /BIC/OIZATMDDT,
InfoObject: ZATMDTM At Mine End Time.
/BIC/ZATMDTM TYPE /BIC/OIZATMDTM,
InfoObject: ZDELAY Delay Duration.
/BIC/ZDELAY TYPE /BIC/OIZDELAY,
InfoObject: ZSITYP Schedule type.
/BIC/ZSITYP TYPE /BIC/OIZSITYP,
InfoObject: ZDOCIND Reference document indicator.
/BIC/ZDOCIND TYPE /BIC/OIZDOCIND,
InfoObject: 0BASE_UOM Base Unit of Measure.
BASE_UOM TYPE /BI0/OIBASE_UOM,
InfoObject: 0UNIT Unit of Measure.
UNIT TYPE /BI0/OIUNIT,
InfoObject: ZACT_UOM Actual UOM.
/BIC/ZACT_UOM TYPE /BIC/OIZACT_UOM,
Field: RECORD.
RECORD TYPE RSARECORD,
END OF tys_TG_1.
TYPES:
tyt_TG_1 TYPE STANDARD TABLE OF tys_TG_1
WITH NON-UNIQUE DEFAULT KEY.
$$ begin of global - insert your declaration only below this line -
... "insert your code here
$$ end of global - insert your declaration only before this line -
METHODS
end_routine
IMPORTING
request type rsrequest
datapackid type rsdatapid
EXPORTING
monitor type rstr_ty_t_monitors
CHANGING
RESULT_PACKAGE type tyt_TG_1
RAISING
cx_rsrout_abort.
METHODS
inverse_end_routine
IMPORTING
i_th_fields_outbound TYPE rstran_t_field_inv
i_r_selset_outbound TYPE REF TO cl_rsmds_set
i_is_main_selection TYPE rs_bool
i_r_selset_outbound_complete TYPE REF TO cl_rsmds_set
i_r_universe_inbound TYPE REF TO cl_rsmds_universe
CHANGING
c_th_fields_inbound TYPE rstran_t_field_inv
c_r_selset_inbound TYPE REF TO cl_rsmds_set
c_exact TYPE rs_bool.
ENDCLASS. "routine DEFINITION
$$ begin of 2nd part global - insert your code only below this line *
... "insert your code here
$$ end of 2nd part global - insert your code only before this line *
CLASS routine IMPLEMENTATION
CLASS lcl_transform IMPLEMENTATION.
Method end_routine
Calculation of result package via end routine
Note: Update of target fields depends on rule assignment in
transformation editor. Only fields that have a rule assigned,
are updated to the data target.
<-> result package
METHOD end_routine.
*=== Segments ===
FIELD-SYMBOLS:
<RESULT_FIELDS> TYPE tys_TG_1.
DATA:
MONITOR_REC TYPE rstmonitor.
*$*$ begin of routine - insert your code only below this line *-*
Fill the following fields by reading Nomination and Vehicls DSO
SOLD_TO, Customer
data: L_TIMESTAMP1 TYPE timestamp,
L_TIMESTAMP2 TYPE timestamp,
L_TIMESTAMP3 type CCUPEAKA-TIMESTAMP,
L_TIMESTAMP4 type CCUPEAKA-TIMESTAMP,
L_TIMESTAMP5 type CCUPEAKA-TIMESTAMP,
L_TIMESTAMP6 type CCUPEAKA-TIMESTAMP,
L_TIMESTAMP7 TYPE timestamp,
L_TIMESTAMP8 TYPE timestamp,
L_TIMESTAMP9 type timestamp,
L_TIMESTAMP10 type TIMESTAMP,
L_CHAR1(14),
L_CHAR2(14),
l_duration type I,
L_TS TYPE TZONREF-TZONE,
l_flag,
l_nomit TYPE /BIC/OIZNOMIT,
l_error_flag.
l_TS = 'CST'.
Data: EXTRA_PACKAGE type tyt_TG_1.
data: extra_fields type tys_TG_1.
LOOP at RESULT_PACKAGE ASSIGNING <RESULT_FIELDS>.
clear l_error_flag.
Get sold_to and customer from nomination table.
Select single SOLD_TO /BIC/ZLOCSL /BIC/ZCONTRACT COMPANY
/BIC/ZMNEDDT /BIC/ZMNEDTM /BIC/ZLDEDDT
/BIC/ZLDEDTM SHIP_TO /BIC/ZACTULQTY
/BIC/ZLOEDDT /BIC/ZLOEDTM /BIC/ZDELAY
/BIC/ZATMDDT /BIC/ZATMDTM
/BIC/ZSITYP /BIC/ZDOCIND
into (<RESULT_FIELDS>-SOLD_TO,
<RESULT_FIELDS>-/BIC/ZLOCSL,
<RESULT_FIELDS>-/BIC/ZCONTRACT,
<RESULT_FIELDS>-company,
<RESULT_FIELDS>-/BIC/ZMNEDDT,
<RESULT_FIELDS>-/BIC/ZMNEDTM,
<RESULT_FIELDS>-/BIC/ZLDEDDT,
<RESULT_FIELDS>-/BIC/ZLDEDTM,
<RESULT_FIELDS>-SHIP_TO,
<RESULT_FIELDS>-/BIC/ZACTULQTY,
<RESULT_FIELDS>-/BIC/ZLOEDDT,
<RESULT_FIELDS>-/BIC/ZLOEDTM,
<RESULT_FIELDS>-/BIC/ZDELAY,
<RESULT_FIELDS>-/BIC/ZATMDDT,
<RESULT_FIELDS>-/BIC/ZATMDTM,
<RESULT_FIELDS>-/BIC/ZSITYP,
<RESULT_FIELDS>-/BIC/ZDOCIND)
from /BIC/AZTSW_0000
where /BIC/ZNOMTK = <RESULT_FIELDS>-/BIC/ZNOMTK
AND /BIC/ZNOMIT = <RESULT_FIELDS>-/BIC/ZNOMIT.
Select Invalid Nominations
if sy-subrc <> 0.
l_error_flag = 'X'.
endif.
<RESULT_FIELDS>-customer = <RESULT_FIELDS>-SOLD_TO.
Prepare time stamp for Time Differences
Vehicle Starting Time Stamp
clear : L_TIMESTAMP9,L_TIMESTAMP10.
CONVERT DATE <RESULT_FIELDS>-/BIC/ZCARSTDAT TIME
<RESULT_FIELDS>-/BIC/ZCARSTTIM
INTO TIME STAMP L_TIMESTAMP9 TIME ZONE l_TS.
Vehicle Ending Time Stamp
CONVERT DATE <RESULT_FIELDS>-/BIC/ZCAREDDAT TIME
<RESULT_FIELDS>-/BIC/ZCAREDTIM
INTO TIME STAMP L_TIMESTAMP10 TIME ZONE l_TS.
Clear : L_TIMESTAMP3, L_TIMESTAMP4,
<RESULT_FIELDS>-/BIC/ZVEDTIME,
<RESULT_FIELDS>-/BIC/ZVSTTIME.
<RESULT_FIELDS>-/BIC/ZVEDTIME = L_TIMESTAMP10.
<RESULT_FIELDS>-/BIC/ZVSTTIME = L_TIMESTAMP9.
L_TIMESTAMP3 = L_TIMESTAMP10.
L_TIMESTAMP4 = L_TIMESTAMP9.
Caliculate the load time
IF L_TIMESTAMP3 is initial.
clear <RESULT_FIELDS>-/BIC/ZLOADTIME.
elseif L_TIMESTAMP4 is initial.
clear <RESULT_FIELDS>-/BIC/ZLOADTIME.
else.
CALL FUNCTION 'CCU_TIMESTAMP_DIFFERENCE'
EXPORTING
timestamp1 = L_TIMESTAMP3
timestamp2 = L_TIMESTAMP4
IMPORTING
DIFFERENCE = <RESULT_FIELDS>-/BIC/ZLOADTIME
ENDIF.
Caliculate the Manifest Variance
clear : L_TIMESTAMP5,L_TIMESTAMP6,L_TIMESTAMP7,L_TIMESTAMP8.
CONVERT DATE <RESULT_FIELDS>-/BIC/ZMNEDDT TIME
<RESULT_FIELDS>-/BIC/ZMNEDTM
INTO TIME STAMP L_TIMESTAMP7 TIME ZONE l_TS.
CONVERT DATE <RESULT_FIELDS>-/BIC/ZLDEDDT TIME
<RESULT_FIELDS>-/BIC/ZLDEDTM
INTO TIME STAMP L_TIMESTAMP8 TIME ZONE l_TS.
L_TIMESTAMP5 = L_TIMESTAMP7.
L_TIMESTAMP6 = L_TIMESTAMP8.
Caliculate the Maniefest Variance
IF L_TIMESTAMP5 is initial.
clear <RESULT_FIELDS>-/BIC/ZMANVAR.
elseif L_TIMESTAMP6 is initial.
clear <RESULT_FIELDS>-/BIC/ZMANVAR.
else.
CALL FUNCTION 'CCU_TIMESTAMP_DIFFERENCE'
EXPORTING
timestamp1 = L_TIMESTAMP5
timestamp2 = L_TIMESTAMP6
IMPORTING
DIFFERENCE = <RESULT_FIELDS>-/BIC/ZMANVAR
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
Delete datapackets with blank nominations
Delete datapackets with blank shipdate and Invalid Time Stamps
*IF <RESULT_FIELDS>-/BIC/ZNOMTK IS INITIAL OR
<RESULT_FIELDS>-/BIC/ZSHIPDATE IS INITIAL.
l_error_flag = 'X'.
*ENDIF.
<RESULT_FIELDS>-/BIC/ZVEHI_NO = 1.
<RESULT_FIELDS>-CALMONTH = <RESULT_FIELDS>-/BIC/ZSHIPDATE(6).
<RESULT_FIELDS>-CALYEAR = <RESULT_FIELDS>-/BIC/ZSHIPDATE(4).
if l_error_flag = 'X'.
Looks like Monitor Entries are not working in SP11.
Hence the following is commented temporarily.
CLEAR MONITOR_REC.
MONITOR_REC-MSGID = '0M'.
MONITOR_REC-MSGTY = 'S'.
MONITOR_REC-MSGNO = '501'.
MONITOR_REC-MSGV1 = <RESULT_FIELDS>-/BIC/ZNOMTK.
MONITOR_REC-recno = sy-tabix.
APPEND MONITOR_REC to MONITOR.
RAISE exception type CX_RSROUT_ABORT.
DELETE RESULT_PACKAGE index sy-tabix.
CLEAR L_ERROR_FLAG.
else.
MODIFY RESULT_PACKAGE FROM <RESULT_FIELDS>.
endif.
clear l_nomit.
l_nomit = <RESULT_FIELDS>-/BIC/ZNOMIT.
extra_fields = <RESULT_FIELDS>.
Actual Qty and Contract details
Select /BIC/ZLOCSL /BIC/ZNOMIT /BIC/ZCONTRACT /BIC/ZACTULQTY
/BIC/ZSITYP /BIC/ZDOCIND
SOLD_TO SHIP_TO COMPANY
into (extra_fields-/BIC/ZLOCSL,
extra_fields-/BIC/ZNOMIT,
extra_fields-/BIC/ZCONTRACT,
extra_fields-/BIC/ZACTULQTY,
extra_fields-/BIC/ZSITYP,
extra_fields-/BIC/ZDOCIND,
extra_fields-SOLD_TO,
extra_fields-SHIP_TO,
extra_fields-company)
from /BIC/AZTSW_0000
where /BIC/ZNOMTK = <RESULT_FIELDS>-/BIC/ZNOMTK AND
/BIC/ZNOMIT <> l_NOMIT.
INSERT extra_fields into table EXTRA_PACKAGE.
endselect.
ENDLOOP.
Append lines of extra_package to RESULT_PACKAGE.
*-- fill table "MONITOR" with values of structure "MONITOR_REC"
*- to make monitor entries
... "to cancel the update process
raise exception type CX_RSROUT_ABORT.
$$ end of routine - insert your code only before this line -
ENDMETHOD. "end_routine
Method inverse_end_routine
This subroutine needs to be implemented only for direct access
(for better performance) and for the Report/Report Interface
(drill through).
The inverse routine should transform a projection and
a selection for the target to a projection and a selection
for the source, respectively.
If the implementation remains empty all fields are filled and
all values are selected.
METHOD inverse_end_routine.
$$ begin of inverse routine - insert your code only below this line-
... "insert your code here
$$ end of inverse routine - insert your code only before this line -
ENDMETHOD. "inverse_end_routine
ENDCLASS. "routine IMPLEMENTATIONHi,
Most probably you are appending some records in the data package or deleting from the data package through end routine or expert routine or start routine.
I just solved it.....you will have to import the note 1180163.
Then modify the code which you are using....and include the function module as mentioned in the note 1223532.
You need to add the function module just before you append the records.This will work perfectly.
Thanks
Ajeet
Maybe you are looking for
-
Unable to find data source in bw server
Hai Experts, Iam novice to bw,got a problem in co-pa extraction, created data source in R/3 n generated,in bw to assign data source to infosource n create info package.But i dont find the infosource or replicated data in bw,could any one suggest how
-
How can I add a new filed to standart SAP Screen
Hi eveybody, I am using ima11 t-code and I need to add A new screen field to standart SAP screen(program No SAPLAIA1 Screen:1001 ).I have found five user-exits(AAIR0001,AAIR0002A,AIR0003,AAIR0004,AAIR0006) but there is no screen-exit. How can I add a
-
Adding additional expenes via DI API
Hi folks, I have an addon which creates an Invoice based upon a Delivery which has been working fine. The client is now using additional expenses and I need to move these across from the Delivery Note to the Invoice. I am receiving an error of 2028 b
-
In case of bookmarks.Hash routing not working with SAPUI5
Hi All, I have the below code with in SAPUI5 The issue is that the url is correctly set when navigation from entry screen to detailed screen and also proper navigation happens, but when detailed screen is bookmarked the navigation always takes back t
-
CRM 5.0 Custom BSP takes whole viewarea
Hello all, I created an entry in my navigation bar where I launch a custom BSP. When I click the entry the BSP opens up fine but the navigation bar, error bar and history navigation bar are gone. The telephony function and the bottom bar (with date a