Ansicht
Dokumentation

/SAPAPO/BAPI_CAL_SAVE_MULTI - BAPI FM for Creating, Changing, and Deleting Several Calendars

/SAPAPO/BAPI_CAL_SAVE_MULTI - BAPI FM for Creating, Changing, and Deleting Several Calendars

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The calendar data is copied from the value tables 'CALENDAR_HD' (header data), 'CALENDAR_DESCRIPTION' , 'CALENDAR_PATTERN' and 'CALENDAR_PERIOD'. This occurs on the basis of the indicators set in the flag tables 'CALENDAR_HD_X', 'CALENDAR_DESCRIPTION_X', 'CALENDAR_PATTERN_X' and 'CALENDAR_PERIOD_X' and on the basis of the language transferred in 'LANGUAGE'.

Example

Entries in fields that have not been mentioned are not required for the example.

Header Data

Table 'CALENDAR_HD'

  • TSTRTYPE: 'T'
  • TSTREAMID: 'BAPI_TEST1'
  • CALENDARID: ''
  • TZONE: 'UTC'

Flag table 'CALENDAR_HD_X'

  • TSTRTYPE: 'T'
  • TSTREAMID: 'BAPI_TEST1'
  • CALENDARID: ''
  • TZONE: 'X'
  • MODE: '1'

Description Data

Table 'CALENDAR_DESCRIPTION'

  • LANGKEY: 'E'
  • TSTRTYPE: 'T'
  • TSTREAMID: 'BAPI_TEST1'
  • CALENDARID: ''
  • TEXT40: 'This is a BAPI Test'

Flag table 'CALENDAR_DESCRIPTION_X'

  • LANGKEY: 'E'
  • TSTRTYPE: 'T'
  • TSTREAMID: 'BAPI_TEST1'
  • CALENDARID: ''
  • TEXT40: 'X'
  • MODE: '1'

Calendar Pattern

Table 'CALENDAR_PATTERN'

  • TSTRID: 'BAPI_TEST1'
  • DUPRE: '1'
  • WKNUM: '1'
  • WKDAY: '3'
  • TIME1: '093000'
  • TIME2: '103000'

Table 'CALENDAR_PATTERN_X'

  • TSTRID: 'BAPI_TEST1'
  • DUPRE: '1'
  • WKNUM: 'X'
  • WKDAY: 'X'
  • TIME1: 'X'
  • TIME2: 'X'
  • MODE: '1'

Calendar Period

Table 'CALENDAR_PERIOD'

  • TSTRID: 'BAPI_TEST1'
  • PPBIS: '20080415123000'
  • PPVON: '20080415121500'
  • PPFIX: ' '

Table 'CALENDAR_PERIOD_X'

  • TSTRID: 'BAPI_TEST1'
  • PPBIS: '20080415123000'
  • PPVON: '20080415121500'
  • PPFIX: 'X'
  • MODE: '1'

Notes

1. ,,An entry in the relevant flag table must be available for each entry in a value table.

2. ,,To change a concrete calendar period, the entry has to be deleted and created again with the changed data.

3. ,,You can use the calendar CALIDGEN to specify the valid working days for which the pattern is to be applied (for example, excluding public holidays).

4. ,,The data to be changed is not updated until after a commit. This is not executed in the function module.

5. ,,The following modes are possible in the flag tables:

Add '1'

Change '2'

Maintain (Add or Change) '3'

Delete '4'

The mode 'Maintain' allows you to specify the required end state on the database without it being known whether data already exists that is to be overwritten or whether new data must be added.

Further information





Parameters

CALENDAR_DESCRIPTION
CALENDAR_DESCRIPTION_X
CALENDAR_HD
CALENDAR_HD_X
CALENDAR_PATTERN
CALENDAR_PATTERN_X
CALENDAR_PERIOD
CALENDAR_PERIOD_X
RETURN

Exceptions

Function Group

APO/SAPLBAPI_CALENDAR

Vendor Master (General Section)   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 4738 Date: 20240604 Time: 051444     sap01-206 ( 57 ms )