Fact Sheet generation - CL_CRM_GENIL_CONTAINER_OBJECT issue

Hi Guys,
We are utilizing functionality of an Activity Management to schedule appointments using Activity Scheduling and Standalone appointment creation as well. We did use automatic Fact Sheet attachments to the appointments.
We introduced an ad hoc generation of PDF Fact sheet attachments into the appointments. We are testing our custom solution but we experienced one issue caused by SAP standard code.
Let me summarize our settings first
1.We turn off automatic FS generation in IMG CRM->Transactions->Settings for activities->Attach Fact Sheet to activities
(Role)G:ZZ:CRM1:SLS_USER; (Trans.Type)Z100; (Short Descriptio)Visit; (Language)EN; (AttchAutom)blank; (AttachMan) flag
2.We do use custom smartform ZCRM_FACTSHEET that is a copy of CRM_ACC_ACCOUNT_OVERVIEW_PRN
3. We created new class ZCL_UIU_PRN_ACCOUNT as a copy of CL_UIU_PRN_ACCOUNT
4. in View CRMV_PRN_CONTROL we have maintained following entries (Role)G:ZZ:CRM1:SLS_USER; (External Object Name)BuilHeader; (Form name) ZCRM_FACTSHEET; (Class/Interface)ZCL_UIU_PRN_ACCOUNT; (View) blank
5. in cluster CRMVC_BUIL_PRT we have maintaned following Related objects ro (Role)G:ZZ:CRM1:SLS_USER and (Ext. Object Name) BuilHeader
(External Object Name)BuilActivity-(Field name)ACTIVITIES; BuilAddress - ADDRESS_OVERVIEW; BuilContactPerson - CONTACTS; BuilInteractionHistory - HISTORY; BuilRelationship - RELATION_TYPES; BuilSalesArrangement - SALES_AREAS
Our custom program ZFCRM_CREATE_FACT_SHEET is basically selecting relevant appointments; Reading information about main partner using FM CRM_PARTNER_READ_OW and calling FM CRM_UIU_BP_PRINT_BACKGROUND. All export parameter are properly filled in.
This FM is basically calling our Z class ZCL_UIU_PRN_ACCOUNT based on above customizing. For simplification reasons imagine that ZCL_UIU_PRN_ACCOUNT is exact copy of standard SAP class CL_UIU_PRN_ACCOUNT where  CL_UIU_PRN_ACCOUNT is its superclass
The issue is with the method COLLECT_DATA and section of the code
lr_collection = lr_buil_entity->get_related_entities(
iv_relation_name = <ls_model>-relation_name ).
that returns data for internal tables lt_activities(open activities) and lt_history(closed activities). If we have scenario when we have 3 open and 8 closed activities:
a. When I generate the Fact Sheet from an Account directly in Web UI CL_CRM_BOL_CORE->get_related_entities is returning 3 records for lt_activities(open activities) and 8 lt_history(closed activities).
b. When I called it from our Z program the CL_CRM_BOL_CORE->get_related_entities is returning 11 records for lt_activities(open activities) and 11 lt_history(closed activities). It means mixed bag. And this is the issue.
I did analyze the standard SAP code and the section containing below
code is responsible for the mismatch
try to read children
if IV_RELATION_NAME is initial.
if IV_OWNED_ONLY = ABAP_TRUE.
LV_OBJ_LIST = IV_ENTITY->CONTAINER_PROXY-
>IF_GENIL_CONTAINER_OBJECT~GET_OWNED_CHILDREN( IV_AS_COPY = TRUE ).
else.
LV_OBJ_LIST = IV_ENTITY->CONTAINER_PROXY-
>IF_GENIL_CONTAINER_OBJECT~GET_CHILDREN( IV_AS_COPY = TRUE ).
endif.
elseif LV_MODE ne CL_CRM_BOL_ENTITY=>BYPASSING_BUFFER.
get relation state
>>this code>> LV_OBJ_LIST = IV_ENTITY->CONTAINER_PROXY-
>IF_GENIL_CONTAINER_OBJECT~GET_RELATION( IV_RELATION_NAME =
IV_RELATION_NAME
IV_AS_COPY = TRUE ).
read table IV_ENTITY->MY_MANAGER_ENTRY->RELATIONS with table key
RELATION_NAME = IV_RELATION_NAME
assigning
<REL_STATE>.
endif.
CL_CRM_GENIL_CONTAINER_OBJLISTCP->CONSTRUCTOR
data: LS_RELATION type GTYPE_RELATION,
LV_PARENT type ref to CL_CRM_GENIL_CONTAINER_OBJECT,
LV_ENTRY type ref to IF_GENIL_CONTAINER_OBJECT,
LV_CHILD_PROXY type ref to CL_CRM_GENIL_CONTAINER_OBJECT.
field-symbols: <REL> type CRMT_GENIL_CONT_RELAT
>>this code>> read table IV_PARENT_DATA_REF->RELATIONS assigning <REL> with table key RELATION_NAME = IS_FILTER-RELATION_NAME.
Table IV_PARENT_DATA_REF->RELATIONS is not filled for scenario b. at all. It is filled for scenario a. For our scenario b. it is missing relationships and that's the reason why we got mixed activities in BuilActivityRel and BuilHistoryRel..
Did you come across similar bug or do you know which note could potentially resolve this issue?
Thank you in advance.
-Milan

You might have to put breakpoint in function module CRM_UIU_BP_PRINT_BACKGROUND
Check the values in parameter - IT_BOL_RELATION
Also check values returned from querying table crmc_prn_contr2 (its at line 76 in our system).
Thanks,
Alwyn

Similar Messages

  • BW report in BP Fact Sheet in CIC0

    Hi Gurus,
    We wish to display BP specific BW reports in our CIC0 fact sheet. We have configured a web template and are able to view the BW view in the CIC0 fact sheet. The issue is, that we want the BW query to run automatically based on the BP confirmed in CIC0. Currently, we get the BW view wher we open a query and then populate the BP in the selection screen and run the report. The report then shows the expected data in fact sheet. However, ideally, the BP should automatically be passed in BW query as its already confirmed in CIC0, as it does when we get information from R/3 regarding a BP.
    Any help would be highly appreciated.
    Cheers!
    Amit

    Hi guys,
    I have the same problem, I need to call bw reports using the BP selected at cic0.
    I tried 2 options, I can display the bw reports but the BP is not send as a parameter.
    1- I created an action box in cic0 to call transaction RRMX in BW. I used BOR method, object type TSTC and method execute. This works fine to call the reports but can't find any option to send the bp as a parameter.
    2 - I created a bsp version of the bw reports and created an HTML call from CIC0. But the BW report doesn't accept parameters. Also I don't know how to send the BP as a parameter, it seems that I can only send Text.
    Let me know if you find another way to call bw reports from cic0.
    Cheers,
    Hernan.

  • Multiple Fact sheets issue  for Account

    Hi All,
    Need help to trigger the multiple fact sheets. SAP has given one SAP note "2104590 - Use of multiple PDF factsheets in account overview page".
    I have implemented that note  and entered Custom Class and Z smartform in the configuration .
    SM30->CRMV_PRN_CONTROL
    SM34->CRMVC_BUIL_PRT
    I am able to see the  buttons in account overview , but those are not triggering .
    Could you please help  me  in this issue.
    regards,rama

    You can use different AppleIDs for different purposes on one device. It is a matter of setting the desired ID for the fucntion (iCloud vs. itunes and Apps stores, for example), in the settings app. My wife has that configuration on her iPhone. She has her own AppleID set up for iCloud (for synching with Contacts and handling back ups, for example), but uses mine for itunes and app store access (I already have a number of apps since I have been using iOS devices foer a while, plus I have iTunes Match).
    The IDs are NOT tied to each other, however. There is no way to do that.

  • Fact Sheet in CIC0 - Display Issue

    All
    Hope you can help.  I am in the process of tidying up the roles & profiles through the users on our CRM system.
    We have a small number of users that use the FACT SHEET within trnsx CIC0, they used to have SAP_ALL assigned to them which I have now removed, this now has removed the Marketing Attributes section from view from the FACT SHEET
    I have ran AUTH Checks to assist and added where applicable - does anyone know why this area is not being displayed
    any help would be appreciated.
    regards
    Barry

    Bruno
    Thanks for replying.  I have ran \nsu53 to do the auth check and added objects as needed but still no display.
    However - during replying to your message I went back into BP to modify the Marketing Attributes of a customer and received 'You are not authoriesed' - this required object C_TCLA_BKA, after adding this I could now see the Marketing Attributes in the FACT SHEET
    so thanks
    Regards
    Barry

  • Sales orders are not shown within the ICWeb Account Fact Sheet

    Hi experts.
    We're having problems with the account fact sheet on the ICWeb.
    Even though our test customer has sale orders assigne when we select Order History, the fact sheet shows no data. Nevertheless, when we press button new order and then Order History, then the sales order`s list is available.
    By the way, we are using view ICCMP_ERP_ORDER.
    Please, can anyone help us?
    Thanks in advance.
    Almudena

    Hello,
    I'm facing the same issue at the moment. I have check all customizing, and I didn't find why the sales area, shipping and billing data are still blanck when I logged through CRM WEBUI.
    It will be very pleased, if you can tell me how you solved your issue ? maybe it will be the same for me
    Thanks in advance
    Best Regards
    Alexandra Rodriguez

  • BP Fact sheet XML error

    Hi
    In BP sales area data Fact sheet tab when I select the view BW BP master data the following error is showing. Why this is error is coming can anybody help me???
    Rendering ERROR
    XML parsing error (3006) in 67102328[stream], line 5, column 14: invalid symbol '<' in literal 'http://<'
    XML
    XSLT
    CRM_CCKPT_CFS_SERVICE_DEFAULT
    Regards
    VN

    Hi,
    I had similar issue and resolved it.
    In our case the issue occured for only specific BPs. So this solution may be helpful where the issue occurs for specific BPs.
    The issue occurs because of special characters Ex : "#" entered in Long text.
    Once you delete these special characters in the text field the issue will be resolved.
    Hope it helps..
    VJ

  • Campaign data in BP Fact Sheet

    Hello,
    What are the prerequisites so as to display the campaign data in the BP Fact Sheet?
    Isn't it enough for the BP to be a member of the Target Group which is assigned in the Campaign?
    I have noticed that Campaign Data is displayed in the BP Fact Sheet, only when the BP is the employee Responsible for the Campaign. This is not the case in our Business Scenario.
    Best Regards,
    Nikolas.

    Hello Nikolaos Kapsalis,
    I belive you have created an oss message for this issue. If you haven't, then he is the response for your question
    Unfortunatelly this is the standard behaviour, the marketing factsheet shows the marketing campaigns that this account is responsible, not the campaigns that this account is in the target group. But if you need this behaviour it's an easy modification. You only need to enhance the component and call the class with the correct parameter for your needs.
    Thanks
    Raja Pamireddy
    Moderator

  • Link title not displaying properly in fact sheet

    Hi experts,
    I have an issue with fact sheet of BP here, the link titles, e.g. "Activities", "Account Billing Data", "Account Sales Data" etc are displaying like "BP_FACTSHEET0001", "BP_FACTSHEET0002"...
    I checked configuration in IMG CRM->UI Framework->Fact Sheet->Maintain Fact Sheet. The descriptions and translation look fine.
    Any suggestions for this?
    Thanks
    Shane

    Hi,
    Beside the customizing in spro, it is possible to make changes to the title in bsp_wd_cmpwb configuration also, please check whether you are able to see the correct description in the available fact sheet view and assigned fact sheet view.
    by the why, what CRM release you are on?
    Hongyan

  • Business partner in Fact Sheet for Individual object

    Hi Folks,
    I am unable to see the assigned business partners on the Fact Sheet for an Individual object.  I have created the iObject in the portal.  Here, I could not assign any BP's during the creation as the system does not have this option.  I then went ahead and created an Installed Base and assigned this iobject to it in the CRM system in transaction [IB51] "Create Installed Base".  I then went ahead and assigned the Business Partners to this iObject. 
    The situation is that I can see the assigned Business Partners in the Portal for this iObject/Component for the Installed Base in the "Installed Bases/Components" tab but when i go to the "Fact Sheet for Installed Bases" tab I am unable to see the assigned BP's.
    I haven't been able to find any documentation on it either.  Can someone please help.
    Thanks.

    Hi,
    Did you ever solve this issue? 
    I too am having the same problem and cannot display the factsheet or summary using the 'Go To' button in EP.
    Any help would be much appreciated.
    Regards
    Jo

  • View in Fact Sheet not showing information

    When a user displays an IS-U customer information using transaction code CIC0, only the Business Partner information is populated with details.  The custom view that we created under Fact Sheet doesnt show anything. 
    Where do you fix this issue?  I checked the security roles assigned and everyone in their team have the same security roles so Im wondering why this particular user cannot display the customer information in the Fact Sheet View.

    When a user displays an IS-U customer information using transaction code CIC0, only the Business Partner information is populated with details.  The custom view that we created under Fact Sheet doesnt show anything. 
    Where do you fix this issue?  I checked the security roles assigned and everyone in their team have the same security roles so Im wondering why this particular user cannot display the customer information in the Fact Sheet View.

  • Fact Sheet - Wrong Sold to visible

    Hi All,
    I have an issue for a particular user. Problem is wrong sold to party is visible in fact sheet.
    Just to brief the issue.. "A" is the sold to party for "B" (B is ship to). when a user opens B's fact sheet... the fact sheet displayong "C" as the sold to for B. Actually A is the sold to.
    The issue is occuring for only one user. If some other user accesses B's fact sheet.. then fact sheet shows correct details as A is the sold to for B. So the issue is only fro one user. Hope i have explained the issue clearly !.
    I have checked the relationship in CRM, R/3 and BW aswell. in all systems relationship exists between A and B. There is no relationship between C & (A or B).
    Authorization view :When compared the problematic user with the user who can see correct details, the roles and authorization is same for both users.
    could someone please shed some light on this issue.
    Thanks and Regards,
    Vijay.

    Jacob,
    check note 1040229.
    you have to maintain cluster view CRMV_BUIL_PRT (tx sm34)
    there you have to link your newly created business role (its PFCG role) to the form view CRM_ACCOUNT_OVERVIEW_PRN
    and to class/interface CL_UIU_PRN_ACCOUNT.
    should work this way
    regards,
    Ineke

  • Fact Sheet for Account under GoTo button CRM 5.0

    Hi all,
      I'm trying to display the fact sheet in Account, displayed in EP. It displays error page. But when try accessing the business partner cockpit using CRMD_ORDER_BP, I able to get the factsheet display. Is there any config I need to maintain separately for fact sheet in EP. Or is there any notes that I need to apply to get the same ?
    Please advice me in this regards.
    Thanks,
    Jagadees K Arumugam

    Hi,
    Did you ever solve this issue? 
    I too am having the same problem and cannot display the factsheet or summary using the 'Go To' button in EP.
    Any help would be much appreciated.
    Regards
    Jo

  • Fact sheet and RFC connections

    Hi All,
    I have an issue regarding the working of fact sheet. And I suspect authorization issues.
    Here is my scenario: I am accesing the BSP application (CRMM_ACCOUNT) in portal. For the fact sheet data will be coming from BW server if I am not wrong.  When I click on the fact sheet in accounts application screen just refreshes, it wont show any error.
    Here are my questions,
    1) From CRM server do we have to maintain any RFC connections for the user to access BW or they will be there automatically.
    2) from portal side, do we need to maintain any other thing together with user mapping for Portal, CRM and BW systems
    however, i can see the fact sheet in sap gui and in web client.
    I read SAP notes regarding this, nothig worked out fine,
    Any suggestions or help is greatly appreciated.
    Thanks
    Murthy

    Hello, Murthy,
    Do you want to access the standard account factsheet delivered by SAP? Normally when you select an account inside the Account BSP in the portal and click on Factsheet button, you are brought to a new portal page that contains SAP-delivered iViews with factsheet data. It is possible for you to add your own factsheet iViews to that page (I can point you to the corresponding doc if you need such addition).
    You mention that when you click on Fact Sheet button in the BSP application, no new portal page is brought up. What exact version of CRM portal package you use? At this stage, I don't see problem with BW connection, because the backend BW system is called once the iViews are loaded, but in your case those iViews are not called...
    Sincerely,
    Arman

  • Fact sheet to show up Campaign Elements

    Hi,
    Is it possible to show Campaign Elements in Fact sheet.
    Campaign element needs to be based on the customer which is in Target group of that particular BP.
    It is not on the basis of  Employee responsible of campaign element.
    Say for example if customer XYZ  is in Target group of Campaign element 1234. When I confirm the BP & open fact sheet it should display me campaign element 1234 in the fact sheet.
    Cheers,
    RK

    Well you can download and install the PSE11 trial from http://prodesigntools.com/photoshop-elements-11-direct-download-links-pse-premiere-pre.htm l to get the PSE11 versions of the Lighting files. Follow their very important instructions EXACTLY or you will likely encounter authorisation errors or download the latest version instead.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • Fact Sheet Account

    Hi all,
    I need to do this solution for a BP fact sheet ,
    is to create a SmartForm which can be called using a push button on appl CRMM_ACCOUNT screen.
    we need to call a smartform which will contain all fact sheet data in it when the user clicks the button,
    If any one knows abt fact sheet in more details please help.....
    Thanks
    ANiket

    Hello,
    I'm facing the same issue at the moment. I have check all customizing, and I didn't find why the sales area, shipping and billing data are still blanck when I logged through CRM WEBUI.
    It will be very pleased, if you can tell me how you solved your issue ? maybe it will be the same for me
    Thanks in advance
    Best Regards
    Alexandra Rodriguez

Maybe you are looking for