SAP PSC_GET_PRODUCTION_SINGLE Function Module for Get input data for production
PSC_GET_PRODUCTION_SINGLE is a standard psc get production single SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get input data for production processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for psc get production single FM, simply by entering the name PSC_GET_PRODUCTION_SINGLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: PSCCALC
Program Name: SAPLPSCCALC
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PSC_GET_PRODUCTION_SINGLE pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'PSC_GET_PRODUCTION_SINGLE'"Get input data for production.
EXPORTING
I_BUKRS = "
* I_CURR = "
I_PER = "
I_YEAR = "
I_DATE = "
I_DAYS_PER_MONTH = "
I_DAYS_PER_QUARTER = "
I_DAYS_PER_SEMI = "
I_DAYS_PER_YEAR = "
I_PSC = "
I_PRODUCT = "
I_VNAME = "Joint Venture
I_ETYPE = "Equity type
* I_PV = "
* I_PPU = "
I_BFREQ = "
* I_CURT = "
IMPORTING
E_RESULT = "
TABLES
T_CURR = "
EXCEPTIONS
INCOMPLETE_INPUT = 1
IMPORTING Parameters details for PSC_GET_PRODUCTION_SINGLE
I_BUKRS -
Data type: T001-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_CURR -
Data type: T001-WAERSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PER -
Data type: GLU1-POPEROptional: No
Call by Reference: No ( called with pass by value option)
I_YEAR -
Data type: BKPF-GJAHROptional: No
Call by Reference: No ( called with pass by value option)
I_DATE -
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
I_DAYS_PER_MONTH -
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
I_DAYS_PER_QUARTER -
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
I_DAYS_PER_SEMI -
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
I_DAYS_PER_YEAR -
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
I_PSC -
Data type: T8PSCMSTR-PSC_NAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_PRODUCT -
Data type: T8PSCPROD-PSC_PRODUCTOptional: No
Call by Reference: No ( called with pass by value option)
I_VNAME - Joint Venture
Data type: T8PSCPA-VNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_ETYPE - Equity type
Data type: T8PSCPA-ETYPEOptional: No
Call by Reference: No ( called with pass by value option)
I_PV -
Data type: PSC_CALC-PVOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PPU -
Data type: PSC_CALC-PPUOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BFREQ -
Data type: T8PSCMSTR-PSC_BILL_FREQOptional: No
Call by Reference: No ( called with pass by value option)
I_CURT -
Data type: T881-CURT1Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PSC_GET_PRODUCTION_SINGLE
E_RESULT -
Data type: PSCTP_INTERFACEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PSC_GET_PRODUCTION_SINGLE
T_CURR -
Data type: PSC_CURROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INCOMPLETE_INPUT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PSC_GET_PRODUCTION_SINGLE Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_t_curr | TYPE STANDARD TABLE OF PSC_CURR, " | |||
| lv_i_bukrs | TYPE T001-BUKRS, " | |||
| lv_e_result | TYPE PSCTP_INTERFACE, " | |||
| lv_incomplete_input | TYPE PSCTP_INTERFACE, " | |||
| lv_i_curr | TYPE T001-WAERS, " | |||
| lv_i_per | TYPE GLU1-POPER, " | |||
| lv_i_year | TYPE BKPF-GJAHR, " | |||
| lv_i_date | TYPE SY-DATUM, " | |||
| lv_i_days_per_month | TYPE I, " | |||
| lv_i_days_per_quarter | TYPE I, " | |||
| lv_i_days_per_semi | TYPE I, " | |||
| lv_i_days_per_year | TYPE I, " | |||
| lv_i_psc | TYPE T8PSCMSTR-PSC_NAME, " | |||
| lv_i_product | TYPE T8PSCPROD-PSC_PRODUCT, " | |||
| lv_i_vname | TYPE T8PSCPA-VNAME, " | |||
| lv_i_etype | TYPE T8PSCPA-ETYPE, " | |||
| lv_i_pv | TYPE PSC_CALC-PV, " | |||
| lv_i_ppu | TYPE PSC_CALC-PPU, " | |||
| lv_i_bfreq | TYPE T8PSCMSTR-PSC_BILL_FREQ, " | |||
| lv_i_curt | TYPE T881-CURT1. " |
|   CALL FUNCTION 'PSC_GET_PRODUCTION_SINGLE' "Get input data for production |
| EXPORTING | ||
| I_BUKRS | = lv_i_bukrs | |
| I_CURR | = lv_i_curr | |
| I_PER | = lv_i_per | |
| I_YEAR | = lv_i_year | |
| I_DATE | = lv_i_date | |
| I_DAYS_PER_MONTH | = lv_i_days_per_month | |
| I_DAYS_PER_QUARTER | = lv_i_days_per_quarter | |
| I_DAYS_PER_SEMI | = lv_i_days_per_semi | |
| I_DAYS_PER_YEAR | = lv_i_days_per_year | |
| I_PSC | = lv_i_psc | |
| I_PRODUCT | = lv_i_product | |
| I_VNAME | = lv_i_vname | |
| I_ETYPE | = lv_i_etype | |
| I_PV | = lv_i_pv | |
| I_PPU | = lv_i_ppu | |
| I_BFREQ | = lv_i_bfreq | |
| I_CURT | = lv_i_curt | |
| IMPORTING | ||
| E_RESULT | = lv_e_result | |
| TABLES | ||
| T_CURR | = lt_t_curr | |
| EXCEPTIONS | ||
| INCOMPLETE_INPUT = 1 | ||
| . " PSC_GET_PRODUCTION_SINGLE | ||
ABAP code using 7.40 inline data declarations to call FM PSC_GET_PRODUCTION_SINGLE
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single BUKRS FROM T001 INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single WAERS FROM T001 INTO @DATA(ld_i_curr). | ||||
| "SELECT single POPER FROM GLU1 INTO @DATA(ld_i_per). | ||||
| "SELECT single GJAHR FROM BKPF INTO @DATA(ld_i_year). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_date). | ||||
| "SELECT single PSC_NAME FROM T8PSCMSTR INTO @DATA(ld_i_psc). | ||||
| "SELECT single PSC_PRODUCT FROM T8PSCPROD INTO @DATA(ld_i_product). | ||||
| "SELECT single VNAME FROM T8PSCPA INTO @DATA(ld_i_vname). | ||||
| "SELECT single ETYPE FROM T8PSCPA INTO @DATA(ld_i_etype). | ||||
| "SELECT single PV FROM PSC_CALC INTO @DATA(ld_i_pv). | ||||
| "SELECT single PPU FROM PSC_CALC INTO @DATA(ld_i_ppu). | ||||
| "SELECT single PSC_BILL_FREQ FROM T8PSCMSTR INTO @DATA(ld_i_bfreq). | ||||
| "SELECT single CURT1 FROM T881 INTO @DATA(ld_i_curt). | ||||
Search for further information about these or an SAP related objects