Thursday, November 9, 2017

CRM ABAP load Core with component set


Code to set Core to a particular component.  This works if u r writing a stand-alone program or function.  If this is not written, then you may not get relations loaded and get issues.  You need to put right component set name (in place of 'IUICALL') in below code

DATA:  lr_core            TYPE REF TO cl_crm_bol_core.


  lr_core cl_crm_bol_core=>get_instance).

  CHECK lr_core IS BOUND.

  TRY.
      lr_core->load_component_setiv_component_set_name 'IUICALL' ).
    CATCH cx_crm_genil_general_error .
  ENDTRY.

Tuesday, November 7, 2017

BRF plus Links



Good Links:

http://www.xpertminds.net/blog/2015/3/9/brfplus-a-hidden-gem-within-your-sap-system

https://blogs.sap.com/2015/06/13/brf-much-more-than-just-mapping-z-tables/

https://archive.sap.com/discussions/thread/3959270


How to call BRF+ function from your ABAP code :
https://blogs.sap.com/2015/10/18/brfplus-basics-how-to-call-a-function/

 
Calling ABAP Function module inside BRF+ (you may need this some times):
https://blogs.sap.com/2016/04/22/creation-of-procedure-call-in-sap-brf/

Monday, October 30, 2017

Tuesday, October 17, 2017

Add entries to empty table via Debugging

Set Breakpoint in FM:- RS_TABLE_LIST_CREATE , line 274 .
Goto se16N- Enter the name of custom table . Set in Debug mode, Hit ‘Create entries:-

Now in debug mode the above FM will be called. Set dd021-mainflag = ‘X’ in debug mode.
Note:-dd02l-mainflag is called twice, thus you may have to set the value twice.



Wednesday, August 2, 2017

FM to add object to Transport

FM to add object to Transport from ABAP program

FM:   TR_APPEND_TO_COMM_OBJS_KEYS


Monday, July 17, 2017

Project tools



Nice tool for drawing Business Diagrams
https://www.draw.io/


Tool to call web services and flows
https://nodered.org/

Tuesday, May 23, 2017

ODATA UMC BADI



ODATA Badi :

CRM_IU_UMC_ODATA    (CRM)

ISU_UMC_ODATA
IF_ISU_UMC_ODATA_IMPL

Thursday, March 2, 2017

Hide your code from other developers


SAPLS38E
FM - LOCK_SOURCE
FM - EDITOR_USER_EXIT  - In this there is a custom user exit ZXSEUU08

In ZXSEUU08, you can put your conditions and RAISE CANCELLED exception which will then return 'Program cancelled' message to other developers who wants to access your part of code (FM, Subroutine etc..)

Thursday, February 16, 2017

Download SAPUI5 project


To download SAP UI5 Project from Neweaver System

gateway SE38 --> /UI5/UI5_REPOSITORY_LOAD --> project --> <Project name>

Wednesday, February 15, 2017

Authorization check Function module


FM that does Authorization check

Function module:  AUTH_CHECK_TCODE


Thursday, February 2, 2017

Multilevel Categorization (MLC)


Below link is good:
https://wiki.scn.sap.com/wiki/display/SAPITSM/Multilevel+Categorization


https://help.sap.com/saphelp_crm60/helpdata/en/44/03d07381f14c60e10000000a155369/content.htm?frameset=/en/44/03c69b2fcb4c61e10000000a155369/frameset.htm&current_toc=/en/43/0d10ebcc4f21abe10000000a1553f6/plain.htm&node_id=8



MLC is NOT transportable - It does not ask for transport

Importing to different systems:
This can be done using following ways
1. CATEGOTOOL - tcode to import and export via txt file  -  This does NOT import Subject codes (Infact erases existing subject codes in category Ids) - So, pls be careful using this
2. CRM_ERMS_CAT_AS_IMPORT in transaction SE38. - This needs RFC destination setup to connect between systems
3. Manually configure in all systems