Update BUT000 attributes using APD
Dear All,
I need to update attributes of BUT000 directly using APD. Can anyone suggest how do i go about.
I have already created the necessary query but i am not sure What Data Taget i have to use.
Plz help.
Regards,
SS
Hi,
Please specify what is BUT000. Is it infoobject. Do you have any specific pseudo logic to update it.
You can use joins, routine etc to update it.
Regards,
Pravin
Similar Messages
-
Getting error message while updating Job attributes using PP03 for IT1641
Hey Guys,
We are getting error message while updating Job attributes using transaction PP03 for IT1641 (WC Attributes for JOB): 'Client has status not modifiable'.
Update to the infotype 1641 should not require open SAP system. Would anyone suggest any SAP note/solution?
Thanks...
Edited by: Karan Gheewala on Apr 3, 2008 9:06 PMSolved using Note 123383 - WC: Customizing worker's compensation tables
Thanks,.. -
Update AD Attribute using script
Hi Team,
I have a task to update ad Attribute of 1000 users in one go.
Task:- we have 1000 users in our AD, I have to update IP Phone information (under Telephones tab) in one go.
I can not do it manually for 1000 of users, so need power shell script or vb script so that i complete this task.
could you please help me on this.
Regards, TriyambakYou'll need an input file with the usernames and telephone numbers.
For example:
User,Telephone
Jim.Bo,555-555-1234
Billy.Bob,123-456-7890
You can do this in excel, save it as a .csv
Import-csv "yourfile.csv" | foreach-object ({
$user = $_.user
$tele = $_.telephone
write-host "Setting $tele on $user"
Set-ADUser $user -officephone $tele })
Save this as a .PS1 and then run this in Powershell with the ActiveDirectory Module started.
- Chris Ream -
**Remember, if you find a post that is helpful, or is the answer, please mark it appropriately.** -
Populating CRM marketing attributes using the APD
Hi Experts
We are having problems with populating CRM marketing attributes using the APD. When we run our process we get the error message:
CRMBW_ATTR_WRITE005: Error when processing function module CRMBW_UPDATE_BPMKT_5. Message no. RSAN_MDL024
As you can see, we are using the new function module CRMBW_UPDATE_BPMKT_5 since the old CRMBW_UPDATE_BPMKT did not work either.
Do we have to add a reference to a infoobject in transaction CRMBWTARGETS? We have not done this because the marketing attribute in CRM doesnt have decimals and all the objects in BI have. Could this be the cause of the error?
Kind regards
ErikHi Ramesh,
Thanks for quick reply.
I have already followed the procedure you have described. Since there is not common objects between ODS and Bpatner infoobject, i am not able to do mapping.
for eg. my ZBPARTNER infoobject has attributes like zfooty, ztennis and zrugby but my ODS has char name , char value, counter for multiple values infoobjects.
I am following the example in the demo content to work out the process but could not understand how the data is getting uploaded from ODS to Business partner.
http://help.sap.com/saphelp_nw70/helpdata/en/bf/5df63bf9deaf09e10000000a114084/frameset.htm
Thanks,
Sandeep Jogde -
Updating printer device attributes using RFC
Hello all,
I'm a new entrant to the SAP world and still finding my feet. I think the term newbie can be applied freely.
My pilot involves using the NW RFC libraries to update printer attributes. So far I think RSPO_ functions seem to be the appropriate choice for dealing with printing. I can get the list of printers by using either ADS_GET_PRINTER_LIST or RSPO_ADM_DEVICES_GET. They both seem to return the same data, though the ADS version has far more detail. I've discovered these APIs mainly by trial/error and searching the forums/google/...
However I cannot seem to find the functions for updating the attributes.
RSPO_DEVICE_UPDATE and RSPO_ADM_DEVICE_UPDATE looked promising, but they cannot be called remotely.
My questions/doubts:
1. Is what I'm trying to do possible and supported?
2. Are RSPO_ family the correct functions for dealing with device updates, or is there another set of functions?
3. If the DEVICE_UPDATE is indeed the correct function, what are the workarounds for accessing it remotely; so far I can think of using a think ABAP wrapper which is exposed remotely, using the web services SOAP call.
I've been trying to find the canonical reference documentation for dealing with printers at an API level, but with no success. Any pointers to docs/references would be much appreciated!
I understand these are very entry level questions, and do beg everyones' pardon.
regardsThank you Anzy and Priti, we're much further ahead now due to your help.
Priti, we do want to update the output device attributes. Specifically device type and driver. I cannot find RSPO_SXOMS_I_UPDATE_PRINTER function defined in the customer SAP test instance. I'll post the exact version numbers and configuration tomorrow, once I again have access to the server.
Anzy, I've started writing a Z_ wrapper over RSPO_ADM_DEVICE_UPDATE for the time being. Thanks for the pointer.
It seems that all the RSPO_ RFCs are view and read only. The update/create APIs are non-remote. I wanted to find the design/security documentation for understanding these decisions. Does SAP documentation have a technical/security architecture overview? Or perhaps a specific forum?
Once again, thank you both from me and the Idea Device engineers. -
Update custom attributes in WebUI using 9iFS
Updating custom attributes of subclassed document in WinUI is
working. Through the WebUI the attributes appear to be readonly
(which is not the case).
Did I forget something or is it still not possible to update
custom attributes from the WebUI and do I have to write a
servlet/JSP+bean to accomplish this?
Thanks in advance,
Harry.
Please reply to: [email protected]Updating custom attributes of subclassed document in WinUI is
working. Through the WebUI the attributes appear to be readonly
(which is not the case).
Did I forget something or is it still not possible to update
custom attributes from the WebUI and do I have to write a
servlet/JSP+bean to accomplish this?
Yes. You have to write a servlet/JSP+bean to update the
attributes. You can also upload XML file to update your
attributes. -
Hi Experts,
There are customer fields created in BUT000 using EEWB for the role Internet user. I need to update these customer fields on a condition. Please suggest a BAPI which would update the standard SAP table BUT000.
Useful answers will be rewarded.
Thanks and Regards,
Shrita.Adding New Fields Purpose
Using the Easy Enhancement Workbench (EEW) you can add new fields to the central Business Partner tables BUT000 and BUT000_TD.
If you activate time dependency for the Business Partner, the new fields are also time dependent.
The following functions are supported:
· Integrating the new fields into the SAP GUI.
The Business Data Toolset (BDT) is used in the case of the SAP GUI.
· Extension of the external interface of the Business Partner BUS_EI_MAIN
· Extension of the XIF interface for Business Partner and Business Partner Relationship
· Extension of the mBDocs BUPA_MAIN and BUPA_REL, sBDocs CAPGEN and CONGEN
· Extension of the data exchange with R/3 and MSA using middleware.
Postprocessing involved for R/3, see Note 864222.
· Including and updating the new fields in DataSources for the SAP Business Information Warehouse (SAP BW)
However, subsequent steps should be still be taken in SAP BW to ensure seamless integration.
The system generates all the necessary objects and table entries for this function.
Process
1. Use the business object Business Partner (BUPA) and create an extension of the type add new fields in order to add new fields to the Business Partner. A wizard helps you to define the individual extensions and provides you with the necessary information for each step.
2. Enter a Frame Title for your extension.
3. Define the field description, the data type and, if necessary, the field length and decimal length for each field.
· For Amount and Quantity fields, field length and decimal length are predefined. The Quantity field has length 17 and decimal length 3 and the Amount field has length 17 and decimal length 2.
· For Amount and Quantity fields, the Currency and Unit fields are automatically generated by the system.
4. For each field, define whether a check table should exist.
5. You also define for each field whether it should be passed on to SAP BW.
6. In the last screen of the wizard you see an overview of the fields that you defined along with the relevant attributes.
7. Choose Complete to start the generation.
Technical Realization
The EEW uses the Customizing include structures CI_EEW_BUT000 and CI_EEW_BUT000_X (update structure).
In the object overview, which is made available for each task in the EEW, you can find a detailed overview of all the objects created. There you can also find the technical names of the objects created, which you may need for subsequent processing.
Integration with the Business Partner Dialog
The EEW creates, among other things, the following repository objects and table entries for integration with the Business Partner dialog:
· A data element and a domain for each field
· The necessary dynpro structures for each extension
· Check tables and the relevant maintenance views for the selected fields, if necessary. The maintenance views make it possible to fill the check tables with values during subsequent processing.
· A function group for each extension
· A function module for each field for the process events of the PBO and PAI, in which is defined what happens to the fields in the PBO or PAI
· Function modules for the BDT events DLVE1, DSAVB, ISDST, ISSTA and XCHNG.
· A BDT view for the SAP GUI for each field
· One or more BDT sections for each extension
A BDT section can contain up to ten BDT views.
· Depending on the situation, a BDT screen for the user interface SAP GUI.
When the Business Partner is extended for the first time a new BDT screen (tab page) is created. A BDT screen can contain up to ten BDT sections. If there are more than ten BDT sections per BDT screen, a new BDT screen is generated by the EEW.
Integration with SAP BW
· The new fields in table BUT000 are automatically included in the DataSource 0BPARTNER for integration with SAP BW.
Integration with External Data Transfer
The Easy Enhancement Workbench extends the XIF interfaces, but regeneration is required. For more information, see Note 864222.
Follow-Up Activities
Depending on the extensions defined in the EEW you have to carry out the following activities later.
Integration with the Business Partner Dialog
· If check tables for fields have been generated, then you must fill them with values out of the EEW by means of the relevant maintenance views.
· You may create a function module manually in order to define user-defined checks for the new fields in the dialog. See the BDT manual, section 4.1 Additional Check for Existing View for more information.
· You can adapt the generated BDT views and BDT sections in the SAP GUI to your specific requirements using the Visual Configuration Tool (VCT). You should carry out this adaptation only after all the extensions have been completed.
Integration with SAP BW
The following activities should be carried out subsequently for data exchange with SAP BW.
· You must define data targets (metadata) and transfer rules for the extended DataSource 0BPARTNER manually.
Result
You have defined one or more fields for the Business Partner. The system has generated the necessary repository objects and table entries. The extension is not valid across different systems, which means that follow-up actions may be necessary. Also see Note 864222.
I hope this makes things a bit more clear.
if helpful, please reward with points.
cheers
davy -
Updating marketing attributes from BW
Hi anyone!
We're using the Analysis Process Designer in BW for updating marketing attributes in CRM. We face two problems:
1. When updating an attribute with several values (have set the multiple value indicator in the transaction maintain attributes) BW only updates one attribute value. The second value overwrites the first one.
2. When using currency as data type for the attribute value we get an error in BW when we start the process of updating the marketing attributes.
Have any of you faced the same issue???
Regards CamillaHello,
we have a scenerio where in we have to transfer data from BW to CRM (Campaign from BW to CRM) and presently we are on BI 7.0 and CRM 5.0.
Please can any one of you provide how to guide or steps if Customization required in BW and CRM side.
One of the method is using APD, but here also i am new..can any one have tried??
Thanks in Advance..
Regards
Ankur -
OIM: Error while updating Task Attributes
Hi All,
I am trying to use PeopleSoft User Management using OIM connector.
I am facing an error saying "problem in updating Task Attributes" while scheduling a task on OIM design Console. I am trying to update and save PSFT Base Non Trusted User Reconciliation. following is the log message displayed in server command prompt.
ERROR,11 Apr 2008 05:02:53,287,[XELLERATE.SERVER],Class/Method: tcTSA/eventPostU
pdate encounter some problems: problem in updating Task Attributes
com.thortech.xl.scheduler.exception.SchedulerGenericException: problem in updati
ng Task Attributes
at com.thortech.xl.scheduler.core.quartz.QuartzSchedulerImpl.updateTaskA
ttributes(Unknown Source)
at com.thortech.xl.scheduler.ejb.SchedulerControllerBean.updateTaskAttri
butes(Unknown Source)
at com.thortech.xl.scheduler.beans.SchedulerControllerSession.updateTask
Attributes(Unknown Source)
at com.thortech.xl.scheduler.beans.SchedulerController_z4f4d2_EOImpl.upd
ateTaskAttributes(SchedulerController_z4f4d2_EOImpl.java:478)
at com.thortech.xl.scheduler.beans.SchedulerController_z4f4d2_EOImpl_CBV
.updateTaskAttributes(Unknown Source)
at com.thortech.xl.dataobj.tcTSA.eventPostUpdate(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.ejb.databeansimpl.tcDataObjectBase.save(Unknown Sourc
e)
at com.thortech.xl.ejb.beans.tcTSA_u3xmy2_EOImpl.save(tcTSA_u3xmy2_EOImp
l.java:1437)
at com.thortech.xl.ejb.beans.tcTSA_u3xmy2_EOImpl_WLSkel.invoke(Unknown S
ource)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(Activata
bleServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:429)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:35)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Caused by [Nested Exception]:
java.lang.NullPointerException
at com.thortech.xl.scheduler.core.quartz.QuartzSchedulerImpl.updateTaskA
ttributes(Unknown Source)
at com.thortech.xl.scheduler.ejb.SchedulerControllerBean.updateTaskAttri
butes(Unknown Source)
at com.thortech.xl.scheduler.beans.SchedulerControllerSession.updateTask
Attributes(Unknown Source)
at com.thortech.xl.scheduler.beans.SchedulerController_z4f4d2_EOImpl.upd
ateTaskAttributes(SchedulerController_z4f4d2_EOImpl.java:478)
at com.thortech.xl.scheduler.beans.SchedulerController_z4f4d2_EOImpl_CBV
.updateTaskAttributes(Unknown Source)
at com.thortech.xl.dataobj.tcTSA.eventPostUpdate(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.ejb.databeansimpl.tcDataObjectBase.save(Unknown Sourc
e)
at com.thortech.xl.ejb.beans.tcTSA_u3xmy2_EOImpl.save(tcTSA_u3xmy2_EOImp
l.java:1437)
at com.thortech.xl.ejb.beans.tcTSA_u3xmy2_EOImpl_WLSkel.invoke(Unknown S
ource)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(Activata
bleServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:429)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:35)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
ERROR,11 Apr 2008 05:02:53,287,[XELLERATE.SERVER],Class/Method: tcDataObj/save E
rror :Data Update Failed
ERROR,11 Apr 2008 05:02:53,302,[XELLERATE.DATABASE],Class/Method: tcDataBase/rol
lbackTransaction encounter some problems: Rollback Executed From
java.lang.Exception: Rollback Executed From
at com.thortech.xl.dataaccess.tcDataBase.rollbackTransaction(Unknown Sou
rce)
at com.thortech.xl.dataobj.tcDataObj.rollback(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.doRollback(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.ejb.databeansimpl.tcDataObjectBase.save(Unknown Sourc
e)
at com.thortech.xl.ejb.beans.tcTSA_u3xmy2_EOImpl.save(tcTSA_u3xmy2_EOImp
l.java:1437)
at com.thortech.xl.ejb.beans.tcTSA_u3xmy2_EOImpl_WLSkel.invoke(Unknown S
ource)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(Activata
bleServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:429)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:35)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
I am facing above error when try to update any task in the task scheduler.
Can anyone please suggest me where i am going wrong?
Thanks,
Uma.I would assume you are missing the jar file for your scheduled tasks. Try and create a new scheduled task with the same class name, if it won't let you save, this is your answer. You'll want to make sure you have the connector scheduled task file in the ScheduleTask folder in your OIM directory.
-Kevin -
Insufficient access error while updating AD attributes
Please find the attachment, I have tried to update the lastLogon attribute to replicate in global catalog, then the error has occurred as follows. I have enterprise administrative power, then also not able to update the attribute, please help
thanks in advance.I would agree with Martin. You simply need to be member of Schema Admins
group. You can add that using dsa.msc.
By the way, why are you trying to do that? Lastlogon attribute should not be replicated as it maintained locally on each DC. If you want to get the user exact last logon date and time then you can use my script here: https://gallery.technet.microsoft.com/scriptcenter/Get-Active-Directory-User-bbcdd771
This posting is provided AS IS with no warranties or guarantees , and confers no rights.
Ahmed MALEK
My Website Link
My Linkedin Profile
My MVP Profile -
Cannot update delivery attributes: the following field(s) are not updatable
Hi. I create in EBS simple Order
Now , my goal is to create a delivery , pick , change shipping quantity and ship confirm. Here is my code
DECLARE
p_sales_order NUMBER := 10014445;
p_line_number NUMBER := 1.1;
p_org_id NUMBER := 308;
l_shipped_quantity NUMBER := 5;
p_api_version_number NUMBER := 1.0;
init_msg_list VARCHAR2(200);
l_commit VARCHAR2(30);
x_msg_details VARCHAR2(3000);
x_msg_summary VARCHAR2(3000);
x_return_status VARCHAR2(3);
x_msg_count NUMBER;
x_msg_data VARCHAR2(3000);
p_validation_level NUMBER;
v_errbuf VARCHAR2(2000);
v_retcode VARCHAR2(20);
v_released_status wsh_delivery_details.released_status%TYPE;
v_inv_interfaced_flag wsh_delivery_details.inv_interfaced_flag%TYPE;
v_oe_interfaced_flag wsh_delivery_details.oe_interfaced_flag%TYPE;
v_source_code wsh_delivery_details.source_code%TYPE;
v_pending_interface_flag wsh_trip_stops.pending_interface_flag%TYPE;
l_changed_attributes wsh_delivery_details_pub.changedattributetabtype;
l_source_code VARCHAR2(30) := 'OE';
-- Parameters for WSH_DELIVERIES_PUB
p_delivery_name VARCHAR2(30);
p_action_code VARCHAR2(15);
p_asg_trip_id NUMBER;
p_asg_trip_name VARCHAR2(30);
p_asg_pickup_stop_id NUMBER;
p_asg_pickup_loc_id NUMBER;
p_asg_pickup_loc_code VARCHAR2(30);
p_asg_pickup_arr_date DATE;
p_asg_pickup_dep_date DATE;
p_asg_dropoff_stop_id NUMBER;
p_asg_dropoff_loc_id NUMBER;
p_asg_dropoff_loc_code VARCHAR2(30);
p_asg_dropoff_arr_date DATE;
p_asg_dropoff_dep_date DATE;
p_sc_action_flag VARCHAR2(10);
p_sc_intransit_flag VARCHAR2(10);
p_sc_close_trip_flag VARCHAR2(10);
p_sc_create_bol_flag VARCHAR2(10);
p_sc_stage_del_flag VARCHAR2(10);
p_sc_trip_ship_method VARCHAR2(30);
p_sc_actual_dep_date VARCHAR2(30);
p_sc_report_set_id NUMBER;
p_sc_report_set_name VARCHAR2(60);
p_sc_defer_interface_flag VARCHAR2(60);
p_sc_send_945_flag VARCHAR2(60);
p_sc_rule_id NUMBER;
p_sc_rule_name VARCHAR2(60);
p_wv_override_flag VARCHAR2(10);
p_asg_pickup_stop_seq NUMBER;
p_asg_dropoff_stop_seq NUMBER;
x_trip_id VARCHAR2(30);
x_trip_name VARCHAR2(30);
fail_api EXCEPTION;
x_debug_file VARCHAR2(100);
l_ship_method_code VARCHAR2(100);
l_user_id NUMBER;
l_resp_id NUMBER;
l_appl_id NUMBER;
CURSOR c_ord_details IS
SELECT DISTINCT det.source_header_number sales_order,
det.org_id,
det.source_line_number,
det.source_header_id,
det.source_line_id,
det.source_header_type_name,
det.inventory_item_id,
det.requested_quantity,
det.delivery_detail_id,
(SELECT concatenated_segments
FROM mtl_system_items_kfv
WHERE inventory_item_id = det.inventory_item_id
AND organization_id = det.organization_id) ordered_item,
det.organization_id,
det.src_requested_quantity,
det.shipped_quantity,
del.delivery_id,
del.status_code delivery_status_code,
det.released_status pick_release_status,
det.oe_interfaced_flag,
det.inv_interfaced_flag
FROM wsh_delivery_details det,
wsh_delivery_assignments asn,
wsh_new_deliveries del
WHERE 1 = 1
AND det.delivery_detail_id = asn.delivery_detail_id
AND asn.delivery_id = del.delivery_id(+)
AND det.source_header_number = 1199656
AND det.source_line_number = '1.1'
AND det.org_id = 10102
AND shipped_quantity IS NULL
AND NVL(del.status_code, 'OP') <> 'CL'
and det.delivery_detail_id =21439836
/* AND det.released_status = 'Y'*/;
BEGIN
-- Initializing the Applications
SELECT user_id INTO l_user_id FROM fnd_user WHERE user_name = 'MSHAPIRA';
SELECT responsibility_id, application_id
INTO l_resp_id, l_appl_id
FROM fnd_responsibility_vl
WHERE responsibility_name = 'OM Super User - UDS UK';
fnd_global.apps_initialize(l_user_id, l_resp_id, l_appl_id);
FOR i IN c_ord_details LOOP
DBMS_OUTPUT.put_line('Initializing the Application for Shipping Transactions');
-- Mandatory initialization for R12
mo_global.set_policy_context('S', i.org_id);
mo_global.init;
-- Ship Confirming
p_delivery_name := TO_CHAR(i.delivery_id);
DBMS_OUTPUT.put_line('Before Shipping, Calling WSH_DELIVERY_DETAILS_PUB API to Update Shipping Attributes');
DBMS_OUTPUT.put_line('=============================================');
l_changed_attributes(1).delivery_detail_id := i.delivery_detail_id;
l_changed_attributes(1).shipped_quantity := 5;
wsh_delivery_details_pub.update_shipping_attributes(p_api_version_number => 1.0,
p_init_msg_list => init_msg_list,
p_commit => l_commit,
x_return_status => x_return_status,
x_msg_count => x_msg_count,
x_msg_data => x_msg_data,
p_changed_attributes => l_changed_attributes,
p_source_code => l_source_code);
IF (x_return_status <> wsh_util_core.g_ret_sts_success) THEN
RAISE fail_api;
DBMS_OUTPUT.put_line('Failed to Update the Shipping Attributes');
ELSE
DBMS_OUTPUT.put_line('Successfully Updated the Shipping Attributes');
END IF;
BEGIN
SELECT shipping_method_code
INTO l_ship_method_code
FROM oe_order_headers_all
WHERE order_number = i.sales_order
AND org_id = i.org_id;
EXCEPTION
WHEN OTHERS THEN
l_ship_method_code := NULL;
END;
p_action_code := 'CONFIRM'; -- The action code for ship confirm
p_sc_action_flag := 'S'; -- Ship entered quantity.
p_sc_intransit_flag := 'Y';
--In transit flag is set to 'Y' closes the pickup stop and sets the delivery in transit.
p_sc_close_trip_flag := 'Y'; -- Close the trip after ship confirm
p_sc_trip_ship_method := l_ship_method_code; -- The ship method code
p_sc_defer_interface_flag := 'Y';
p_sc_stage_del_flag := 'Y';
p_sc_create_bol_flag := 'N';
p_wv_override_flag := 'N';
-- API Call for Ship Confirmation
DBMS_OUTPUT.put_line('Calling WSH_DELIVERIES_PUB to Perform Ship Confirmation');
DBMS_OUTPUT.put_line('=============================================');
wsh_deliveries_pub.delivery_action(p_api_version_number => 1.0,
p_init_msg_list => init_msg_list,
x_return_status => x_return_status,
x_msg_count => x_msg_count,
x_msg_data => x_msg_data,
p_action_code => p_action_code,
p_delivery_id => i.delivery_id,
p_delivery_name => p_delivery_name,
p_asg_trip_id => p_asg_trip_id,
p_asg_trip_name => p_asg_trip_name,
p_asg_pickup_stop_id => p_asg_pickup_stop_id,
p_asg_pickup_loc_id => p_asg_pickup_loc_id,
p_asg_pickup_stop_seq => p_asg_pickup_stop_seq,
p_asg_pickup_loc_code => p_asg_pickup_loc_code,
p_asg_pickup_arr_date => p_asg_pickup_arr_date,
p_asg_pickup_dep_date => p_asg_pickup_dep_date,
p_asg_dropoff_stop_id => p_asg_dropoff_stop_id,
p_asg_dropoff_loc_id => p_asg_dropoff_loc_id,
p_asg_dropoff_stop_seq => p_asg_dropoff_stop_seq,
p_asg_dropoff_loc_code => p_asg_dropoff_loc_code,
p_asg_dropoff_arr_date => p_asg_dropoff_arr_date,
p_asg_dropoff_dep_date => p_asg_dropoff_dep_date,
p_sc_action_flag => p_sc_action_flag,
p_sc_intransit_flag => p_sc_intransit_flag,
p_sc_close_trip_flag => p_sc_close_trip_flag,
p_sc_create_bol_flag => p_sc_create_bol_flag,
p_sc_stage_del_flag => p_sc_stage_del_flag,
p_sc_trip_ship_method => p_sc_trip_ship_method,
p_sc_actual_dep_date => p_sc_actual_dep_date,
p_sc_report_set_id => p_sc_report_set_id,
p_sc_report_set_name => p_sc_report_set_name,
p_sc_defer_interface_flag => p_sc_defer_interface_flag,
p_sc_send_945_flag => p_sc_send_945_flag,
p_sc_rule_id => p_sc_rule_id,
p_sc_rule_name => p_sc_rule_name,
p_wv_override_flag => p_wv_override_flag,
x_trip_id => x_trip_id,
x_trip_name => x_trip_name);
IF (x_return_status <> wsh_util_core.g_ret_sts_success) THEN
DBMS_OUTPUT.put_line('Ship confirm has not been Completed For SO => ');
ROLLBACK;
RAISE fail_api;
ELSE
DBMS_OUTPUT.put_line('Ship confirm Successfully Completed For SO => ');
COMMIT;
DBMS_OUTPUT.put_line('Checking the Delivery Status after delivery action API Call');
DBMS_OUTPUT.put_line('==========================================');
SELECT wdd.source_code,
wdd.released_status,
wdd.inv_interfaced_flag,
wdd.oe_interfaced_flag,
wts.pending_interface_flag
INTO v_source_code,
v_released_status,
v_inv_interfaced_flag,
v_oe_interfaced_flag,
v_pending_interface_flag
FROM wsh_trips wtr,
wsh_trip_stops wts,
wsh_delivery_legs wlg,
wsh_new_deliveries wnd,
wsh_delivery_assignments wda,
wsh_delivery_details wdd
WHERE wtr.trip_id = wts.trip_id
AND wts.stop_id = wlg.pick_up_stop_id
AND wts.pending_interface_flag = 'Y'
AND wdd.inv_interfaced_flag <> 'Y'
AND wlg.delivery_id = wnd.delivery_id
AND wnd.delivery_id = wda.delivery_id
AND wda.delivery_detail_id = wdd.delivery_detail_id
AND wnd.delivery_id = p_delivery_name
AND wdd.source_line_id = i.source_line_id;
IF (v_source_code = 'OE' AND v_released_status = 'C' AND
v_inv_interfaced_flag <> 'Y' AND v_oe_interfaced_flag <> 'Y' AND
v_pending_interface_flag = 'Y') THEN
DBMS_OUTPUT.put_line('The Delivery has been Shipped & the Next Step is - Run Interface');
DBMS_OUTPUT.put_line('===========================================');
-- API Call for Submitting Interface Trip Stop
wsh_ship_confirm_actions.interface_all_wrp(errbuf => v_errbuf,
retcode => v_retcode,
p_mode => 'ALL',
p_stop_id => NULL,
p_delivery_id => p_delivery_name,
p_log_level => 0,
p_batch_id => NULL,
p_trip_type => NULL,
p_organization_id => i.organization_id,
p_num_requests => 1,
p_stops_per_batch => 1);
ELSE
DBMS_OUTPUT.put_line('The Delivery has not Shipped Properly');
END IF;
END IF;
END LOOP;
EXCEPTION
WHEN fail_api THEN
DBMS_OUTPUT.put_line('==============');
DBMS_OUTPUT.put_line('Error Details If Any');
DBMS_OUTPUT.put_line('==============');
wsh_util_core.get_messages(p_init_msg_list => 'Y',
x_summary => x_msg_summary,
x_details => x_msg_details,
x_count => x_msg_count);
IF x_msg_count > 1 THEN
x_msg_data := x_msg_summary ||' '||x_msg_details;
DBMS_OUTPUT.put_line(x_msg_data);
ELSE
x_msg_data := x_msg_summary||' '|| x_msg_details;
DBMS_OUTPUT.put_line(x_msg_data);
END IF;
END;
But at the stage of updating delivery attributes I get the following error message
Warning: For Delivery Detail 21439836, the following field(s) are not updatable: SHIPPED_QUANTITY.
Why?Hi Paul
Looks like the authorisation is failing due to a bad registration for some reason.
Would you be kind enough to clear out the registration to ensure we are dealing with a fresh start and no information is being used which may have become corrupt. You may do this by following this procedure;
Remove existing reg details
# usr/lib/cc-ccr/bin/eraseCCRRepository
List /tmp/RegistrationProfile.properties file
# cat /tmp/RegistrationProfile.properties
Attempt re-registration
# sconadm register -a -r /tmp/RegistrationProfile.properties
Send us the full output of the commands above if you would please. -
Unable to reterview attributes using SPML
HI
We have used SPML to reterive and update directory attributes to a web resource.
But in production we cant reterive the directory attributes from CUR.
THough I am able to update the attributes to CUR.
All the workflows and form that require a reterive from IDM are failing .I see repeated spml query and then screen hangs.
My doubt is the SPML user ( the user we created that is used to make spml calls) user permission is causing the reterive failure.
can some update what should be the capability and admin-roles for the spmluser account
I would appreciate any other pointer as well thanksAlso if I execute the same worklow and forms I am able to reterive the CUR values for IDM UI
But from SPML doesnot work for reterive operation.
Update operation ot IDM are working fine -
Update Marketing attributes in Interactive Scripting
Hi All,
I would like to know if anyone knows how to :
1. Display multi value fields in Interactive Scripting 5.2
In standard IS editor, there is a dynamic answer "Marketing Attribute 5.1". We need to create new ones. What it the process ?
2. Update Marketing Attributes (or any other multi value fields) in IS. In addition to that, IS Editor in 5.2 don't have "ABAP Call" and "RFC ABAP Call" type actions in the repository, where 4.0 comes with these types. I would like to make a RFC call to R/3 from IS, and display the returned value in the IS.
Thank you,
Vadim Boriskevich.Hello Mike,
Yes, You have to clearly define what type of marketing attribute it is. i mean whether person or organization.
It is not possible to use marketing attributes which are valid for persons AND organizations for survey.
For eg. If the marketing attribute is of type person(you can see this in the trx Crmd_prof_templ) and the BP is of type Organisation then it wont work for you.
In this case either change the attributes to Organization type ,reattach them in the survey suite and then try.
If you have attribute of person type then the BP should be of the same type.Actually in the code there is a string which matches from both the sides.So in case of any mismatch the updation would not be there.
Hope this answers your question.
Thanks
Raja Pamireddy
CRM Marketing forum Moderator -
External lists for updating marketing attributes
Hi,
I'm now working in CRM 3.1, but we're going to upgrade for 5.0 in the autumn. In this relation I'm working on a pre-project where I'm looking for the possibilities for using external lists for updating marketing attributes on existing BPs. How can I map this fields? Do I use advanced mapping fields or structure enhancement using appended fields?
Thanks, CamillaCamilla,
Yes, this function become standard for CRM 5.0. CRM5.0 ELM provide different format types for create BPs (with marketing attributes), activities and leads. You need to define different format type when you create mapping format. For updating marketing attributes, you need to choose type "Business Partner" type so that all the marketing attributes will be available for you to pick to create the mapping format.
You can look at the CRM5.0 release note and document for more details
Regards,
Min -
Jdev - 11.4
HI ,
I want to update TimeStamp attribute (HistoryColumn) of entity with current time.
I have one VO based on EO
now from back bean I want to update TS in VO. I found that updatable property of TS in vo is Never.
so if I try to set its value as
java.sql.Timestamp sqlDate = new java.sql.Timestamp(new java.util.Date().getTime());
row.setAttribute("TimeStamp",sqlDate ) it gives attribute cannot be updated .(As its updatable property is set as Never)
I tried with History_column as modified on and refresh after Update . and tried to update some other attribute of VO still it dosen't work.
Any soultion for this?ADF has built in support for history columns- Are you making use of it? In case if you want to override the default value set by run time,
1. either you can build your own history type - http://jobinesh.blogspot.com/2011/02/creating-custom-history-types.html
2. or override prepareForDML to set your custom value aafter super.prepareForDML (). - Mark the attribute as updatable
Maybe you are looking for
-
My iMac from end 2011 is connected with my WiFi Station but no internet?!
My iMac from end 2011 is cenected with the WiFi Station and connextion is shown but after a short time all new pages in the browser load only a little, little bit and no more. But the connection to the station is there! What is wrong?? Help!
-
Having trouble accessing iTunes on my computer - Message keeps saying 'Error7 (Windows error 193) iTunes not installed correctly. Please reinstall iTunes' - I have tried this but I cannot as keeps coming up with error message - I havent changed a
-
Loading 0IC_C02 infocube -- some clarifications
Hi BW experts, I have loaded data into 0IC_C02(matreials movements) infocube using the datasource 2lis_03_s195. It is an initialization load. The data has been successfully loaded. Now my point is, as this cube is related to inventory management is t
-
Day Limit in Change View "Terms of Payment":Details?
What does exactly does the Daylimit field in "Change View " Terms of payment": Details "means? A detail explanation with an EXAMPLE is well appreciated. Thanks for your time
-
How to insert varchar type value to date type value
Hai All There are two table T1,T2 T1 has these fields code varchar,time varchar, date date T2 has these fields intime date, outtime date intrin date ,introut date I have tried to move time to intime Ie from T1 to T2 update T2 set intime= to_date((r1.