SAP Function Modules

SD_PARTNER_CALL_BACK_HANDLER SAP Function module







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

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


Pattern for FM SD_PARTNER_CALL_BACK_HANDLER - SD PARTNER CALL BACK HANDLER





CALL FUNCTION 'SD_PARTNER_CALL_BACK_HANDLER' "
  EXPORTING
    fic_objecttype =            " swo_objtyp    Object Type
    fic_objectkey =             " swo_typeid    Object Key
    fif_event =                 " sd_partner_call_back_event
    fif_roletype =              " sd_partner_roletype
*   fif_posnr =                 " posnr         Item Number
*   fif_current_partner =       " sd_partner_parnr
*   fif_old_partner =           " sd_partner_parnr
  IMPORTING
    fef_cancel =                " xfeld
  TABLES
    frt_changes =               " lv09a_changed_values  Change Table
    .  "  SD_PARTNER_CALL_BACK_HANDLER

ABAP code example for Function Module SD_PARTNER_CALL_BACK_HANDLER





The ABAP code below is a full code listing to execute function module SD_PARTNER_CALL_BACK_HANDLER 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_fef_cancel  TYPE XFELD ,
it_frt_changes  TYPE STANDARD TABLE OF LV09A_CHANGED_VALUES,"TABLES PARAM
wa_frt_changes  LIKE LINE OF it_frt_changes .

DATA(ld_fic_objecttype) = 'Check type of data required'.
DATA(ld_fic_objectkey) = 'Check type of data required'.
DATA(ld_fif_event) = 'Check type of data required'.
DATA(ld_fif_roletype) = 'Check type of data required'.
DATA(ld_fif_posnr) = 'Check type of data required'.
DATA(ld_fif_current_partner) = 'Check type of data required'.
DATA(ld_fif_old_partner) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_frt_changes to it_frt_changes. . CALL FUNCTION 'SD_PARTNER_CALL_BACK_HANDLER' EXPORTING fic_objecttype = ld_fic_objecttype fic_objectkey = ld_fic_objectkey fif_event = ld_fif_event fif_roletype = ld_fif_roletype * fif_posnr = ld_fif_posnr * fif_current_partner = ld_fif_current_partner * fif_old_partner = ld_fif_old_partner IMPORTING fef_cancel = ld_fef_cancel TABLES frt_changes = it_frt_changes . " SD_PARTNER_CALL_BACK_HANDLER
IF SY-SUBRC EQ 0. "All OK 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_fef_cancel  TYPE XFELD ,
ld_fic_objecttype  TYPE SWO_OBJTYP ,
it_frt_changes  TYPE STANDARD TABLE OF LV09A_CHANGED_VALUES ,
wa_frt_changes  LIKE LINE OF it_frt_changes,
ld_fic_objectkey  TYPE SWO_TYPEID ,
ld_fif_event  TYPE SD_PARTNER_CALL_BACK_EVENT ,
ld_fif_roletype  TYPE SD_PARTNER_ROLETYPE ,
ld_fif_posnr  TYPE POSNR ,
ld_fif_current_partner  TYPE SD_PARTNER_PARNR ,
ld_fif_old_partner  TYPE SD_PARTNER_PARNR .

ld_fic_objecttype = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_frt_changes to it_frt_changes.
ld_fic_objectkey = 'Check type of data required'.
ld_fif_event = 'Check type of data required'.
ld_fif_roletype = 'Check type of data required'.
ld_fif_posnr = 'Check type of data required'.
ld_fif_current_partner = 'Check type of data required'.
ld_fif_old_partner = 'Check type of data required'.

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