Function module to change the partner of partner function of an order
Hi All,
I want to change a partner of a particular partner function related to an order if a condition is satisfied. That is if a condition is satisfied then the earlier partner assigned to the partner function should be changed and new partner should be assigned to the partner function of the order. Is there any fucntion module to do this. I got the function module 'CRM_PARTNER_MAINTAIN_SINGLE_OW' but it adds one more partner of the same patner function but what i want is to add the new partner in place of the earlier partner. If anyone has some pointers plz post.
Thanks in advance,
Rahul.
Hi,
Did you try using functions like 'SD_PARTNER_UPDATE' ?
Thanks
Mark points if helpful.
Similar Messages
-
Function module to change the address on the business partner in SAP-ISU.
Can some one send me the function module to change the address of businees partner in SAP ISU.
Hi,
The FM you are looking for is BAPI_BUSINESS_PARTNER_CHANGE
You can use the table PARTNERADDR to fill the Address of the Partner.
Hope this helps. -
Function Module to change the master data attachments?
Dear Experts,
In SAP we can enclose the attachments for the Master data. Do we have any standard function module to change the Master data attachments.
Let me know if any?
Thanks and regards,
ReddyHi Reddy,
Please make use of function module :
BINARY_RELATION_CREATE_COMMIT
For detailed information on how to use the FM please see the thread below:
USE OF THIS fUNCTION MODULE
Regards,
Dilek A. -
Function module to change the date format
hi guys
is there any function module to change the date format
from 08/28/2007(mm/dd/yyyy)
to August 28, 2007.
regards
vamsihi vamsi.,
Use CONVERSION_EXIT_SDATE_OUTPUT to get the month name,
but it will give short form of the month name.
if you want <b>long description of the month</b>,
use this peice of code.
PARAMETERS: V_DATUM(07) TYPE C. "(example input:12-2007)
DATA: V_MON(2) TYPE C,
V_YEAR(4) TYPE C,
V_MONTHNAME(10) TYPE C,
V_FULLDATE(30) type c.
WRITE V_DATUM+0(2) TO V_MON.
SELECT SINGLE LTX FROM T247 INTO V_MONTHNAME
WHERE SPRAS = SY-LANGU
AND MNR = V_MON.
CONCATENATE V_MONTHNAME v_datum+3(4)
INTO V_FULLDATE SEPARATED BY SPACE. "(example output : December 2007)
write: v_fulldate.
<i><b>Reawrd points if useful</b></i>
Chandra -
Function module to change the reason code for status in a Opportunuity/lead
Hi,
What is the function module to change the opportunity reason. I was able to change the status using the crm_order_maintain but How can I change the reason for that opportunity.
Thanks
naveenYou can use CRM_ORDER_MAINTAIN and populate the parameter IT_SERVICE_OS
or use BAPI_OPPORTUNITY_CHANGEMULTI and populate the parameter SERVICE_OS.
BR,
Florin -
Function Module to change the user status of a business transaction
Hi,
I want to change the user status of a business transaction. Plz let me know if there is a function module to change the user status.I found some FMs.
- CRM_STATUS_MAINTAIN_OW
- BBP_PROCDOC_STATUS_CHANGE_DIRE
- CRM_ORDER_CHANGE_STATUS
But these FM says that it has to be used for changing system status.
Thanx,
Sivagami.Rhi Siva,
here is some sample code :
data :
ip_guid type crmt_object_guid,
ls_status type crmt_status_com,
lt_status type crmt_status_comt,
ls_input_field type crmt_input_field,
ls_input_field_names type crmt_input_field_names,
lt_input_fields type crmt_input_field_tab,
lt_obj_guids type crmt_object_guid_tab,
ip_guid = <your guid>.
ls_status-ref_guid = IP_GUID.
ls_status-ref_kind = 'A'.
ls_status-status = lv_newstat.
ls_status-user_stat_proc = 'ZCRMCOM1'.
ls_status-activate = 'X'.
INSERT ls_status INTO TABLE lt_status.
ls_input_field-ref_guid = IP_GUID.
ls_input_field-ref_kind = 'A'.
ls_input_field-objectname = 'STATUS'.
ls_input_field_names-fieldname = 'ACTIVATE'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
INSERT ls_input_field INTO TABLE lt_input_fields.
ls_input_field_names-fieldname = 'STATUS'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
INSERT ls_input_field INTO TABLE lt_input_fields.
insert IP_GUID into table lt_obj_guids.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
it_status = lt_status
CHANGING
ct_input_fields = lt_input_fields.
CALL FUNCTION 'CRM_ORDER_SAVE'
EXPORTING
it_objects_to_save = lt_obj_guids
EXCEPTIONS
OTHERS = 2.
COMMIT WORK.
please award points if helps
cheers -
Any function module to change the mode in Planning board
Hi guys,
Is there any function module to change the mode in Planning board?
I would like to call a custom screen to to chagne the mode since the strandard function cannot show enough info.
Thanks.Thanks Bhanu for ur quick reply.
Is that enough to change the technical name in the table RSZCOMPDIR.
Let me give some more information, idea is to change the technical name of all the queries present in a system based on a new naming conventions.
Eg.
Change all the technical name of queries ZQSAP to ZQXYZ.
If there is function module which allows to change the technical name of the queries that not only updates the table RSZCOMPDIR but also all the interlinked tables. -
BAPI Function module to change the schedule agreement
Hello Experts,
Can anyone tell me Bapi function module to change the scheduling agreement,
my requirement is i will get the new AEDAT(Delivery date in schedule line)
and WMENG(Quantity) Every time customer sends me a flat file which has got
revised schedule delivery date and Quantity. It needs to be updated in my system
using a BAPI Functional Module.Hi Vivek,
You must use the correct or most appropriate forum, so this thread will be moved from to .
The forum is dedicated to: Data Transfer Techniques, Batch Data Communication, Legacy System Migration Workbench, Application Link Enabling, IDOCs, BAPIs.
Please see the [Forum Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] before posting.
Also read this thread Welcome and Rules of Engagement.
Greetings,
Marcelo Ramos -
Is there any function module to Change the System Status
Dear ABAPers,
I am working in the Customer Service Module.I want to change the System status.
Is there any function module to change the System Status.
Thanks & Regards,
Ashok.Hi Ashok
Service Order status update function module ?
How to set the system status
Check above threads,
Regards,
Syf -
Function module which changes the Storage Unit (SU) Block Data like LS32
Hi,
Is there any Function module which changes the Storage Unit (SU) Block Data as done in LS32.
Thank you,
Prashanth A.Hello Pablo.
Yes we did run LT04 and it does encounter that same error message after clicking the Stock Removal button. But eventually error msg will be removed by entering the value at the Storage Unit Type field because it directly fills in LTAP-LETYP.
We have resolved that the function module will not really fill the desired Storage unit type therefore TO background creation is not feasible in our scenario (non-SU managed transfer to SU-managed storage type). And I found this thread too: http://scn.sap.com/thread/1947358
So issue is still open but we have considered of changing the process since this is still just a new scenario for us.
Thanks a lot for your inputs! -
Function module for Change document for Business partner
Hi Experts,
Could any one send me the sample code of function module for CDHDR and CDPOS tables for extracting the change date along with role.
Eg :
BPRole Changd on crtd by crtd on Business partner
ZCASH 30.11.2011 NHALLAL 24.11.2011 0001000237
CRM000 03.12.2011 NHALLAL 24.11.2011 0001000237
I wanted to catch up the changed date and changed role from CDHDR (base table) and CDPOS(cluster table - item level).
Might be involved with creation of extract structure.
Any sample codes are appreciated. Thanks.
Regards,
Janardhanresolved
-
Function module to change the SRM Purchase order data
Hi
Is there any function module in SRM which calls the BBP_DOC_CHANGE_BADI method BBP_PO_CHANGE so that we could change the PO data via dubugging which changes the PO in SRM as well as in the backend in Extended classic scenario.
Thanks
Krishna.BBP_PD_PO_CHANGE <- that one
BBP_PD_PO_SAVE
COMMIT WORK.
The others to persist the change into the database -
Function module to change the value for pricing condition type
Hello experts,
I want to change the value for pricing condition type for an item in the transaction CRMD_ORDER.
I used many function modules but none are working.
Please kindly suggest a function module that will change the value for a condition type .
I have used the following function module but its not working, please correct the coding if anything needs to be changed or added. Please help me .
Thank you.
CLEAR PRCD_COND.
SELECT SINGLE * FROM PRCD_COND WHERE KPOSN = WA_ORDERADM_I-GUID AND
KSCHL = COND_TY.
IF SY-SUBRC = 0.
* MOVE-CORRESPONDING PRCD_COND TO L_COND_CHG.
* CLEAR L_COND_CHG-KBETR.
L_COND_CHG-STUNR = PRCD_COND-STUNR.
L_COND_CHG-KBETR = COND_PRC.
* L_COND_CHG-KSCHL = COND_TY.
INSERT L_COND_CHG INTO TABLE T_COND_CHG.
L_HEAD_GUID = CRMD_ORDERADM_H-GUID.
L_ITEM_GUID = WA_ORDERADM_I-GUID.
INSERT L_HEAD_GUID INTO TABLE HEAD_GUID.
INSERT L_ITEM_GUID INTO TABLE ITEM_GUID.
CALL FUNCTION 'CRM_ORDER_READ'
EXPORTING
IT_HEADER_GUID = HEAD_GUID
IT_ITEM_GUID = ITEM_GUID
IMPORTING
ET_ORDERADM_H = LT_ORDERADM_H
ET_ORDERADM_I = LT_ORDERADM_I
ET_PRIDOC = IT_PRIDOC_RD
ET_DOC_FLOW = T_DOC_FLOW
* CHANGING
* CV_LOG_HANDLE =
* EXCEPTIONS
* DOCUMENT_NOT_FOUND = 1
* ERROR_OCCURRED = 2
* DOCUMENT_LOCKED = 3
* NO_CHANGE_AUTHORITY = 4
* NO_DISPLAY_AUTHORITY = 5
* NO_CHANGE_ALLOWED = 6
* OTHERS = 7
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
MOVE-CORRESPONDING LS_PRIDOC_RD TO L_PRI_COND.
INSERT L_PRI_COND INTO TABLE PRI_COND.
LOOP AT IT_PRIDOC_RD INTO LS_PRIDOC_RD.
MOVE-CORRESPONDING LS_PRIDOC_RD TO L_PRIDOC_CHG.
L_PRIDOC_CHG-PRIC_COND = PRI_COND.
L_PRIDOC_CHG-REF_GUID = LS_PRIDOC_RD-GUID.
L_PRIDOC_CHG-COND_CHANGE = T_COND_CHG.
INSERT L_PRIDOC_CHG INTO TABLE PRIDOC_CHG.
ENDLOOP.
LOOP AT LT_ORDERADM_H INTO LS_ORDERADM_H .
MOVE-CORRESPONDING LS_ORDERADM_H TO L_HEADER.
INSERT L_HEADER INTO TABLE HEADER.
ENDLOOP.
LOOP AT LT_ORDERADM_I INTO LS_ORDERADM_I.
MOVE-CORRESPONDING LS_ORDERADM_I TO L_ITEM.
INSERT L_ITEM INTO TABLE ITEM.
ENDLOOP.
L_FIELD-FIELDNAME = 'STUNR'.
INSERT L_FIELD INTO TABLE FIELD.
L_FIELD-FIELDNAME = 'KBETR'.
L_FIELD-CHANGEABLE = 'X'.
INSERT L_FIELD INTO TABLE FIELD.
L_INPUT-FIELD_NAMES = FIELD.
L_INPUT-REF_KIND = 'E'.
L_INPUT-REF_GUID = LS_PRIDOC_RD-GUID.
L_INPUT-OBJECTNAME = 'PRIDOC'.
INSERT L_INPUT INTO TABLE INPUT.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
IT_PRIDOC = PRIDOC_CHG
IMPORTING
ET_EXCEPTION = EXCEPT
CHANGING
CT_INPUT_FIELDS = INPUT.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
REFRESH EXCEPT.
CALL FUNCTION 'CRM_ORDER_SAVE'
EXPORTING
IT_OBJECTS_TO_SAVE = HEAD_GUID
* IV_UPDATE_TASK_LOCAL = FALSE
* IV_SAVE_FRAME_LOG = FALSE
* IV_NO_BDOC_SEND = FALSE
* IT_ACTIVE_SWITCH =
IMPORTING
ET_SAVED_OBJECTS = SAVED
ET_EXCEPTION = EXCEPT
ET_OBJECTS_NOT_SAVED = UNSAVED
* CHANGING
* CV_LOG_HANDLE =
* EXCEPTIONS
* DOCUMENT_NOT_SAVED = 1
* OTHERS = 2
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
COMMIT WORK AND WAIT.Hi,,
To be able to call a function module in an update work process, you must flag it in the Function Builder. When you create the function module, set the Process Type attribute to Update with immediate start
Alternatively u can use this function module.
CRM_STATUS_DATA_SAVE_DB
BAPI_CUSTOMERCRM_CHANGE (If u wish to use a bapi for this).
Also , Let me know what error you got when implementing other function module.Does the function module didnt return any error but still the value is not changed for pricing condition type? -
Functional Module for changing the field Reference Key 2 in Tcode FB02
HI,
I have a one requirement to change a field Reference Key2 (XREF2) in transaction FB02. This field appears in FB02 during (refer steps below):
u2022 In Initial screen after entering the Document Number, Company code & Fiscal Year then click on u201CEnteru201D
u2022 In next screen double click on u201CAccount u201C
u2022 In next screen click on u201CAdditional Datau201D. We will get a pop-up window where the field Reference Key2 (XREF2) is there.
We want to change this value of this field. Kindly let me know any Function Module available for this or any other suggestion.
Regards
NagaI don't know any such BAPI/FM (alas, many threads already) so i suggest you to use SHDB to build a batch input. FI_ITEMS_MASS_CHANGE should not solve your problem.
Regards -
Bapi / Function module to change the status of transaction crmd_order
Hello team,
I am developing the utility in CHARM for which i need to change the
Status of transaction CRMD_ORDER from "New to "In process" through
report/BAPI / FM etc... I tried to use report
CRM_socm_service_report.But it never puts status " In process" rather i
updates only " "work in progress ".
Also tried FM "CRM_STATUS_CHANGE_EXTERN" , but doen't work.
After the process is put "In process" , i want to create change request
and assign resource". Is there any report / FM /Bapi or anything in the
system to do this.
I tried to write BDC but dropdown list is not recorded in the recording.
Please advice.
Thanks and regards,
SwapnilNot sure I understand your requirement but maybe FM CRM_ORDER_MAINTAIN will be of help to you.
Maybe you are looking for
-
Safari crashes every time I try to enter a URL through keyboard
It happens consistently every time I type a key (any key) on the keyboard but - it only happens for one of the three users on this computer and it does not happen with links, from email, for example. Any clue, any one of what is going on ? Thanks a l
-
Multi Select LOV Gives CDI-21600
Have discovered that the Multi Select LOV facility is causing error CDI-21600 in some circumstances. We have 2 tables - Instance_Type_Owners ito_int_id ito_owner_org_id ito_owner_ort_id ito_created_by ito_created_date pk is the first 3 columns Instan
-
Since I'm involved in some big projects I wonder if there is an option to automatically add some previously set description in a new VI created in LV? Assume I want to avoid adding my signature and other repeatable significant info in each VI added t
-
Issue regarding picking.
Hi, I have a question, Please clarify it according to ur convenience. I have 2 scenarios in at my client's place. General orders and sample orders. General orders are using Warehouse Mgmt and Sample Orders are Inventory managed. Both orders share the
-
Wsus query needed - get WSUS-Computers, belonging WSUS-Group and Not Installed Count
Hi, i try to find a way by using basic WSUS powershell cmds in combination with piping in Server 2012 R2 to get all registered computers in WSUS plus belonging WSUS-Group and Update "Not Installed Count" as output. Is that possible? I tried multiple