Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI to create Reservation of PR

former_member230535
Participant
0 Kudos

Hi all,

I need the BAPI to create Reservation of PR, data will be saved to RESB table, not to RKPF.

Help me, pls!!!

4 REPLIES 4

Former Member
0 Kudos

Hi Dai Nguyen Quang..

the below code may useful for u..

CALL FUNCTION 'BAPI_RESERVATION_CREATE' "Create Reservation

  EXPORTING

  reservation_header = " bapirkpfc Reservation Header

* no_commit = " char1 Single-Character Indicator

* movement_auto = " movement_auto Use Goods Movement Indicator from Customizing

  IMPORTING

  reservation = " bapirkpfc-res_no Reservation Number

  TABLES

  reservation_items = " bapiresbc Reservation Items

* return = " bapireturn Return Messages

  . "

thanks,

P.Ravi.

0 Kudos

Hi ravi papani,

I set data to reservation_items, not to reservation_header and I meet the error "No items exist (not possible to save)".

0 Kudos

This message was moderated.

former_member230535
Participant
0 Kudos

Hi all,

I need a BAPI to create of Subcontracting PR, can I use BAPI_RESERVATION_CREATE?