SAP Function Modules

SD_ORDER_STATUS_OVERVIEW SAP Function module - Status Overivew for Order







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

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


Pattern for FM SD_ORDER_STATUS_OVERVIEW - SD ORDER STATUS OVERVIEW





CALL FUNCTION 'SD_ORDER_STATUS_OVERVIEW' "Status Overivew for Order
  EXPORTING
    i_vbeln =                   " vbak-vbeln    Document Number
    i_posnr =                   " vbap-posnr    Item Number
    i_vbtyp =                   " vbak-vbtyp    Document Category
  TABLES
    fxvbak =                    " vbak
    fxvbap =                    " vbapvb
    fxvbep =                    " vbepvb
    fxvbuk =                    " vbuk
    fxvbup =                    " vbup
    fivbap =                    "
    .  "  SD_ORDER_STATUS_OVERVIEW

ABAP code example for Function Module SD_ORDER_STATUS_OVERVIEW





The ABAP code below is a full code listing to execute function module SD_ORDER_STATUS_OVERVIEW 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_fxvbak  TYPE STANDARD TABLE OF VBAK,"TABLES PARAM
wa_fxvbak  LIKE LINE OF it_fxvbak ,
it_fxvbap  TYPE STANDARD TABLE OF VBAPVB,"TABLES PARAM
wa_fxvbap  LIKE LINE OF it_fxvbap ,
it_fxvbep  TYPE STANDARD TABLE OF VBEPVB,"TABLES PARAM
wa_fxvbep  LIKE LINE OF it_fxvbep ,
it_fxvbuk  TYPE STANDARD TABLE OF VBUK,"TABLES PARAM
wa_fxvbuk  LIKE LINE OF it_fxvbuk ,
it_fxvbup  TYPE STANDARD TABLE OF VBUP,"TABLES PARAM
wa_fxvbup  LIKE LINE OF it_fxvbup ,
it_fivbap  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_fivbap  LIKE LINE OF it_fivbap .


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


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


SELECT single VBTYP
FROM VBAK
INTO @DATA(ld_i_vbtyp).


"populate fields of struture and append to itab
append wa_fxvbak to it_fxvbak.

"populate fields of struture and append to itab
append wa_fxvbap to it_fxvbap.

"populate fields of struture and append to itab
append wa_fxvbep to it_fxvbep.

"populate fields of struture and append to itab
append wa_fxvbuk to it_fxvbuk.

"populate fields of struture and append to itab
append wa_fxvbup to it_fxvbup.

"populate fields of struture and append to itab
append wa_fivbap to it_fivbap. . CALL FUNCTION 'SD_ORDER_STATUS_OVERVIEW' EXPORTING i_vbeln = ld_i_vbeln i_posnr = ld_i_posnr i_vbtyp = ld_i_vbtyp TABLES fxvbak = it_fxvbak fxvbap = it_fxvbap fxvbep = it_fxvbep fxvbuk = it_fxvbuk fxvbup = it_fxvbup fivbap = it_fivbap . " SD_ORDER_STATUS_OVERVIEW
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_vbeln  TYPE VBAK-VBELN ,
it_fxvbak  TYPE STANDARD TABLE OF VBAK ,
wa_fxvbak  LIKE LINE OF it_fxvbak,
ld_i_posnr  TYPE VBAP-POSNR ,
it_fxvbap  TYPE STANDARD TABLE OF VBAPVB ,
wa_fxvbap  LIKE LINE OF it_fxvbap,
ld_i_vbtyp  TYPE VBAK-VBTYP ,
it_fxvbep  TYPE STANDARD TABLE OF VBEPVB ,
wa_fxvbep  LIKE LINE OF it_fxvbep,
it_fxvbuk  TYPE STANDARD TABLE OF VBUK ,
wa_fxvbuk  LIKE LINE OF it_fxvbuk,
it_fxvbup  TYPE STANDARD TABLE OF VBUP ,
wa_fxvbup  LIKE LINE OF it_fxvbup,
it_fivbap  TYPE STANDARD TABLE OF STRING ,
wa_fivbap  LIKE LINE OF it_fivbap.


SELECT single VBELN
FROM VBAK
INTO ld_i_vbeln.


"populate fields of struture and append to itab
append wa_fxvbak to it_fxvbak.

SELECT single POSNR
FROM VBAP
INTO ld_i_posnr.


"populate fields of struture and append to itab
append wa_fxvbap to it_fxvbap.

SELECT single VBTYP
FROM VBAK
INTO ld_i_vbtyp.


"populate fields of struture and append to itab
append wa_fxvbep to it_fxvbep.

"populate fields of struture and append to itab
append wa_fxvbuk to it_fxvbuk.

"populate fields of struture and append to itab
append wa_fxvbup to it_fxvbup.

"populate fields of struture and append to itab
append wa_fivbap to it_fivbap.

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