BAPI_REQUIREMENTS_CHANGE 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 BAPI_REQUIREMENTS_CHANGE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
3027
Released Date:
02.06.1998
Processing type: Remote-Enabled
CALL FUNCTION 'BAPI_REQUIREMENTS_CHANGE' "Planned independent requirement: Change planned independent reqmt
EXPORTING
material = " bapisitemr-material Material
plant = " bapisitemr-plant Plant
requirementstype = " bapisitemr-requ_type Requirements Type
version = " bapisitemr-version Version
reqmtsplannumber = " bapisitemr-req_number Requirements Plan Number
vers_activ = " bapisitemr-vers_activ Version active
* requirement_param = " cm60r Requirements Parameters
* mrp_area = " bapisitemr-mrp_area MRP Area
* do_commit = 'X' " bapisparam-do_commit Control Parameters for Planned Independent Requirements
* update_mode = 'X' " bapisparam-update_mode Control Parameters for Planned Independent Requirements
* delete_old = 'X' " bapisparam-delete_old Control Parameters for Planned Independent Requirements
* no_withdr = SPACE " bapisparam-no_withdr Control Parameters for Planned Independent Requirements
* material_evg = " bapimgvmatnr Long Material Number
IMPORTING
requirement_item_out = " bapisitemr Item data output
TABLES
* requirements_schedule_in = " bapisshdin Schedule line data input
* requirements_char_in = " bapischarr Configuration data input
return = " bapireturn1 Return Parameter
. " BAPI_REQUIREMENTS_CHANGE
The ABAP code below is a full code listing to execute function module BAPI_REQUIREMENTS_CHANGE 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_requirement_item_out | TYPE BAPISITEMR , |
| it_requirements_schedule_in | TYPE STANDARD TABLE OF BAPISSHDIN,"TABLES PARAM |
| wa_requirements_schedule_in | LIKE LINE OF it_requirements_schedule_in , |
| it_requirements_char_in | TYPE STANDARD TABLE OF BAPISCHARR,"TABLES PARAM |
| wa_requirements_char_in | LIKE LINE OF it_requirements_char_in , |
| it_return | TYPE STANDARD TABLE OF BAPIRETURN1,"TABLES PARAM |
| wa_return | LIKE LINE OF it_return . |
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_requirement_item_out | TYPE BAPISITEMR , |
| ld_material | TYPE BAPISITEMR-MATERIAL , |
| it_requirements_schedule_in | TYPE STANDARD TABLE OF BAPISSHDIN , |
| wa_requirements_schedule_in | LIKE LINE OF it_requirements_schedule_in, |
| ld_plant | TYPE BAPISITEMR-PLANT , |
| it_requirements_char_in | TYPE STANDARD TABLE OF BAPISCHARR , |
| wa_requirements_char_in | LIKE LINE OF it_requirements_char_in, |
| ld_requirementstype | TYPE BAPISITEMR-REQU_TYPE , |
| it_return | TYPE STANDARD TABLE OF BAPIRETURN1 , |
| wa_return | LIKE LINE OF it_return, |
| ld_version | TYPE BAPISITEMR-VERSION , |
| ld_reqmtsplannumber | TYPE BAPISITEMR-REQ_NUMBER , |
| ld_vers_activ | TYPE BAPISITEMR-VERS_ACTIV , |
| ld_requirement_param | TYPE CM60R , |
| ld_mrp_area | TYPE BAPISITEMR-MRP_AREA , |
| ld_do_commit | TYPE BAPISPARAM-DO_COMMIT , |
| ld_update_mode | TYPE BAPISPARAM-UPDATE_MODE , |
| ld_delete_old | TYPE BAPISPARAM-DELETE_OLD , |
| ld_no_withdr | TYPE BAPISPARAM-NO_WITHDR , |
| ld_material_evg | TYPE BAPIMGVMATNR . |
This method can be used to
change
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 BAPI_REQUIREMENTS_CHANGE or its description.
BAPI_REQUIREMENTS_CHANGE - Planned independent requirement: Change planned independent reqmt BAPI_REQUEST_GETDETAIL - BAPI: Read Request BAPI_REQUEST_EASYCREATE - BAPI: Create Request with Template BAPI_REQUEST_DELSPECIALDATES - BAPI: Delete Special Dates of a Request BAPI_REQUEST_DELLINEITEMS - BAPI: Delete Request Items BAPI_REQUEST_DELETEPERIODS - BAPI: Delete Execution Periods of Request