Tuesday, March 29, 2016

Partner functions ECC vs CRM


http://scn.sap.com/community/crm/master-data-and-middleware/blog/2013/09/03/partner-functions--what-how-and-where

Wednesday, March 23, 2016

Finance Dates differences - Entry date, Posting date, Document date etc..


Entry Date - System Date on which document is entered

Document Date - Date of the supporting document ie PO/
invoice/ Bill date

Posting date - date on which entry is posted to the ledger
or accounting date 

Value date - the date on which doc is valued. ie for forex
valuation the value date is needed for calculating the
exchange rate difference

Next run date - this is for payment run. what the next day
for calculating the payment due document and discount
calculation 

copied from: 
http://www.allinterview.com/showanswers/100812/what-is-the-entry-date-document-date-posting-date-value-date-and-next-run-date.html

Tuesday, March 8, 2016

CDHDR Object class


DEBI -  Customer master changes
VERKBELEG - Sales order changes

Idoc user exits - fetch item number from parent segment

 
Demo code for Idoc (EDI) user exits, where you don’t get item number in all segments.  This shows how to fetch item number from Parent segment (E1EDP01 in this case).
 
E1EDPA1 (Partner function segment in ORDERS idoc) does NOT have item number in it, So fetch from parent E1EDP01 (Item details) segment. To do that, write LOOP with  segnam = E1EDP01 or E1EDPA1 – demo code is shown below.
 
    LOOP AT int_edidd ASSIGNING <fs_edidd> WHERE segnam 'E1EDP01'
                                             
OR  segnam 'E1EDPA1'.

      
IF <fs_edidd>-segnam 'E1EDP01'.
        
CLEAR ls_e1edp01,
                lv_ebelp
.
        ls_e1edp01 
<fs_edidd>-sdata.
        lv_ebelp   
=  ls_e1edp01-posex.
        
CONTINUE.
      
ENDIF.

      
CLEARls_e1edpa1.
      
CHECK  <fs_edidd>-sdata+0(2) = 'WE'.
      ls_e1edpa1 
<fs_edidd>-sdata.

      
REFRESHlt_po_del_addr[].
*     Get  PO del address
      
CALL FUNCTION 'BAPI_PO_GETDETAIL1'
        
EXPORTING
          PURCHASEORDER    
xekko-ebeln
          DELIVERY_ADDRESS 
'X'
        
TABLES
          POADDRDELIVERY   
lt_po_del_addr.

*     Get Item PO delivery address
      
CLEARls_po_del_addr.
      
READ TABLE lt_po_del_addr INTO ls_po_del_addr WITH KEY po_item lv_ebelp.
      
IF sy-subrc EQ 0.
        ls_e1edpa1
-strs2 ls_po_del_addr-str_suppl3.
        ls_e1edpa1
-pfach ls_po_del_addr-location.
        <fs_edidd>
-sdata ls_e1edpa1.
      
ENDIF.
    
ENDLOOP.
 

Friday, March 4, 2016

CRM Web UI Message type Id etc..



In most cases, the method responsible to bring the messages into the screen is ADD_MESSAGE of class CL_BSP_WD_MESSAGE_SERVICE.

https://scn.sap.com/thread/3163753

Manual completion of delivery - VL_COMPLETE

VL_COMPLETE – Transaction to manually complete Deliveries.  Can be used instead of deleting deliveries. 
 
 

Reset user buffer - Authorization SU56 or PFUD

Some times, though you changed user authorizations, they will not be immediately effective (You get error in SU53 saying ‘Available in the master data, but not in the user buffer’).
To fix this, you need to reset user buffer. This can be done in 2 ways.
 1)  SU56 : transaction SU56, and changing to the user that was having the issue and from the menu Authorization Values >  "Reset User Buffer".
 
2) PFUD :  Run for all roles, to regenerate all profiles

 

Thursday, March 3, 2016

CRM ECC Contact mapping tables


CRM table for Contact mapping - CRMM_BUT_CONTNO
ECC table for Contact mapping is CRMPARNR

For Customer to Business Partner mapping

CRM table for mapping:  CRMV_BUPA_CUSTNO
and  CRMM_BUT_CUSTNO contains mapping between Customer and BP Guid