SAP Function Modules

SRM_REC_UPDATE_NODE_DESC SAP Function module







SRM_REC_UPDATE_NODE_DESC is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name SRM_REC_UPDATE_NODE_DESC into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SRM_REC_MDL_PLAN
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM SRM_REC_UPDATE_NODE_DESC - SRM REC UPDATE NODE DESC





CALL FUNCTION 'SRM_REC_UPDATE_NODE_DESC' "
  EXPORTING
*   case_types =                " char4
    poiddirid =                 " string
*   spsid =                     " string
    nodeid_desc =               " srmgspropt
  IMPORTING
    opened_recordid =           " srm_xml_s_tab
    invalid_id =                " srmgspropt
  EXCEPTIONS
    INVALID_POIDDIRID = 1       "
    NO_REC_PRESENT = 2          "
    NO_CASE_PRESENT = 3         "
    .  "  SRM_REC_UPDATE_NODE_DESC

ABAP code example for Function Module SRM_REC_UPDATE_NODE_DESC





The ABAP code below is a full code listing to execute function module SRM_REC_UPDATE_NODE_DESC including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_opened_recordid  TYPE SRM_XML_S_TAB ,
ld_invalid_id  TYPE SRMGSPROPT .

DATA(ld_case_types) = 'Check type of data required'.
DATA(ld_poiddirid) = 'Check type of data required'.
DATA(ld_spsid) = 'Check type of data required'.
DATA(ld_nodeid_desc) = 'Check type of data required'. . CALL FUNCTION 'SRM_REC_UPDATE_NODE_DESC' EXPORTING * case_types = ld_case_types poiddirid = ld_poiddirid * spsid = ld_spsid nodeid_desc = ld_nodeid_desc IMPORTING opened_recordid = ld_opened_recordid invalid_id = ld_invalid_id EXCEPTIONS INVALID_POIDDIRID = 1 NO_REC_PRESENT = 2 NO_CASE_PRESENT = 3 . " SRM_REC_UPDATE_NODE_DESC
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_opened_recordid  TYPE SRM_XML_S_TAB ,
ld_case_types  TYPE CHAR4 ,
ld_invalid_id  TYPE SRMGSPROPT ,
ld_poiddirid  TYPE STRING ,
ld_spsid  TYPE STRING ,
ld_nodeid_desc  TYPE SRMGSPROPT .

ld_case_types = 'Check type of data required'.
ld_poiddirid = 'Check type of data required'.
ld_spsid = 'Check type of data required'.
ld_nodeid_desc = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name SRM_REC_UPDATE_NODE_DESC or its description.