Start of Content Area

Background documentation Functions for Scheduling Agreements  Locate the document in its SAP Library structure

Refer to the following table to find the function of your choice. The functions are listed in alphabetical order.

The field BZQID is referred to in several functions. This field is the internal number of an item in a scheduling agreement, and can be determined by using function ACT_SCHED_AGREEMENT_ID (see below).

Function

Explanation

ACT_LOGSY

ACT_LOGSY returns the name of the current logical system that is being used for planning (9ALOGSY).

ACT_SCHED_AGREEMENT

ACT_SCHED_AGREEMENT returns the name (document number)  of the current scheduling agreement that is being used for planning (9ADOCNO).

ACT_SCHED_AGREEMENT_ID()

ACT_SCHED_AGREEMENT_ID returns the internal number (field BZQID) of the current scheduling agreement item. It is determined from the logical system name, scheduling agreement name, and the item number.

ACT_SCHED_AGREEMENT_PS()

ACT_SCHED_AGREEMENT_PS returns the item number that is currently being processed.

SA()

SA ( BZQID ; ‘field_name‘ returns the value of any nunerical field (field_name) in a scheduling agreement item (BZQID). This function is particularly useful for user fields.

SA_C()

SA_C ( BZQID ; ‘field_name‘ returns the value of any character field (field_name) in a scheduling agreement item (BZQID). This function is particularly useful for user fields.

SA_CALLOFF_HIST()

SA_CALLOFF_HIST( BZQID ; from_date ; ‘type‘ ; N ; <’R/I’>) returns the release history for a scheduling agreement item (BZQID) from the from_date date. In ‘type‘ you specify whether the scheduling agreement is relevant to delivery (S) or a forecast (F). In N you specify which version is read. The default is the last version (1); the last but one has n = 2 etc. In the last field you can specify whether the system views receipts (R) or issues (I). The default is I.

SA_CONF_HIST()

SA_CALLOFF_HIST( BZQID ; from_date ; ‘type‘ ; N ; <’R/I’>) returns the confirmation history for a scheduling agreement item (BZQID) from the from_date date. In ‘type‘ you specify whether the scheduling agreement is relevant to delivery (S) or a forecast (F). In N you specify which version is read. The default is the last version (1); the last but one has n = 2 etc. In the last field you can specify whether the system views receipts (R) or issues (I). The default is I.

SA_LAST_DEL_DATE()

SA_LAST_DEL_DATE ( BZQID ) returns the date of the last delivery in a scheduling agreement (BZQUID).

SA_LAST_DEL_QUANTITY()

SA_LAST_DEL_ QUANTITY ( BZQID ) returns the quantity of the last delivery in a scheduling agreement (BZQUID). This field is only used in the case of stock transfer.

SA_LAST_GI_QUANTITY()

SA_LAST_GI_ QUANTITY ( BZQID ) returns the last goods issue quantity in a scheduling agreement (BZQUID)

SA_LAST_GR_DATE()

SA_LAST_GR_DATE ( BZQID ) returns the date of the last goods receipt in a scheduling agreement (BZQUID)

SA_LAST_GR_ QUANTITY()

SA_LAST_GR_ QUANTITY ( BZQID ) returns the quantity of the last goods receipt in a scheduling agreement (BZQUID)

SA_LAST_SHIP_QUANTITY()

SA_LAST_SHIP_QUANTITY ( BZQID ) returns the notified quantity of the last delivery in a scheduling agreement (BZQUID).

SA_NEXT_FRELEASE_DATE()

SA_NEXT_FRELEASE_DATE ( BZQID ) returns the date of the next forecast release in a scheduling agreement (BZQUID).

SA_NEXT_RELEASE_DATE()

SA_NEXT_RELEASE_DATE ( BZQID ) returns the date of the next delivery-relevant release in a scheduling agreement (BZQUID).

SA_PLIFZ()

SA_PLIFZ ( BZQID ) returns the planned delivery time of a scheduling agreement item (BZQID).

SA_PLNG_CATEGORY()

SA_PLNG_CATEGORY ( BZQID ) returns ‘APO’ if the scheduling agreement ( BZQID ) is an APO scheduling agreement and ‘OLTP’ if it was created in the OLTP system.

SA_PROCESS_TYPE()

SA_PROCESS_TYPE ( BZQID ) returns the process type for the scheduling agreement (BZQID). .

SA_TOTAL_DEL_QUANTITY()

SA_TOTAL_DEL_QUANTITY ( BZQID ) returns the total delivery quantity in the complete scheduling agreement that contains item (BZQID).

SA_TOTAL_GI_QUANTITY()

SA_TOTAL_GI_QUANTITY ( BZQID ) returns the total goods issue quantity in the complete scheduling agreement that contains item (BZQID).

SA_TOTAL_GR_QUANTITY()

SA_TOTAL_GR_QUANTITY ( BZQID ) returns the total notified quantity in the complete scheduling agreement that contains item (BZQID).

SA_TOTAL_SHIP_QUANTITY()

SA_TOTAL_SHIP_QUANTITY ( BZQID ) returns the total goods receipt quantity in the complete scheduling agreement that contains item (BZQID).

 

 

 

 

 

 

End of Content Area