Friday, April 22, 2011

CRM Middleware Flow

From R/3 to CRM
  1. At R/3, data stored in BAPI structure and written to an outbound queue
  2. Inbound Queue in CRM has the same name as Outbound Queue in R/3, same queue is used for same objects
  3. R/3 inbound Adapter convert data received by CRM to a uniform internal format, by using mapping function module to read data from BAPI structure and converts it to an mBDOC (messaging BDoc) 
  4. mBDoc is saved in BDoc store in CRM
  5. Validation performs checking using validation service, it calls up the check of CRM application which is used for dialog users too
  6. Data is saved to Online Database if no errors. Somebody needs to check several times a day to make sure all errors (BDoc validation error) are solved.
 From CRM to R/3
  1. Data Validation by CRM application
  2. A mBDoc includes the change is created and saved in CRM
  3. The change made is written to a CSA queue. CSA queue provides data in CRM system to other systems.
  4. Replication Service is called that determines systems to which the changed data is to be sent
  5. R/3 outbound adapter converts mBDoc data to a BAPI structure
  6. Outbound queue in CRM collect data and keep the processing in CRM separate from further processing in R/3
  7. The data is transferred sequentially to R/3.

Thursday, April 21, 2011

EFCS - Form Class Maintenance (Part 2)


Example of Form Class:
  • IS_U_CA_DUNNING
  • Dunning Notice
  • IS_U_CA_INSTPLAN 
  • Installment Plan Notification
  • IS_U_BI_BILL
  • IS-U Bill
  • IS_U_DM_MR_ORDER
  • Print Meter Reading Order

Tuesday, April 19, 2011

How to configure Shop Paper (Print Program & Forms)?



1. Go to SPRO -> SAP Customizing Implementation Guide -> Plant Maintenance and Customer Service -> Maintenance and Service Processing -> Basic Settings -> Print Control -> Define Shop Papers, Forms and Output Programs.


2. Choose Define Shop Papers


3. Choose Work Area "N" (Notification (PM/QM..))


4. You will find the Output Program (for e.g. "RIPRAT00") and the Form name ("PM_COMMON")


Maintenance View: V_T390[Shop Papers]
Tables: T390[PM: Shop papers for print control]
T390_T[PM: Shop paper description]

Monday, March 21, 2011

SREL_GET_NEXT_NEIGHBORS (Part 1)

CALL FUNCTION 'SREL_GET_NEXT_NEIGHBORS'
*"  IMPORTING
*"     VALUE(OBJECT) LIKE  BORIDENT STRUCTURE  BORIDENT
*"     VALUE(ROLETYPE) LIKE  RELROLES-ROLETYPE OPTIONAL
*"     VALUE(RELATIONTYPE) LIKE  BRELTYP-RELTYPE OPTIONAL
*"     VALUE(MAX_HOPS) TYPE  RELHOPS DEFAULT 1
*"     VALUE(BYPASS_BUFFER) TYPE  FLAG DEFAULT SPACE
*"  TABLES
*"      NEIGHBORS STRUCTURE  NEIGHBOR OPTIONAL
*"  EXCEPTIONS
*"      INTERNAL_ERROR
*"      NO_LOGSYS


This FM returns 2 objects that have binary relationhips. 1 of the example we have in SAP IS-U is Disconnect Document and the Service Notification.

1. Enter Object Key and Object Type of a Service Notification
2. Enter Role Type and Relationship Type of the object. Please take note that this is optional.
3. It returns Disconnection Document Number + Disconnection Activity Number 

Tables involved:

  • SRRELROLES
  • ORBRELTYP
  • SMZB_BINREL 

Friday, February 11, 2011

Editor Lock

Editor Lock prevents other people to modify your program. Somehow, there are cases where you forget to remove it. What happened if other people want to modify your program in the future, but you are no longer involved in that system?

I found 2 blogs provide solution that is quite useful:
  1. ABAP Program to Lock/Unlock the ABAP Editor Lock Field 
  2. SAP ABAP Program EDITOR LOCK/UNLOCK 
Both of them are doing the same thing. Ultimately, you just have to update the record in table TRDIR, set the field EDTX = 'X' if you want to lock it, and set it SPACE if you want to unlock it. 

Thursday, February 10, 2011

Print Immediately is Blank?

Most of the time we rely on print parameter to make some decisions in form printing, one of the odd scenario that you have to be careful when you are developing application form is when you have a choose print parameter dialog screen as per following (EA60):

If you set "Output After Last Document" (LAST_DOC_ACT), FM 'EFG_PRINT' will clear the value of field TDIMMED and TDFINAL. (source code: line 516 to line 519). Thus, no matter how hard you set "Print Immediately" in the following screen:

C-ITCPO-TDIMMED and C-ITCPO-TDFINAL will always be blank in application form.