on 02-01-2012 4:07 PM
Hi frnds,
File to idoc
Source:
Header (0 to 1 occ)
Detail(0 to n)
Trailor(0to 1)
Target :IDOC
here i am repeating A3 segments based on some condition with detail record...this fine
under this A3 segments there is a field MWSKZ
I am sending tax code (I0 or I2) based on some condition.that is working fine.
the problem is if A3 segment repeats more than once.in 1 st A3 segment i need to populate I0 or I2.
from second Segment onwards i sud not create any value for MWSKZ
But it is creating value in every segment level.
please advice....
Regards,
Suri
Hello,
the problem is if A3 segment repeats more than once.in 1 st A3 segment i need to populate I0 or I2.
from second Segment onwards i sud not create any value for MWSKZ
It is assumed that the MWSKZ is 0..1, then what you can do is not to use any context change after creating the detail record e.g
your logic for MWSKZ -> removeContext -> MWSKZ
This way, only the first value of MWSKZ is created (top value) and the others will not appear.
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Thanks for reply
@Mark:if i am mapping with one to one as u said .then urlogic will work out.
Here i am sending tax code based on some condition with other field HKONT.if that condition satisfies then only need to pass I2 or else I0.
and i tried with split by value (each value also).but still value is repeating in second A3 segment.donno what i sgng wrong.
Regards,
Suri
Hi frnds,
File to idoc
Source:
Header (0 to 1 occ)
Detail(0 to n)
Trailor(0to 1)
Target :IDOC
here i am repeating A3 segments based on some condition with detail record...this fine
under this A3 segments there is a field MWSKZ
I am sending tax code (I0 or I2) based on some condition.that is working fine.
I2 --> GL 441200001 and Tax Line item is there
I0 --> GL 441200001 but tax line item is not there
if other than GL 441200001 we sud not create any tax code.
Tax line item is T3 segment at idoc side
Please advice
Regards,
Suri
Edited by: suri svn on Feb 2, 2012 10:12 AM
Suri,
how about this:
For the parent Node
[GL Field]-------------------\
[Constant: 441200001]--------[equalsS]--------[ createIF ]--> A3
For MWSKZ
[GL Field]-------------------\
[Constant: 441200001]--------[equalsS]-------------------------------------[ ifWithoutElse ] -----[collapseContext]----->[SplitByValue: eachValue]-> MWSKZ
[taxLineItem]---->[exists]---->[FixValues: true-> I2; false -> I0 ] ------/
Could you give a short data example what you get in?
Regards,
Konrad
Hi, you may need to add a context split after each tax code. Try add a SplitByValue(each value) function before creating the tax code field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Suri
You are creating A3 segment based on certain conditions, Create a UDF to count the number of times segment A that should be created.
Write another UDF where you run a loop for number of times A is supposed to be repeated.
Now you can control/suppress the MWSKZ node
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.