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: 

Get idoc number of receiver system in a SAP-to-SAP scenario

Former Member
0 Kudos

Hi,

In a my custom program i create cremas idoc that i send to another SAP system to create the vendor in the second SAP.

How can i do to get the inbound idoc number created in the receiver SAP to get and show its status in the sender SAP without to use the ALEAUD process?

My scenario is SAP-SAP without anything between the two .

Thanks lot.

Matteo Vernile.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

See the program RBDAUD01,RBDSTATE.

But i think you have to use the ALEAUD message type only.

I haven't done this.but i advise you to read ALE EDI IDOCS BY arvind nagpal--THE CHAPTER 'configuring ale infrastructure chapter' last section.

Hope it will help you.

If you are successful in doing this please send me the details how you have done.

Regards,

Sasi

11 REPLIES 11

Former Member
0 Kudos

Dear matteo vernile

use transtion Code WE05

Thanks

Amit Shivhare

Former Member
0 Kudos

Hi,

Hi,

The inbound IDoc is usually created by middleware system i.e. SAP XI, Gentran and etc.

Once the IDoc created, you can use the inbound function module to post to the application. The function module is usually starting with 'IDOC_INPUT_xxxxx' where normally the xxxxx is the name of the IDoc message type.

You can find the associated inbound process code/function module with the IDoc message type via transaction WE42.

FM like IDOC_INBOUND_FROM_FILE...

Check the Function module idoc_inbound_aysnchronous

<b>Reward points</b>

Regards

Former Member
0 Kudos

I'm sorry, I probably explained my problem badly.

I have to catch the input idoc number created in the receiver SAP from the sender SAP by my custom program (with function module as example) to give a message to user of sender SAP with the input idoc number.

Thanks lot.

Matteo

0 Kudos

hi,

use FM IDOC_INBOUND_WRITE_TO_DB or IDOC_INBOUND_SINGLE to process the IDoc data instead of calling FM IDOC_INPUT_*?

These FM will return the IDoc number for inbound process..

<b>Reward points</b>

Regards

Former Member
0 Kudos

Hi,

I send an outbound idoc CREMAS from SAP society 1 to SAP society 2.

In the SAP society 2 is being created an inbound idoc automatically (based on partner profile).

My custom program which create and send the outbound idoc is inside in SAP society 1: i need a FM to get from SAP society 1 the idoc number created in SAP society 2 using as selection parameters field as idoc type, date of creation....

Thanks lot.

Matteo

Former Member
0 Kudos

Hi,

See the program RBDAUD01,RBDSTATE.

But i think you have to use the ALEAUD message type only.

I haven't done this.but i advise you to read ALE EDI IDOCS BY arvind nagpal--THE CHAPTER 'configuring ale infrastructure chapter' last section.

Hope it will help you.

If you are successful in doing this please send me the details how you have done.

Regards,

Sasi

Former Member
0 Kudos

Hi..

use the tcode BDM2 in the sender system.

Keerthi..

Former Member
0 Kudos

Thanks,

Are there other methods except ALEAUD or trace? Because my program can't use trace daily and i prefer to not use ALEAUD.

Thanks.

Matteo

0 Kudos

use thsi FM IDOC_DATE_TIME_GET to get the receiver idoc number with created date & time.

Former Member
0 Kudos

I test IDOC_DATE_TIME_GET but it doesn't give me nothing.

I use it as:

DATA: lt_bdi_zmoni1 LIKE bdi_zmoni1 OCCURS 0.

CALL FUNCTION 'IDOC_DATE_TIME_GET'

DESTINATION 'OLS-TEST'

EXPORTING

selection_date = '20070629'

SOURCE_SYSTEM = 'EAI-ALE'

TABLES

t_idocinfo = lt_bdi_zmoni1

.

But lt_bdi_zmoni1 is empty.

Thanks lot.

Matteo

0 Kudos

first check do u have any idoc on tht date in the receiver side.