SAP Function RSOD_DOC_MAST_CHANGE - Document API: Create Document for Master Date

Parameter Reference Type Length Default Optional Text
I_CHANM RSCHANM C 30 Characteristic
I_CHAVL RSCHAVL C 60 Characteristic Value
I_COPY_URL_CONTENT RS_BOOL C 1 X = 'X' Document read and copied. ' ' Link to URL (not yet functional)
I_DESCRIPTION SDOK_DESCR C 64 Short Description
I_DOC_TYPE RSODWWWDOCTYPE C 20 X Document Type
I_LANGU LANGU C 1 SY-LANGU X Language Key
I_NAME SKWF_URLP C 40 X Name
I_OVERWRITE_MODE RSOD_OVERWRITE_MODE C 1 0: New LOIO, 1: New PHIO, 2: Replace PHIO, 3: Delete LOIO
I_S_CONTENT_INFO RSOD_S_CONTENT_INFO u 418 X API Documents: Content Info
I_URL SAEURI C 4096 X URL
I_WITH_CONTENT RS_BOOL C 1 X = 'X' Contents provided (I_T_FILE_CONTENT_ASCII / I_T_FILE_CONTENT_BINARY)
I_WITH_URL RS_BOOL C 1 X = 'X' Document specified using URL

Parameter Reference Type Length Text
E_NAME SDOK_PROPV C 64 Attribute Value
E_S_RETURN BAPIRET2 u 548 Return Parameter

Parameter Reference Length Optional Text
I_T_FILE_CONTENT_ASCII SDOKCNTASC 1022 X Text Document Contents
I_T_FILE_CONTENT_BINARY SDOKCNTBIN 1022 X Binary Document Contents

Functionality
You use this module to create or change a document for a characteristicvalue.
This module is similar to function module
RSOD_CREATE_DOC_META. The only difference lies in how you specifydocument properties. This is explained below:

Specific parameters (selection) for documents for master data:
The characteristic value must be specified consistently for thecharacteristic name (I_CHANM) and the characteristic value (I_CHAVL). Ifa characteristic has a reference, the document is created/changed forthe reference characteristic. In parameter I_CHAVL, the correct internalvalue of the characteristic has to be left-justified when it istransferred. Examples:

  • For compound characteristics, the characteristic value must be
  • transferred in concatenated form. For example, 10010000001000 for thecost center (10 digits) 1000 in controlling area 1001 (4 digits).
    • If the characteristic is 10 digits long plus the ALPHA conversion exit,
    • external value 1234 has to be written left-aligned as 0000001234 infield I_CHAVL.
      • If the characteristic is a characteristic of type NUMC3 like the time
      • characteristic posting period (0FISCPER3), external value 4 has to beleft-aligned (004) when it is transferred.
        • You can also use the parameter I_DOC_TYPE to specify the of the
        • document.