CreateFromData1
Create reservation ExampleYou can use this method to create individual reservations. NotesThe 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 the
COSTCENTER field) if the movement type requires an account assignment The system transfers the item data in the ReservationItems table. The following 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 for
this parameter contains the return values and their meanings. No transaction control is implemented. The caller therefore has to carry out the 'Commit Work' (for example, using theBAPI_TRANSACTION_COMMIT) after this method has been called up successfully; that is, if no errors were displayed in the parameter
Return'.
|