SAP VBDBDM_DATA_GET_FROM_IM Function Module for NOTRANSL: Dokumentationscharge - Daten holen von Bestandsführung









VBDBDM_DATA_GET_FROM_IM is a standard vbdbdm data get from im SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Dokumentationscharge - Daten holen von Bestandsführung 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 vbdbdm data get from im FM, simply by entering the name VBDBDM_DATA_GET_FROM_IM into the relevant SAP transaction such as SE37 or SE38.

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



Function VBDBDM_DATA_GET_FROM_IM 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 'VBDBDM_DATA_GET_FROM_IM'"NOTRANSL: Dokumentationscharge - Daten holen von Bestandsführung
EXPORTING
I_KEY = "Unique Number for a Line
I_AUFNR = "Order Number
I_AUFPS = "Number of Order Item
I_DISPLAY_ONLY = "Checkbox
IS_DOCUBATCH_COM = "Documentary Batch - Communication Structure
* I_VBELN = "
* I_POSNR = "
I_MATNR = "Material Number
I_WERKS = "Plant
I_DOCUBATCH_CHARG = "Documentary Batch - Batch Number
I_QUANTITY = "Quantity in Unit of Entry
I_UOM = "Unit of Entry
IT_PROCESS_IDS = "Documentary Batch - Table Type Process ID
I_EBELN = "Purchasing Document Number
I_EBELP = "Item Number of Purchasing Document

IMPORTING
E_CONTROL = "

EXCEPTIONS
PROCESS_NOT_ACTIVE = 1 MATERIAL_NOT_FOUND = 2
.



IMPORTING Parameters details for VBDBDM_DATA_GET_FROM_IM

I_KEY - Unique Number for a Line

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

I_AUFNR - Order Number

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

I_AUFPS - Number of Order Item

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

I_DISPLAY_ONLY - Checkbox

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

IS_DOCUBATCH_COM - Documentary Batch - Communication Structure

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

I_VBELN -

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

I_POSNR -

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

I_MATNR - Material Number

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

I_WERKS - Plant

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

I_DOCUBATCH_CHARG - Documentary Batch - Batch Number

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

I_QUANTITY - Quantity in Unit of Entry

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

I_UOM - Unit of Entry

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

IT_PROCESS_IDS - Documentary Batch - Table Type Process ID

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

I_EBELN - Purchasing Document Number

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

I_EBELP - Item Number of Purchasing Document

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

EXPORTING Parameters details for VBDBDM_DATA_GET_FROM_IM

E_CONTROL -

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

EXCEPTIONS details

PROCESS_NOT_ACTIVE - Process Not Active

Data type:
Optional: No
Call by Reference: Yes

MATERIAL_NOT_FOUND - Material does not exist

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for VBDBDM_DATA_GET_FROM_IM 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_i_key  TYPE MIGO_GLOBAL_COUNTER, "   
lv_e_control  TYPE DOCUBATCH_CONTROL, "   
lv_process_not_active  TYPE DOCUBATCH_CONTROL, "   
lv_i_aufnr  TYPE AUFNR, "   
lv_i_aufps  TYPE CO_POSNR, "   
lv_i_display_only  TYPE XFELD, "   
lv_is_docubatch_com  TYPE DOCUBATCH_COM, "   
lv_i_vbeln  TYPE VBELN_VL, "   
lv_i_posnr  TYPE POSNR_VL, "   
lv_i_matnr  TYPE MATNR, "   
lv_material_not_found  TYPE MATNR, "   
lv_i_werks  TYPE WERKS_D, "   
lv_i_docubatch_charg  TYPE DOCUBATCH_CHARG, "   
lv_i_quantity  TYPE ERFMG, "   
lv_i_uom  TYPE ERFME, "   
lv_it_process_ids  TYPE DOCUBATCH_PROCESS_ID_T, "   
lv_i_ebeln  TYPE EBELN, "   
lv_i_ebelp  TYPE EBELP. "   

  CALL FUNCTION 'VBDBDM_DATA_GET_FROM_IM'  "NOTRANSL: Dokumentationscharge - Daten holen von Bestandsführung
    EXPORTING
         I_KEY = lv_i_key
         I_AUFNR = lv_i_aufnr
         I_AUFPS = lv_i_aufps
         I_DISPLAY_ONLY = lv_i_display_only
         IS_DOCUBATCH_COM = lv_is_docubatch_com
         I_VBELN = lv_i_vbeln
         I_POSNR = lv_i_posnr
         I_MATNR = lv_i_matnr
         I_WERKS = lv_i_werks
         I_DOCUBATCH_CHARG = lv_i_docubatch_charg
         I_QUANTITY = lv_i_quantity
         I_UOM = lv_i_uom
         IT_PROCESS_IDS = lv_it_process_ids
         I_EBELN = lv_i_ebeln
         I_EBELP = lv_i_ebelp
    IMPORTING
         E_CONTROL = lv_e_control
    EXCEPTIONS
        PROCESS_NOT_ACTIVE = 1
        MATERIAL_NOT_FOUND = 2
. " VBDBDM_DATA_GET_FROM_IM




ABAP code using 7.40 inline data declarations to call FM VBDBDM_DATA_GET_FROM_IM

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!