cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to access content in MessageTransformBean Module

Former Member
0 Kudos

Hello,

Is it possible to access the Content/Payload via Module MessageTransformBean, I have a requirement to access the Data after conversion .

I have searched the sap help on this ,but i dont see any access parameter for this,is this can be accessible by somw workaround

Thanks in Anticipation

Rajesh

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>Is it possible to access the Content/Payload via Module MessageTransformBean, I have a requirement to access the Data after conversion .

so put your own adapter module after MessageTransformBean

what's the issue here ? with your own adapter module you have access to payload data after MessageTransformBean

Regards,

Michal Krawczyk

http://mypigenie.com XI/PI FAQ

Former Member
0 Kudos

Hello Michal,

I need to send mail dynamically based on the payload as attachment in the form of flatfile.

Is this can be done with using standard adapter modules.If not how can i proceed.

Replies will benefit me a lot.

Waiting for hearing

Thanks in Anticipation

Rajesh

AaronLong
Advisor
Advisor
0 Kudos

Hi Rajesh,

Standard module processor within the adapter provides no this functionality unfortunately.

Anyhow, this seems to have nothing to do with your message routing, mapping etc, will also bring difficulty for the message restartability and monitoring, could be performance bottleneck.

Processing the email outside of PI before/after the payload completed is recommended here.

Cheers,

Aaron

Former Member
0 Kudos

Hello,

I will be receiving Invoice idoc where i need to mail based on the vendor No after converting it into Flatfile .Could you guide me /list the posibilities of acheiving this.

Thanks once again

Rajesh

Shabarish_Nair
Active Contributor
0 Kudos

Option 1:

1. use the messagetransformbean in the mail adapter to create the flat structure.

2. use the option XIPAYLOAD in the mail adapter, provide to, cc etc details

Option 2:

1. Create a mapping (preferably java) to convert the IDoc to flat files

2. send via mail adapter

Former Member
0 Kudos

Hello Shabarish,

In option 1

1. I can use first step for converting idoc to flatfile

2. How can i send mail dynamically

option 2:

1. Do i need to use multimapping for this step in order to send mail dynamically in the form of flatfile

Replies will be helpful to me

Thanks

Rajesh

Shabarish_Nair
Active Contributor
0 Kudos

>

> Hello Shabarish,

>

> In option 1

>

> 1. I can use first step for converting idoc to flatfile

> 2. How can i send mail dynamically

>

> option 2:

>

> 1. Do i need to use multimapping for this step in order to send mail dynamically in the form of flatfile

>

>

> Replies will be helpful to me

>

> Thanks

> Rajesh

With your situation Option 1 wouldnt be of much use.

Go for option 2.

use a java mapping to help you create the flat structure. Lets say based on your vendor number you have to do the routing. The output of your mapping should be something like below;

<Payload>
<Data>xxxxxxxxxxxxx..... ALL DATA (FLAT) will be here xxxxxxxxxxxxxx </Data>
<VendorNum>xxxxxx</VendorNum>
<Payload>
<Payload>
<Data>yyyyyyyyyyyy....ALL DATA (FLAT) will be here xxxxxxxxxxxxxx </Data>
<VendorNum>yyyyy</VendorNum>
<Payload>
....
....
....

You can use routing based on the vendor now. Also use messagetransformbean to extract the Flat file data from the Data node.

Former Member
0 Kudos

Hello Shabarish,

+use a java mapping to help you create the flat structure. Lets say based on your vendor number you have to do the routing. The output of your mapping should be something like below;

<Payload>

<Data>xxxxxxxxxxxxx..... ALL DATA (FLAT) will be here xxxxxxxxxxxxxx </Data>

<VendorNum>xxxxxx</VendorNum>

<Payload>

<Payload>

<Data>yyyyyyyyyyyy....ALL DATA (FLAT) will be here xxxxxxxxxxxxxx </Data>

<VendorNum>yyyyy</VendorNum>

<Payload>

....

....

....

You can use routing based on the vendor now. Also use messagetransformbean to extract the Flat file data from the Data node.+

Please clear two things here to me

1. After using java mapping for conversion (idoc to flatfile and extract vendorno) ,now i need to send the flatfile data to vendormail id based on his no ,How i can acheive this???

Dont i need to use mail adapter attributes i.e Mail message provided by SAP for dynamic mail recipient

2. You can use routing based on the vendor now.

For the above you mean create a separate business service and assocaite mail adapter channel

  • Also use messagetransformbean to extract the Flat file data from the Data node*,How do i acheive

this??

Thanks for your prompt replies

Regards

Rajesh

Shabarish_Nair
Active Contributor
0 Kudos

>

> 1. After using java mapping for conversion (idoc to flatfile and extract vendorno) ,now i need to send the flatfile data to vendormail id based on his no ,How i can acheive this???

> Dont i need to use mail adapter attributes i.e Mail message provided by SAP for dynamic mail recipient

>

use conditions in Receiver determination and Make a mail adapter per vendor with his details.

i would have suggested to use dynamic configuration in your mapping. But that will complicate things more

> 2. You can use routing based on the vendor now.

> For the above you mean create a separate business service and assocaite mail adapter channel

> * Also use messagetransformbean to extract the Flat file data from the Data node*,How do i acheive

> this??

>

yes. you are right.

Former Member
0 Kudos

Also use messagetransformbean to extract the Flat file data from the Data node

What is the purpose of this? Can you please explain this ?

How do i do the mapping is there any sample code for converting idoc data to FlatFile.

Also we will be having more than 130 vendors in this process,Still do i need to do this??

Thanks for Suggestions/solutions

Rajesh

Shabarish_Nair
Active Contributor
0 Kudos

>

>

> Also use messagetransformbean to extract the Flat file data from the Data node

>

>

> What is the purpose of this? Can you please explain this ?

>

> How do i do the mapping is there any sample code for converting idoc data to FlatFile.

>

> Also we will be having more than 130 vendors in this process,Still do i need to do this??

>

>

> Thanks for Suggestions/solutions

>

> Rajesh

sorry it is not the messagetransformbean but strictxmltoplainbean.

have a look - http://help.sap.com/saphelp_nw04/helpdata/en/44/748d595dab6fb5e10000000a155369/content.htm

Former Member
0 Kudos

IS there any sample code for converting idoc to Flatfile ??

can you please explain the process of dynamic configration for vendors sending mail dynamically

Rajesh