cancel
Showing results for 
Search instead for 
Did you mean: 

how to set EXPORT parameter from message mapping

Former Member
0 Kudos

Again, ask the question of export parameter.

I wrote a java version transformation and it worked good with export parameter.

However I can not work it out in graphical message mapping. I refered http://help.sap.com/saphelp_nwpi71/helpdata/en/43/c3e1fa6c31599ee10000000a1553f6/frameset.htm.

In PI7.1, I add an export parameter "EXPORT_PARA" in the "Signature" tab. Are there any special step to assign this parameter to an UDF? I did not find a way to do it.

And then I define an UDF,

public String SetExportPara(String sss, Container container) throws StreamTransformationException{

String str = "GOOD";

GlobalContainer gc = container.getGlobalContainer();

OutputParameters paras= gc.getOutputParameters();

if(paras.exists("EXPORT_PARA ") == true) {

paras.setString("EXPORT_PARA ", str);

}else {

str = "NOT FOUND EXPORT_PARA";

}

return str;

}

And I assign this UDF to one element of my output XML, I tried to run it in IE, it always output "NOT FOUND EXPORT_PARA.

why?????

I know there is a blog : https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/8654. [original link is broken] [original link is broken] [original link is broken]

But it did not talk how to set export parameters.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

close this

Former Member
0 Kudos

Hi,

Have you look into the steps mentioned in below discussion in forum

Thanks

Swarup

Former Member
0 Kudos

yes, i do read it.

it said "export parameter only in transformation step of Integration Process", is it correct?

I create a normal test senario for java mapping, it worked.

And Rajesh in that thread said "assign the error returned to the ERROR_TEXT field", I am not clear about the details to do it.

Former Member
0 Kudos

Remove the check for exists. Using your code in a sample transform with the other lines commented out worked:

//if(paras.exists("EXPORT_PARA ") == true) {
	paras.setString("EXPORT_PARA", str);
//}else {
//    str="IT'S FALSE";
//str = "NOT FOUND EXPORT PRA";
//}

Former Member
0 Kudos

Hi,

i read thread

and blog

/people/jin.shin/blog/2008/02/14/sap-pi-71-mapping-enhancements-series-parameterized-message-mappings

but not found issue

in this topic

http://help.sap.com/saphelp_nwpi71/helpdata/en/43/c3e1fa6c31599ee10000000a1553f6/frameset.htm.

if i writting this code in UDF, i getting an error.

If use this code:

---

GlobalContainer gc = container.getGlobalContainer();

OutputParameters paras= gc.getOutputParameters();

paras.setString("EXPORT_PARA ", str);

---

the export parameter is defined locally (in transformation step area). In integration process area parameter is equal to NULL.

How send export parameter to Integration Process? For exapmple, i wanna send parameter to other transformation step in my integration process.

thx.