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: 

Idoc external number F09_DOCUMENT_NUMBER_GET

maria_merino
Active Participant
0 Kudos

Hi experts,

I've been asked to assign an external number to some idocs (the user wants to concatenate sales order number + idoc creation hour). I found module function

F09_DOCUMENT_NUMBER_GET in EDI_DOCUMENT_CLOSE_CREATE. while debugging I can change this number but I can't fin any userexit or enhancement to modify it.

Is there any possibility to do that?

Thanks in advance!

Maria

7 REPLIES 7

raymond_giuseppi
Active Contributor

It appears you stopped one click away of a call of BADI_NUMBER_GET_NEXT. ..

(F09_DOCUMENT_NUMBER_GET-> NUMBER_GET_NEXT -> BADI_NUMBER_GET_NEXT.)

0 Kudos

Thanks Raymond, is it possible to use this BADI?

0 Kudos

Good morning Raymond,

I've seen on Se18 that this BADI can only be implemented by SAP internally. So I can't use it..

Maria

0 Kudos

Yes, but you could try to use the explicit enhancement at start of FM NUMBER_GET_NEXT with a code similar to SAP call of the BAdI.

anand_shukla
Active Participant
0 Kudos

Hi Maria,

Please check with transaction OYSN, OYSM to maintain the number range of IDOC.

Here you can assign your number range as requirement.

Regards,

Andy

0 Kudos

I know this transaction, but they want to change the range only for one kind of idocs..

anand_shukla
Active Participant
0 Kudos

Hi Maria,

You can create new object with SNRO or SNUM with same object value.

then you can assign new number range and assign with User exit or call function at required function.