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.R
hi 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
Similar Messages
-
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 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 -
TO change the user status in the PM order
Hi,
My requirement is that a techician is assiged to do the work using MRS and based on that user status is update in the PM when the save button is clicked on the MRS board.
Now according to my requirement if anybody click on the save button and the technician is assigned to do the operation is done through MRS than the User status in the PM order should get changed.
As a part of standard functionality the user status is not updated.
A new user status is created in the trasaction BS02.
Can anybody please let us know how to achieve this functionality
Thanks
MohitWe had a similar requirement and this is what we did :
1) Set up a task as a reciever for the WORKORDER SAVE event.
2) In this task called a method of a business object.
3) In the method called STATUS_CHANGE_EXTERN to change the user status. -
How to change the user status from CJ01 transaction
Hello All,
I am doing a BDC in CJ01 transaction where there is a field called "User Status" .
This field is not editable. However the requirement is to populate this field with some value based on some other entries.
Is there any Function module / BAPI to update user status from CJ01.
Thanks in advance.
Regards
IndrajitHi Anbu
Thanks for your kindness.
I had got the proper badi definition ( RECN_CONTRACT ) before. I have try to implement the badi in my implementation YCL_IM_RECN_CONTRACT and below is my example codes. It can update the user status when the SAVE button is pressed. My example codes are below:
METHOD if_ex_recn_contract~check_all.
DATA:
cl_recn_contract TYPE REF TO cl_recn_contract.
DATA: r_status_mngr TYPE REF TO if_reca_status_mngr.
DATA: lv_status_profile TYPE j_stsma.
DATA: lt_status TYPE re_t_status,
ls_status TYPE LINE OF re_t_status.
DATA: r_message TYPE REF TO if_reca_message_list.
cl_recn_contract ?= io_object.
CHECK if_before_store = 'X'.
CALL METHOD cl_recn_contract->if_reca_has_status~mo_status_mngr->get_current_status
IMPORTING
ed_status_scheme = lv_status_profile
et_status = lt_status.
lv_status_profile = 'ZBCIA01'.
CALL METHOD cl_recn_contract->if_reca_has_status~mo_status_mngr->set_status_profile
EXPORTING
id_status_profile = lv_status_profile.
READ TABLE lt_status INTO ls_status INDEX 2.
ls_status-stat = 'E0001'.
ls_status-inact = ''.
MODIFY lt_status FROM ls_status INDEX 2.
CALL METHOD cf_reca_message_list=>create
RECEIVING
ro_instance = r_message.
CALL METHOD cl_recn_contract->if_reca_has_status~mo_status_mngr->set_status
EXPORTING
it_status = lt_status
if_only_user_status = 'X'
io_msglist = r_message.
REFRESH lt_status.
ENDMETHOD. -
Bapi or Function Module for Change request Management status update
Hi,
Do we have any Bapi or function module to change the status of Change request Management.
Ex: If the status is in To Be Processed i have to change that status to Authorized using any Bapi or FM.
I have tried with the BAPI crm_icss_change_request but its not updating the status.
Do you have any idea on this???
Regards
Pavanhello,
the function module is 'SOCM_STATUS_VALUES'
you can find an example of usage of it in the program CRM_SOCM_SERVICE_REPORT
CALL FUNCTION 'SOCM_STATUS_VALUES'
EXPORTING
im_process_type = report_list-process_type
IM_LANGU = SY-LANGU
TABLES
status_values = lt_vsocm_stat_propt.
I hope it helps
best regards -
Authorization for changing the user status
Hi all,
I need to give authorization in such a way that after the initiator has creataed a DIR...:
1. When it goes to the next approval, the person should be only able to change the user status and save.
he should not be allowed to change anything else.
I have tried using different authorization objects but none of them worked. Is there any tcode in DMS for just approving the DIR (changing it to next available user status), similar to release strategy. For ex ME29N for approval of PO (Purchase order) ?
Thanks
AnishHi Anish,
Based on your requirement, I would like to suggest to go by workflow to approve the document..
With the help of workflow, you can approve the document in workflow inbox itself (workitem), no need to go to DIR, the status will get automatically change in the DIR.
for this you have to use function mudule (set/get next status).
you can do this by taking the help of Workflow consultant and abap.
regards,
nitin
award point if useful -
Is it possible to change the user status of a TECO Order
Hello Folks
Is it possible to changes the user status of a TECO Order?
I have tried to change it using the FM 'STATUS_CHANGE_EXTERN'. Its working fine for NON TECO Orders but not for TECO Orders.
On the other hand I was able to manually change the user status for a TECO Order in transaction IW32.
I need to change the user status from NFBK to FBK.
Please provide some inputs for the same.
Thanks n Regards
RameshThe simple way is via the Internationalization settings via ARD or RDP or Screen Sharing, either via System Preferences or (if enabled) via the menu bar. If you're looking for a lower-level approach, there's not AFAIK a direct command for this. As for one possible approach, might [threadID=2106201|http://discussions.apple.com/thread.jspa?threadID=2106201] help?
-
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 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. -
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. -
Function module to modify the user roles & profiles
Hi All,
I am working on user maintenance and i need a function module to modify the user roles & profiles.
Thanks in Advance.
Phani.i used the below fms
BAPI_USER_ACTGROUPS_ASSIGN for assigning the roles.
delete the profiles of the user qnd assign the profiles to the user:
BAPI_USER_PROFILES_DELETE
BAPI_USER_PROFILES_ASSIGN
i used the above FMs for my requirement.
Regards,
Phani. -
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 -
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!
Maybe you are looking for
-
How to get a Recovery media for Satellite L305D S5900
I am a Ghanaian who bought a Toshiba laptop about seven months ago. The model is Satellite L305D S5900. I am also in Ghana. I found out from the documents that came with the laptop and your forum that I can order for Recovery media for it with no cha
-
Screen painter not working properly to edit an ALV screen
Hi I am stuck with a problem, I want to edit a screen which is an ALV report screen and add a custom button to its toolbar. But the screen painter is not opening properly so that I can see the screen layout and add a button. Any help is greatly appre
-
How to disable a column in matrix
Hi All, How to make a column in matrix disable in runtime...this is the coding iam using...but iam unable to find to disable that column. Dim objWasType As EditText objMatDet = objForm.Items.Item("MatDet").Specific objWasType = objMatDet.
-
Replicate services for object functionality in my customised program
Hi I can see the "Services for object "functionality in ME23N transaction. I want to replicate the same functionality for my custom program.Is there any badi or Function Module . Please let me know if I can get any pointers for this. Regards Deesanth
-
Download of 9iAS 9.0.3 Broken
I'm trying to download, but I'm not getting past the export restriction screen. I click all the boxes and press agree and I get sent right back to that screen. I'm logged in and accepting all cookies. Is there something wrong with this page?