Pages

Showing posts with label CRM. Show all posts
Showing posts with label CRM. Show all posts

Friday, November 11, 2016

SAP CRM Business Partner and Set type data tables

SAP CRM Business Partner and Set type data tables



Following are the tables that will come in handy, when you have to find out where is the relationship stored between BP Guid and Set Types Guid (Example, Shipping, Billing, Sales Tab's).
Here are the tables

CRMD_ORGMAN – Organization unit set
BUT000 - Business Partner
CRMM_BUT_LNK0011 - Business Partner - Sales Rule
CRMM_BUT_SET0010 - Business Partner: Sales Data
CRMM_BUT_LNK0021 - Business Partner - Shipping Rule
CRMM_BUT_SET0020 - Business Partner: Shipping Data
CRMM_BUT_LNK0031 - Business Partner - Billing Rule
CRMM_BUT_SET0030 - Business Partner: Billing Data
CRMM_BUT_LNK0141 - Business Partner Organization Rule
CRMM_BUT_SET0140 - Business Partner Organization Rule Period

Tuesday, August 9, 2016

How to Delete an already released transport request or task

     
          How to Delete an already released transport request or task .


        Is it possible to delete a task/transport request once it is set to release ? 
        Of course, we can But we  have to change status of the request to do so.



       1. Goto  transaction SA38 ( or SE38 )and run program: RDDIT076 . 

         
     



   

 2.  Set your request number and run the program, A list with Transport request and tasks will appear 







 3 . Double click on the TR or task you want to unlock. A popup will appear for change and display (Expert mode).
      

   PS : in case the expert mode is not enable go down to see the Alternative approach. 

  
 4.   On the popup window click on display/change button or press F9. 




5. Change the Status from R to D (Or N to D in case only task is released ).




6.  Click on ok button. A confirmation popup will appear click on yes. 

7. The TR is set to modifiable state,Now you can delete Transport request.    



-------------------------------------------------------------------------------------------------------------------------

PS : Sometime user didn't have the proper authorisation for the expert mode(i.e only display access is given  ) as the auth. object   S_CTS_ADMI  is missing, You can  ask you Basic consultant for the this access or to unlock the TR.

Alternate solution :( surpass the authority check in debugging mode.)  

Goto tcode SE37 , Open function module TR_AUTHORITY_CHECK_ADMIN. place a session  debugger at line 23. 





 Execute  report RDDIT076 as mentioned in the step 1 and 2 above, 

Debugger will hit as soon as you click on the TR  , in the debug mode forcefully go inside the If condition ( place the cursor on line 24 and press F12). execute the return condition. 

The debugger will get hit couples of time so repeat the same steps. After the execution is completed you can see the popup with Expert mode is enable. 





Follow the step 4 and rest afterwards  :-) 



      

   

Monday, July 11, 2016

CRM Webui Keyboard Shortcuts



List of shortcut keys:



1) F2 – Technical data





2) F6 – HTML Print preview





3) CTRL + SHIFT + F7 – Performance Information




to close  the window  we need  to press ‘CTRL + SHIFT + F7’ keys again.
Also ‘Create Memory Snapshot’ has the same functionality as a memory snapshot in S_MEMORY_INSPECTOR. ‘Start Backend Runtime Analysis’ creates a runtime trace that can be read via transaction SAT.

4) CTRL + ALT + F2 – System Information 






5 ) SHIFT+ALT+F2 for "view hierarchy





6) conditional break point using ALT+F2




 7) SHIFT+ALT+CTRL+F2 all short cut keys








Friday, June 24, 2016

How to find view name and component from transport request



SAP CRM webui provides this excellent feature to change layout of  view based on our requirement.

When a new screen layout is created a Guid is generated by system (context id), the Screen layout customisation is stored as an XML file,Based on the context system at run time knows which screen layout need to be loaded.

As a developer we are are aware of the change done on screen by us ,while sometime it is difficult to know the views/component name as their might be a lot of views changed or maybe other developers are also working on the same component.      

In Transport request we can only see the guids and and some others node, like in the below picture:




this is not what we are looking for right ?

The solution of our question is BSPC_DL_XMLSTRX2.


"BSPC_DL_XMLSTRX2 is a standard SAP Table which is used to store Storagetable for XML layout descriptions information."

1. Goto Se16/SE11 give the table name as BSPC_DL_XMLSTRX2.



2. In the Context id field paste the guid(or list of guid ) copied from the transport request.



3. Execute. you will get View and component name with  role key and other fields .




If it was useful, you are welcome to leave a comment :-) . 

Wednesday, June 15, 2016

How to create data loss popup in CRM WebUI



When navigating from one custom component to other components or documents using Quick links or Navigation bar links we need to restrain user from accidentally deleting the  unsaved data, to achieve this we prompt data loss popup, which requires user input to proceed further. 

Below are the steps to create a data loss popup: 



STEP 1: Create a method with the name ON_BEFORE_WA_CONTENT_CHANGE in window                    implementation class with following properties:

                                      Level : Instance Method
                                     Visibility: Protected

STEP 2: Click on the method and click on Detail View button which is near parameters and set the                   following settings by clicking on Event handler for checkbox:

                                     Class/Interface: CL_BSP_WD_VIEW_MANAGER
                                      Event: BEFORE_WORKAREA_CONTENT_CHANGE
           and save the settings.
STEP 3:  Set the following settings for parameters:
                                     Parameter: DATA_LOSS_HANDLER
                                     Type: Importing
                                     Typing Method: Type Ref To
                                     Associated Type: IF_BSP_WD_DATA_LOSS_HANDLER


STEP 4: Write the following code into the above method:
  data_loss_handler->set_save_handlerme ).
  data_loss_handler
->set_revert_handlerme ).
  data_loss_handler
->set_cancel_handlerme ).
  data_loss_handler->trigger_data_loss_handling( ).

 

STEP 5: Redefine the method DO_VIEW_INIT_ON_ACTIVATION and write the following line: 
        
            SET HANDLER on_before_wa_content_change ACTIVATION abap_true.

STEP 6: Add interface IF_BSP_WD_EVENT_HANDLER in main your window. Implement the method IF_BSP_WD_EVENT_HANDLER~HANDLE_EVENT

CASE iv_event_name.
    WHEN if_bsp_wd_data_loss_handler=>save_event.
    rv_success = abap_true.
    WHEN if_bsp_wd_data_loss_handler=>revert_event.
     rv_success = abap_true.
    WHEN if_bsp_wd_data_loss_handler=>cancel_event.
     ...
 ENDCASE.
 

 
 






And write the logic in these cases and when yes or no button is pressed leaves current component.

Wednesday, June 8, 2016

SAP CRM interview Question

These are some Interview Questions i was asked during my interviews . I will keep posting  the new question and answer.


1) CRM BOL Programming 




31. What is business role ?
32. How to create Business Role and what is Business role customizing ?
33. What is Navigation bar customizing ?
34 Have you ever created TBUI ?
35 What is logical link and how to create logical link ?
36 How to create a custom component ?
37 What is the difference between BOL and GENIL ?
38 What is context ?
39 How to handle event ?
40 What is the difference AET and EEWB ?
41 What is the difference between MACRO and SUB-ROUTINE ?
42 Can we debug a MACRO ?
43 What is abstract method ? What is its use ?
43 What is abstract class ?