Contact or Opportunity required at  activity level

Hi All,
I have a following requirement that, when an activity is created, either a Contact or Opportunity is required, i.e. both of them should not be null.
I wrote the following field validation at contact Id at Activity entity. But the validation works for certain cases only.
[<PrimaryContactId>] <> "No Match Row Id" OR ([<PrimaryContactId>] = "No Match Row Id" AND [<OpportunityName>] IS NOT NULL) OR ([<PrimaryContactId>] IS NULL AND [<OpportunityName>] IS NOT NULL)
The validation works when PrimaryContactId = "No Match Row Id" but when it is null, the script is not getting trigerred.
Am i missing something. Can somebody please help me in this.
Thanks in Advance,
Ashwini

Try the following field validation on Subject field.
[<OpportunityId>] IS NOT NULL OR [<PrimaryContactId>] IS NOT NULL
You can also add the same field validation on Opportunity Id and Primary Contact Id fields. (This is to enforce the rule for existing records)
Subject field validation works for new records.

Similar Messages

  • Config for Cost & budgeting at activity level and WBS element level in PS

    Dear GURU's,
    please suggest me how to do the spro configuration for budgeting and costing, here my requirement is I need to do cost planning and budgeting at WBS element level and Activity level. We two deferent types of projects.
    Regards,
    Bha

    Hi Bhanu,
    Cost planning in projects can be done through two techinques:
    I.  Manual cost planning (at WBS level)
    1.  Overall planning (Struture-oreiented planning)
    2.  Detailed planning (Cost element planning)
    3.  Unit costing
    4.  Easy cost planning form
    II.  Automatic cost planning using networks and assigned orders
    For customizing:  Use transaction OPUV  and enter the required entries for cost planning.
    Budget can do only at WBS level.  For configuration do the following steps:
    1.  Create Budget profile - OPS9
    2.  Assign Budget profile in Project profile - OPSA
    3.  Then allot budget to your project - CJ30
    hope it will be very clear.  Appreciate with point if it useful.
    Thanks and Regards
    vetrivelan

  • How to do budgeting at activity level and WBS element level in project syst

    Dear GURU's,
    Can any one please suggest me how to do budgeting at activity level and WBS element level in project systems, friends please I required set by step process.
    I need how to do this configuration to map this scenario.
    Regards,
    Bhanu

    Hi Bhanu,
    Use this link :
    http://help.sap.com/saphelp_45b/helpdata/en/86/98853478616434e10000009b38f83b/frameset.htm
    after page opens , click on BUDGET MANAGEMENT , There you will find each and every step you want .
    Thanks ,
    Dhruv Kumar Malhotra

  • Commitments at activity level in report S_ALR_87013533 - Plan/Actual/Commit

    Hi All,
    When i executed the report S_ALR_87013533 - Plan/Actual/Commitment/Rem.Plan/Assigned, the commitments are shown at WBS level but not at activity level. Is there any setting required to see the commitments at the activity level?
    Where as the planned costs are shown against the activity in the same report.
    Please suggest the required settings if any?
    Regards,
    Ramana.

    HI Rifaee/Martina,
    In CJI5 the line items are shown under the WBS. But i would like to see the line items in the report.
    Even after running the report cjen the database is not updated for line itemwise commitment in the report.
    How to assign the PR/PO as account assignments to activity? Where do i need to do this setting? Please inform.
    Regards,
    Ramana

  • How to check plan line items for plan cost at network activity level?

    Dear all,
    How to check plan line items for plan cost at network activity level? The plan cost is done in network activity in CJ20N.
    I am not able to check using CJI4 or CJI9 report.
    Kindly advise.
    Thanks and regards,
    Jessie

    Hi Jess,
    Have you checked the navigation part which is being displayed on left hand side of report S_ALR_87013565 and S_ALR_87013533.? There you have option to check transaction currency and object currency when you double click on it.
    In case if it is not being displayed under navigation. Then you can bring them on from transaction code CJE2. For eg: Report group for S_ALR_87013533 is 12KST1C. Double click on it and it will open up to do changes in report layout and many more. There you also have options to bring on transaction currency too. Similarly, you can check for other report groups as well just by checking the report description.
    But I am not sure if suits your requirements. Wait for other experts to comment on this.
    Regards,
    Amit

  • Copy of the Attachments from a Opportunity to a Activity

    Hello SAP Experts!!!
    I have a requirement when creating a Activity as an Follow-Up Document from an Opportunity that the Attachments of the Opportunity have to be copied to the Activity.
    I have looked at BADI: CRM_COPY_BADI but I found out that the Structures of the BADI doesnt have the fields to put information of the attachments,  so I think its useless to my case.
    By doing a debugging I found out that by pressing the button "Create Follow Up Document" in the Opportunity that in the component BT111H_OPPT (View: OpportunityOVViewSet) method : EH_ONFOLLOWUP is called. Then in method BT126H_APPT in the Main Window the Method: IP_FOLLOWUP  is called.
    Anybody knows what I can do or what method I have to redefine that I can see the Attachments of the Opportunity in my Activity Document?
    Does anybody have experience what steps to make to copy attachments and can help me out?
    Best Regards
    Oliver Schultze
    Edited by: Oliver Schultze on Feb 25, 2010 4:53 PM

    Hello, just to clase this thread correctly I put the code I have used to copy the documents of an Opportunity to an Activity Document while creating an Follow-Up Document:
    DATA: ls_bo_oppt        TYPE sibflporb,
            ls_bo_actv        TYPE sibflporb,
            lv_guid_oppt      TYPE crmt_object_guid,
            lv_guid_actv      TYPE crmt_object_guid,
            ls_new_loio       TYPE skwf_io,
            lt_phios          TYPE skwf_ios,
            ls_error          TYPE skwf_error,
            lt_bad_ios        TYPE skwf_ioerrs,
            lv_all_documents  TYPE skwf_flag.
      MOVE is_ref_orderadm_h-guid TO lv_guid_oppt.
      MOVE cs_orderadm_h-guid     TO lv_guid_actv.
      ls_bo_oppt-instid = lv_guid_oppt.
      ls_bo_oppt-typeid = 'BUS2000111'.
      ls_bo_oppt-catid  = 'BO'.
      ls_bo_actv-instid = lv_guid_actv.
      ls_bo_actv-typeid = 'BUS2000126'.
      ls_bo_actv-catid  = 'BO'.
      lv_all_documents   = 'X'.
      CALL METHOD cl_crm_documents=>copy
        EXPORTING
           business_object      = ls_bo_oppt
           new_business_object  = ls_bo_actv
           all_documents        = lv_all_documents
        IMPORTING
          new_loio              = ls_new_loio
          new_phios             = lt_phios
          error                 = ls_error
          bad_ios               = lt_bad_ios
        EXCEPTIONS
          no_io                 = 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.
    ENDMETHOD.

  • Create Inspection lot at 'Network - Activity' level

    hi all,
    We are having a requirement to see if there's a possibility to Create inspection lot at 'Network - Activity' level for activities that are "In-house" processing. So that the user can record the Inspection information against a Network - Activity.
    Ex - Network Activity:
    1)Plate cuttingu2014 Inspect cut edges 
    2)Welding - Inspect Weld joint 
    3)Rolled tube - Check Inner diameter

    Any suggestions plz!!.

  • Decimal place is not permitted in activity level

    Hi Experts,
    We have built a project structure with 100+wbs and 600 activities as per business requirement but we need to introduce Decimal value in POC Weight age in activity level, system is throwing error as Decimal place is not permitted, and we need system should allow to enter Decimal value while confirming also.
    These are my observations:
    The domain of the field EVGEW ( POC Weight) decimal is zero
    Note 172410 - Percentages of completion with decimal places (which is old notes)
    Please provide inputs to come out from this issue.

    Hi Guru,
    As far as i feel, there should be some logical reason as to why the system is not allowing decimal places for the POC weightage. If nothing helps, i would suggest you to raise this with SAP and seek their guidance.
    Regards,
    Gokul

  • Cisco Access Registrar 5 : What design or requirements for active/ active deploiement

    Hi Every one
    I want to install Cisco Access Registrar 5  on two different servers in active/ active design
    What design or requirements for active/ active deploiement ?
    Using Sun Solaris ? (i know using sun Sloaris i can have this mode of high availability BUT I PREFER INSTALLING IT ON  RED HAT ENTERPRISE )
    Using RED HAT ENTERPRISE on the two servers  ?   i wan to knew if i must use Vmware with the adequate licences (Vcenter) to provide FT fonctionnality for active / active Design ?
    How i can use the replication   to provide a complet active / active Design ?
    Cordialement
    Zammit Ikbel

    It depends what functionalities you want to use on CAR.
    For example:
    If only plain authentication is needed, you can install two servers independently and just configure replication between them (they just need IP visibility to replicate configuration). NAS clients can contact servers in  round-robin or you can share load on two servers in some other way.
    If you want CAR to perform session management and dynamic IP address allocation, than you need some cluster solution, as two servers must have synchronized state of sessions and consistent administration of addresses allocated from a pool.
    Best regards,
    Jasmina

  • My icloud activation lock is ON my iphone, which requires an activation login to access the homescreen, but when i log in with the apple ID on the phone, it says the apple ID is not meant to unclock this iphone 5 ios 8.0.2. please help me solve this.

    My icloud activation lock is on my iphone, which requires an activation login to access the homescreen, but when i log in with the apple ID on the phone, it says the apple ID is not meant to unclock this iphone 5 ios 8.0.2. please help me solve this.

    Yes the phone belongs to me. It was purchased from United Kingdom Vodafone to West Africa, i had to factory unlock to use any sim in it. so it belongs to me. I did the activation myself, now after updating my iphone to the latest update, it required a user id and password to activate the phone, but anytime i enter the details, it tells me the user Id is not correct but the password is correct..

  • Function modules to get wbs level budgets and activity level cost

    hai gurus can any one tell me the function modules or any other bapis to get the wbs level budgets and activity level costs
    thanx in advance
    afzal

    ok

  • CJ20N, auto-defaulted storage location at activity level

    Hi all,
    we have this problem at CJ20N (PS) screen.
    At activity level, componenent overview, if user keys in the material no, a storage location is auto-defaulted
    later we found out that if the material is extended to only 1 storage location,  the storage will be auto-defaulted at componenet overwview, is there any setting to prevent the auto-defaulted storage .. pls advice

    Hi,
    Carry out these IMG steps:
    SPRO 
    Logistic Execution 
    Basic Shipping Functions
    Shipping Point and Goods Receiving Point Determination
    Set Up Storage-Location Dependent Shipping Point Determination
    Assign Shipping Points According to Storage Location,,,,,,,,
    Put in your combination of Shipping Conditions / Loading Group/ Plant/ Storage Location/ Proposed shipping point
    Next time you create a Delivery document,, the system will pick up the above values from the Material/Customer master records and propose a Storage Location at line item number.
    I just tried it and it works, let me know if this works.
    Cheers,
    Mohammed
    Edited by: Mohammed Raheel on Jun 5, 2009 1:09 PM
    Edited by: Mohammed Raheel on Jun 5, 2009 1:11 PM

  • Long Text at Activity Level in CJ20N

    Hi all,
    So, I have a typical newbie question. But somehow Im unable to find an answer to this query even by searching.
    I need to print the Long Text Tab at the Activity Level (not at Project/WBS/Network level)  in CJ20N using the Read_Text Function Module.
    Just need info on what's the ID, Object, Name etc.
    pk

    Dzed,
    Thanks for that valuable tip. That was exactly what i was looking for.
    But unfortunately, my internal table is not getting updated even though im able to input the right parameters to the Function Module.
    Here's what I've done:
    DATA: BEGIN OF ist_lines OCCURS 0.
    INCLUDE STRUCTURE TLINE.
    DATA: END OF ist_lines.
    select mandt
           aufpl
           aplzl
           ltxa1
           vornr
           objnr
           projn
           from afvc into corresponding fields of table ist_afvc
           for all entries in ist_prps
           where projn = ist_prps-pspnr.
    loop at ist_afvc into wa_afvc.
    concatenate wa_afvc-mandt wa_afvc-aufpl wa_afvc-aplzl into wa_afvc-con3.
    modify ist_afvc from wa_afvc.
    endloop.
    break br_abap1.
    loop at ist_afvc into wa_afvc.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
    *   CLIENT                        = SY-MANDT
        ID                            = 'AVOT'
        LANGUAGE                      = 'E'
        NAME                          = 'WA_AFVC-CON3'
        OBJECT                        = 'AUFK'
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        =
      TABLES
        LINES                         = ist_lines
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 7
       OTHERS                        = 8
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endloop.
    Im able to pass the right value for the variable 'WA_AFVC-CON3', but unfortunately the Internal table is not updated.
    I know Im missing something here, but obviously Im too blind to notice that.
    pk

  • Material at activity level

    Hi,
    I created an automatic project with a material which having two child material.
    After that i run order BOM. I maintained reference point at activity level and same in BOM transfer.
    When we open the project in project builder , child materials should be attached to the activity. But it is not happening.
    Please suggest the solution.
    Vikas

    Gokul,
    Yes I'm using CN33. I assigned reference point to child material also.
    But still materials are not attached to the activity.
    One more thing, System Status  is  CRTD. Should i have to release it first ?
    Vikas

  • ECP at activity level not triggered

    Hi All, we are on EHP4 and we activated ECP at activity level in config "view to activate  .  Would appreciate any solution/inputs..

    i tried both the paths you mentioned, but they aren't available in EHP4.  the only option that's available at this path is 'Define CO versions for ECP'
    Besides, we made some progress where we heard from SAP that we need to activate enhancement EA-PLM in SFW5.  However, we are still weighing our options whether to go ahead with it as you can't revert back on this once activated.  so, need more study on this to ensure there are no side effects by implementing this function.
    thanks a lot for your involvement/inputs..
    PSPM

Maybe you are looking for

  • Can't merge "duplicate" libraries on the same computer

    MAC PRO OSX 10.6.8, Aperture 3.2.4 I'm trying to merge two libraries on the same mac (different drives). The libraries were duplicates at one time but have since changed - I've added photos to both of these libraries (unintentionally) to the point wh

  • What target settings for LCD monitor calibration?

    I have recently installed Spectraview II to calibrate my NEC LCD 2180WG monitor but have some doubts on which target settings to use as there are different opinions on color temp, gamma and intensity choices. I use my system purely for photo post-pro

  • Doubt in downloading the file in background in production

    Hi , we are facing the problem in one report which is used for downloading the data in a file........but this report is working in QA for both back ground and fore ground and giving the file.......but in Production if we run the same programe we r ge

  • IPAD Speakers not working properly after iOS 7 update

    Hi all... After updating iOS 7 my iPAD speakers are producing an horrible noise whenever I listen to music and while using skype it's really intolerable.. Can anyone help me to get rid of this?? Even while hearing songs through headset its producing

  • Demantra Workbench Collaborator:unable to connect to localhost

    Hi everyone, When I am clicking on the Collaborator Workbench to start it, my default browser (Mozilla) opens and it tries to connect to the domain: localhost but it is not able to connect. There is no error message. The browser just keeps on trying