cancel
Showing results for 
Search instead for 
Did you mean: 

XI: ALEAUD01 not updating the orginal idoc

Former Member
0 Kudos

I have a scenario where XI maps an idoc to file on a server using the file adapter. XI will then come by at a later point and map that file to an aleaud01 idoc using the following:

E1ADHDR-MESTYP = the message type of the custom z idoc I sent out.

E1ADHDR-MESTYP_LNG = the message type of the custom z idoc I sent out.

E1STATE-DOCNUM = the idoc number of the file I wrote to the server

E1STATE-STATUS = 53

E1STATE-STATXT = my message

I can see the aleaud01 idoc in we02 on sap with the values that I want, however the problem that I am having is that it is not updating the original idoc that I specified with status 53.

Any ideas?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

I found a solution for this.

Instead of using the ALEAUD idoc I switched to SYSTAT01 and mapped the following:

DOCNUM = IDoc number that I want to update

LOGDAT = Date

LOGTIM = Time

STATUS = 41

STATXT = my message

No changes to SAP other than a partner profile addition for the new idoc and it works perfectly.

Former Member
0 Kudos

hi,

you cant do like that

you need to call 'IDOC_STATUS_WRITE_TO_DATABASE' Function Module in your Exit or in report....

Regards,

Akshay.

    • Reward points if find useful.

udo_martens
Active Contributor
0 Kudos

Hi Michael,

the values are ok. Assumedly the ALEAUD is just queued but not processed.

Regards,

Udo

Former Member
0 Kudos

The ale idoc shows as status 53

Former Member
0 Kudos

hi,

you cant do like that

you need to call 'IDOC_STATUS_WRITE_TO_DATABASE' Function Module in your Exit or in report....

Regards,

Akshay.

    • Reward points if find useful.

Former Member
0 Kudos

so, create a report program that calls this FM and pass in the value of the ALEIDOC number to process?

Former Member
0 Kudos

Hi,

yes.

Regards,

Akshay.

Former Member
0 Kudos

Some additional information. When I generate the outbound idoc from R/3, I have 2 ALEAUDIT idocs that come back from XI that reference my idoc but have status 68. I then have a third idoc come in with the information I mapped to it.

Is it possible that the 2 status 68 idocs are interfering with the update of my last ale idoc?

Former Member
0 Kudos

Hi,

no chance that any IDOC is interferring your third IDOC.

Regards,

AKshay.

Former Member
0 Kudos

ok sounds good.

Is anyone else having this issue? It just seems that it would be a pretty common scenario and I have a hard time believing that you need to write a custom program to update the idocs.

Is there any way to know if a particular ALEidoc has already been processed? (assuming process the FM call above)

Former Member
0 Kudos

Hi,

As per my understanding...

1.one scenario is IDOC->XI->File.

2. other is File (above)->XI-> IDOc.

you want to change the status of IDOC from 2 nd step.

right?

when IDOC comes into R/3 ..data goes into EDID4 table with DOCNUM.

Now your header details will be replaced in Process code attached with IDOC.

You want to change the status of IDOC to value mapped right?

you can make updation in EDID4 table.

correct me...if wrong...

Regards,

Akshay.

Former Member
0 Kudos

Close. I have:

1A Custom IDOC > XI > File (content for client).

1B XI > audit file (with what I want to read later). A second interface kicks this off after I have written the primary file.

2 Audit file > XI > ALEIDOC

The aleaudit idoc contains the idocnum from 1A and status field of 41.

I want the aleidoc to update the status of idoc in 1A to 41.

Currently I get back 3 ale idocs

2 idocs are in status 68. I think these are for each of the files I wrote to the ftp server.

1 idoc has the info I mapped to it.

The idoc in 1a stays in status 40.

Former Member
0 Kudos

Hi,

<i>I want the aleidoc to update the status of idoc in 1A to 41.</i>

>> just go to EDID4 table with IDOC number and see what is the status

if it is 40 then you have to run querry...in report probably to change the status of this IDOC it would be "update EDID4 set status = 41 where docnum=idocnumber"

Hope this will help.

Regards,

Akshay.