on 05-22-2007 10:31 AM
Hello all,
I am doing a scenario of posting data from orders05 idoc to cxml where in I am populating the descption filed to an attribute in the cxml which is my target. Now the requirement is if the description contains more than 70 characters then in the target it should generate a new node for every 70 characters.
Now I have in the target as
Extrinsic name="FooterComments">For freight charges, fax original Bill Of Lading or Shipping Receipt and a copy of the Prepaid Freight Bill referencing the Invoice Number.</Extrinsic>
But I need it to be populated as
<Extrinsic name="footerComment">* For freight charges, fax original Bill Of Lading or Shipping Receipt</Extrinsic>
<Extrinsic name="footerComment">and a copy of the Prepaid Freight Bill referencing the Invoice</Extrinsic>
<Extrinsic name="footerComment">Number.</Extrinsic>
Please help me in this issue. can this be done with the graphical mapping?
If an UDF has to be created then can any one provide me with the UDF as I am totally unaware of Java.
Thanks for the help!!!!!!!!!!!!!!!!!
waiting for your precious replies.
Regards,
Chaitanya
Hi ;
Just let me know if it solved your prob otherwise we can take this discussion forward
Mudit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Mudit,
I have removed the spilt by value function. it is working now.
But there is one problem I have the source coming as
Transmit an electronic copy of the invoice referencing our Purchase Order Number.
The UDF is braking the code till Or and in the next tag it is not populating from d for Order. can you please help on this.
Thanks a lot.
Hello,
we have to map idoc orders05 to cxml. I do not have a lot of experioence with idocs not with complex mappings in pi.
Should it be possible to get some help? apparently you were able to solve this problem.
On the other hand we are wondering if - in a new project - working with idocs and pi is advisabel.
Thanks a lot.
Kris
Hi ;
Yes you can do it using graphical Mapping using UDF.
UDF will be context level and input will be your text field.
String str=Test[0];
while(str.length()>70)
{
result.addValue(str.substring(0,70));
str=str.substring(71,str.length());
}
result.addValue(str);
Mapping will look like
source field -
UDF --- split by value --target field
Mudit
Award points to motivate me to help you further
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.