G-YWWN0NYSS1 SAP ABAP CRM Tips - TECHNICAL GYAN GURU SAP ABAP CRM Tips - TECHNICAL GYAN GURU

SAP ABAP CRM Tips

1: Opening CRM Request in another window (SAP ABAP CRM Tips)

At the point when there is a prerequisite to open a CRM Request (Client Request. Administration Request. and so forth) from a program, the typical interaction is to populate the Business Item Boundary (CRM_OBJECT_ID) with the Exchange Number (OBJECT_ID) and afterward doing a CALL Exchange to CRMD_ORDER. Be that as it may, this technique doesn’t appear to work.

Befuddled? How to Debug any Work Item in SAP Workflow?

SET Boundary ID ‘CRM_OBJECT_ID’ FIELD .
CALL Exchange ‘CRMD_ORDER’ AND Skirt FIRST SCREEN.

It won’t get into the exchange (CRM Request) , however stop at the inquiry screen.
The strategy for getting around could be utilizing the BAPI BAPI_BUSPROCESSND_DISPLAY to show the CRM Request. You can utilize it to show the CRM Request screen straightforwardly. Simply pass your Request Header GUID ID to the business cycle and the CRMD_ORDER screen will be shown.

CALL FUNCTION 'BAPI_BUSPROCESSND_DISPLAY'
EXPORTING
business_process = <order_header_guid>

2: Embedding or Erasing Standard/Custom messages in CRM GUI.(SAP ABAP CRM Tips)
If conceivable, you can follow the accompanying advances.

a) First delete message, for example
* Deleting the messages from stack

CALL FUNCTION 'CRM_MESSAGES_DELETE'
EXPORTING
iv_caller_name = gc_object_name-order
iv_ref_object = iv_item
it_r_msgidno = lt_idno
EXCEPTIONS
OTHERS = 1.

b) Check for corresponding message text already exists or not, for example

CALLFUNCTION'CRM_TEXT_READ_API'
EXPORTING
it_guid = lt_object_guids
iv_object_kind = gc_object_kind-orderadm_i
IMPORTING
et_text = lt_text.

OR
Search the corresponding messages, for example:

ls_idno-sign = 'I'.
ls_idno-option = 'EQ'.
ls_idno-low-msgid = 'Z_ZZZ_CA_MESSAGES'.
ls_idno-low-msgno = '126'.
APPEND ls_idno TO lt_idno.

CALL FUNCTION 'CRM_MESSAGES_SEARCH'
EXPORTING
it_r_msgidno = lt_idno
iv_ref_object = iv_header_guid
iv_ref_kind = gc_object_kind-orderadm_h
iv_only_errors_on_object = true
IMPORTING
et_msg_info = lt_msg_info
EXCEPTIONS
appl_log_error = 1
error_occurred = 2
OTHERS = 3.

c) If the message does not exist. Then raise message. For example

CALLFUNCTION'CRM_MESSAGE_COLLECT'
EXPORTING
iv_caller_name = gc_object_name-order
iv_ref_object = iv_item
iv_ref_kind = gc_object_kind-orderadm_i
iv_logical_key = 'MAINTAIN'
iv_msgno = lv_msgno
iv_msgid = 'CRM_ORDERADM_I'
iv_msgty = lv_msgty
EXCEPTIONS
not_found = 1
appl_log_error = 2
OTHERS = 3.

YOU MAY LIKE THIS

Conquering the Full Stack Developer Interview: Essential Questions and Expert Tips

Cracking the Code: Your Earning Potential as a SAP ABAP Developer with 5 Years of Experience

SAP ABAP Interview Questions Real time Expectations

  • Related Posts

    Some Tips

    Tips: Here are a few hints which might save some time for you. What’s more, it is consistently fun exploring different avenues regarding the things you know. Issue: Assume you…

    CDS – 23: CDS Performance Analysis – Basics – 1

    Compact discs Perspectives work on the code pushdown system where the information concentrated computations/collections are finished in the DB layer (rather than the conventional application layer), which gives a lift…

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    You Missed

    SAP ABAP CRM Tips

    • By Varad
    • June 16, 2025
    • 20 views
    SAP ABAP CRM Tips

    Some Tips

    • By Varad
    • June 15, 2025
    • 27 views
    Some Tips

    CDS – 23: CDS Performance Analysis – Basics – 1

    • By Varad
    • June 14, 2025
    • 32 views
    CDS – 23: CDS Performance Analysis – Basics – 1

    SORTing Algorithm – Performance Comparision

    • By Varad
    • June 13, 2025
    • 41 views
    SORTing Algorithm – Performance Comparision

    SPTA Parallel Processing Framework in ABAP

    • By Varad
    • June 12, 2025
    • 46 views
    SPTA Parallel Processing Framework in ABAP

    ust 3 Changes to Improve the SAP ABAP Performance by 95 Percent

    • By Varad
    • June 11, 2025
    • 42 views
    ust 3 Changes to Improve the SAP ABAP Performance by 95 Percent