SAP Function Modules

BDS_BUSINESSDOCUMENT_CRE_O_URL SAP Function module







BDS_BUSINESSDOCUMENT_CRE_O_URL 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 BDS_BUSINESSDOCUMENT_CRE_O_URL into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: BDS_BAPI
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BDS_BUSINESSDOCUMENT_CRE_O_URL - BDS BUSINESSDOCUMENT CRE O URL





CALL FUNCTION 'BDS_BUSINESSDOCUMENT_CRE_O_URL' "
  EXPORTING
*   logical_system =            " bapibds01-log_system
    classname =                 " bapibds01-classname
    classtype =                 " bapibds01-classtype
*   client = SY-MANDT           " bapibds01-client
*   object_key =                " bapibds01-objkey
    url =                       " bapibds01-uri
*   binary_flag = 'X'           " bapibds01-x   BDS: Flag
    mimetype =                  " bapibds01-mimetype  Business Document Service: MIME type
  IMPORTING
    doc_id =                    " bapibds01-doc_id  Business Document Service: Document ID
    doc_ver_no =                " bapibds01-doc_ver_no  Business Document Service: Document version number
    doc_var_id =                " bapibds01-doc_var_id  Business Document Service: Document variant ID
* TABLES
*   properties =                " bapiproper    BDS: Structure for Properties
  EXCEPTIONS
    NOTHING_FOUND = 1           "
    PARAMETER_ERROR = 2         "
    NOT_ALLOWED = 3             "
    ERROR_KPRO = 4              "
    INTERNAL_ERROR = 5          "
    NOT_AUTHORIZED = 6          "
    ERROR_DP = 7                "
    .  "  BDS_BUSINESSDOCUMENT_CRE_O_URL

ABAP code example for Function Module BDS_BUSINESSDOCUMENT_CRE_O_URL





The ABAP code below is a full code listing to execute function module BDS_BUSINESSDOCUMENT_CRE_O_URL 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_doc_id  TYPE BAPIBDS01-DOC_ID ,
ld_doc_ver_no  TYPE BAPIBDS01-DOC_VER_NO ,
ld_doc_var_id  TYPE BAPIBDS01-DOC_VAR_ID ,
it_properties  TYPE STANDARD TABLE OF BAPIPROPER,"TABLES PARAM
wa_properties  LIKE LINE OF it_properties .


DATA(ld_logical_system) = some text here

DATA(ld_classname) = some text here

DATA(ld_classtype) = some text here

DATA(ld_client) = Check type of data required

DATA(ld_object_key) = some text here

DATA(ld_url) = some text here

DATA(ld_binary_flag) = some text here

DATA(ld_mimetype) = some text here

"populate fields of struture and append to itab
append wa_properties to it_properties. . CALL FUNCTION 'BDS_BUSINESSDOCUMENT_CRE_O_URL' EXPORTING * logical_system = ld_logical_system classname = ld_classname classtype = ld_classtype * client = ld_client * object_key = ld_object_key url = ld_url * binary_flag = ld_binary_flag mimetype = ld_mimetype IMPORTING doc_id = ld_doc_id doc_ver_no = ld_doc_ver_no doc_var_id = ld_doc_var_id * TABLES * properties = it_properties EXCEPTIONS NOTHING_FOUND = 1 PARAMETER_ERROR = 2 NOT_ALLOWED = 3 ERROR_KPRO = 4 INTERNAL_ERROR = 5 NOT_AUTHORIZED = 6 ERROR_DP = 7 . " BDS_BUSINESSDOCUMENT_CRE_O_URL
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 ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "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_doc_id  TYPE BAPIBDS01-DOC_ID ,
ld_logical_system  TYPE BAPIBDS01-LOG_SYSTEM ,
it_properties  TYPE STANDARD TABLE OF BAPIPROPER ,
wa_properties  LIKE LINE OF it_properties,
ld_doc_ver_no  TYPE BAPIBDS01-DOC_VER_NO ,
ld_classname  TYPE BAPIBDS01-CLASSNAME ,
ld_doc_var_id  TYPE BAPIBDS01-DOC_VAR_ID ,
ld_classtype  TYPE BAPIBDS01-CLASSTYPE ,
ld_client  TYPE BAPIBDS01-CLIENT ,
ld_object_key  TYPE BAPIBDS01-OBJKEY ,
ld_url  TYPE BAPIBDS01-URI ,
ld_binary_flag  TYPE BAPIBDS01-X ,
ld_mimetype  TYPE BAPIBDS01-MIMETYPE .


ld_logical_system = some text here

"populate fields of struture and append to itab
append wa_properties to it_properties.

ld_classname = some text here

ld_classtype = some text here

ld_client = Check type of data required

ld_object_key = some text here

ld_url = some text here

ld_binary_flag = some text here

ld_mimetype = some text here

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 BDS_BUSINESSDOCUMENT_CRE_O_URL or its description.