cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding the PI7.1 new feature

Former Member
0 Kudos

Hi,

I came to know that the enumeration and whitespaces collapse etc in datatype are handled in PI 7.1 .

Could any one provide with the blogs for the enumeration and whitespace handling in datatype.

Thanks,

Sabitha.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Suraj,

I have refreshed the all objects (Datatype,MessageType,ServiceInterface,MessageMapping and Operation Mapping).

Even though i am getting the same message.

Is the whitespace collapse,replace and preserve is working on PI 7.1.

Have u tested the scenario in PI7.1.

Thanks,

Sabitha.

former_member187339
Active Contributor
0 Kudos

Hi,

Have you checked this link:

http://help.sap.com/saphelp_nw2004s/helpdata/en/b2/439347ce019848bf3ad9c000d414c3/content.htm

As explained there

1) whiteSpace Specifies how to apply white space characters (line feed, tabs, blanks, and carriage returns). Three values are permitted:

(i)preserve: Retains all white space characters.

(ii)replace: Replaces every line feed, tab, and carriage return with a blank.

(iii)collapse: As for replace but subsequent blanks are replaced by a single blank and leading and final blanks are deleted.

2) enumeration : Restricts the value range to a set of individual values. The values must be separated by blanks in the XSD editor.

They are as per the XML Schema (W3 Recommended) http://www.w3.org/TR/xmlschema-2/#rf-facets

Regards

Suraj

Former Member
0 Kudos

Hi Suraj,

I have used with the enumeartion and whitespaces collapse in my datatype and tested the scenario with the file to file and SOAP to file.

But i am getting the output without collapsing the whitespaces.(Same as input)

Thanks,

Sabitha.

former_member187339
Active Contributor
0 Kudos

Hi,

It will be better if you explain how the white space handling was done? This give more insight into the problem.

Regards

Suraj

Former Member
0 Kudos

Hi suraj,

I have given the whitespace as "collapse" in my datatype for the fields EmpNumber,CompanyCode,Amount .

Entered a newline for EmpNumber,CompanyCode,Amount which should be ignored at the target message.

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_EmployeeExperiencesOut xmlns:ns0="xxxxxxxxxxxxxxxx">

<Doc_Header>

<Doc_Date>16-09-09</Doc_Date>

<Company_Code>12

00</Company_Code>

<Emp_Number>14

08</Emp_Number> <Currency>12345</Currency>

</Doc_Header>

<Doc_Details>

<Payment_Details>12345</Payment_Details>

<Cost_Center_code>134</Cost_Center_code>

<Account_Code>21</Account_Code>

<Amount>0000

60010</Amount> </Doc_Details>

</ns0:MT_EmployeeExperiencesOut>

Required output:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_EmployeeExperiencesOut xmlns:ns0="xxxxxxxxxxxxxxxx">

<Doc_Header>

<Doc_Date>16-09-09</Doc_Date>

<Company_Code>1200</Company_Code>

<Emp_Number>1408</Emp_Number>

<Currency>12345</Currency>

</Doc_Header>

<Doc_Details>

<Payment_Details>12345</Payment_Details>

<Cost_Center_code>134</Cost_Center_code>

<Account_Code>21</Account_Code>

<Amount>000060010</Amount>

</Doc_Details>

</ns0:MT_EmployeeExperiencesOut>

Thanks,

Sabitha.

former_member187339
Active Contributor
0 Kudos

Hi,

Since newline is a carriage feed you shoudl have used * replace: Replaces every line feed, tab, and carriage return with a blank* in these fields EmpNumber,CompanyCode,Amount

But again you will have a blank space between the values , Try to remove them in Message Mapping

Regards

Suraj

Former Member
0 Kudos

Hi,

Even though after replacing with the "Replace" in datatype.

I am getting the same output.

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_EmployeeExperiencesOut_Target xmlns:ns0="xxxxxxxx"><Doc_Header><Doc_Date></Doc_Date><Company_Code></Company_Code><Emp_Number></Emp_Number><Currency></Currency></Doc_Header><Doc_Details><Payment_Details></Payment_Details><Cost_Center_code>12

3</Cost_Center_code><Account_Code></Account_Code><Amount></Amount></Doc_Details></ns0:MT_EmployeeExperiencesOut_Target>

Thanks,

Sabitha.

former_member187339
Active Contributor
0 Kudos

Hi,

I think it was not reflected.

Since you have changed the Data typs. You need to refresh message type, message mapping and interface mapping.

Try doing a dummy change (say including a space in description) for them and try again

Regards

Suraj

Former Member
0 Kudos

Hi Suraj,

I have refreshed the all objects (Datatype,MessageType,ServiceInterface,MessageMapping and Operation Mapping).

Even though i am getting the same message.

Is the whitespace collapse,replace and preserve is working on PI 7.1.

Have u tested the scenario in PI7.1.

Thanks,

Sabitha.