Issue with Role Defaulting

Hi friends..
I am facing a strange issue when i open a BP belonging to the role ZDCBA(Custom role). Sold to party role is getting added in the roles assignment role. i cross checked the roles associated to the BP Number in the table BUT100 and it has only one role that is ZDCBA, but i am not able to investigate how this Soldto(crm000) is getting added by default in WEB UI.
even i tried debugging, in get related entities methods for the BUILROLESREL, it is retreiveing both ZDCBA & Sold to roles.
Can some one help me out what could be the reason for this behavior.
Thanks,
Udaya

Hi Smita,
I have a business partner with the role ZDCBA created in WEB UI. After creating this account, when i open this bp again, i am seeing sold to party role getting displayed in the roles assigment block along with ZDCBA. I cross checked the same in BUT100 for this BP and i can find only one record with the role ZDCBA. I am not understanding how the sold to party is getting displayed on to web ui. This behavior is not replicated for Ship to party and other roles.
for investigating the same, i have written a Report program and in the get related entities method, it is giving 2 roles.
I tried debugging into the method get_related_entities, i am not able to figure from where the CRM000 record is pulled.
Since it is completely OO ABAP, i am able to see objects and not able to really look the values inside these..
Any pointers on this will be really very helpful..
Thanks,
Udaya
REPORT  ztest_roles.
*Parameter: test type c.
DATA:     lr_core                    TYPE REF TO cl_crm_bol_core,
          lr_entity_partner          TYPE REF TO cl_crm_bol_entity,
          lv_guid                    TYPE crmt_genil_object_guid,
          lr_collection_roles        type ref to if_bol_bo_col,
          ls_attributes              type crmt_bupa_il_roles ,
          lr_itr_roles               type ref to if_bol_bo_col_iterator,
          ls_roles                   type crmt_bupa_il_roles,
          lr_role                    TYPE REF TO cl_crm_bol_entity,
          i_roles                    type table of crmt_bupa_il_roles,
          qs                         type ref to CL_CRM_BOL_QUERY_SERVICE,
          result                     type ref to IF_BOL_ENTITY_COL,
          ent                        type ref to cl_crm_bol_core. "IF_BOL_BO_PROPERTY_ACCESS.
    lv_guid = '548698C7E7E06F4FAD9528162C993358'.
    lr_core = cl_crm_bol_core=>get_instance( ).
    lr_core->start_up('ALL').
    lr_entity_partner = lr_core->get_root_entity( iv_object_name = 'BuilHeader' iv_object_guid = lv_guid )."#EC NOTEXT
*    qs = cl_crm_bol_query_service=>get_instance('BuilHeader').
*    qs->set_property( iv_attr_name = 'object_id' iv_value = lv_guid ) .
*    result ?= qs->get_query_result( ).
*    ent ?= result->get_first( ).
*    ent = ent->get_related_entities( 'BuilRolesRel' ).
*    lr_collection_roles ?= ent->get_related_entities( iv_relation_name = 'BuilRolesRel' ).
    lr_collection_roles ?= lr_entity_partner->get_related_entities( iv_relation_name = 'BuilRolesRel' ).
    IF lr_collection_roles IS BOUND
           AND lr_collection_roles->size( ) GT 0.
      lr_itr_roles ?= lr_collection_roles->get_iterator( ).
      lr_role ?= lr_itr_roles->get_first( ).
      WHILE lr_role IS BOUND.
        CLEAR ls_roles.
        lr_role->get_properties( IMPORTING es_attributes = ls_attributes ).
        ls_roles = ls_attributes-data.
        APPEND ls_roles TO i_roles.
        lr_role ?= lr_itr_roles->get_next( ).
      ENDWHILE.
    ENDIF.
    CLEAR LS_ROLES.
    LOOP AT I_ROLES INTO LS_ROLES.
    WRITE LS_ROLES-PARTNERROLE.
    ENDLOOP.

Similar Messages

  • HR_MAINTAIN_MASTERDATA issue with PA0171 defaults

    Greetings experts!
    I'm using HR_MAINTAIN_MASTERDATA to create a participant.  I'm running into trouble with PA0171.  The defaults are not correct and even if I hard-code values into the proposed-values table it ignores them.
    I thought I'd try just not sending over 171 at all and then, after HR_MAINTAIN_MASTERDATA finished, I'd use HR_INFOTYPE_OPERATION to create it.  Curiously, however, HR_MAINTAIN_MASTERDATA still tries to populate 171 even though I'm not sending it (I'm setting the DIALOG_MODE parameter to 2 so I can see each screen as it's processed).  Apparently, something else is "triggering" it.
    When I run PA40 the values are defaulted correctly so I must be doing something out of order, perhaps?  The best scenario would for 171 to be defaulted to the correct values automatically but I must be missing something for it to default to the wrong values.
    Any suggestions?
    Here's the order I'm sending in the proposed values:
    0000
    0001
    0002
    0006
    0105
    0008
    0041
    UPDATE
    Also, a colleague of mine discovered that in
    program MP017100
      screen 2000 (infotype 171)
        module p0171
          FM 'HR_BEN_GET_FROM_FEATURE_BAREA'
            subroutine sap_get_emp_barea_from_feature
              subroutine fill_pme30
    there is a call to "HR_READ_INFOTYPE" on line 1352 of "LHRBEN00FEATUREF01" and this always returns "8" meaning no records were found.  Puzzled, we looked at infotype 0000 with the pernr in SE11 and sure enough there's no data there.
    I thought changing to LUW_MODE param of HR_MAINTAIN_MASTERDATA to "0" might solve that issue but it doesn't seem to have any affect.
    Many thanks!
    Edited by: Steve King on Dec 30, 2008 10:09 PM

    Steve,
    The reason for incorrect default values in IT 0171 is, there is code in PBO module of MP017100 which defaults value from features BAREA, BENGR and BSTAT only if the mode is not batch.
    To make it work, you can mimic the code that exist in "module p0171 output" in PBAS0001 user exit to default values.
    regards
    Sridhar

  • Crystal report Export/Print issue with Non default websites

    Hello ,
    I have an issue and its driving me nuts.
    My problem i guess with the crystal reports. Might also be with IIS.
    We have developed an website on VS2008. This website is configured on IIS 8.5
    The server on which iis8.5 runs is a virtual server.
    I have configured the website to run as two different virtual directories as mentioned below;
    1) To run under default website (servername/virtualdirectory)
    2) To run under complete separate website (www.abc.com/virtualdirectory)
    if i  run crystal report using the servername/virtualdirectory, then the report is rendered fine and i can export the results also to any format and print successfully.
    But when i run the crystal report using www.abc.com/virtualdirectory, then the report renders fine but i cannot export the results nor print. Nothing happens when i click the export button.
    Any help will be highly appreciated.
    Thanks
    Abdul Aleem

    In addition to Don's suggestion. Remember that almost any action in the viewer will cause a post back - including clicking on the export button. If the report is not in session, the post back may fail and nothing will happen. See the following code on how to place a report object into a session:
    1985571 - How to use sessions in web applications using the Crystal Reports viewer (the complete code)
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • PS3 issues with roles & custom policy

    Hi
    We are pursuing two cases with Oracle support for SOA suite Ps3 ( on linux platform) - anyone who faced the same issues?
    1. Custom policies - in PS2 , everything works fine. In PS3, if we click on create in the policies page - it takes a long long time to show the create page. Sometimes it times out as well
    2. Weblogic vs SOA roles. In PS2, one person can get weblogic monitor role & SOA deployer/designer role & do a composite deployment. In PS3, for a SOA deployment, Weblogic admin role is needed ( irrespective of the role defined in FMW EM) .
    Thx
    Jay

    You should be able to deploy projects with a user having operator access. Admin role is not required for deployment. You may refer -
    http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10226/appx_roles_privs.htm#BABIHDFJ
    In PS3, if we click on create in the policies page - it takes a long long time to show the create page. Sometimes it times out as wellMay be an environment specific issue. Better track it through a SR.
    Regards,
    Anuj

  • Authorization Issues with ROles

    Hi Experts,
    We have total Set of 50 reports and work books...
    We need to give around 20(reports and work books) to one user and 20 to another user and 10 to another user...
    One user should not see another's reports..What should we do now...How to control this issue...Please help us...
    Thanks
    Vissu

    HI Just assign your queries and workbooks to the repective roles.
    Roles are basically for this issues only so that one user can access only queries for the roles which he is authorized.
    1)Just go to the rrmx trancation or query designer and open workbook or query and there you have an option third from left to assign to the roles.
    2)Just click on any query and the click on that option you will get all of the roles option there and the you can assign which ever role you want.
    But it seems you haven't created any role.
    just go to PFCG transaction and there you can give the name of the role and whatever user needs to be assigend to that role.in the Menu tab you can see the workbooks and queries which are assidned to that role.
    The users that are assigned to that respective role only will be able to see the queries.
    Thanks

  • Calendar issue with the new iphone 6 plus

    I'm wondering if anyone is experiencing a problem with the default iphone calendar for iphone 6 plus?  I have consulted with apple's tech specialist both in store and online and they can't seem to figure out what's wrong.   They have apparently forwarded the issue to the engineers.  As everyone may know, dots appear under the date if you have added an event to the specific calendar date then the elaboration of the specific event appears on the bottom linear view.  What i have been experiencing on my iphone 6 plus is that the dots disappear as i scroll further and further down to future months and when i do scroll back up the dots also randomly disappears with past months/events.  The elaborated event in the linear view is still there, however, when u highlight the date.  Why is that? We've already rebooted my phone, checked all possible settings issue, unsync then resynced it to icloud, resigned to icloud, reset all settings and even changed to a new phone (thinking it was a hardware defect) but the dots were still disappearing even with the new device.  I even turned off icloud on all my devices and just used the usb cord to sync it from imac to iphone! This nightmare is still happening even without icloud! However, it doesn't do that to my iphone 5! All dots with corresponding events appear on all weeks/months on my iphone 5 calendar.
    Hopefully, someone is experiencing the same issue with their default calendar on the new iphone 6 plus.    I tried my best to describe the issue, so i hope this made sense.  

    M glad I'm not the only one experiencing this!  Because when i spoke to apple techs it sounded like mine was an isolated case as they have not heard any complaints about this! I'll post something on this thread once apple techs have figured it out and get back to me! They initially put my icloud account on troubleshooting mode so they can look into it, however, it wasn't an icloud issue....so, they have yet to firgure it out!  I have already sent them screenshots of what my calendar was doing to my phone.

  • .mp3 files that used to play now say 'the file is corrupt' but they play fine in google crome. Do you have problems with your default mp3 player?

    I've posted a number of mp3 file links on our website. All have been functioning and playing well until this week, they are no longer playing when clicked on. The new tab opens, thinks, then says that the "video cannot be played because the file is corrupt". These files are able to be downloaded and played from individual computers and will play fine in other browsers - such as Google Chrome.
    Not sure if there is an issue with Firefox default mp3 player?

    I assume that this is because of the way the MP3 file is encoded.
    Sample rate: 22050 Hz
    Bitrate: 32 kb/s
    If I open the file in a tab then I see a media player, but inspecting the page source shows a video tag with no source attribute, so Firefox seems to have a problem with decoding the media header despite the audio/mpeg content type.
    I don't know what to do about this apart from playing the file in an external player or play the file via an object or embed tag to make Firefox use a plugin.
    Using a bookmarklet like this to force an audio tag doesn't work as well:
    <pre><nowiki>data:text/html,<audio src="%S" controls>
    </nowiki></pre>

  • Issue with setting a default value to a Tabular Form field

    Hi -
    I'm running into an issue setting the default value of a tabular form column. I'm trying to set the default value to the row number (#rownum#). This used to work in previous versions, but now it's returning 0. Is there a was to set this value in the default value attribute of the field with a substitution string?
    Thank you in advance for help!

    Share with us what worked in previous versions.
    Jeff

  • Issue with Default Variable in WAD after Java Patch 7.01.7.31

    Hello all,
    I'm running into an issue with the Web Application Designer Template execution for a particular default variable. This started occuring after Java Patch 7.01.7.31 we had implented over the weekend.
    The issue is when Executing the WAD Template, we have a selection screen with a variable with default values assigned to it. When leaving the default values and hitting Ok to execute  through the screen does not register and stays as is and I get a message at the top with the following: Characteristic Prob % Number has no master data for "1.00" or you do not have authorization.
    This only seems to occur for this default variable on info object Prob % Number, the other default variables seem to work fine. Also another note when clearing out the values it returns data and executes through. The value 1.00 is also a valid value in the cube and also in the output display. If we run this report in the BEx analyzer, the selection screen executes through with the default variable perfectly fine, this is only an issue with the Web Application Designer Template.
    Has anyone ran into this? I've searched and have not found any notes as of yet.
    Thank you,
    -Andy

    Dear Andy,
    Please raise this to SAP, seems like a strange problem this needs to be addressed by OSS note only.
    Close this thread once you get a solution.
    Regards.
    Den

  • Default signature issues with Mac Mail

    All my emails persist with a default signature even when I change email addresses with single associated signatures. It merely keeps the first signature and tacks on the selected signature. I have removed all signatures and started again, assigning signatures to each email addie, but still the most used signature always appears. If I try to select none from the drop down menu and nothing happens at all. Any ideas?

    Hello kgoody,
    I have not been able to use my mac mail for 2 months now because of the server issue. "Try later" or "Try with selected server " were at the beginning of this nightmare. Since then I have not received a single email in the inbox. I downloaded an article "How to use Gmail with Apple's Mail" by Stephen Korecky and tried to fix the problem. It did not work because the Apple Mail windows did not show what they were supposed to. I called my software wizard and he said he will have to come and fix it. He did not show up yet. It is very frustrating.
    Etela

  • Role reconciliation issue with user ID in acting (HDA) position

    Hi all,
    I am experiencing an issue with my role reconciliation for user who is in a HDA (acting) position. This user has a 008 relationship to her own position and a A081 relationship to the position she is acting in. Roles are assigned to these 2 positions.
    After the programme PFCG_TIME_DEPENDENCY has been run, I would assume the user to acquire the roles assigned to the HDA position and lose the roles assigned to her in her original position. However, this isn't the case.
    I am just wondering whether anyone else has encountered this issue and know of a solution to this.
    Thank you.
    Kim

    Kim,
    After the programme PFCG_TIME_DEPENDENCY has been run, I would assume the user to acquire the roles assigned to the HDA position and lose the roles assigned to her in her original position. However, this isn't the case.
    Before PFUD takes place, change of assignment should be done in PA40(automatically or manually depending on your setup).
    Thanks,
    Sri

  • I upgraded to Firefox 6 random websites are using illegible fonts from my computer instead of the default. No issues with Firefox 5 or any other browser I use. Each time I open Firefox or reinstall it a different illegible font appears. Please help.

    Firefox 6 using incorrect fonts.

    When I delete the font that keeps showing up as the default, a new illegible font appears. The fonts are not 'garbled' they are just decorative typefaces that are being grabbed from my computer. I have never had an issue with my fonts on old Firefox versions or other browsers like chrome, safari, etc., so I don't think the issue is my fonts. I also don't want to have to delete all the fonts off of my computer. I uploaded another photo of when I deleted the font that was appearing before. Please help if anyone has found a solution to this problem with Firefox 6+ :/

  • Issue with Reviewer role

    Hi,
    Is anyone experiencing issues with the Reviewer role in Contribute?
    I have applied the Author > Review > Approver > Publish workflow association to templates. There have been no issues with the author, approver, publisher or administrator roles. However, if a draft is Sent for Review to someone with the reviewer role, the page does not display. The person with this role is able to see pages when they browse Contribute or when they edit a draft themselves, just not when a draft is sent to them.
    If the draft is Sent for Review to an Approver/Publisher/Administrator, they are able to view the draft.
    I have checked the role settings for the Reviewer and cannot see any problems with their settings. Any suggestions?
    Thanks.

    Hi Dominic
    That is correct, the page is not rendering when the reviewer selects the page received.
    Thanks

  • Issue with Inactive Approver Role in Workflow definition

    Hi Experts,
    we are having issue with Inactive Approver Role in workflow definitions.
    we have created workflow for Master agreements and Projects. Phases and workflow are working fine.
    But the issue is when a programmatically added approver has completed the approval activity, collaborator role is not changing from approver role to Inactive Approver Role mentioned in workflow definition. For example, you might select Reviewer in Inactive Approver Role, Then Selected collaborator role to be given to programmatically added approvers when the approval activity is completed.
    This is functionality not happening when project or contract document approved and workflow completed in project and MA. we have followed all the standard functionality when we have created workflow. Please see screen shot for the same.
    Can anyone please tell me is there any functionality we missed it or do we need to write any script in xpdl or do we need to check anything with collaborator role or with security profiles.
    we have checked with other roles also same issue coming.
    This Reviewer is in active state and have Readonly profile. We don't have Pre script in this workflow because we are using standard approval.
    Thanks in advance!
    Lava

    Thanks gary for your helpful answer.
    As per your answer We have added the approver role in the prescript so that it gets added programmatically , still no luck.
    here is the script we wrote in prescript.
    import com.sap.eso.api.common.*;
    import com.sap.eso.api.projects.*;
    import com.sap.odp.api.workflow.*;
    import com.sap.odp.api.usermgmt.masterdata.*;
    import com.sap.eso.api.doc.collaboration.*;
    import com.sap.eso.api.doccommon.masterdata.*;
    import com.sap.eso.api.ibean.*;
    import com.sap.odp.api.ibean.*;
    import com.sap.eso.api.contracts.*;
    import com.sap.odp.api.doc.collaboration.*;
    collaboratorsCollection = doc.getCollectionMetadata("COLLABORATORS").get(doc);
    if (collaboratorsCollection.size() > 0)
       for (int i = collaboratorsCollection.size() - 1; i >= 0; --i)
            collaboratorsCollection_member = collaboratorsCollection.get(i);
            if (hasValue(collaboratorsCollection_member))
               collaboratorRole = collaboratorsCollection_member.getCollaboratorRole().getDisplayName();
                // Get approver of Role "Approver".
               if(collaboratorRole.equals("Approver"))
                    principal = collaboratorsCollection_member.getPrincipal();
    if (hasValue(principal))
         addApprover(principal);
    Do you have any other suggestions? or if you have any related code snippet please share with us.

  • [svn:fx-trunk] 9703: Addressing NativeDragManager issue where we would inadvertently replace the users drag drag feedback with our default .

    Revision: 9703
    Author:   [email protected]
    Date:     2009-08-27 12:51:06 -0700 (Thu, 27 Aug 2009)
    Log Message:
    Addressing NativeDragManager issue where we would inadvertently replace the users drag drag feedback with our default.
    QE notes: None
    Doc notes:  None     
    Bugs: SDK-20458
    Reviewer: Jason
    Tests run: Checkin
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-20458
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as

Maybe you are looking for