Tuesday, January 17, 2012

BADI CRM_ORDER_AUTH_CHECK


The authority check happens in the following sequence.

1. Authorization BADI CRM_ORDER_AUTH_CHECK->CRM_ORDER_ALTERN_AUTH_CHECK
This allows for skipping standard authorization checks
2. Std Check - Own document, user owns a role
3. Std Check - User assigned to same Org level of document
4. Std check - territory(if enabled in customizing)
5. Std check - Business object type (Eg. BUS2000111)
6. Std check - Process type
7. Std check - Sales/div channel
8. Authorization BADI CRM_ORDER_AUTH_CHECK->CRM_ORDER_ADD_AUTH_CHECK
This allows for additional checks if user has passed all std checks

Following the sequence 1 to 7, if any of the step OKs the user, the rest of the steps are skipped. The step 8 is still carried out if the user has passed. So, you may want to analyze your situation further. Maybe, you have to implement the BADI method mentioned in step 8 and do a further check based on user role. The CL_CRM_UI_PROFILE->Get_profile will give you the PFCG role.

Saturday, January 7, 2012

CRM Web UI Workflow Navigation to ERP Sales Orders


SAP Developer Network SAP Weblogs: CRM


CRM Web UI Workflow Navigation to ERP Sales Orders

Posted: 06 Jan 2012 12:11 PM PST

A technical article to help resolve potential inconsistencies found in CRM workflows involving ERP Sales Orders as attachments for custom business objects.
 

Thursday, July 21, 2011

To Get BP Text

To get BP text

table STXH

Use FM 'READ_TEXT'

Test for function group      STXD
Function module              READ_TEXT
Uppercase/Lowercase

Runtime:        1,672 Microseconds


  Import parameters               Value

  CLIENT                          120
  ID                              Z002
  LANGUAGE                        EN
  NAME                            1000002638
  OBJECT                          BUT000
  ARCHIVE_HANDLE                  0
  LOCAL_CAT