SAP Function Modules

SD_PARTNER_UNLOADING_POINT SAP Function module







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

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


Pattern for FM SD_PARTNER_UNLOADING_POINT - SD PARTNER UNLOADING POINT





CALL FUNCTION 'SD_PARTNER_UNLOADING_POINT' "
  EXPORTING
    i_mandt =                   " vbpa-mandt    Client
    i_vbeln =                   " vbpa-vbeln    Sales and Distribution Document Number
    i_posnr =                   " vbpa-posnr    Item Number of Sales Document
    i_ablad =                   " vbpa-ablad    Unloading Point
*   i_anleg =                   " c
  TABLES
    t_xvbpa =                   " vbpavb
    t_yvbpa =                   " vbpavb
    t_xvbuv =                   " vbuvvb
    t_hvbuv =                   " vbuvvb
    .  "  SD_PARTNER_UNLOADING_POINT

ABAP code example for Function Module SD_PARTNER_UNLOADING_POINT





The ABAP code below is a full code listing to execute function module SD_PARTNER_UNLOADING_POINT 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:
it_t_xvbpa  TYPE STANDARD TABLE OF VBPAVB,"TABLES PARAM
wa_t_xvbpa  LIKE LINE OF it_t_xvbpa ,
it_t_yvbpa  TYPE STANDARD TABLE OF VBPAVB,"TABLES PARAM
wa_t_yvbpa  LIKE LINE OF it_t_yvbpa ,
it_t_xvbuv  TYPE STANDARD TABLE OF VBUVVB,"TABLES PARAM
wa_t_xvbuv  LIKE LINE OF it_t_xvbuv ,
it_t_hvbuv  TYPE STANDARD TABLE OF VBUVVB,"TABLES PARAM
wa_t_hvbuv  LIKE LINE OF it_t_hvbuv .


SELECT single MANDT
FROM VBPA
INTO @DATA(ld_i_mandt).


SELECT single VBELN
FROM VBPA
INTO @DATA(ld_i_vbeln).


SELECT single POSNR
FROM VBPA
INTO @DATA(ld_i_posnr).


SELECT single ABLAD
FROM VBPA
INTO @DATA(ld_i_ablad).

DATA(ld_i_anleg) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_xvbpa to it_t_xvbpa.

"populate fields of struture and append to itab
append wa_t_yvbpa to it_t_yvbpa.

"populate fields of struture and append to itab
append wa_t_xvbuv to it_t_xvbuv.

"populate fields of struture and append to itab
append wa_t_hvbuv to it_t_hvbuv. . CALL FUNCTION 'SD_PARTNER_UNLOADING_POINT' EXPORTING i_mandt = ld_i_mandt i_vbeln = ld_i_vbeln i_posnr = ld_i_posnr i_ablad = ld_i_ablad * i_anleg = ld_i_anleg TABLES t_xvbpa = it_t_xvbpa t_yvbpa = it_t_yvbpa t_xvbuv = it_t_xvbuv t_hvbuv = it_t_hvbuv . " SD_PARTNER_UNLOADING_POINT
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_i_mandt  TYPE VBPA-MANDT ,
it_t_xvbpa  TYPE STANDARD TABLE OF VBPAVB ,
wa_t_xvbpa  LIKE LINE OF it_t_xvbpa,
ld_i_vbeln  TYPE VBPA-VBELN ,
it_t_yvbpa  TYPE STANDARD TABLE OF VBPAVB ,
wa_t_yvbpa  LIKE LINE OF it_t_yvbpa,
ld_i_posnr  TYPE VBPA-POSNR ,
it_t_xvbuv  TYPE STANDARD TABLE OF VBUVVB ,
wa_t_xvbuv  LIKE LINE OF it_t_xvbuv,
ld_i_ablad  TYPE VBPA-ABLAD ,
it_t_hvbuv  TYPE STANDARD TABLE OF VBUVVB ,
wa_t_hvbuv  LIKE LINE OF it_t_hvbuv,
ld_i_anleg  TYPE C .


SELECT single MANDT
FROM VBPA
INTO ld_i_mandt.


"populate fields of struture and append to itab
append wa_t_xvbpa to it_t_xvbpa.

SELECT single VBELN
FROM VBPA
INTO ld_i_vbeln.


"populate fields of struture and append to itab
append wa_t_yvbpa to it_t_yvbpa.

SELECT single POSNR
FROM VBPA
INTO ld_i_posnr.


"populate fields of struture and append to itab
append wa_t_xvbuv to it_t_xvbuv.

SELECT single ABLAD
FROM VBPA
INTO ld_i_ablad.


"populate fields of struture and append to itab
append wa_t_hvbuv to it_t_hvbuv.
ld_i_anleg = '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_UNLOADING_POINT or its description.