06-29-2007 3:27 PM
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.
07-02-2007 1:41 PM
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
06-30-2007 7:28 AM
06-30-2007 7:34 AM
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
07-02-2007 1:17 PM
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
07-02-2007 1:25 PM
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
07-02-2007 1:39 PM
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
07-02-2007 1:41 PM
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
07-02-2007 1:48 PM
07-02-2007 3:44 PM
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
07-02-2007 3:51 PM
use thsi FM IDOC_DATE_TIME_GET to get the receiver idoc number with created date & time.
07-02-2007 4:32 PM
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
07-02-2007 4:42 PM
first check do u have any idoc on tht date in the receiver side.