on 05-20-2010 12:39 PM
Hi Team
My Scenario is to send IDOC from ECC to 3rd party, so outbound IDOC. Whn i am sending the idoc from ecc , there is a number 16 bit number being generated in the xml file. but i want this number to be truncated to 12 bit as the receiver system(3rd Party system) couldnt match upto the 16 bit number.
Please provide me ur valuable suggestions how to achineve this.
Awaiting for your responses
thanx in advance
> there is a number 16 bit number being generated in the xml file. but i want this number to be truncated to 12 bit as the receiver system(3rd Party system) couldnt match upto the 16 bit number.
Are you using graphical mapping tool? Then you can use the arithmetic function "formatNumber"
In this function you set attribute: 000000000000 (12 times)
But this will only work, when you are sure, that you have always a number and never a text.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Are you using graphical mapping tool? Then you can use the arithmetic function "formatNumber"
> In this function you set attribute: 000000000000 (12 times)
> But this will only work, when you are sure, that you have always a number and never a text.
or another option would be to do a subString - standard String function can help
Solved
thanx a lot guys
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you could either manipulate the data in ABAP code before the entry is written to the IDOC, or use graphical mapping or a UDF in PI to alter the field at runtime.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i am not sure what else i can offer, short of doing the work myself.....
in the mapping between the two fields, you can use a mathematical function from the graphical mapping or write some java code in a UDF.
otherwise you would have to write some ABAP to do it in a user exit before the idoc is sent.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.