Functionality Create reservation Example You can use this method to create individual reservations. Notes The following authorization objects are checked with the activity 01(create): Reservations: movement type Reservations: plant The system transfers the header data of the reservation in theReservationHeader parameter. The following data is required for this: -,,movement type (Field MOVE_TYPE) -,,the account assignment object (for example, the cost center in theCOSTCENTER field) if the movement type requires an account assignment The system transfers the item data in the ReservationItems table. Thefollowing data is required for this: -,,plant (PLANT field) -,,material number (MATERIAL field) -,,requirement date (REQ_DATE field) if no base date ( RES_DATE field)has been entered in the header data The reservation number is returned in the parameter 'Reservation'. Messages are returned in the parameter 'Return'. The documentation forthis parameter contains the return values and their meanings. No transaction control is implemented. The caller therefore has tocarry out the 'Commit Work' (for example, using theBAPI_TRANSACTION_COMMIT) after this method has been called upsuccessfully; that is, if no errors were displayed in the parameter'Return'. Description In this parameter the number of the reservation that was created isreturned. If the Bapi is called up in the test run, this parameter is initial. Description ATP check>.Value range If this parameter is set, the system executes an ATP check during thecreation of a reservation.>Default The default value for this parameter is 'blank', in other words, theATP check is not executed. Description Factory calendar check>Value range If this parameter is set, the system checks during creation of thereservation>whether the particular reservation date falls on a working day.If this is not the case, the system issues a corresponding message viathe return table.Default The default value for this parameter is 'blank', in other words, thefactory calendar check is not executed. Description The structure with the header data of the reservation is transferred inthis parameter. For an account assignment to aWBS element>, instead ofthe WBS_ELEM> (PS_PSP_PNR>) field with aninternal eight-figure WBS number, the WBS_ELEMENT> ( PS_POSID>) field with an external 24-figure WBS namemust be transferred to this parameter. INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX LANGUAGE ENDescription This parameter determines the external reservation number. Value range With this parameter, you can transfer an external reservation numberthat must lie within the external number range for reservation BAPIs(number range RB) defined in Customizing. See the IMG activityDefine Number Assignment forReservations>.Default The default value for this parameter is 'blank', in other words, thenumber assignment is internal, not external. Description Test run Value range If this parameter is set, the system runs all the necessary checks, butdoes not create the reservation. Default The default value for this parameter is 'blank'; that is, thereservation is created. Description Characteristics and characteristic values for profitability segment. Description The table contains the item data for the reservation that is to becreated. For information on the meaning of the individual parameter fields,refer to the relevant data element documentation in the ABAPDictionary. Meaning,, This table contains the confirmations from the method call. Value range Type,,ID,,Number,,Message E,,,,M7,,000,,,,Entry & & & is not in table & (system error) E,,,,M7,,013,,,,Enter a movement type E,,,,M7,,014,,,,Enter a material S,,,,M7,,060,,,,Document & posted E,,,,M7,,120,,,,You do not have authorization for this transaction inplant <(>&<)> E,,,,M7,,121,,,,You do not have authorization for this transaction withmovement type &,, E,,,,M7,,504,,,,Enter reservation requirement date E,,,,M7,,508,,,,The reserved quantity is zero S,,,,M7,,529,,,,The reservation can be created E,,,,M7,,892,,,,Plant & does not exist E,,,,M7,,894,,,,Enter at least one plant E,,,,M3,,305,,,,Material & does not exist or is not activated S,,,,BAPI,,000,,,,Reservation has been created E,,,,BAPI,,001,,,,No instance of object type BUS2093 has been created S,,,,BAPI,,016,,,,The simulation for object type BUS2093 was successful E,,,,BAPI,,017,,,,The simulation for object type BUS2093 wasunsuccessful |