Skip to Content
0

Required EXIT/BADI to assign the External number to Reservation Creation

Feb 28 at 12:37 PM

45

avatar image
Former Member

Hello,

My requirement is to create the Material Reservation and we receive the data in INBOUND IDOC.

So we need to assign the external number for the reservation created from idoc. SO please provide me any EXIT or BADI available for the same.

Thanks in advance.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Raymond Giuseppi
Feb 28 at 01:07 PM
0

Are you using an IDOC like MATERIALRESERVATION_CREATE1 (FM IDOC_INPUT_RESERVATION_CREATE1) which use BAPI_RESERVATION_CREATE1 (or a more recent version)

The segment E1MATERIALRESERVATION_CREAT should already contains the external number E1MATERIALRESERVATION_CREAT-RESERVATION_EXTERNAL generated by the original outbound process?

Nevertheless the BAPI allows some Exit/BAdI :

  • Customer Exit: EXIT_SAPLMB_BUS2093_001 (Enhancement MBCF0010)
  • BAdI: MB_RES_BAPI_CREATE1

Also for reference there is a BAdI for internal number range BADI_NUMBER_GET_NEXT

Show 6 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hello,

We are using IDOC with message type(MRESCR) and that internally using the FM (BAPI_IDOC_INPUT1) and this FM is calling the BAPI_RESERVATION_CREATE.

So while creating the reservation it is taking default number range '02' from config. But we created new number range with interval '03'. So i need exit or BADI where i can change the interval from 02 to 03. So, it will Create the reservation with external number interval which we defined.

0

BAPI_IDOC_INPUT1 is a generic inbound IDOC processor, it will call IDOC_INPUT_MRESCR for message type MRESCR, and then the obsolete BAPI_RESERVATION_CREATE (look at object type BUS2093 with transaction SWO1, what's your version?

0
Former Member

Hello,

As you suggested if i used Idoc for reservation creation 'MATERIALRESERVATION_CREATE1', but user is not sending any external number in the segment 'E1MATERIALRESERVATION_CREAT-RESERVATION_EXTERNAL' for reservation creation. So how to fill this segment value with reservation number and we are using standard process code for the creation of reservation.

So please suggest any BADI or EXIT we can use to populate it.

Thanks in advance.

0

Don't think theere should be any exit/BAdI for that, should have be done by sender... so did you look for implicit/explicit enhancement in inbound FM (before BAPI call, like in form idoc_status_reservation_create) or in the BAPI itself (the BAdI/Exit provided purpose is only to manage extension, and as thecaller did nothing to provide some data...)

0
Former Member
Raymond Giuseppi

Do we have any function module to get the next external number series , as 'NUMBER_GET_NEXT' is not working for external number generation and I think it will work only for internal number generations.

So even i implement implicit enhancement, i am not getting any function module that generates external number series.

So, kindly let me know if we have any FM that we can use for number generation.

0

Create another dummy number range and use it to generate a number, but check generated number is in your defined RESB range Nr. (Look at form check_number of function group MB_BUS2093, you could also add your code in the get_number form of same group)

0