Validation for User Status

Hi Experts,
Is there a way we can build validations on user statuses?
Here's the scenario: For ex- There are two statuses without status numbers - 1) X 2) Y
Is there a way we can restrict the user to select only one at a time i.e. either X or Y?
Note: We cannot use status numbers because of the nature of the user statuses (X and Y), it will be a manual check only no radio button.
Please Advice.
Arya
Edited by: Arya Singh on Dec 9, 2008 3:52 PM

txn OPSI
go to the check mode
exit tab
you can see some user exits there
e.g UFP01 etc
or use BADi to build the logic on save project (projectdef_save)

Similar Messages

  • EXIT/ BADI/ Enhancement point for User Status change in Order

    Hi all,
    I am looking for an EXIT or a BADI or an enhancement point specifically for user status change in an order thru IW31/IW32.
    I have the exit names for Order PBO, PAI, 'SAVE' event etc. so m not looking for generic answers.
    I have to put some validations for the Order on USER STATUS CHANGE. Let me know if any of u have any pointers on that.
    Thanks and Regards,
    Sonal

    Hi,
    Use this Enhancement IWO10009 and call these function module to change the User Status
    STATUS_TEXT_EDIT --> To Read the existing status.
    STATUS_CHANGE_INTERN_VB --> to change the status.
    Regards,
    Satish

  • Table for user status field in CJ20n transaction project defination

    HI ALL,
    what is table for user status field in CJ20n transaction project defination creation. This field is in Basic Data tab.
    Thanks.

    Hi,
    Check following tables for Usre status:
    TJ30 - User status
    TJ30T - Texts for user status
    TJ20 - Status profile
    JEST - Object status
    JSTO- WBS status profile.
    Check this code:
    REPORT zps_get_userstatus .
    PARAMETERS: p_posid LIKE prps-posid.
    *-- Constants
    CONSTANTS: gc_yes(1)     TYPE c                 VALUE 'X',
               gc_no(1)      TYPE c                 VALUE ' '.
    *-- Variables
    DATA: l_objnr LIKE prps-objnr.
    *-- Internal tables
    DATA: BEGIN OF lit_jest OCCURS 0,
           objnr LIKE jest-objnr,
           stat  LIKE jest-stat,
         END OF lit_jest.
    DATA: BEGIN OF lit_jsto OCCURS 0,
           objnr LIKE jsto-objnr,
           stsma LIKE jsto-stsma,
          END OF lit_jsto.
    DATA: BEGIN OF lit_status OCCURS 0,       "Combination of JEST & JSTO
              objnr LIKE jest-objnr,
              stsma LIKE jsto-stsma,
              stat  LIKE jest-stat,
            END OF lit_status.
    DATA: BEGIN OF lit_usrsta OCCURS 0,       "Uer status for all wbs
             objnr LIKE jest-objnr,
             stsma LIKE jsto-stsma,
             stat  LIKE tj30t-estat,
             txt04 LIKE tj30t-txt04,
           END OF lit_usrsta.
    DATA: BEGIN OF lit_usrtxt OCCURS 0,       "User Status text - TJ30T
            stsma LIKE tj30t-stsma,
            stat  LIKE tj30t-estat,
            txt04 LIKE tj30t-txt04,
          END OF lit_usrtxt.
    * get WBS object number
    SELECT SINGLE
         objnr FROM prps
               INTO l_objnr
               WHERE posid = p_posid.
    * get WBS active status from table JEST
    SELECT
          objnr
          stat
               FROM jest INTO TABLE lit_jest
               WHERE objnr =  l_objnr AND
                     inact <> gc_yes.
    * get WBS status profile from table JSTO
    SELECT
          objnr
          stsma FROM jsto
                INTO TABLE lit_jsto
                WHERE objnr =  l_objnr.
    * combine JEST and JSTO table for user status
    LOOP AT lit_jest.
      IF lit_jest-stat CP 'E++++'.
        READ TABLE lit_jsto WITH KEY
                            objnr = l_objnr.
        IF sy-subrc = 0.
          lit_status-objnr = lit_jest-objnr.
          lit_status-stsma = lit_jsto-stsma.
          lit_status-stat  = lit_jest-stat.
          APPEND lit_status.
        ENDIF.
      ENDIF.
      CLEAR: lit_jsto, lit_status.
    ENDLOOP.
    *  get text for user status
    SELECT DISTINCT
             stsma
             estat
             txt04 FROM tj30t
                   INTO TABLE lit_usrtxt
                   FOR ALL ENTRIES IN lit_status
                   WHERE stsma = lit_status-stsma AND
                         estat = lit_status-stat  AND
                         spras = sy-langu.
    Let me know if you have any question.
    Regards,
    RS

  • Table  for User Status Profile

    hi
    Please tell anybody what is the table for User Status Profile in Sales Orders? where it will stores?
    Regards
    Rajendra

    Hi,
    Use table JEST
    Here you will have to enter the object number as an input field
    Get object number from table VBAK or VBAP based on whether the status profile is attached at sales order header or at sales order item.
    Status which is active will start with letter E and the status inactive flag will be blank.
    Regards
    Ravi

  • What is the significance of define status profile for user status

    hi friends
    what is the significance of define status profile for user status. what does it contain
    Regards
    Vinny
    Edited by: vinny novice on Dec 29, 2008 1:53 PM

    Hi
    please see Kathir's article on ststus profile
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/bpx-community/supplier-relationship-management/how%20to%20configure%20user%20status%20in%20mysap%20srm.pdf
    regards
    Muthu

  • Screen "Define Status Profile for User Status" should not open in changemod

    Dear all ,
    After following the path CRM>SPRO>SAP IMG -->Customer Relationship Management -->Transactions -->Basic Settings --> Status Management -->Define Status Profile for User Status.
    the screen opens in change mode & allows user to carry out the changes, this is very crucial screen & hnece should not be in open mode ,kindly advice on closing the same.so that it opens only in display mode for production system.
    Regards

    Hi Milind,
                 To Block changes to any Object their is a Provision for the same in Client Deatils Screen
    Go to TCode:SCC4
    Check the Tab Cross-Client Object Changes
    Try setting the Option (3.No Changes To Cross-Client Customization Objs)
    Following Options Symbolises:
    Changes to the Repository and cross-client Customizing permitted
    There are no restrictions on the maintenance of cross-client objects for the client when this setting is used. Both cross-client Customizing objects and objects of the SAP Repository can be maintained.
    No change to cross-client Customizing objects
    Cross-client Customizing objects cannot be maintained in the client with this setting.
    No change to Repository objects
    With this setting, objects of the SAP Repository cannot be maintained in the client.
    No change to Repository and cross-client Customizing objects
    Combination of both restrictions: Neither cross-client Customizing objects nor objects of the SAP Repository can be maintained in the client.
    (Choose This One it Should Resolve your Problem)
    Hope it answered Your Queries..
    Thanks and Regards,
    RK.

  • Iw32 - Fm for User status

    Hi i need a fuctional module to get the user status displayed in Iw32 for a order no.
    Keshav

    find out the status profile for the service order...
    then...
    SELECT * FROM jest INTO TABLE it_ustat
                           FOR ALL ENTRIES IN it_qmel
                           WHERE objnr = it_qmel-objnr                     "object number for the order
                           AND   stat LIKE 'E%'
                           AND   inact NE 'X'.
    SELECT * FROM tj30t INTO TABLE it_tj30t
                            FOR ALL ENTRIES IN it_ustat
                            WHERE stsma = 'ZXXX'                         "status profile       
                            AND estat = it_ustat-stat
                            AND spras = sy-langu.
    TJ30T-TXT04 contains the user status

  • BAdi DPR_EVENTS for user statuses

    Hi,
    Anyone having ideas on how to use the BAdi DPR_EVENTS when user defined statuses are triggered?
    Regards,
    Vivek?

    Hi Vivek,
    It's not possible to use this BADI for user defined statuses.
    We had a similar need a few months ago. We solved it by implementing an enhancement (pre/post exit) in dynpro DPR_STATUS_THRESHOLDS, view VI_STATUS, method ONACTIONCHANGE_STATUS. We can detect here which status (user or system) has been selected.
    Matthias

  • Code is only valid for users of store

    Help....
    Ive just gifted an app to my son as I often do and when he tries to redeem it it says "This code is only valid for customers of the Store".
    Ive looked this up and normally it will involve someone from one country trying to gift an app to someone in another country but with me this is not the case.
    My son lives in the same country, the same address everything.
    The app was called Kick the buddy: Second kick
    Can anyone please help
    Thank you

    Thanks to James, I have just had a reply saying that they do not know why this error has occured but they have refunded my purchase costs.
    Good luck to anyone who has the same problem

  • Work Flow for User Status

    Hi All,
    Is it possible to send the mail at company mail id to different users as per the different user status in the notification thru the work flow?
    regards
    sunil

    Hi
    TCODE : OIM1
    Assign agents and activate event linking
    So... Check out this link [Work Flow|http://help.sap.com/saphelp_47x200/helpdata/en/b0/df293581dc1f79e10000009b38f889/frameset.htm]
    - Pithan

  • User exit for user status

    Hi,
    Please let me know if there is any user exit that triggers upon updating the user status in the status tab of the sales order.
    I had used the exit 'Move_field_to_vbep' and 'USEREXIT_SAVE_DOCUMENT'
    but they are not getting triggered on saving the sales order.
    Regards,
    Srirupa.

    You can check with include RV45PFZA and USEREXIT_SET_STATUS_VBUK and USEREXIT_SET_STATUS_VBUP .
    Hope it helps.
    Reward if it is useful.
    Thanks,
    Srinivas

  • Payment Block Validation for User group

    Dear SAP Validation Expert,
    We like to allow only selected FI users to change Payment Block to ' ' (Free for Payment) in tcode: FB02, FB03 and FBL1N.
    Curently we have managed to block other un-selected users from changing the Payemnt block to Free for Payment.
    But our issues are Other fields also NOT able from changing/maintaining. For example in FB02, user NOT able to change Payment Block (BSEG-ZLSPR) from 'B' to  ' ' (Free for Payment) which is expected but user also NOT able to maintain other field such as Payment term(BSEG-ZTERM), Baseline date (BSEG-ZFBDT), Assignment (BSEG-ZUONR) and Text Field(BSEG-SGTXT).
    Below is our Validation, please advice how to improve it so that other fields can be changed too. Your swift reply is very much appreciated.
    Pre-requisite:
    ( ( SYST-TCODE = 'FB02' ) OR
    ( SYST-TCODE = 'FBL1N' ) OR
    ( SYST-TCODE = 'FB03' ) AND
    ( BSEG-ZLSPR = ' ' ) AND
    SYST-UNAME <> 'HIS20083'
    Check:
    BSEG-ZLSPR <> ' '
    Message: E: You have no authorization.

    Hi,
    In your Validation small change has to be done.
    Pre-requisite:
    SYST-TCODE = 'FB02' ) OR ( SYST-TCODE = 'FBL1N' ) OR ( SYST-TCODE = 'FB03' )
    Check:
    SYST-UNAME 'HIS20083' AND BSEG-ZLSPR = ' '
    Message: E: You have no authorization.
    Try in the above procedure.
    Thanks
    Goutam

  • Validation for User to Restrict vendor

    Hi Experts,
    My client wants that some users can only display one vendor account in vendor Line item / Balance reports and they are not accepting Authorization group update in vendor Master. Can you please suggest me that how can I do validation in OB28 for this requirement.
    Thanks in advance.
    Regards
    Abul

    So we thought we can use object F_LFA1_BEK. We entered an  authorization group (LFA1-BEGRU) to this vendor and added this group to F_LFA1_BEK. So far so good.
    Problem is now that it is still possible to access all vendors where no authorization group is maintained in the vendors master record. (No authorization group is the default case and it is not possible to add another one the other vendors)
    Is it possible to achieve this with F_LFA1_BEK or is there any other solution?

  • User status transfer for sales orders from ECC to CRM

    Hi,
    We use business process with CRM sales orders that are transfer to ERP.
    Users can change user status in the sales orders in ERP.
    How we can replicate custom user status from ECC Sales Order to CRM Sales Order?
    What is the steps to do this for CRM 7.0?
    Denis

    Hi,
    We are creating quotation ZPQT in CRM which is then get replicated to ECC on saving it on “Accepted” status. In ECC we then create sales order of type ZPOR. Sales order gets replicated in CRM and also updates document flow. This sales order is called as “Project Sales Order”. PS team assigns WBS element to this order and does billing later on. Upon billing document is created sales order status in ECC changes to “Completed”. This is system status. But the issue is status of order ZPOR is CRM remains in status “Inprocess”. We want it to change to “Completed”.
    We have similar scenario with order type ZOR. In this order after delivery and billing ECC assigns status “Completed” to sale order and same gets replicated to CRM.
    In CRM for user status Completed we have assigned system status as FINI. Both ZPOR and ZOR has same status profile assigned at header and item level.
    Our concern is if status is changing back in CRM for ZOR then why not for ZPOR. What is stopping system to do so?

  • Need FM for reading user status at run time in CRMD_ORDER txn.

    hello all,
    i need to know the FM for finding the user status on the screen.
    i know there are FM's for finding the values on subject and external reference fields. similarly i want it for user status .please help me in this regard....
    Thanks,
    Sreekanth.

    Hey Shiva,
    The FM for finding user status is CRM_STATUS_READ_OW
    Please Reward for usefull usefull post..
    Regards,
    Anand..

Maybe you are looking for

  • How Do I Stop Bookmark Syncing Across Macs

    My husband and I both have our own Apple IDs. He has a Macbook Pro and I have a Macbook Air. I need to be able to access his purchased music and movies so we used his Apple ID to login to iTunes on my Macbook Air. This worked fine. But even through I

  • Hard drive restore- issue

    I had to restore my hard drive (mac) and reloaded from a Backup (yeah!) but Adobe requires that I Uninstall(done), run a Cleanup (done) and reinstall from a new downloaded DMG file.  (why can't this be easier?) Upon trying to start the install I get

  • MacBook  won't detect projector

    Aloha, I am using a MacBook with OSX 10.4.11. I am trying to get the machine to pick up an external display, a cannon projector via a DVI adapter. Before I upload the new system on the machine with my preferences I was able to connect and see the ext

  • Standalone Installation of Oarcle 10.1.2.3 Form and Reports

    Hi, We are planning to install Oracle 10g AS only with forms and reports on OEL 5.3. Please suggest steps to install the same. Thank you in advance, Regards, Satish

  • Single Server DHCP environment - redundancy question

    I have a single 2012 R2 Server, running as Host.  Host has Hyper-V services only.  Single Guest, running Server 2012 R2, as Domain, FS, DHCP, DNS.  Small shop, 20 workstations.  IP served from DHCP to clients.  If server dies, I have no internet acce