SAP CRM0_WRITE_CRMOBJTAB Function Module for









CRM0_WRITE_CRMOBJTAB is a standard crm0 write crmobjtab SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for crm0 write crmobjtab FM, simply by entering the name CRM0_WRITE_CRMOBJTAB into the relevant SAP transaction such as SE37 or SE38.

Function Group: CRM0
Program Name: SAPLCRM0
Main Program: SAPLCRM0
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function CRM0_WRITE_CRMOBJTAB pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'CRM0_WRITE_CRMOBJTAB'"
EXPORTING
* I_CONSUMER = "
* I_OBJNAME = "
* I_TABNAME = "
* I_MAINTAB = "
* I_TAB_HIER = "
* I_BAPI_TABLE = "
* I_INACTIVE = "
* I_DELETE_MODE = "
* I_DELETE_ALL = "

IMPORTING
E_STATUS = "

TABLES
* TI_CRMOBJTAB = "
* TI_CRMOBJTAB_DEL = "
* TI_SELOPT_OBJNAME = "
.



IMPORTING Parameters details for CRM0_WRITE_CRMOBJTAB

I_CONSUMER -

Data type: CRMOBJTAB-CONSUMER
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OBJNAME -

Data type: CRMOBJTAB-OBJNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TABNAME -

Data type: CRMOBJTAB-TABNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MAINTAB -

Data type: CRMOBJTAB-MAINTAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TAB_HIER -

Data type: CRMOBJTAB-TAB_HIER
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BAPI_TABLE -

Data type: CRMOBJTAB-BAPI_TABLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_INACTIVE -

Data type: CRMOBJECT-INACTIVE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DELETE_MODE -

Data type: CRM_PARA-XFELD
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DELETE_ALL -

Data type: CRM_PARA-XFELD
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CRM0_WRITE_CRMOBJTAB

E_STATUS -

Data type: CRM_PARA-STATUS_EXT
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CRM0_WRITE_CRMOBJTAB

TI_CRMOBJTAB -

Data type: CRMOBJTAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

TI_CRMOBJTAB_DEL -

Data type: CRMOBJTAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

TI_SELOPT_OBJNAME -

Data type: SELOPTOBJ
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CRM0_WRITE_CRMOBJTAB Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_e_status  TYPE CRM_PARA-STATUS_EXT, "   
lv_i_consumer  TYPE CRMOBJTAB-CONSUMER, "   
lt_ti_crmobjtab  TYPE STANDARD TABLE OF CRMOBJTAB, "   
lv_i_objname  TYPE CRMOBJTAB-OBJNAME, "   
lt_ti_crmobjtab_del  TYPE STANDARD TABLE OF CRMOBJTAB, "   
lv_i_tabname  TYPE CRMOBJTAB-TABNAME, "   
lt_ti_selopt_objname  TYPE STANDARD TABLE OF SELOPTOBJ, "   
lv_i_maintab  TYPE CRMOBJTAB-MAINTAB, "   
lv_i_tab_hier  TYPE CRMOBJTAB-TAB_HIER, "   
lv_i_bapi_table  TYPE CRMOBJTAB-BAPI_TABLE, "   
lv_i_inactive  TYPE CRMOBJECT-INACTIVE, "   
lv_i_delete_mode  TYPE CRM_PARA-XFELD, "   
lv_i_delete_all  TYPE CRM_PARA-XFELD. "   

  CALL FUNCTION 'CRM0_WRITE_CRMOBJTAB'  "
    EXPORTING
         I_CONSUMER = lv_i_consumer
         I_OBJNAME = lv_i_objname
         I_TABNAME = lv_i_tabname
         I_MAINTAB = lv_i_maintab
         I_TAB_HIER = lv_i_tab_hier
         I_BAPI_TABLE = lv_i_bapi_table
         I_INACTIVE = lv_i_inactive
         I_DELETE_MODE = lv_i_delete_mode
         I_DELETE_ALL = lv_i_delete_all
    IMPORTING
         E_STATUS = lv_e_status
    TABLES
         TI_CRMOBJTAB = lt_ti_crmobjtab
         TI_CRMOBJTAB_DEL = lt_ti_crmobjtab_del
         TI_SELOPT_OBJNAME = lt_ti_selopt_objname
. " CRM0_WRITE_CRMOBJTAB




ABAP code using 7.40 inline data declarations to call FM CRM0_WRITE_CRMOBJTAB

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single STATUS_EXT FROM CRM_PARA INTO @DATA(ld_e_status).
 
"SELECT single CONSUMER FROM CRMOBJTAB INTO @DATA(ld_i_consumer).
 
 
"SELECT single OBJNAME FROM CRMOBJTAB INTO @DATA(ld_i_objname).
 
 
"SELECT single TABNAME FROM CRMOBJTAB INTO @DATA(ld_i_tabname).
 
 
"SELECT single MAINTAB FROM CRMOBJTAB INTO @DATA(ld_i_maintab).
 
"SELECT single TAB_HIER FROM CRMOBJTAB INTO @DATA(ld_i_tab_hier).
 
"SELECT single BAPI_TABLE FROM CRMOBJTAB INTO @DATA(ld_i_bapi_table).
 
"SELECT single INACTIVE FROM CRMOBJECT INTO @DATA(ld_i_inactive).
 
"SELECT single XFELD FROM CRM_PARA INTO @DATA(ld_i_delete_mode).
 
"SELECT single XFELD FROM CRM_PARA INTO @DATA(ld_i_delete_all).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!