How to change the Partner in Service Order
Dear Experts,
I am working in SAP CRM 5.0.I want to change the Partners of Service Order Using the Function Module 'BAPI_ACTIVITYCRM_CHANGEMULTI'.Can anyone give me the Sample code for Changing the Partners.It is very Urgent Requirement.Please help me.
Thanks & Regards,
Ashok.
Hi,
Following is the code for changing partner: Please go through it:
"fill the details of partner which is
"to be added as main partner or in place of Interaction Agent
wa_partner_new-ref_guid = w_guid_ref.
wa_partner_new-ref_handle = '0000000000'.
wa_partner_new-ref_kind = 'A'.
wa_partner_new-kind_of_entry = wa_partner-kind_of_entry.
wa_partner_new-ref_partner_handle = '0000'.
wa_partner_new-ref_partner_fct = 'Z_IA'. "
wa_partner_new-ref_partner_no = wa_partner-partner_no.
wa_partner_new-ref_no_type = wa_partner-ref_no_type.
wa_partner_new-ref_display_type = wa_partner-ref_display_type.
wa_partner_new-display_type = 'BP'.
wa_partner_new-no_type = 'BP'.
wa_partner_new-partner_fct = 'Z_IA'.
wa_partner_new-partner_no = w_partner_no.
wa_partner_new-mainpartner = 'X'.
INSERT wa_partner_new INTO TABLE it_partner_new.
wa_partner_newx-display_type = 'X'.
wa_partner_newx-no_type = 'X'.
wa_partner_newx-partner_fct = 'X'.
wa_partner_newx-partner_no = 'X'.
wa_partner_newx-mainpartner = 'X'.
INSERT wa_partner_newx INTO TABLE it_partner_newx.
IF it_partner_new[] IS NOT INITIAL AND it_partner_newx[] IS NOT INITIAL.
"maintain all changes to be done
CALL FUNCTION 'BAPI_ACTIVITYCRM_CHANGEMULTI'
TABLES
partner = it_partner_new
partnerx = it_partner_newx.
CLEAR : wa_guid1.
REFRESH : it_guid1.
wa_guid1-guid = w_guid_ref.
APPEND wa_guid1 TO it_guid1.
"save the changes
CALL FUNCTION 'BAPI_ACTIVITYCRM_SAVE'
TABLES
objects_to_save = it_guid1.
"commit the transaction
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
Please reply if anything else os required.
Please reward points if useful.
Regards,
Ashlesha
Similar Messages
-
I'm from united kingdom but iPhoto from america and postage, post code, how to change the country before i order them?...i need post code from untied kingdom, i don't know how to change from zip code(USA) into post code (UK)?
iPhoto Menu -> Preferenes -> advanced
Select the UK at the Print Store dropdown. -
How to change the status of clinical order header
Hi all,
I need to change the status (N1CORDER-WLSTA) of the clinical order header. I have found the way to change the status of the items and it works, but i dont know how to change the header status.
Now, for the items i do:
1- Create an object type cl_ishmed_prereg
2- Load the item (n1vkg-vkgid)
3- Use set_status method
4- Save the object
5- Commit work
So, do you know how i can change the status of the header? Im looking for other methods but...
Thanks,
ManelIn order to change the clinic order header status u have to:
1- Obtain the instance from item instance:
CALL METHOD lv_prereg->get_corder
IMPORTING
er_corder = lv_corder
e_rc = rc.
2- Create a var type rn1_corder_x
3- Modify:
is_n1corder_x-wlsta = 'RE'. " new status
is_n1corder_x-wlsta_x = 'X'.
4- Use change mehod:
CALL METHOD lv_corder->change
EXPORTING
is_corder_x = is_n1corder_x
IMPORTING
e_rc = rc
CHANGING
cr_errorhandler = cl_error.
5- Save:
CALL METHOD lv_corder->if_ish_objectbase~save
6- Commit work
Regards,
Manel -
How to change the Partner function code in Quotation
Hi All,
We have a requirement that whenever a Quote is cancelled,
We need to change one of the function codes in the partner tab and also the user status should be changed.
Can anyone give a quick solution on this?
Your response will be appreciated.
Thanks in advance.
Regards,
RamyaYou will best implement this as an action (tx. SPPFCADM), which is called on changing the status to cancelled. In this action you can call a function module changing the partner functions using e.g. CRM_ORDER_MAINTAIN as the appropriate function module.
Regards, Kai -
How to manage the operations on service order ?
Hello,
Do you know some bapi or MF to manage the operation on service order (IW32).
I have to create some operation, and in dialogue mode Iu2019m using
"Task list selection, to reference object."
But I need to do it by a bapi or MF.
Tks a lot.
R.Hi,
Check with the following FM:
MAINTENANCE_ITEM_POST
Regards,
Venkat. -
How to change the price in sales order copying from contract?
Hi All,
I am creating a sales order with reference to contract & the same prices in the contract are flowing. But the validity of prices are expired & I am unable to edit the prices in the sales oerder level.
Please suggest what configuration need to do to edit prices in the sales order level.
Thanks,
MadhuHello Madhu,
I am creating a sales order with reference to contract & the same
prices in the contract are flowing. But the validity of prices are expired
& I am unable to edit the prices in the sales oerder level.
Please suggest what configuration need to do to edit prices in the sales order level.
The configurational setting for changing the pricing flow from Contract to Sales Order is in Copying control. Go to the T-code VTAA and select your relevant Contract and Sales Order. At the Item level itself, you shall find a control called PRICING TYPE. Select the option as B or C.
Please try out this approach so that your issue related to pricing flow can be avoided.
Regards,
Sarthak -
How to prevent the replication of service order from CRM to R/3
Hi,
I create a service order and it displays in SMW01. Does it mean that system tries to replicate it from CRM to R/3? I have deleted the subscription in SMOEAC while publication of BUS_TRANS_MSG can't be deleted. Is there any other configuration affecting the replication from CRM to R/3?
BR,
ROBERTHi Robert,
The replication to R/3 will not happen if you dont have a R/3 site maintained in smoeac. This itself should be enough as it wont know which R/3 should the data be transferred to. Hence the data will not get replicated to R/3.
The bdoc that you see in SMW01 does not mean that data will get replicated. it just indicates what has been created in CRM.
Thanks,
Abishek -
How to change the responsible in a service order
Hi.
Does anyone know how to change the responsible in a service order?
I am working on CRM7
Thanks
RobHi Radek
It falls in to an endless loop, cause the 'CRM_ORDER_MAINTAIN' calls the BAdI 'ORDER_SAVE', because of that I have to find the right place to call the function 'CRM_ORDER_MAINTAIN'.
I have done an example calling the 'CRM_ORDER_MAINTAIN' out of 'ORDER_SAVE' using hard coded values and it works.
Thanks
RoB
Edited by: Roberto Quezada Olmos on May 26, 2009 3:23 PM -
I have three email accounts and want to know how to change the display order.
I have three email accounts and want to know how to change the display order.
Install this add on.
https://addons.mozilla.org/en-US/thunderbird/addon/manually-sort-folders/?src=search -
How to change the Profit Center in Sales Order
Hi Gurus,
Previously they setted the profit center (YB999) in sales order, now i want to change the profit center and need to give the amount into this profit center 100500.
So, could you guide me how to change the profit center in sales order.
Thank you for your replies.....
Thanks & Regards,
Chandrababu.B
Edited by: Chandrababu Naidu on May 25, 2011 12:44 PMHi
If this SO is processed partially - i.e. transactions happened - You cant change it
You can use ABAP and change it in Debug mode, but not advisable... Better to short close the SO and open a new SO for Balance qty
br, Ajay M
Edited by: Ajay Maheshwari on May 25, 2011 5:10 PM -
How to change the endpoint url of the siebel service ?
Hi All,
JDev : 11.1.1.5
I am fetching data from the siebel webservice. I created the proxy client from the Siebel WSDL in the JDeveloper. It was working fine.
Now the endpoint URL(Server) is changed. This service fails to connect to that server. The service name is same.
I want to fetch the end point urls from a property file, so that, even again if the server is changed, i have to change it in my property file.
How to change the End point URL at runtime before calling the service ?
This is my endpoint URL.
http://oa8181.us.oracle.com:10800/eai_enu/start.swe/#%7Bhttp%3A%2F%2Fpolicing.oracle.com%2F%7DPolicing_spcQuery_spcIncidents_spcWF?wsdl?SWEExtSource=WebService&SWEExtCmd=Execute&UserName=AUSTINP&Password=AUSTINP
Now it is pointing to this
http://oa8023.us.oracle.com:7777/eai_enu/start.swe/#%7Bhttp%3A%2F%2Fpolicing.oracle.com%2F%7DPolicing_spcQuery_spcIncidents_spcWF?wsdl?SWEExtSource=WebService&SWEExtCmd=Execute&UserName=AUSTINP&Password=AUSTINP
Give me some solution.See if this helps:
http://kingsfleet.blogspot.co.uk/2008/12/controlling-what-service-proxy-uses-at.html -
How to change the status of a production order
Dear All,
May i know how to change the status of a production order.I want to de-active the status like OPGN (Operation generated).This status is updated as there was no routing assigned to that particular production order during its creation
Thanks and Regards,
Varun SiddharthDear,
When you create a production order, an operation created by the system is generated automatically if no routing is used for the creation. As a result the order header receives the status HOGAN; the operation created automatically also has this status.
If you delete the operation created automatically and then do not have the status HOGAN.
To avoid this maintain the Routing for the material or delete the setting of default operation from OPJG.
Regards,
R.Brahmankar -
How to change the title of an object in the build order window?
In Keynote '09 v5.1.1 (1034)... How to change the title of an object in the build order window from the default "dropped image" to a specific title?
I'm running the following:
Model Name: MacBook Pro
Model Identifier: MacBookPro2,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2.33 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache: 4 MB
Memory: 2 GB
Bus Speed: 667 MHz
Boot ROM Version: MBP21.00A5.B08
SMC Version (system): 1.14f5Custom names can't be applied to objects in the build list.
They are labeled as either; text, shape, table, chart or the filename of an image -
How to change the order of albums iOS 8?
I recently upgraded from an iPhone 5 to a 6 Plus. Everything is fine except for the fact that some of my music is in the wrong order. There are some groups that released multiple albums in the same year, and I would like them to be in the order of when they were released. On my 5 I was able to put them in the right order by going on a computer, changing the sorting, then update iTunes Match to have it change on my phone as well. (example; group came out with album "1" and "2" same year and it defaults to "2" first, then "1." I was able to change it on the iPhone 5 to be in the right order by changing how they are sorted from my computer but that doesn't work on the 6 Plus.) I would like to order it where it goes top to bottom, with the newest on top going down. How would I do this?
ThanksHi Jason,
How to change the order of tables within sheets
Make a table active by clicking in it once to select that table, then drag it by the 'bullseye' (top left, I have placed a red circle to show the bullseye):
After dragging the table down:
Table 1 is now below Table 2.
The blue line is an Alignment Guide
Two types of Guide:
1. Menu > View >Show Rulers. Drag Alignment Guides from a ruler to where you want them.
2. Menu > Numbers > Preferences > Rulers > Alignment Guides. Turn on (tick) both guides. That allows you to align objects with *each other* (as well as with the ruler guides). These guides help to align objects left, middle, right, top, bottom.
Alignment Guides do not show unless you are moving an object.
to drag/move table to another sheet in the one file
Not possible in Numbers 3. The Sheets Pane has gone. Instead, select the entire table (click once in the table to make it active, then click on the bullseye). Copy (or Cut if you are brave). Go to another Sheet and Paste.
Also can you change the size of sheet tab width on tab toolbar, so I can see more sheets at once??
No. Let's hope this will be added in future updates. However, you can drag a Sheet tab left or right to reorder them.
Another tip: each Sheet tab shows the contents of that Sheet, with some options such as Duplicate and Delete:
Regards,
Ian. -
How to change the tabbing order of an array of clusters?
How to change the tabbing order of an array of clusters? I have the cluster arranged in table in the front panel. The cluster element goes horizontal and array element goes vertically. When I press the tab key, the cursor goes to the next array element instead of the next cluster item (down instead across).
Solved!
Go to Solution.Broken Arrow wrote:
Harold asked a perfectly reasonable and necessary question, but how is that a Solution ???
I believe it is called the Socratic Method.
Sea-Story time
I had the privledge of working for Ron Davis when he managed the Allegheny District of DEC. He was an ex-WO4 (Highest possilbe rank for non-commisioned officer in US Navy, required act of congress to confirm).
Ron never answered any question I ever saw presented to him. I remember a group of managers in a frenzy over some issue running to him to to see what he thought. He asked them a series of questions that lead them to the solution and soon they were smiling and slapping each other on the back as they walked away.
Who is that has a signature that read "it is the questions that guide us"?
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Maybe you are looking for
-
Firefox crashing at seemingly random times?
I am running Windows Safe Mode and running Firefox with add-ons disabled, but it is still crashing. When add-ons are enabled, it crashes any time I try to view the add-ons tab, but if add-ons are disabled, it crashes at more random times. Crash signa
-
How to calculate a renters move out date?
Hi all, I have been working on a spreadsheet that helps me to calculate residents rent. attached is a screen shot of where I am up to You will see that I am trying to make the spreadsheet automate how much is owed depending on when someone has moved
-
I have a first gen 20" G5 iMac, but it needs a power supply. Can I use a power supply from a first gen 17" model. I actually have one of those available. Thanks.
-
Installation upgrade CS6 problems
Hello, I have a problem with CS6, yesterday it worked prefect, today when I started my pc, the system said my serialnumber has experied, dont know why, I tried to redownload, but also this failed because I should have 'some other' version on my pc, s
-
OK-- sync iPhone over a network?
Is there any way to connect an iPhone to one computer, but have it sync with another computer over a network? The reason being that my wife's iBook G3 has no USB2 port, so we have to connect the iPhone to a different computer, but she needs to sync w