SAP Function Modules

APS_DEMAND_GET_INFO SAP Function module







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

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


Pattern for FM APS_DEMAND_GET_INFO - APS DEMAND GET INFO





CALL FUNCTION 'APS_DEMAND_GET_INFO' "
  EXPORTING
    is_demandid =               " aps_orderid
  IMPORTING
    ev_material =               " mt61d-matnr
    ev_plant =                  " mt61d-werks
    ev_berid =                  " mt61d-berid
    ev_unit =                   " mt61d-meins
    ev_plsection_id =           " mdps-plaab
    ev_plsection =              " mdps-planr
    ev_due_date =               " d
  EXCEPTIONS
    DEMAND_NOT_FOUND = 1        "
    .  "  APS_DEMAND_GET_INFO

ABAP code example for Function Module APS_DEMAND_GET_INFO





The ABAP code below is a full code listing to execute function module APS_DEMAND_GET_INFO 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_ev_material  TYPE MT61D-MATNR ,
ld_ev_plant  TYPE MT61D-WERKS ,
ld_ev_berid  TYPE MT61D-BERID ,
ld_ev_unit  TYPE MT61D-MEINS ,
ld_ev_plsection_id  TYPE MDPS-PLAAB ,
ld_ev_plsection  TYPE MDPS-PLANR ,
ld_ev_due_date  TYPE D .

DATA(ld_is_demandid) = 'Check type of data required'. . CALL FUNCTION 'APS_DEMAND_GET_INFO' EXPORTING is_demandid = ld_is_demandid IMPORTING ev_material = ld_ev_material ev_plant = ld_ev_plant ev_berid = ld_ev_berid ev_unit = ld_ev_unit ev_plsection_id = ld_ev_plsection_id ev_plsection = ld_ev_plsection ev_due_date = ld_ev_due_date EXCEPTIONS DEMAND_NOT_FOUND = 1 . " APS_DEMAND_GET_INFO
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_ev_material  TYPE MT61D-MATNR ,
ld_is_demandid  TYPE APS_ORDERID ,
ld_ev_plant  TYPE MT61D-WERKS ,
ld_ev_berid  TYPE MT61D-BERID ,
ld_ev_unit  TYPE MT61D-MEINS ,
ld_ev_plsection_id  TYPE MDPS-PLAAB ,
ld_ev_plsection  TYPE MDPS-PLANR ,
ld_ev_due_date  TYPE D .

ld_is_demandid = '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 APS_DEMAND_GET_INFO or its description.