SAP Function Modules

WS_UNCOMPL_STATUS SAP Function module







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

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


Pattern for FM WS_UNCOMPL_STATUS - WS UNCOMPL STATUS





CALL FUNCTION 'WS_UNCOMPL_STATUS' "
  EXPORTING
    f_vbeln =                   " vbak-vbeln
    f_vbtyp =                   " vbak-vbtyp
  TABLES
    fxvbuk =                    " vbukvb
    fyvbuk =                    " vbukvb
    fxvbup =                    " vbupvb
    fyvbup =                    " vbupvb
    fxvbuv =                    " vbuvvb
    .  "  WS_UNCOMPL_STATUS

ABAP code example for Function Module WS_UNCOMPL_STATUS





The ABAP code below is a full code listing to execute function module WS_UNCOMPL_STATUS 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_fxvbuk  TYPE STANDARD TABLE OF VBUKVB,"TABLES PARAM
wa_fxvbuk  LIKE LINE OF it_fxvbuk ,
it_fyvbuk  TYPE STANDARD TABLE OF VBUKVB,"TABLES PARAM
wa_fyvbuk  LIKE LINE OF it_fyvbuk ,
it_fxvbup  TYPE STANDARD TABLE OF VBUPVB,"TABLES PARAM
wa_fxvbup  LIKE LINE OF it_fxvbup ,
it_fyvbup  TYPE STANDARD TABLE OF VBUPVB,"TABLES PARAM
wa_fyvbup  LIKE LINE OF it_fyvbup ,
it_fxvbuv  TYPE STANDARD TABLE OF VBUVVB,"TABLES PARAM
wa_fxvbuv  LIKE LINE OF it_fxvbuv .


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


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


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

"populate fields of struture and append to itab
append wa_fyvbuk to it_fyvbuk.

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

"populate fields of struture and append to itab
append wa_fyvbup to it_fyvbup.

"populate fields of struture and append to itab
append wa_fxvbuv to it_fxvbuv. . CALL FUNCTION 'WS_UNCOMPL_STATUS' EXPORTING f_vbeln = ld_f_vbeln f_vbtyp = ld_f_vbtyp TABLES fxvbuk = it_fxvbuk fyvbuk = it_fyvbuk fxvbup = it_fxvbup fyvbup = it_fyvbup fxvbuv = it_fxvbuv . " WS_UNCOMPL_STATUS
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_f_vbeln  TYPE VBAK-VBELN ,
it_fxvbuk  TYPE STANDARD TABLE OF VBUKVB ,
wa_fxvbuk  LIKE LINE OF it_fxvbuk,
ld_f_vbtyp  TYPE VBAK-VBTYP ,
it_fyvbuk  TYPE STANDARD TABLE OF VBUKVB ,
wa_fyvbuk  LIKE LINE OF it_fyvbuk,
it_fxvbup  TYPE STANDARD TABLE OF VBUPVB ,
wa_fxvbup  LIKE LINE OF it_fxvbup,
it_fyvbup  TYPE STANDARD TABLE OF VBUPVB ,
wa_fyvbup  LIKE LINE OF it_fyvbup,
it_fxvbuv  TYPE STANDARD TABLE OF VBUVVB ,
wa_fxvbuv  LIKE LINE OF it_fxvbuv.


SELECT single VBELN
FROM VBAK
INTO ld_f_vbeln.


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

SELECT single VBTYP
FROM VBAK
INTO ld_f_vbtyp.


"populate fields of struture and append to itab
append wa_fyvbuk to it_fyvbuk.

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

"populate fields of struture and append to itab
append wa_fyvbup to it_fyvbup.

"populate fields of struture and append to itab
append wa_fxvbuv to it_fxvbuv.

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