cancel
Showing results for 
Search instead for 
Did you mean: 

IDoc Collection Scenario (IDoc to Mail Interface)

Former Member
0 Kudos

Hi,

I am configuring IDoc to Mail Scenario using BPM.

I gone through following link for develop the scenario. I am still unable to complete the scenario.

/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm

I have done following steps in my configuration. Please correct my steps if i am wrong.

Source is Outbound Invoice IDoc (SAP System).

Target is Inbound EDI 810 format send as a email(Mail System).

1. Create an Abstract Interface for Invoice IDoc(MI_IDoc_ABS)

2. Create a Message Interface for EDI 810 for Inbound(MI_EDI810_IN)

3. Create an Abstract Interface for EDI 810(MI_EDI810_ABS)

4. Message Mapping between Outbound IDoc and Abstract Invoice IDoc. I did this as per one of the above link. but did not understand the importance of this. On Message tab of Message Mapping, it shows the occurance as 1 for both source and target. I did not see the mention of this mapping in the BPM. Not sure if this was required?(MM_IDoc_ABS)

5. Message mapping between Abstract Invoice IDoc to Abstract EDI 810. On the message tab of message mapping, occurance of Source message is changed to 0-unbounded and occurance of target is kept as 1.(MM_EDI810_ABS)

6. Define Interface Mapping for above mappings

a) IM_IDoc_ABS - Outbound Invoice IDoc + MI_IDoc_ABS

MM_IDoc_ABS

b) IM_EDI810_ABS - MI_IDoc_ABS + MI_EDI810_ABS

MM_EDI810_ABS

7. Create a BPM in Integration process. Define 3 Containers namely

a) collectIDoc - Abstract Interface - MI_IDoc_ABS

b) collectIDocList - Abstract Interface - MI_IDoc_ABS(Multiline)

c) targetFile - Abstract Interface - MI_EDI810_ABS

8. Create a Block and define a infinite while loop with Block. Condition to be defined as (1=1)

9. Define a deadline block withing Block with duration = 5minutes

10. Define a Correlation in Correlation editor as SNDPOR as a ID.

11. Define a recieve step inside infinite while loop with following properties

Message = collectIDoc

Start Process = Checked

Use Correlation = Correlation

Activate Correlation = Correlation

Correlation

SNDPOR = collectIDoc./INVOIC02/IDOC/EDI_DC40/SNDPOR

12. Define Container operation next to recieve step. properties are

Target = collectIDocList

Operation = Append

expression = collectIDoc

13. Outside the block, there is Transformation Step with following properties

Interface Mapping = IM_EDI810_ABS

Source message = collectIDocList

Target message = targetFile

Acknowledgement = None

Reciever From = Send Context

Now the next step is to define Communication Channel and Receiver determination, Interface determination in the Integration Directory.

I don't know, how to go further on these steps.

In addition, could you please validate my above steps.

I appreciate your help.

Thanks,

Gowri

Accepted Solutions (0)

Answers (2)

Answers (2)

bhavesh_kantilal
Active Contributor
0 Kudos

Gowri,

<i>Step 4:</i>

All messages that reach the BPM have to be ABSTRACT messages and so you map it to the Abstract Message Type. You are on the right track. In the Interface Determination for this step , make sure you select this mapping.

<i>Step 5 </i>

Correct .

BPM is also perfect.

For the configuration this is what you will need.

Two Receievr Determaintions, Two Interface determaintions.

1 Receiver Agreement.

The first Receiver Determintion will be between the Sender Service ( IDOC business System) and your BPM. The outbound Interface will be the Idoc itself. The inbound Interface will be the Abs Interface you have created for the IDOC. You will select the first Interface mapping for the Interface Determaintion for this step.

The second receiver determaintion will be between the BPM and Mail Business System. Outbound Interface will be Abstract Interface for EDI 810(MI_EDI810_ABS) and inbound will be Message Interface for EDI 810 for Inbound(MI_EDI810_IN) > No mapping needs to be selected in this case as the Transformation Step inside the BPM does the mapping.

regards,

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

Thanks for the directions and help. I appreciate your help. I understand the steps but i am unable to implement it.

I have few more questions on above answer.

a) Do i have to create Sender Agreement?

b) Do i have to import bmp process in Integration Process in Integration Directory?

The steps that i carried out in Integration Directory.

1. Create a Scenario EDI810_Scenario

2. Create a party called EDI810_Party and EDI810_Service.

3. In EDI810_Service, Receiver tab has interfaces defined. MI_EDI_IN and MI_IDoc_ABS. In sender tab, it is INVOIC.INVOICE02 (IDoc) and MI_EDI810_ABS.

4. Define a receiver communication channel CC_EDI810_Receiver(RFC).

5. Business System for SAP is defined in Service without Party.

6. Defined Sender communication channel CC_IDoc_Sender(IDoc)

7. Create Interface Determination (First)

Properties are

Sender Service : SAP Business System

Sender Interface : INVOIC.INVOICE02 (IDoc)

Sender Namespace : IDoc namespace

Receiver Party : EDI810_Party

Receiver Service : EDI810_Service

Configured Inbound Interface is

MI_IDoc_ABS and IM_IDoc_ABS

8. Create Interface Determination Determination (Second)

Properties are

Sender Service : BPM_IP (Bpm process is imported in Integratio directory)

Sender Interface : MI_EDI810_ABS

Receiver Party : EDI810_Party

Receiver Service : EDI810_Service

Configured Inbound Interface is

MI_EDI_IN. I do not see IM_EDI_ABS in the list. How do i get that.

What step did i miss?

Thanks,

Gowri

Former Member
0 Kudos

Hey,

U have to create a sender agreement but not for the abstract sender interface but for normal sender interface.In case of IDOC sender communication channel si not required,So i think no sender agreement.

and u have to import the integration process in the directory.

And In the interface determination no need to mention the interface mapping only the inbound interface is enough.

cheers

jithesh

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

<i> Do i have to create Sender Agreement?</i>

No, as IDOC does not have a sender IDOC adapter.

<i>Do i have to import bmp process in Integration Process in Integration Directory?</i>

Yes. The name you give in the ID is the name you will use for the BPM in the Receiver Determaintion.

<i>Defined Sender communication channel CC_IDoc_Sender(IDoc)</i>

For IDOC, no sender comm channel is needed.

<i>MI_EDI_IN. I do not see IM_EDI_ABS in the list. How do i get that.</i>

Like i mentioned earlier, you will have one Interface mapping to be selected in the Inetrafce determaintion itself. the interface mapping between IDOC and the IDOC ABS will take outside BPM and will be a part of the Interface determaintion -- Interface mapping.

The second mapping takes place inside the BPM and so you need not select the Interface mapping for the second interface determiantion .

Regards,

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

Sorry for coming back on this again and again.

This means i will have 2 reciever determination and one receiver agreement and 1 interface determination in my Integration Directory for EDI810 scenario. Am i right?

In my 2nd Receiver determination, i have

Sender Service= BMP ID and

Interface= MI_EDI810_ABS

Defining condition with Party= EDI810_Party

and Service= EDI910_Service

In the same screen(2nd Receiver determination), Configured Overview for Receiver Determination shows nothing. I guess, this is how it should be right?

If you look at the 5th Step, mentioned in Initial message, I have to map IDoc (0 to unbounded) to Target File(EDi810)

During the mapping, The content in display queue for the mapped fields shows SUPPRESS. Do you the reason?

Thanks for your help.

Thanks,

Gowri

Former Member
0 Kudos

Hi Gowri,

First of all, for an understanding of abstract interfaces, and their inportance, please take a look at this..

http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/d26b3d32390968e10000000a114084/frameset.htm

cheers,

Prashanth

P.S Please mark helpful answers