Errors while creating Inspection plan using BAPI_INSPECTIONPLAN_CREATE
Hi All,
I am writing an upload tool for inspection plans. In this program I use bapi: BAPI_INSPECTIONPLAN_CREATE.
I made an extraction of a excisting inspection plan with SXDA_TOOLS which uses the same bapi and filled the bapi structures with the similar data. Now I am getting strange messeges in the return structure as below.
1. Material is not maintained for plant NNNN. But the material is mainained for that plant.
2. Consistency check not successful when creating operation
3. Inspection characteristic cannot be uniquely assigned to one operation
Let me know your suggestions
Thanks,
Sabu
Hi All,
Have any one used this BAPI, BAPI_INSPECTIONPLAN_CREATE to create Inspection Plan ?
Can you help me on above errors?
Thanks in advance,
Sabu
Similar Messages
-
Error while creating Inspection plan
Hi,
While creating inspection plan in QP01, system is showing error "Material type ZROH is not defined for task list type Q''
Please help me to solve the error.
Thanks
PrasantHi,
This is due to the configuration error,
Just use T.Code OP50
Create an entry for task list type "Q" with material type "ZROH" and save,
Then try creating a Quality Inspection Plan, it will work
Regards
Merwyn -
Error while uploading Inspection plan
Dear Friends,
I am creating inspection plans using BDC. The MIChas 2 versions. When i am using version 1, the inspection plan is created. Whereas when i am using MIC version 2 i am getting error "error occured while checking type group".Kindly let me know how do i resolve this.
Regards
VivekHi,
Thanks for the reply. when i am trying to create a inspection plan in other plant, we have 4-5 sampling procesures to select from. But for this perticular plant where we are having problem, its showing only one. How do i get more options?How do i extend a sampling procedure to a new plant.
Vivek
Edited by: vivek mankad on Feb 23, 2010 7:57 AM -
Error while creating resource group using non-globalzones.
Dear all,
Hi techs please guide me how to create failover resource group in nongloablzones.
I'm getting error while creating resource group using non-globalzones.
My setup:
I have two node cluster running sun cluster 3.2 configured and running properly.
node1: sun5
nide2: sun8
I have create non-globalzone "zone1" in node:sun5
I have create non-globalzone "zone2" in node:sun8
node:sun5# clrg create -n sun5:zone1,sun8:zone2 zonerg
*(C160082) WARNING: one or more zones in the node list have never been fully booted in the cluster mode,verify that correct zone name was entered.*
kindly guide me how to create Apache resource group using non-glabalzones, i'm new to sun cluster 3.2. please guide me step by step information.
Thanks in advance,
veera
Edited by: veeraa on Dec 19, 2008 1:54 AMHi Veera,
Actually you are getting a warning message where one of two things could have happened. Either you specified an incorrect zone name or one of the zones has not been fully booted. It's likely that you haven't booted the zones, so please follow this:
zoneadm list -iv
If zone1 or zone2 are not running then boot and configure them
zoneadm -z <zone> boot
zlogin -C <zone>
After that you can continue to follow the step by step instructions at
http://docs.sun.com/app/docs/doc/819-2975/chddadaa?a=view
These may also help
http://blogs.sun.com/Jacky/entry/a_simple_expample_about_how
http://blogs.sun.com/SC/en_US/entry/sun_cluster_and_solaris_zones
Regards
Neil -
BDC - Creating Inspections Plans using T-Code QP01
Hi All,
I want to Create Inspection Plans using QP01 transaction using BDC.
It having 4 screens. Third and Fourth screens having line item details.
I did recording. Upto First and second screens data is populating properly, coming to third screen data is not taking even though bdctable having data (in debug mode i found). I don't know hw to resolve this problem.
Can u please explain hw to populate line-item details, possible give some example coding .
Regards,
PrabhakarHi,
If you are comfortable using function modules then you will not have any difficulty in using the BAPI, only thing we need to take care of the following, refer the following this is not using the bapi for Inspection plan, this is done for different purpose, still you can refer this and use accordingly,
Data declarations,
DATA: TOPNODEONLY LIKE BAPICO_GROUP-TOPNODEONLY,
RETURN LIKE BAPIRET2,
LT_HIERARCHYNODES LIKE BAPISET_HIER OCCURS 0,
LT_HIERARCHYVALUES LIKE BAPI1117_VALUES OCCURS 0,
LS_HIERARCHYNODES LIKE BAPISET_HIER,
LS_HIERARCHYVALUES LIKE BAPI1117_VALUES,
LV_FLAG TYPE I,FLAG.
DATA: BEGIN OF ORDERS OCCURS 0,
ORDER_GROUP TYPE GRPDYNP-NAME_COALL,
DESC(30),
ORDER TYPE GRPVALUES-VFROM,
END OF ORDERS.
START-OF-SELECTION.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = FILENAME
FILETYPE = 'DAT'
TABLES
DATA_TAB = ORDERS.
SORT ORDERS BY ORDER_GROUP ORDER.
LOOP AT ORDERS.
IF LV_FLAG NE 1.
TRANSLATE ORDERS-ORDER_GROUP TO UPPER CASE.
LS_HIERARCHYNODES-GROUPNAME = ORDERS-ORDER_GROUP.
LS_HIERARCHYNODES-DESCRIPT = ORDERS-DESC.
LS_HIERARCHYNODES-HIERLEVEL = 0.
LS_HIERARCHYNODES-VALCOUNT = 0.
APPEND LS_HIERARCHYNODES TO LT_HIERARCHYNODES.
LV_FLAG = 1.
ENDIF.
CLEAR LS_HIERARCHYNODES.
LS_HIERARCHYNODES-GROUPNAME = ORDERS-ORDER.
LS_HIERARCHYNODES-HIERLEVEL = 1.
LS_HIERARCHYNODES-VALCOUNT = 0.
APPEND LS_HIERARCHYNODES TO LT_HIERARCHYNODES.
AT END OF ORDER_GROUP.
FLAG = 'X'.
ENDAT.
IF FLAG = 'X'.
BAPI is called to create Internal Order group in the system
CALL FUNCTION 'BAPI_INTERNALORDRGRP_CREATE'
TABLES
HIERARCHYNODES = LT_HIERARCHYNODES
HIERARCHYVALUES = LT_HIERARCHYVALUES.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
CLEAR : LT_HIERARCHYNODES[], LS_HIERARCHYNODES.
CLEAR : LV_FLAG,FLAG.
ENDIF.
ENDLOOP.
Hope this helps,
Rgds, -
Creating Inspection plan using BAPI
HI all,
I am using the FM 'BAPI_INSPECTIONPLAN_CREATE'. I am unable to update the Inspection characteristics as multiple entries. Its getting updated only the last item.
Expecting answer from the experts.
Ravi.Hi,
you can check the BAPI_INSPECTIONPLAN_CREATE for the named purpose, the values you named are in the structure BAPI1191_CHA_C please read the BAPI documentation:
Functionality
You can use this function module to create inspection plans and all its subordinate objects.
You can create a key date view and the complete history of an inspection plan. It is useful to have a history when transferring data from external systems.
Example
You want to create an inspection plan with operations and inspection characteristics for key date 01.01.2000. Make an entry in the following tables for each object:
TASK
OPERATION
INSPCHARACTERISTIC
If you want to assign test equipment to the inspection characteristic in field ITEM_NO_OF_PRODUCTION_RESOURCE, you must have assigned this test equipment in PARAMETER PRODUCTIONRESOURCE.
Notes
If no error occurs during the transfer of data, the export parameters GROUP and GROUPCOUNTER contain the key for the task list created. A COMMIT WORK must be executed for writing data to the database.
All errors that have occured are logged in the export parameter RETURN. If there are inconsistencies, the inspection plan to be created is rejected
<b>Reward points</b>
Regards -
Error while creating a Planned Order
Hi SAP Experts,
I have an error encountered while creating a Planned Order which is "Mode linkage problem with mode number".
Diagnosis:
An application program called an LCA routine and the following error occurred:
An order has at least one condition with mode linkage with the same mode number. The activities of this condition must have compatible modes. The modes are compatible when each mode of one activity has a mode for the other activity with the same mode number. The first activity that violates the condition is given in the return code table in ABAP.
Please enlighthen me what is this error and what should be done to this error.
Thanks in advance,
RaymondCheck the PPM or PDS being used in the Planned Order.
Most likely you have a Setup Activity followed by Produce Activity. However the Mode (i.e. Resource) used in the two activities are different. The same Mode needs to be used both in Setup and corresponding Produce activity.
Hope this helps,
somnath -
Error while creating manual planned order in apo
Dear expert
While I am creating manual planned order i am getting error as message /sapapo/rrp251
Every thing is correct BOM and PV's no error after consistency check and it getting succesfully transffered to APO and it is also visible in APO
But while creating manual planned orders planned order are not getting generated I am using BLock planning with PPDS
Please help How to resolve it
Regards
VirenderHi
The error message /SAPAPO/RRP251 - Error occurred while creating order means While creating an order, the system encountered problems, such as, for example, no available components or components that are available late, orders that could not be scheduled, and so on.
I think system attempted to solve the availability problems by using alternative procurement options. This was not successful. The order could not be created. Check the exceptional situations in the planning protocol, under Goto -> Planning log, and deal with the causes of the exceptional situations if this is possible or necessary.
Thanks
Amol -
Error while creating new crosstab using
I am getting the following error while creating a new crosstab object within Swing application. This error has started coming after we applied Oracle patch 9206 on database. The error originates from one of the classes in the olap_api_92.jar.
==========================================================
Wed Feb 02 09:13:51 CST 2005 In BuilderWizardValidateAdapter::wizardValidatePage
oracle.express.idl.util.OlapiException: No more data to read from socket
at oracle.express.idl.ExpressOlapiDataSourceModule.DefinitionManagerInterfaceStub.crtCurMgrs2(DefinitionManagerInterfaceStub.java:927)
at oracle.express.olapi.data.full.DefinitionManagerSince9202.createOLAPICursorManagers(DefinitionManagerSince9202.java:611)
at oracle.express.olapi.data.full.ExpressDataProvider.createCursorManagers(ExpressDataProvider.java:1325)
=========================================================
Please check the BIcheckconfig output. It does not show any errors.
=========================================================
<?xml version="1.0" encoding="UTF-8" ?>
<BICheckConfig version="1.0.2.0">
<Check key="JDEV_ORACLE_HOME" value="C:\Mohan\Installs\Jdev904"/>
<Check key="JAVA_HOME" value="C:\Mohan\Installs\Jdev904\jdk"/>
<Check key="JDeveloper version" value="9.0.4.0.1419"/>
<Check key="BI Beans release description" value="BI Beans 9.0.4 Production Release"/>
<Check key="BI Beans component number" value="9.0.4.23.0"/>
<Check key="BI Beans internal version" value="2.7.5.32"/>
<Check key="host" value="db03schgefage"/>
<Check key="port" value="1521"/>
<Check key="sid" value="biolapp"/>
<Check key="user" value="nairs5"/>
<Check key="Connecting to the database" value="Successful"/>
<Check key="JDBC driver version" value="9.2.0.4.0"/>
<Check key="JDBC JAR file location" value="C:\Mohan\Installs\Jdev904\jdev\lib\patches"/>
<Check key="Database version" value="9.2.0.6.0"/>
<Check key="OLAP Catalog version" value="9.2.0.6.0"/>
<Check key="OLAP AW Engine version" value="9.2.0.6.0"/>
<Check key="OLAP API Server version" value="9.2.0.6.0"/>
<Check key="BI Beans Catalog version" value="N/A; not installed in nairs5"/>
<Check key="OLAP API JAR file version" value="9.2"/>
<Check key="OLAP API JAR file location" value="C:\Mohan\Installs\Jdev904\jdev\lib\ext"/>
<Check key="OLAP API Metadata Load" value="Successful"/>
<Check key="Number of metadata folders" value="3"/>
<Check key="Number of metadata measures" value="569"/>
<Check key="Number of metadata dimensions" value="5"/>
<Check key="OLAP API Metadata">
<![CDATA[==============================================================================
Type Name (S=Schema, C=Cube, M=Measure, D=Dimension)
========= ====================================================================
Folder... ROOT
Folder... Auto Claim Measures
Folder... Service Measures
Folder... Claim Counts
Folder... Cell Summary Cube
Folder... Actual Measures
Measure.. Actual Acceptance Rate
Measure.. Actual Annualized Bill amt
Measure.. Actual Application Count
Measure.. Actual Avg Annual Billing
Measure.. Actual Contacts Count
Measure.. Actual Commission Amt
at oracle.express.olapi.data.full.ExpressDataProvider.internalCreateCursorManager(ExpressDataProvider.java:680)
at oracle.express.olapi.data.full.ExpressDataProvider.createCursorManager(ExpressDataProvider.java:586)
at oracle.olapi.data.source.DataProvider.createCursorManager(DataProvider.java:268)
at oracle.dss.dataSource.QueryUtilities.setUpCursors(QueryUtilities.java:559)
at oracle.dss.dataSource.QueryServer._setUpCursorsForMainQuery(QueryServer.java:7039)
at oracle.dss.dataSource.QueryServer._getCursorForCube(QueryServer.java:4098)
at oracle.dss.dataSource.QueryServer._updateCube(QueryServer.java:4055)
at oracle.dss.dataSource.QueryServer._applySelections(QueryServer.java:2661)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at oracle.dss.util.Operation.execute(Operation.java:69)
at oracle.dss.dataSource.OperationQueue.update(OperationQueue.java:68)
at oracle.dss.dataSource.common.BaseOperationQueue.addOperation(BaseOperationQueue.java:176)
at oracle.dss.dataSource.common.BaseOperationQueue.addOperation(BaseOperationQueue.java:146)
at oracle.dss.dataSource.QueryServer.queueOperation(QueryServer.java:7076)
at oracle.dss.dataSource.QueryServer.applySelection(QueryServer.java:2192)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at oracle.dss.util.Operation.execute(Operation.java:69)
at oracle.dss.dataSource.QueryManagerServer.sendQueue(QueryManagerServer.java:1549)
at oracle.dss.dataSource.common.OperationQueue.update(OperationQueue.java:198)
at oracle.dss.dataSource.common.BaseOperationQueue.addOperation(BaseOperationQueue.java:176)
at oracle.dss.dataSource.common.BaseOperationQueue.addOperation(BaseOperationQueue.java:146)
at oracle.dss.dataSource.common.OperationQueue.addOperation(OperationQueue.java:127)
at oracle.dss.dataSource.client.QueryClient.applySelection(QueryClient.java:970)
at oracle.dss.dataSource.common.QueryQueryAccess$SelCursor.getDataAccess(QueryQueryAccess.java:1133)
at oracle.dss.dataSource.common.QueryQueryAccess.getDataAccess(QueryQueryAccess.java:278)
at oracle.dss.datautil.QueryAccessUtilities._getValues(QueryAccessUtilities.java:639)
at oracle.dss.datautil.QueryAccessUtilities._getValues(QueryAccessUtilities.java:705)
at oracle.dss.datautil.QueryAccessUtilities.getValues(QueryAccessUtilities.java:608)
at oracle.dss.queryBuilder.QueryBuilderUtils.getSelectedMeasures(QueryBuilderUtils.java:623)
at oracle.dss.queryBuilder.SelectedItemsPanel.populateTree(SelectedItemsPanel.java:298)
at oracle.dss.queryBuilder.SelectedItemsPanel.refreshTree(SelectedItemsPanel.java:333)
at oracle.dss.queryBuilder.SelectedItemsPanel.setActive(SelectedItemsPanel.java:366)
at oracle.dss.queryBuilder.ItemsPanel.setActive(ItemsPanel.java:251)
at oracle.dss.datautil.gui.DefaultBuilderDialog.setActive(DefaultBuilderDialog.java:1072)
at oracle.dss.datautil.gui.DefaultBuilderDialog.validateNextPreviousEvent(DefaultBuilderDialog.java:1396)
at oracle.dss.datautil.gui.DefaultBuilderDialog$BuilderWizardValidateAdapter.wizardValidatePage(DefaultBuilderDialog.java:2113)
at oracle.bali.ewt.wizard.WizardPage.processWizardValidateEvent(Unknown Source)
at oracle.bali.ewt.wizard.WizardPage.validatePage(Unknown Source)
at oracle.dss.datautil.gui.CustomImageWizardPage.validatePage(CustomImageWizardPage.java:81)
at oracle.bali.ewt.wizard.BaseWizard.validateSelectedPage(Unknown Source)
at oracle.bali.ewt.wizard.BaseWizard.doNext(Unknown Source)
at oracle.dss.datautil.gui.CustomWizard.doNext(CustomWizard.java:415)
at oracle.bali.ewt.wizard.BaseWizard$Action.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
at java.awt.Dialog$1.run(Dialog.java:540)
at java.awt.Dialog.show(Dialog.java:561)
at java.awt.Component.show(Component.java:1133)
at java.awt.Component.setVisible(Component.java:1088)
at oracle.bali.ewt.wizard.WizardDialog.runDialog(Unknown Source)
at oracle.dss.datautil.gui.DefaultBuilderDialog.runDialog(DefaultBuilderDialog.java:489)
at oracle.dss.datautil.gui.DefaultBuilderDialog.run(DefaultBuilderDialog.java:466)
at oracle.dss.queryBuilder.QueryBuilder.run(QueryBuilder.java:2401)
at gecf.pmg.PmgBiOlapApp.newCrosstabWiz(PmgBiOlapApp.java:1622)
at gecf.pmg.PmgBiOlapApp.mNewCrosstab_ActionPerformed(PmgBiOlapApp.java:1563)
at gecf.pmg.PmgBiOlapApp$5.actionPerformed(PmgBiOlapApp.java:696)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)I suspect that you have either not fully applied the patch or alternatively the patching process did not complete.
If you are using an analytic workspace, connect as OLAPSYS account and run the following commands:
exec CWM2_OLAP_METADATA_REFRESH.MR_REFRESH
exec CWM2_OLAP_METADATA_REFRESH.MR_AC_REFRESH
If this does not resolve the error, and assuming your system worked prior to applying the 9206 patch, then the patch may need to be reapplied.
Hope this helps
Business Intelligence Beans Product Management Team
Oracle Corporation -
Error while creating new projects using api
Hello,
I am having error while creating projects using standard api, PA_PROJECT_PUB.CREATE_PROJECTS. The error I am having is as follow.
Source template ID is invalid.
===
My code is as follow:
SET SERVEROUTPUT ON SIZE 1000000
SET VERIFY OFF
define no=&amg_number
DECLARE
-- Variables used to initialize the session
l_user_id NUMBER;
l_responsibility_id NUMBER;
cursor get_key_members is
select person_id, project_role_type, rownum
from pa_project_players
where project_id = 1;
-- Counter variables
a NUMBER := 0;
m NUMBER := 0;
-- Variables needed for API standard parameters
l_commit VARCHAR2(1) := 'F';
l_init_msg_list VARCHAR2(1) := 'T';
l_api_version_number NUMBER :=1.0;
l_return_status VARCHAR2(1);
l_msg_count NUMBER;
l_msg_data VARCHAR2(2000);
-- Variables used specifically in error message retrieval
l_encoded VARCHAR2(1) := 'F';
l_data VARCHAR2(2000);
l_msg_index NUMBER;
l_msg_index_out NUMBER;
-- Variables needed for Oracle Project specific parameters
-- Input variables
l_pm_product_code VARCHAR2(30);
l_project_in pa_project_pub.project_in_rec_type;
l_key_members pa_project_pub.project_role_tbl_type;
l_class_categories pa_project_pub.class_category_tbl_type;
l_tasks_in pa_project_pub.task_in_tbl_type;
-- Record variables for loading table variables above
l_key_member_rec pa_project_pub.project_role_rec_type;
l_class_category_rec pa_project_pub.class_category_rec_type;
l_task_rec pa_project_pub.task_in_rec_type;
-- Output variables
l_workflow_started VARCHAR2(100);
l_project_out pa_project_pub.project_out_rec_type;
l_tasks_out pa_project_pub.task_out_tbl_type;
-- Exception to call messag handlers if API returns an error.
API_ERROR EXCEPTION;
BEGIN
-- Initialize the session with my user id and Projects, Vision Serves (USA0
-- responsibility:
select user_id into l_user_id
from fnd_user
where user_name = 'SSHAH';
select responsibility_id into l_responsibility_id
from fnd_responsibility_tl
where responsibility_name = 'Projects Implementation Superuser';
pa_interface_utils_pub.set_global_info(
p_api_version_number => l_api_version_number,
p_responsibility_id => l_responsibility_id,
p_user_id => l_user_id,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status);
if l_return_status != 'S' then
raise API_ERROR;
end if;
-- Provide values for input variables
-- L_PM_PRODUCT_CODE: These are stored in pa_lookups and can be defined
-- by the user. In this case we select a pre-defined one.
select lookup_code into l_pm_product_code
from pa_lookups
where lookup_type = 'PM_PRODUCT_CODE'
and meaning = 'Conversion';
-- L_PROJECT_IN: We have to provide values for all required elements
-- of this record (see p 5-13, 5-14 for the definition of the record).
-- Customers will normally select this information from some external
-- source
l_project_in.pm_project_reference := 'AGL-AMG Project &no';
l_project_in.project_name := 'AGL-AMG Project &no';
l_project_in.created_from_project_id := 1;
l_project_in.carrying_out_organization_id := 2864; /*Cons. West*/
l_project_in.project_status_code := 'UNAPPROVED';
l_project_in.start_date := '01-JAN-11';
l_project_in.completion_date := '31-DEC-11';
l_project_in.description := 'Trying Hard';
l_project_in.project_relationship_code := 'Primary';
-- L_KEY_MEMBERS: To load the key member table we load individual
-- key member records and assign them to the key member table. In
-- the example below I am selecting all of the key member setup
-- from an existing project with 4 key members ('EE-Proj-01'):
for km in get_key_members loop
-- Get the next record and load into key members record:
l_key_member_rec.person_id := km.person_id;
l_key_member_rec.project_role_type := km.project_role_type;
-- Assign this record to the table (array)
l_key_members(km.rownum) := l_key_member_rec;
end loop;
-- L_CLASS_CATEGORIES: commented out below should fix the error we get
-- because the template does not have an assigment for the mandatory class
-- 'BAS Test'
l_class_category_rec.class_category := 'Product';
l_class_category_rec.class_code := 'Non-classified';
-- Assign the record to the table (array)
l_class_categories(1) := l_class_category_rec;
-- L_TASKS_IN: We will load in a single task and a subtask providing only
-- the basic fields (see pp. 5-16,5-17,5-18 for the definition of
-- the task record)
l_task_rec.pm_task_reference := '1';
l_task_rec.pa_task_number := '1';
l_task_rec.task_name := 'Construction';
l_task_rec.pm_parent_task_reference := '' ;
l_task_rec.task_description := 'Plant function';
-- Assign the top task to the table.
l_taskS_in(1) := l_task_rec;
-- Assign values for the sub task
l_task_rec.pm_task_reference := '1.1';
l_task_rec.pa_task_number := '1.1';
l_task_rec.task_name := 'Brick laying';
l_task_rec.pm_parent_task_reference := '1' ;
l_task_rec.task_description := 'Plant building';
-- Assign the subtask to the task table.
l_tasks_in(2) := l_task_rec;
-- All inputs are assigned, so call the API:
pa_project_pub.create_project
(p_api_version_number => l_api_version_number,
p_commit => l_commit,
p_init_msg_list => l_init_msg_list,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status,
p_workflow_started => l_workflow_started,
p_pm_product_code => l_pm_product_code,
p_project_in => l_project_in,
p_project_out => l_project_out,
p_key_members => l_key_members,
p_class_categories => l_class_categories,
p_tasks_in => l_tasks_in,
p_tasks_out => l_tasks_out);
-- Check the return status, if it is not success, then raise message handling
-- exception.
IF l_return_status != 'S' THEN
dbms_output.put_line('Msg_count: '||to_char(l_msg_count));
dbms_output.put_line('Error: ret status: '||l_return_status);
RAISE API_ERROR;
END IF;
-- perform manual commit since p_commit was set to False.
COMMIT;
--HANDLE EXCEPTIONS
EXCEPTION
WHEN API_ERROR THEN
FOR i IN 1..l_msg_count LOOP
pa_interface_utils_pub.get_messages(
p_msg_count => l_msg_count,
p_encoded => l_encoded,
p_msg_index => i,
p_msg_data => l_msg_data,
p_data => l_data,
p_msg_index_out => l_msg_index_out);
dbms_output.put_line('ERROR: '||to_char(l_msg_index_out)||': '||l_data);
END LOOP;
rollback;
WHEN OTHERS THEN
dbms_output.put_line('Error: '||sqlerrm);
FOR i IN 1..l_msg_count LOOP
pa_interface_utils_pub.get_messages(
p_msg_count => l_msg_count,
p_encoded => l_encoded,
p_msg_index => i,
p_msg_data => l_msg_data,
p_data => l_data,
p_msg_index_out => l_msg_index_out);
dbms_output.put_line('ERROR: '||to_char(l_msg_index_out)||': '||l_data);
END LOOP;
rollback;
END;
===
Msg_count: 1
Error: ret status: E
ERROR: 1: Project: 'AGL-AMG Project 1123'
Source template ID is invalid.
PL/SQL procedure successfully completed.I was using a custom Application, which had a id other then 275 (which belongs to Oracle projects)
-
Error while creating a material using Bapi_material_savedata
Hi,
there is an error encountered while creating a material using BAPI_MATERIAL_SAVEDATA..
The Error description is " Material description is not transfered " even after supplying the Material description and other mandatory field information like industrial sector, material type ,basic view indicator,Base UOM,Base UOM ISO code.
Please let me know the solution, if you know.Hi,
Please search the SCN for the answers
https://www.sdn.sap.com/irj/scn/advancedsearch?query=errorinBAPI_MATERIAL_SAVEDATA+&cat=sdn_all -
Error while creating activity by using BAPI
Hi,
While creating activity by using BAPI Im getting error as follows,
Start processing of refference object handle generated.
Integrity rule a d0008 broken
business partner with function from vbkakom not vbpakom
Integrity rule a d0008 broken
edit all incomplete field .
Please help me for solving this issue.
Regards,
SureshNot received any proper reply Closing the issue.
-
Error while creating logical file using transaction FILE
Hello there,
I am facing an error while creating Logical File name definition using transaction FILE
This is the input which I'm trying to give
Logical file name: ZTEST
Name : ZTEST
Physical file : ZTEST_1<DATE><TIME>.csv
Data format: ASC
Application area: BW
Logical path:ZTEST_1_DATAOUT
when I tried to save it throws me an error like ASSIGN_SUBSTRING_NOT_ALLOWED
Please help.Hi,
Please check the OSS Notes :
Note 792061 - SP Case Locator: Dump: ASSIGN to a substring isn't allowed.
SAP Note 1297989 - Short dump ASSIGN_SUBSTRING_NOT_ALLOWED
Hope this solves the problem.
-Vikram -
Error while creating Quality Plan
Dear Experts,
While creating the Quality Plan following error is coming -"Error occured when checking type "
In the log of task list following error is appearing - "Op. 0060, CH 0060:char. iden % used for QDI several times in task list"
Please give your valuable suggestion onto this.
Thanks
SumitIt means you are sending down the same characteristic to an external system like LIMS more then once.
I believe this is a warning. Not a hard error but I'm not 100%sure.
Craig -
Error while creating hyperion planning application in 11.1.1.1.0
Hi All,
I am using EPM system 11.1.1.1.0 and i get the following error while trying to create a new application using Hyperion Planning:
Unable to find JDBC_CATALOG key for application: ABC1+
Connection to the datasource created successfully.+
in cpp -Created NonUnicode App:ABC1 0+
Unable to create Analytical application. Exiting Application Creation.+
Exception in Application Creation :Unable to create Analytical application. Exit+
ing Application Creation.+
java.lang.IllegalStateException: Unable to create Analytical application. Exitin+
g Application Creation.+
at com.hyperion.planning.HspManageApplication.createApp(Unknown Source)+
at com.hyperion.planning.appdeploy.HspManageAppSession.createApplication+
*(Unknown Source)*
at HspCreateApp.Handle(Unknown Source)+
at HspCreateApp.doPost(Unknown Source)+
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)+
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)+
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl+
icationFilterChain.java:252)+
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF+
ilterChain.java:173)+
at HspValidationFilter.doFilter(Unknown Source)+
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl+
icationFilterChain.java:202)+
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF+
ilterChain.java:173)+
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV+
alve.java:213)+
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV+
alve.java:178)+
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j+
ava:126)+
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j+
ava:105)+
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal+
ve.java:107)+
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav+
a:148)+
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java+
*:869)*
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p+
rocessConnection(Http11BaseProtocol.java:664)+
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo+
int.java:527)+
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol+
lowerWorkerThread.java:80)+
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP+
ool.java:684)+
at java.lang.Thread.run(Unknown Source)+
java.lang.RuntimeException: Create application failed.+
at com.hyperion.planning.appdeploy.HspManageAppSession.createApplication+
*(Unknown Source)*
at HspCreateApp.Handle(Unknown Source)+
at HspCreateApp.doPost(Unknown Source)+
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)+
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)+
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl+
icationFilterChain.java:252)+
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF+
ilterChain.java:173)+
at HspValidationFilter.doFilter(Unknown Source)+
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl+
icationFilterChain.java:202)+
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF+
ilterChain.java:173)+
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV+
alve.java:213)+
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV+
alve.java:178)+
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j+
ava:126)+
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j+
ava:105)+
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal+
ve.java:107)+
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav+
a:148)+
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java+
*:869)*
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p+
rocessConnection(Http11BaseProtocol.java:664)+
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo+
int.java:527)+
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol+
lowerWorkerThread.java:80)+
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP+
ool.java:684)+
at java.lang.Thread.run(Unknown Source)+
Error terminating Essbase connection: java.lang.NullPointerException+
If somebody can please help me resolve this issue , it would be great.
Thanks in Advance.
AliciaI suspect that this is caused by an "incorrect" datasource definition when you create a new one.
I noticed that when I created an Essbase DB through the Essbase Enterprise Admin Service, it only allowed me to create one for localhost, not my server name EVEN if when the "Manage Data Source" validated the connection.
This points to one of the myriad of apps inconsistently trying to resolve a server name.
So, in EAS, see if you can connect to your local Essbase install and if successful, use the exact same params for you Workspace Application.
Hope that helps.
Maybe you are looking for
-
I recently updated Firefox to 6.0 and it quit allowing me to save any mp3s downloaded to the page, although I can still play them in Firefox. For a very brief time, I was able to save them after the update, and I believe it has something to do with b
-
I want to disable the feature that automatically saves a pdf file everytime I try to open one. I was prompted whether or not I wanted to save /repeat the task - saving/downloading - for all smilar types of files and clicked yes. I can't figur out how
-
iTunes will not open on my PC. It has operated fine until today.
-
Hello Guys, I am working in Datawarehouse project. As you might all be knowing about the FACT table. Is there any tips for me for permornace boost for the same?? Is it possible to make the fact table patitioned or Cluster table? or any other way for
-
How to install new products in 11i
Hi Guys. We want to install project management, i am not able to find thought OAM whether that module is licensed or not , i am able to find only projects through OAM, please let me know how to check project-management module is installed, and we nee