Ansicht
Dokumentation

OIJW_WL_UPDATE_PL_ENTRIES - OIL-TSW: Updates the OIJWL, OIJPLANWL tables for the current planning run

OIJW_WL_UPDATE_PL_ENTRIES - OIL-TSW: Updates the OIJWL, OIJPLANWL tables for the current planning run

ROGBILLS - Synchronize billing plans   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module updates the table OIJWL and the cross-reference table OIJPLANWL from corresponding internal tables.

PARAMETERS

T_OIJPLANWL_TAB -- Rows in OIJPLANWL table corresponding to rows in this table will be updated if the upd_flag is not null.

T_OIJWL_TAB -- Rows in OIJWL table corresponding to rows in this table will be updated if the upd_flag is not null.

EXCEPTIONS

No_updates_to_be_made -- If the internal table entries corresponding to OIJWL do not have the upd_flag set to "I" for insert, "D" for delete, or "M" for modify, there are no updates to be made.

Db_access_error -- If any of the SQL commands to update fail, this exception is raised.

PROCEDURE

1.

Filter all rows from table T_OIJWL_TAB with the upd_flag set to "M" into an internal table, structure OIJWL. Update rows in OIJWL table.

2.

Filter all rows from table T_OIJWL_TAB with the upd_flag set to "D" into an internal table, structure OIJWL. Delete rows from OIJWL table.

3.

Filter all rows from table T_OIJPLANWL_TAB with the upd_flag set to "D" into an internal table, structure OIJPLANWL. Delete rows from OIJPLANWL table.

4.

Filter all rows from table T_OIJWL_TAB with the upd_flag set to "I" into an internal table, structure OIJWL. Insert rows into OIJWL table.

5.

Filter all rows from table T_OIJPLANWL_TAB with the upd_flag set to "I" into an internal table, structure OIJPLANWL. Insert rows into OIJPLANWL table.

Note: OIJPLANWL is a cross-reference table between OIJRDPLAN and OIJWL . The common field is WLITEM.This field value is generated in the function module OIJW_GENERATE_RC_PLAN for the OIJWL record first. To create a reference to this from OIJRDPLAN, a row is created in OIJPLANWL with a unique WLITEM no. (See structure OIJWL, OIJPLANWL, and OIJRDPLAN).

Example

Notes

Further information





Parameters

T_OIJPLANWL_TAB
T_OIJWL_TAB

Exceptions

DB_ACCESS_ERROR
NO_UPDATES_TO_BE_MADE

Function Group

OIJW

PERFORM Short Reference   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 2419 Date: 20240523 Time: 144447     sap01-206 ( 36 ms )