cancel
Showing results for 
Search instead for 
Did you mean: 

Create a sequencial serial number for different Idoc Types

Former Member
0 Kudos

Hi,

we've got a legacy system which requires a serial number in a flat file for different Idoc types. The target filename for the three different Idoc types is exactly the same, lets say: InboundFile_nnnnn.xml (where nnnnn is the sequence number)

In the header of the file we will specify what type of file it is according to the Idoc that was received, but regardless of the idoc type, the sequence numbers for all three idoc types must be sequential. The files are placed on the target server using a receiver ftp adapter on the central adapter engine.

I would like to know if there is any way to store\maintain this sequence number in XI and use it accross different message mappings?

Your response is appreciated.

Thanks

Rudi

(and a merry christmas to you all

Accepted Solutions (1)

Accepted Solutions (1)

STALANKI
Active Contributor
0 Kudos

You can create a number range object in SNRO transaction abap stack in SAP XI and use that in the mapping by connecting through JCO in XI.RFC enable Number_Get_next.

check this for more info

/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i

Former Member
0 Kudos

Hi Sravya. Good Solution, just a question: how to manage the restart of a message if the the message mapping fail the first time ?

You will get a new number each message restart ?

Sandro

Answers (1)

Answers (1)

Former Member
0 Kudos

One possibility to make this is to manage this sequence from the sending system, using a filed of the idoc for the sequence.

Than set the quality of service EOIO.

Sandro