Update order user status based on a custom check box value in web ui
Hi Experts,
I have a requirement to Update the user status based on a custom check box value in web ui.
This is needed at the followup for a SR, the component is BT116H_SRVO, Details View.
I created a value node with 4 checkboxes, based on the check box value, the corresponding user status
need to be updated.
How can I reach to the order save functionality of SAP in EH_ONSAVE method, so that syatem can capture my check box value, along with other screen fields, and append the status parameter in Order maintain?
or do I have to call order maintain in even handler for checkbox, which will affect performance .....
Pls help.
Regards,
Lakshmi
Hi,
In your event handler you can use bol entity corresponding to status BTStatusH and change the user status.
Best regards,
Caíque Escaler
Similar Messages
-
Userexit for updating sales order user status based on PO
Hi.
My clients requirent is
Sales order user status should get updated based on production order creation,GR for PO creation etc.
Basically depending on PO & GR For PO,various user stauts in sales order should get updated.
Can you please suggest me some userexits in PP for this requirement?
I am a SD Consultant and not having much idaes about PP
Thanks
Nishahi,
if you are not going to update it in the SO..
then you need different exits as those are different transactions. -
Userexit for updating sales order user status based on Production Order
Hi.
My clients requirent is
Sales order user status should get updated based on production order creation,GR for PO creation etc.
Basically depending on PO & GR For PO,various user stauts in sales order should get updated.
Can you please suggest me some userexits in PP for this requirement?
I am a SD Consultant and not having much idaes about PP
Thanks
Nishahi,
if you are not going to update it in the SO..
then you need different exits as those are different transactions. -
Updating the User Status in Sales Order Item
Dear Gurus,
Iam trying to update the User Status on the SO item using STATUS_CHANGE_EXTERN function module and the status is successfully getting updated.
But the problem is if Iam updating the status it has to delete the Purchase Requisition assgined to it, which is not happening.. whereas when Iam manually changing the Status, the PR is getting deleted.. Can anyone suggest some other function module or some other way of doing it other than BDC?
Best Regards,
Sreenivas.Hi ,
I am also need to update the Item user status. Could you please provide me the logic for the FM 'STATUS_CHANGE_EXTERN'. And also let me know the where we need to write the logic in VA01/VA02.
It would be helpful me a lot.
Thanks
Srihari. -
Creating check on officers who can change a sales order - User Status
The user needs to create a check on persons who can change (User Status) on the sales order created.
The sales order are created by a group of people. These group of people can not be allowed to change the sales order - User Status(In header Detail).
Only a second level user users should be allowed change this user status.
Can it be done at configuration level. Or should we use an Exit?
Thanks in advance.Hi Sunoj,
I never have used this auth. objects, but if you want to set restrictions on some users, search before in auth. objects. As I told you, you can use the tcode SU24 for this purpose. Do the selection, see the result, try it with tcode PFCG and check it.
If you can do something with customizing tools or other standard tools (as authoritation tools) avoid the use of enhancements, BADI, BTE'S and so on. If you don't find the solution, then go to userexits.
I hope this helps you
Regards
Eduardo -
Change sales order user status
Hello experts,
I'm trying to update the user status with the following code without success:
DATA : LIT_STATUS_COMT TYPE CRMT_STATUS_COMT,
WA_STATUS_COMT LIKE LINE OF LIT_STATUS_COMT,
LIT_FIELD_NAMES TYPE CRMT_INPUT_FIELD_NAMES_TAB,
WA_INPUT_FIELD_NAMES LIKE LINE OF LIT_FIELD_NAMES.
SELECTION-SCREEN BEGIN OF BLOCK AAA.
PARAMETERS: P_GUID TYPE CRMT_STATUS_COM-REF_GUID,
P_STAT TYPE CRMT_STATUS_COM-STATUS.
SELECTION-SCREEN END OF BLOCK AAA.
CLEAR WA_STATUS_COMT.
WA_STATUS_COMT-REF_GUID = P_GUID.
WA_STATUS_COMT-REF_KIND = 'A' .
WA_STATUS_COMT-STATUS = P_STAT. " Pass the user status
WA_STATUS_COMT-USER_STAT_PROC = 'ZOR00001'. " Value for the User Status Profile.
WA_STATUS_COMT-ACTIVATE = 'X'.
INSERT WA_STATUS_COMT INTO TABLE LIT_STATUS_COMT.
WA_INPUT_FIELD_NAMES-FIELDNAME = 'ACTIVATE'.
APPEND WA_INPUT_FIELD_NAMES TO LIT_FIELD_NAMES.
CALL FUNCTION 'CRM_STATUS_MAINTAIN_OW'
EXPORTING
IT_STATUS_COM = LIT_STATUS_COMT
CHANGING
CT_INPUT_FIELD_NAMES = LIT_FIELD_NAMES
EXCEPTIONS
NOT_ALLOWED = 1
ERROR_OCCURRED = 2
WARNING_OCCURRED = 3
OTHERS = 4.
DATA: LT_OBJECTS_TO_SAVE TYPE CRMT_OBJECT_GUID_TAB,
LS_OBJECTS_TO_SAVE LIKE LINE OF LT_OBJECTS_TO_SAVE.
LS_OBJECTS_TO_SAVE = P_GUID.
APPEND LS_OBJECTS_TO_SAVE TO LT_OBJECTS_TO_SAVE.
CALL FUNCTION 'CRM_STATUS_SAVE_OW'
EXPORTING
IT_HEADER_GUID = LT_OBJECTS_TO_SAVE
best regards,
Ronen.R.R,
I already tried that without success:
INCLUDE CRM_STATUS_CON.
INCLUDE CRM_LOG_STATES_CON.
SELECTION-SCREEN BEGIN OF BLOCK AAA.
PARAMETERS: P_OBJNR TYPE CRM_JSTO-OBJNR,
P_STAT TYPE CRM_JEST-STAT.
SELECTION-SCREEN END OF BLOCK AAA.
START-OF-SELECTION.
CALL FUNCTION 'CRM_STATUS_CHANGE_EXTERN_OW'
EXPORTING
* CHECK_ONLY = ' '
OBJNR = P_OBJNR
USER_STATUS = P_STAT
* SET_INACT = ' '
* IV_REF_KIND =
* IV_OBJECT_TYPE =
* IV_NO_1O_MAINTAIN =
* IMPORTING
* STONR =
* EXCEPTIONS
* OBJECT_NOT_FOUND = 1
* STATUS_INCONSISTENT = 2
* STATUS_NOT_ALLOWED = 3
* OTHERS = 4
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
* IMPORTING
* RETURN =
any other suggestions?
Ronen. -
Automatically updation of User Status
Hi All,
I am facing a problem on automatic updation of user status.As I have a process that on the basis of one field value in a quality notification I want to update the user status automatically.
I explored something with business process but not getting the right way to use it.
Please guide me if anyone deals with the same scenario or know more about using business process with user profile.
Cheers,
TusharHey Prasad,
You will have to Develop a report to do this...
You should use FM CRM_ORDER_MAINTAIN to do this...
Details of how to use this FM for Updating Status could be found in CRM forum..
I would advice to consult your CRM Tech Team who are in best position to do this..
Please Reward for usefulll Post..
Regards,
Anand.. -
Reg Update Order System Status
Hi,
My requirement is, while doing TECO (technical complete) of maintenance order I want to check for open reservation/requisition in maintenance order. and if we found any any open reservation/requisition then order status TECO will not update. maintenance order will remain in present status. any other update done in this order before TECO will save.
Please suggest how I can acheive this.
I tried to use uesr exit IWO0009 and BADI WORKORDER_UPDATE but not abe to update order system status in this point.
Please suggest me any EXIT or BADI or Solution for this requirement.
Regards,
AtulHi Atul,
Following codes can be help u for Open PR before TECO.
*& Include ZXWO1U03
EXIT_SAPLCOIH_004
DATA: BEGIN OF IT_EBAN OCCURS 0,
BANFN LIKE EBAN-BANFN,
BNFPO LIKE EBAN-BNFPO,
EBELN LIKE EBAN-EBELN,
LOEKZ LIKE EBAN-LOEKZ,
END OF IT_EBAN.
DATA: IT_AFKO LIKE AFKO.
DATA: BEGIN OF IT_AFVC OCCURS 0,
BANFN LIKE AFVC-BANFN,
END OF IT_AFVC.
DATA: X_AUFPL LIKE AFKO-AUFPL,
X_BANFN LIKE AFVC-BANFN,
STR TYPE STRING.
SELECT SINGLE AUFPL
FROM AFKO
INTO X_AUFPL
WHERE AUFNR = CAUFVD_IMP-AUFNR.
IF SY-SUBRC = 0.
SELECT SINGLE BANFN
FROM AFVC
INTO X_BANFN
WHERE AUFPL = X_AUFPL
AND STEUS = 'PM03'." Extenal Service Control Key"
SELECT BANFN BNFPO EBELN LOEKZ
FROM EBAN
INTO TABLE IT_EBAN
WHERE BANFN = X_BANFN.
ENDIF.
LOOP AT IT_EBAN.
IF IT_EBAN-EBELN = '' AND IT_EBAN-LOEKZ = ''.
CONCATENATE 'PR' IT_EBAN-BANFN 'is not converted to PO.TECO is disallowed' INTO STR SEPARATED BY SPACE.
MESSAGE STR TYPE 'E'.
ENDIF.
ENDLOOP. -
Can I reset a non numbered user status based on a numbered user status?
Can I reset a non numbered user status based on a numbered user status?
Yes. Numbered status are mutually exclusive ie. succeding status resets previously set status.
My requirement is like this: I have 3 numbered status and 2 non numbered status. Lets say, the first numbered status & two numbered status are set at the begining. Now when I click the second numbered status, both the numbered status and two non numbered status should be automatically reset. Only numbered status is getting reset and not the other two.
Thanks
Edited by: Smartsoft General User on Jul 22, 2009 4:36 PM -
Function module for changing Work order user status in IW32
Hi,
I want to change the work order user status in IW32 using ABAP.
Is there any function module to do so or any other way? I have tried using BDC but this does not work.
Please suggest.
Regards,
Naba
Edited by: n. saha on Nov 5, 2008 6:46 AMI am getting Same Problem.
fi_methods-method = 'SAVE'.
APPEND fi_methods.
fi_methods-refnumber = 1.
fi_methods-objecttype = 'USERSTATUS'.
fi_methods-method = 'CHANGE'.
fi_methods-objectkey = '002000002453'.
APPEND fi_methods.
fi_userstatus-user_st_text = 'COMM'.
fi_userstatus-user_langu = 'EN'.
fi_userstatus-CHANGE_EVENT = ' 01 '.
APPEND fi_userstatus.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = fi_methods
it_userstatus = fi_userstatus
return = fi_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Above code I am using and there the message comes like
T ID NUM MESSAGE
S IW 080 Order saved with number 2000002453
S IWO_BAPI2 110 BAPI control was ended
can any on know what is wrong in this? please help if having knowledge.
Thank You,
Jahnavee Trivedi -
How to put custom check box in a tableview column
Hi,
I would like to put a custom checkbox in a tableview column for each row of the table.
Such that when the user selects the rows and among those rows if for fews rows this checkbox is active, i need to do some special processing. how can i add a custom check box to a tableview column.
Can anyone help me in this regard?
Thanks and Regards,
KumarHi,
You can use the checkbox code within your tableview column:
<htmlb:tableView id = ".."
>
<htmlb:tableViewColumn id = " "
type = "USER"
>
<htmlb:checkBox id = ".."
selected = " "
/>
</htmlb:tableViewColumn>
</htmlb:tableView>
I hope it helps.
regards,
Rohit -
Add a custom check box only for Cont Acct Cat '02'
Hello All,
I have added a custom check box to the Contract Account Screen. Everything seems to be working fine except:
I need the checkbox to be visible only for a particular category i.e. '02'. I have even tried the customizing transactions in CAWM where we can actually hide the elements but thats not working too. Can anybody please help me on this.
Any kind of inputs will be much appreciated and rewarded.
Please help.
Regards,
RakeshRakesh,
Go to SPRO --->Financial Accounting ---> CARP ---> Basic Functions ---> Contract Accounts ---> Field Modifications ---> Configure Field Attributes for Contract Account Category
Here u can define different contract account categories,then with field grouping tab (which is on upper left corner ) , u can define view for different fields present.
Hope this will help u..
Regards,
Shruti Singh -
OIM 10g: Best practice for updating OIM user status from target recon?
We have a requirement, where we need to trigger one or more updates to the OIM user record (including status) based on values pulled in from a target resource recon from an LDAP. For example, if an LDAP attribute "disable-flag=123456" then we want to disable the OIM user. Other LDAP attributes may trigger other OIM user attribute changes.
I think I need to write a custom adapter to handle "recon insert received" and "recon update received" events from the target recon, but wanted to check with the community to see if this was the right approach. Would post-insert/post-update event handlers be a better choice?Thanks Nishith. That's along the lines of what I was thinking. The only issue in my case is that I might need to update additional custom attributes on the OIM User in addition to enable/disable. Because of that requirement, my thought was to call the API directly from my task adapter to do the attribute updates in addition to the enable/disable. Does this seem like a sound approach?
-
Hi,
is there any FM or user-exits to set the User Status of the Sales Order Line Item at the time of Order Creation.
( status profile is created with 3 status in BS02 and assigned to the order line item. user exit / fm has to change the status assigned to the order based on certain conditions )
Lot of FM are available to update the status after Order Creation. I'm lookin for one at the time of order creation where i could use in the exit MV45AFZZ.
looking for your inputs.
Thanks,
ArunThanks, I have gone through this. This needs a Object Number to update the status.
In my case i wont have the object number at the time of order creation.
Thats the problem. -
BAPI for changing Work order user status in IW32
Hello Experts,
I am getting Same Problem in updating status via BAPI, BAPI_ALM_ORDER_MAINTAIN. Its not giving any error but even not update status.
I know i can use this for changing the user status also but not sure how to carry out things.
I used this code.
fi_methods-method = 'SAVE'.
APPEND fi_methods.
fi_methods-refnumber = 1.
fi_methods-objecttype = 'USERSTATUS'.
fi_methods-method = 'CHANGE'.
fi_methods-objectkey = '002000002453'.
APPEND fi_methods.
fi_userstatus-user_st_text = 'COMM'.
fi_userstatus-user_langu = 'EN'.
fi_userstatus-change_event = ' 01 '.
APPEND fi_userstatus.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = fi_methods
it_userstatus = fi_userstatus
return = fi_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Above code I am using and there the message comes like
T ID NUM MESSAGE
S IW 080 Order saved with number 2000002453
S IWO_BAPI2 110 BAPI control was ended
can any on know what is wrong in this? please help if having knowledge.
Thank You,
Jahnavee TrivediI am getting Same Problem.
fi_methods-method = 'SAVE'.
APPEND fi_methods.
fi_methods-refnumber = 1.
fi_methods-objecttype = 'USERSTATUS'.
fi_methods-method = 'CHANGE'.
fi_methods-objectkey = '002000002453'.
APPEND fi_methods.
fi_userstatus-user_st_text = 'COMM'.
fi_userstatus-user_langu = 'EN'.
fi_userstatus-CHANGE_EVENT = ' 01 '.
APPEND fi_userstatus.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = fi_methods
it_userstatus = fi_userstatus
return = fi_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Above code I am using and there the message comes like
T ID NUM MESSAGE
S IW 080 Order saved with number 2000002453
S IWO_BAPI2 110 BAPI control was ended
can any on know what is wrong in this? please help if having knowledge.
Thank You,
Jahnavee Trivedi
Maybe you are looking for
-
How to switch off breadcrumb-navigation in EP 6.0 ?
Hi All, I've got the request to switch off the s.c. breadcrumb-Navigation. Is there any possibility to remove this ? In EP5 there was possible to let them disapear by changing the font color, this seems not to work in EP6 as some parts of the links c
-
Need "dummies for Apple TV" help - brand new consumer
Hello! I'm NOT tech-savvy, but have been using Mac computers for many years! I just purchased a 2nd gen Apple TV and am trying to figure out if I have the necessary cables, ports, etc. to hook it up. I have one HDMI cable and one audio cable to use w
-
Hi. Please help me with this information on the iPod Touch
I am doing my AS level graphic products coursework on iPod Touchs. I need help with a few questions I need to answer that I can not find info on. Please can anyone help me with the following: How the iPod Touch is produced? (Batch Production, Mass Pr
-
Today (6/1) the "My Usage" shows .7GB used (about 1/4 of my 3GB shaded in the bar-graph), and the solid-green in the bar graph representing only 1 day in the billing cycle. I'm trying to make sense of it. My may statement shows 1.7GB - I think that'
-
Cold Boot Lockup (D Bracket: GGRG)
Hi Guys (first post so be gentle), I am having a problem with my 875 motherboard on after being turned off at the wall. The D-Bracket shows RRGR which the manual says Initializing Keyboard Controller. I cant ever remember seeing this problem before