Menu

SAP Function Module DOCUMENT_ASSIGNMENT

Allocate documents to object from application

Recommended Now

All-new Echo Dot Smart speaker with Alexa

This bundle includes Echo Dot (3rd Gen) Charcoal and Philips Hue White A19 Medium Lumen Smart Bulb, 1100 Lumens. Built in Smart Home hub. Ask Alexa to control Zigbee-compatible devices. No additional Philips Hue hub required. Two choices for easy smart lighting - Start setting the mood with Hue Smart bulbs and your Echo device, supporting up to 5 Hue Bluetooth & Zigbee smart bulbs. Add the Hue Hub for whole-home smart lighting (up to 50 light points) and bonus features.

Check it out on amazon.com →

The Function Module DOCUMENT_ASSIGNMENT (Allocate documents to object from application) is a standard Function Module in SAP ERP and is part of the function group CVOB within the package CV.

Technical Information

Function Module DOCUMENT_ASSIGNMENT
Short Text Allocate documents to object from application
Function Group CVOB
Package CV
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
CHECK_EXIST LIKE MCDOK-CVHIER 'X' X-Link for existing documents only
DOKOB LIKE DRAD-DOKOB ' ' Table name
DOKOB_VORLAGE LIKE DRAD-DOKOB ' ' Object reference
FB_CHECK_ASSIGNMENT LIKE RS38L-NAME ' ' FM for checking document link
FB_VALUE_REQUEST LIKE RS38L-NAME ' ' FM for F4 on document fields
INCLUDE_DYNPRO LIKE SY-DYNNR ' ' Number of object key sub-screen
OBJKY LIKE DRAD-OBJKY ' ' Object key as a string
OBJKY_VORLAGE LIKE DRAD-OBJKY ' ' Key reference
OBJTXT LIKE ' '
OPCODE LIKE 1-Create 2-Change 3-Display
PREV_NEXT LIKE MCDOK-CVHIER ' ' Functions PREVIOUS/NEXT active
PROGRAM_NAME LIKE SY-REPID ' ' Program name for sub-screen
REFRESH_FLAG LIKE ' ' If 'X' then work area becomes initial during the call.
VORSCHLAG_DOKAR LIKE DRAW-DOKAR ' ' Default document type

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
CAD_LEAVE LIKE SY-SUBRC
RETURN_CODE LIKE Return code
VB_FLAG LIKE MCDOK-CVHIER X-Update required

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

These are the TABLE parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
TABDRAD LIKE DRAD Table of links

Exceptions

This function module does not define any Exceptions.