on 10-15-2015 7:32 PM
Hello,
I am using standard XSLT mapping provided by SAP for SAP SNC and SAP ECC integration(Proxy->PI->IDOC).
I have a field that is coming with padded blank spaces and i have to remove that before mapping to Idoc in XSLT mapping.
I am using below function to remove blank spaces but nothing is working. Seems to be i am placing at wrong place or i syntax might be wrong.
Please help me to fix this issue.
<xsl:strip-space elements="ID"/>
My source structure:
InvoiceRequest
-MessageHeader
-Invoice
--Item
---ID
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bhavana,
I recommend, not to change standard XSLT given by SAP. Please create an additional graphical mapping (one-to-one) where you can use standard function 'trim'. Use this additional graphical mapping after XSLT in operational mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhavana.
First of all i totally agree with Raghuraman and with Eng, it's difficult to help you if you don't share your XSL and if it is not necessary you should try ever to use the message mappings. Also we need to know what is your PI and SP version because in this way we can know if you can use XSLT 2.0. If you only can use XSLT 1.0 you can check the solution provided in the stackoverflow's thread xml - How can I trim space in XSLT without replacing repating whitespaces by single ones? - Stack Ov...
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Bhavana,
It the white spaces are coming in a single field,you can remove it in mapping using udf or standard mapping functions.No need of additional XSLT.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhavana
Please provide the full XSLT mapping and also a sample of your source message.
Rgds
Eng Swee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.