SAP Function Modules

LIPS_STATUS_MAINTAIN SAP Function module - Maintaining the status of a delivery item







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

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


Pattern for FM LIPS_STATUS_MAINTAIN - LIPS STATUS MAINTAIN





CALL FUNCTION 'LIPS_STATUS_MAINTAIN' "Maintaining the status of a delivery item
  EXPORTING
    f_likp =                    " likp
    f_posnr =                   " lips-posnr    Item Number
*   land1_we =                  " kuwev-land1
  TABLES
    fxlips =                    " lipsvb
    fxvbapf =                   " vbapf         Corresponds to XVBAPF
    fxvbup =                    " vbupvb        Corresponds to XVBUP
    fyvbup =                    " vbupvb        Corresponds to YVBUP
*   fxvbfa =                    " vbfavb
    .  "  LIPS_STATUS_MAINTAIN

ABAP code example for Function Module LIPS_STATUS_MAINTAIN





The ABAP code below is a full code listing to execute function module LIPS_STATUS_MAINTAIN 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_fxlips  TYPE STANDARD TABLE OF LIPSVB,"TABLES PARAM
wa_fxlips  LIKE LINE OF it_fxlips ,
it_fxvbapf  TYPE STANDARD TABLE OF VBAPF,"TABLES PARAM
wa_fxvbapf  LIKE LINE OF it_fxvbapf ,
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_fxvbfa  TYPE STANDARD TABLE OF VBFAVB,"TABLES PARAM
wa_fxvbfa  LIKE LINE OF it_fxvbfa .

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

SELECT single POSNR
FROM LIPS
INTO @DATA(ld_f_posnr).


DATA(ld_land1_we) = some text here

"populate fields of struture and append to itab
append wa_fxlips to it_fxlips.

"populate fields of struture and append to itab
append wa_fxvbapf to it_fxvbapf.

"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_fxvbfa to it_fxvbfa. . CALL FUNCTION 'LIPS_STATUS_MAINTAIN' EXPORTING f_likp = ld_f_likp f_posnr = ld_f_posnr * land1_we = ld_land1_we TABLES fxlips = it_fxlips fxvbapf = it_fxvbapf fxvbup = it_fxvbup fyvbup = it_fyvbup * fxvbfa = it_fxvbfa . " LIPS_STATUS_MAINTAIN
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_likp  TYPE LIKP ,
it_fxlips  TYPE STANDARD TABLE OF LIPSVB ,
wa_fxlips  LIKE LINE OF it_fxlips,
ld_f_posnr  TYPE LIPS-POSNR ,
it_fxvbapf  TYPE STANDARD TABLE OF VBAPF ,
wa_fxvbapf  LIKE LINE OF it_fxvbapf,
ld_land1_we  TYPE KUWEV-LAND1 ,
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_fxvbfa  TYPE STANDARD TABLE OF VBFAVB ,
wa_fxvbfa  LIKE LINE OF it_fxvbfa.

ld_f_likp = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_fxlips to it_fxlips.

SELECT single POSNR
FROM LIPS
INTO ld_f_posnr.


"populate fields of struture and append to itab
append wa_fxvbapf to it_fxvbapf.

ld_land1_we = some text here

"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_fxvbfa to it_fxvbfa.

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