SAP CRM_IST_SO_FIELDTAB_MAINTAIN Function Module for Ermitteln und Bearbeiten der Felder zu einem TSO









CRM_IST_SO_FIELDTAB_MAINTAIN is a standard crm ist so fieldtab maintain SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Ermitteln und Bearbeiten der Felder zu einem TSO processing and below is the pattern details for this FM, 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 crm ist so fieldtab maintain FM, simply by entering the name CRM_IST_SO_FIELDTAB_MAINTAIN into the relevant SAP transaction such as SE37 or SE38.

Function Group: CRM_IST_SO_SERVICES
Program Name: SAPLCRM_IST_SO_SERVICES
Main Program: SAPLCRM_IST_SO_SERVICES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CRM_IST_SO_FIELDTAB_MAINTAIN 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 'CRM_IST_SO_FIELDTAB_MAINTAIN'"Ermitteln und Bearbeiten der Felder zu einem TSO
EXPORTING
* IV_H_HEADER_GUID = "Headerguid zu CRM-Order-Objekts
* IV_I_MAINPOS_GUID = "Hauptpositionsguid eines CRM-Order-Objekts
* IT_I_ITEM_GUIDS = "Table Type for Importing Order Items
* IV_I_ITEM_GUID = "GUID of a CRM Order Object
* IV_I_DIVISION = "Liefert Attributsfelder der Sparte (Serviceart)
* IV_I_PRODUCT_GUID = "Internal Unique Identifier of Product
* IV_REBUILD_STRUC = "Logical Variable
* IV_COMMIT_TYPE = 'A' "Verbuchung 'A' = CT*Strukturen, 'B' = über CT_FIELDS Struktur
* IV_ALL_LEVELS_BACK = 'X' "bei Überbabe ITEM_GUID-> alle Positionen zurück

IMPORTING
ET_ERROR_TAB = "Error messages
ET_DIV_FIELDS = "TT to Structure Relevant Attributes in the Service Object
ET_ITEM_ERROR_TAB = "Error List with Document Item Assignment

CHANGING
* CT_FIELDS = "TT to Structure Relevant Attributes in the Service Object
* CT_COB = "Table for Connection Object Structure
* CT_PRM = "Table for Premise Structure
* CT_POD = "Table for Point of Delivery Structure

EXCEPTIONS
DIVISION_NOT_FOUND = 1
.



IMPORTING Parameters details for CRM_IST_SO_FIELDTAB_MAINTAIN

IV_H_HEADER_GUID - Headerguid zu CRM-Order-Objekts

Data type: CRMT_OBJECT_GUID
Optional: Yes
Call by Reference: Yes

IV_I_MAINPOS_GUID - Hauptpositionsguid eines CRM-Order-Objekts

Data type: CRMT_OBJECT_GUID
Optional: Yes
Call by Reference: Yes

IT_I_ITEM_GUIDS - Table Type for Importing Order Items

Data type: CRM_SI_WB_API_ITEM_T
Optional: Yes
Call by Reference: Yes

IV_I_ITEM_GUID - GUID of a CRM Order Object

Data type: CRMT_OBJECT_GUID
Optional: Yes
Call by Reference: Yes

IV_I_DIVISION - Liefert Attributsfelder der Sparte (Serviceart)

Data type: SPART
Optional: Yes
Call by Reference: Yes

IV_I_PRODUCT_GUID - Internal Unique Identifier of Product

Data type: CRMT_PRODUCT_GUID_DB
Optional: Yes
Call by Reference: Yes

IV_REBUILD_STRUC - Logical Variable

Data type: CRMT_BOOLEAN
Optional: Yes
Call by Reference: Yes

IV_COMMIT_TYPE - Verbuchung 'A' = CT*Strukturen, 'B' = über CT_FIELDS Struktur

Data type: CHAR1
Default: 'A'
Optional: Yes
Call by Reference: Yes

IV_ALL_LEVELS_BACK - bei Überbabe ITEM_GUID-> alle Positionen zurück

Data type: FLAG
Default: 'X'
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for CRM_IST_SO_FIELDTAB_MAINTAIN

ET_ERROR_TAB - Error messages

Data type: BAPIRET2_TAB
Optional: No
Call by Reference: Yes

ET_DIV_FIELDS - TT to Structure Relevant Attributes in the Service Object

Data type: CRMT_IST_SO_RELATTR_TAB
Optional: No
Call by Reference: Yes

ET_ITEM_ERROR_TAB - Error List with Document Item Assignment

Data type: CRMT_SI_ERROR_TAB
Optional: No
Call by Reference: Yes

CHANGING Parameters details for CRM_IST_SO_FIELDTAB_MAINTAIN

CT_FIELDS - TT to Structure Relevant Attributes in the Service Object

Data type: CRMT_IST_SO_RELATTR_TAB
Optional: Yes
Call by Reference: Yes

CT_COB - Table for Connection Object Structure

Data type: CRM_SI_WB_API_COB_T
Optional: Yes
Call by Reference: Yes

CT_PRM - Table for Premise Structure

Data type: CRM_SI_WB_API_PRM_T
Optional: Yes
Call by Reference: Yes

CT_POD - Table for Point of Delivery Structure

Data type: CRM_SI_WB_API_POD_T
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

DIVISION_NOT_FOUND - Die Sparte konnte nicht gefunden werden.

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

Copy and paste ABAP code example for CRM_IST_SO_FIELDTAB_MAINTAIN 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_ct_fields  TYPE CRMT_IST_SO_RELATTR_TAB, "   
lv_et_error_tab  TYPE BAPIRET2_TAB, "   
lv_iv_h_header_guid  TYPE CRMT_OBJECT_GUID, "   
lv_division_not_found  TYPE CRMT_OBJECT_GUID, "   
lv_ct_cob  TYPE CRM_SI_WB_API_COB_T, "   
lv_et_div_fields  TYPE CRMT_IST_SO_RELATTR_TAB, "   
lv_iv_i_mainpos_guid  TYPE CRMT_OBJECT_GUID, "   
lv_ct_prm  TYPE CRM_SI_WB_API_PRM_T, "   
lv_it_i_item_guids  TYPE CRM_SI_WB_API_ITEM_T, "   
lv_et_item_error_tab  TYPE CRMT_SI_ERROR_TAB, "   
lv_ct_pod  TYPE CRM_SI_WB_API_POD_T, "   
lv_iv_i_item_guid  TYPE CRMT_OBJECT_GUID, "   
lv_iv_i_division  TYPE SPART, "   
lv_iv_i_product_guid  TYPE CRMT_PRODUCT_GUID_DB, "   
lv_iv_rebuild_struc  TYPE CRMT_BOOLEAN, "   
lv_iv_commit_type  TYPE CHAR1, "   'A'
lv_iv_all_levels_back  TYPE FLAG. "   'X'

  CALL FUNCTION 'CRM_IST_SO_FIELDTAB_MAINTAIN'  "Ermitteln und Bearbeiten der Felder zu einem TSO
    EXPORTING
         IV_H_HEADER_GUID = lv_iv_h_header_guid
         IV_I_MAINPOS_GUID = lv_iv_i_mainpos_guid
         IT_I_ITEM_GUIDS = lv_it_i_item_guids
         IV_I_ITEM_GUID = lv_iv_i_item_guid
         IV_I_DIVISION = lv_iv_i_division
         IV_I_PRODUCT_GUID = lv_iv_i_product_guid
         IV_REBUILD_STRUC = lv_iv_rebuild_struc
         IV_COMMIT_TYPE = lv_iv_commit_type
         IV_ALL_LEVELS_BACK = lv_iv_all_levels_back
    IMPORTING
         ET_ERROR_TAB = lv_et_error_tab
         ET_DIV_FIELDS = lv_et_div_fields
         ET_ITEM_ERROR_TAB = lv_et_item_error_tab
    CHANGING
         CT_FIELDS = lv_ct_fields
         CT_COB = lv_ct_cob
         CT_PRM = lv_ct_prm
         CT_POD = lv_ct_pod
    EXCEPTIONS
        DIVISION_NOT_FOUND = 1
. " CRM_IST_SO_FIELDTAB_MAINTAIN




ABAP code using 7.40 inline data declarations to call FM CRM_IST_SO_FIELDTAB_MAINTAIN

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_iv_commit_type) = 'A'.
 
DATA(ld_iv_all_levels_back) = 'X'.
 


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!