SAP Function Modules

FVD_OBJECTS_DIALOG_MAIN SAP Function module - Loans: Collateral Object - Dialog







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

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


Pattern for FM FVD_OBJECTS_DIALOG_MAIN - FVD OBJECTS DIALOG MAIN





CALL FUNCTION 'FVD_OBJECTS_DIALOG_MAIN' "Loans: Collateral Object - Dialog
  EXPORTING
*   i_memory = SPACE            " boole-boole   'X' = Datenänderungen werden vom Aufrufer committet
    i_aktion =                  " char1         'I' = Insert, 'U' = Update, 'S' = Show
    i_robjnr =                  " vdhobj-robjnr  Collateral Object Number
*   i_rklammer =                " vdhobj-rklammer  Object master number
*   i_jhaupt =                  " vdhobj-jhaupt  Indicator for the main object within a complete object
*   i_numkr =                   " tzn01-numkr   Number Range
*   i_switch_obj = SPACE        " boole-boole   'X' = Funktion Wechsel zu anderem Objekt aktivieren
*   i_stammnr = SPACE           " boole-boole   'X' = Funktionen zur Stammnummer aktivieren
*   i_grundbuch_sperre = SPACE  " boole-boole   'X' = Grundbuchdaten nicht änderbar (außer zugehörige Partnerdaten)
  IMPORTING
    e_robjnr =                  " vdhobj-robjnr  angelegte Beleihungsobjektnummer
    e_chng =                    " boole-boole   'X' = Objektdaten wurden geändert
    e_xchng_partner =           " bus000flds-xchng  Kennzeichen: Partner-Daten wurden verändert
    e_abort =                   " boole-boole   'X' = Verarbeitung abgerochen
  EXCEPTIONS
    NOT_FOUND = 1               "
    CANCELED = 2                "
    LOCKED = 3                  "
    OTHERS = 4                  "
    .  "  FVD_OBJECTS_DIALOG_MAIN

ABAP code example for Function Module FVD_OBJECTS_DIALOG_MAIN





The ABAP code below is a full code listing to execute function module FVD_OBJECTS_DIALOG_MAIN 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_e_robjnr  TYPE VDHOBJ-ROBJNR ,
ld_e_chng  TYPE BOOLE-BOOLE ,
ld_e_xchng_partner  TYPE BUS000FLDS-XCHNG ,
ld_e_abort  TYPE BOOLE-BOOLE .


DATA(ld_i_memory) = some text here
DATA(ld_i_aktion) = 'Check type of data required'.

SELECT single ROBJNR
FROM VDHOBJ
INTO @DATA(ld_i_robjnr).


SELECT single RKLAMMER
FROM VDHOBJ
INTO @DATA(ld_i_rklammer).


SELECT single JHAUPT
FROM VDHOBJ
INTO @DATA(ld_i_jhaupt).


SELECT single NUMKR
FROM TZN01
INTO @DATA(ld_i_numkr).


DATA(ld_i_switch_obj) = some text here

DATA(ld_i_stammnr) = some text here

DATA(ld_i_grundbuch_sperre) = some text here . CALL FUNCTION 'FVD_OBJECTS_DIALOG_MAIN' EXPORTING * i_memory = ld_i_memory i_aktion = ld_i_aktion i_robjnr = ld_i_robjnr * i_rklammer = ld_i_rklammer * i_jhaupt = ld_i_jhaupt * i_numkr = ld_i_numkr * i_switch_obj = ld_i_switch_obj * i_stammnr = ld_i_stammnr * i_grundbuch_sperre = ld_i_grundbuch_sperre IMPORTING e_robjnr = ld_e_robjnr e_chng = ld_e_chng e_xchng_partner = ld_e_xchng_partner e_abort = ld_e_abort EXCEPTIONS NOT_FOUND = 1 CANCELED = 2 LOCKED = 3 OTHERS = 4 . " FVD_OBJECTS_DIALOG_MAIN
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 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_e_robjnr  TYPE VDHOBJ-ROBJNR ,
ld_i_memory  TYPE BOOLE-BOOLE ,
ld_e_chng  TYPE BOOLE-BOOLE ,
ld_i_aktion  TYPE CHAR1 ,
ld_e_xchng_partner  TYPE BUS000FLDS-XCHNG ,
ld_i_robjnr  TYPE VDHOBJ-ROBJNR ,
ld_e_abort  TYPE BOOLE-BOOLE ,
ld_i_rklammer  TYPE VDHOBJ-RKLAMMER ,
ld_i_jhaupt  TYPE VDHOBJ-JHAUPT ,
ld_i_numkr  TYPE TZN01-NUMKR ,
ld_i_switch_obj  TYPE BOOLE-BOOLE ,
ld_i_stammnr  TYPE BOOLE-BOOLE ,
ld_i_grundbuch_sperre  TYPE BOOLE-BOOLE .


ld_i_memory = some text here
ld_i_aktion = 'Check type of data required'.

SELECT single ROBJNR
FROM VDHOBJ
INTO ld_i_robjnr.


SELECT single RKLAMMER
FROM VDHOBJ
INTO ld_i_rklammer.


SELECT single JHAUPT
FROM VDHOBJ
INTO ld_i_jhaupt.


SELECT single NUMKR
FROM TZN01
INTO ld_i_numkr.


ld_i_switch_obj = some text here

ld_i_stammnr = some text here

ld_i_grundbuch_sperre = 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 FVD_OBJECTS_DIALOG_MAIN or its description.