PJP_FWS_REQUEST_CREATE 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 PJP_FWS_REQUEST_CREATE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
PJP_FWS_FG
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'PJP_FWS_REQUEST_CREATE' "Request Create
EXPORTING
* im_request_id = " tim_req_id Document ID
im_command = " tim_req_xfer_event ESS Command
im_pernr = " p_pernr Personnel Number
* im_date = " begda Start Date
* im_vtart = " vtart Substitution Type
* im_tprog = " tprog Daily Work Schedule
* im_varia = " varia Daily Work Schedule Variant
* im_old_tprog = " tprog Old Daily Work Schedule
* im_old_varia = " varia Old Daily Work Schedule Variant
* im_pending = " char1 ID of Request Item
* im_notice = " tim_req_notice Note for Request
* im_sub_date = " begda Substitution Start Date
* im_sub_tprog = " tprog Substitution Daily Work Schedule
* im_sub_varia = " varia Substitution Daily Work Schedule Variant
* im_old_sub_tprog = " tprog Old Substitution Daily Work Schedule
* im_old_sub_varia = " varia Old Substitution Daily Work Schedule Variant
* im_approver_pernr = " p_pernr Approver Personnel Number
IMPORTING
ex_request = " pjp_fws_request Flexible Work Schedule Request Structure
ex_has_errors = " boole_d Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* TABLES
* ex_messages = " ptreq_message_tab Leave Request: Message Table
. " PJP_FWS_REQUEST_CREATE
The ABAP code below is a full code listing to execute function module PJP_FWS_REQUEST_CREATE 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).
| ld_ex_request | TYPE PJP_FWS_REQUEST , |
| ld_ex_has_errors | TYPE BOOLE_D , |
| it_ex_messages | TYPE STANDARD TABLE OF PTREQ_MESSAGE_TAB,"TABLES PARAM |
| wa_ex_messages | LIKE LINE OF it_ex_messages . |
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_ex_request | TYPE PJP_FWS_REQUEST , |
| ld_im_request_id | TYPE TIM_REQ_ID , |
| it_ex_messages | TYPE STANDARD TABLE OF PTREQ_MESSAGE_TAB , |
| wa_ex_messages | LIKE LINE OF it_ex_messages, |
| ld_ex_has_errors | TYPE BOOLE_D , |
| ld_im_command | TYPE TIM_REQ_XFER_EVENT , |
| ld_im_pernr | TYPE P_PERNR , |
| ld_im_date | TYPE BEGDA , |
| ld_im_vtart | TYPE VTART , |
| ld_im_tprog | TYPE TPROG , |
| ld_im_varia | TYPE VARIA , |
| ld_im_old_tprog | TYPE TPROG , |
| ld_im_old_varia | TYPE VARIA , |
| ld_im_pending | TYPE CHAR1 , |
| ld_im_notice | TYPE TIM_REQ_NOTICE , |
| ld_im_sub_date | TYPE BEGDA , |
| ld_im_sub_tprog | TYPE TPROG , |
| ld_im_sub_varia | TYPE VARIA , |
| ld_im_old_sub_tprog | TYPE TPROG , |
| ld_im_old_sub_varia | TYPE VARIA , |
| ld_im_approver_pernr | TYPE P_PERNR . |
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 PJP_FWS_REQUEST_CREATE or its description.