Fonction SAP API_SEMBPS_ADHOCPACKAGE_SET - Set Ad Hoc Package

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_AREA UPC_AREA-AREA C 8 Planning Area
I_PLEVEL UPC_PLEVEL-PLEVEL C 8 Planning Level

Paramètre Reférence Type Long. Description
ES_RETURN BAPIRET2 u 548 Return Parameter
E_SUBRC SYST-SUBRC I 4 Return Code

Paramètre Reférence Long. Facultatif Description
ITK_CHASEL UPC_YS_API_CHASEL 173 X Characteristic Selection

Functionality
The selection condition for the ad hoc package can be set with thisfunction module.
The ad hoc package can then be used in a subsequent call of thefunction modules API_SEMBPS_GETDATA, API_SEMBPS_FUNCTION_EXECUTE orAPI_SEMBPS_SEQUENCE_EXECUTE, by entering as parameter I_PACKAGE thevalue '0-ADHOC'.

Description
This structure can contain a message. In the case of E_SUBRC <> 0 itcontains an error message, in the case of E_SUBRC = 0 an informationmessage can be in this structure.

Description
This return parameter contains the value 0, when the module could beexecuted without any errors, otherwise the value of the returnparameter is larger than 0.

Description
A selection condition for characteristic values can be entered in thistable.
Selection of one or several single values
For every single value, a table entry of the following structure is tobe entered:
CHANM = Name of characteristic
SIGN = 'I'
OPTION = 'EQ'
LOW = Characteristic value
Selection of one or several ranges
For every range, a table entry of the following structure is to beentered:
CHANM = Name of characteristic
SIGN = 'I'
OPTION = 'BT'
LOW = Lower limit characteristic value
HIGH = Upper limit characteristic value
The characteristic values must be entered in external format (forexample period 001.1999 instead of internal format 1999001).
Only characteristics can be selected to set the ad hoc package, forwhich 'Selection in package' was selected in the planning level. Youget this information from the module API_SEMBPS_PLEVEL_GETDETAIL.