on 01-25-2007 11:10 AM
Hi,
I am doing an ABAP proxy to File scenario, and I have a Zprogram that triggers the proxy, the problem i am facing is, in My Zprogram, say if any of my source field has no value i;e just spaces/blank, then the XML structure generated by the proxy does not contain those fields ,and becouse of which i am getting exceptions in Mapping,what could be the problem, how would i be able to generate the complete XML structure eventhough the values in some source fields do not have any value. please help, Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thanx for all your valuable inputs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the Zprogramme you need to use if ,else loop to see the condition is true.
My suggestion is replace space with zero's,then you won't get any Java runtime exception.......
JE.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you do not want to change cardinality as I aassume you are mapping the source field to some mandatory target field, you can also use MAPWITHDEFAULT to handle this.
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
all you need to do is to change the cardinality of the target node. this shud be a simple fix.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It sounds like you have some fields on your target structure that are defined with a cardinality of 1....1 or 1...unbounded
Therefore adjust to be 0...1 or 0...unbounded and your mapping will work ok because there will be no mandatory fields.
Alternatively, move a constant of space to the target fields if the source is blank.
Kind regards
Colin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Change the minimum occurance of source nodes from 0 to 1.
Supoose you have 0..1 change it 1..1
Similarly 0..unbounded 1..unbounded
Regards,
Jai Shankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.