SAP Function Modules

SELECT_PRICES_DETAILS SAP Function module







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

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


Pattern for FM SELECT_PRICES_DETAILS - SELECT PRICES DETAILS





CALL FUNCTION 'SELECT_PRICES_DETAILS' "
  IMPORTING
    e_complete_record_number_konh =   " sy-tabix
    e_complete_record_number_konp =   " sy-tabix
    e_complete_record_number_konm =   " sy-tabix
    e_complete_record_number_konw =   " sy-tabix
  TABLES
    t_knumh =                   " cond_knumh
    t_konh =                    " konhdb
    t_konp =                    " konpdb
    t_konm =                    " cond_konm
    t_konw =                    " cond_konw
    .  "  SELECT_PRICES_DETAILS

ABAP code example for Function Module SELECT_PRICES_DETAILS





The ABAP code below is a full code listing to execute function module SELECT_PRICES_DETAILS 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_e_complete_record_number_konh  TYPE SY-TABIX ,
ld_e_complete_record_number_konp  TYPE SY-TABIX ,
ld_e_complete_record_number_konm  TYPE SY-TABIX ,
ld_e_complete_record_number_konw  TYPE SY-TABIX ,
it_t_knumh  TYPE STANDARD TABLE OF COND_KNUMH,"TABLES PARAM
wa_t_knumh  LIKE LINE OF it_t_knumh ,
it_t_konh  TYPE STANDARD TABLE OF KONHDB,"TABLES PARAM
wa_t_konh  LIKE LINE OF it_t_konh ,
it_t_konp  TYPE STANDARD TABLE OF KONPDB,"TABLES PARAM
wa_t_konp  LIKE LINE OF it_t_konp ,
it_t_konm  TYPE STANDARD TABLE OF COND_KONM,"TABLES PARAM
wa_t_konm  LIKE LINE OF it_t_konm ,
it_t_konw  TYPE STANDARD TABLE OF COND_KONW,"TABLES PARAM
wa_t_konw  LIKE LINE OF it_t_konw .


"populate fields of struture and append to itab
append wa_t_knumh to it_t_knumh.

"populate fields of struture and append to itab
append wa_t_konh to it_t_konh.

"populate fields of struture and append to itab
append wa_t_konp to it_t_konp.

"populate fields of struture and append to itab
append wa_t_konm to it_t_konm.

"populate fields of struture and append to itab
append wa_t_konw to it_t_konw. . CALL FUNCTION 'SELECT_PRICES_DETAILS' IMPORTING e_complete_record_number_konh = ld_e_complete_record_number_konh e_complete_record_number_konp = ld_e_complete_record_number_konp e_complete_record_number_konm = ld_e_complete_record_number_konm e_complete_record_number_konw = ld_e_complete_record_number_konw TABLES t_knumh = it_t_knumh t_konh = it_t_konh t_konp = it_t_konp t_konm = it_t_konm t_konw = it_t_konw . " SELECT_PRICES_DETAILS
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_e_complete_record_number_konh  TYPE SY-TABIX ,
it_t_knumh  TYPE STANDARD TABLE OF COND_KNUMH ,
wa_t_knumh  LIKE LINE OF it_t_knumh,
ld_e_complete_record_number_konp  TYPE SY-TABIX ,
it_t_konh  TYPE STANDARD TABLE OF KONHDB ,
wa_t_konh  LIKE LINE OF it_t_konh,
ld_e_complete_record_number_konm  TYPE SY-TABIX ,
it_t_konp  TYPE STANDARD TABLE OF KONPDB ,
wa_t_konp  LIKE LINE OF it_t_konp,
ld_e_complete_record_number_konw  TYPE SY-TABIX ,
it_t_konm  TYPE STANDARD TABLE OF COND_KONM ,
wa_t_konm  LIKE LINE OF it_t_konm,
it_t_konw  TYPE STANDARD TABLE OF COND_KONW ,
wa_t_konw  LIKE LINE OF it_t_konw.


"populate fields of struture and append to itab
append wa_t_knumh to it_t_knumh.

"populate fields of struture and append to itab
append wa_t_konh to it_t_konh.

"populate fields of struture and append to itab
append wa_t_konp to it_t_konp.

"populate fields of struture and append to itab
append wa_t_konm to it_t_konm.

"populate fields of struture and append to itab
append wa_t_konw to it_t_konw.

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