Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Messed up with looping, help me

Status
Not open for further replies.

R279

Programmer
Nov 16, 2006
8
US
Hi guyz,

a very imp help is needed from you guyz,
this is the scenario
I am working on outbound map,
in the input side i have one header and one detail,
detail is just one segment in one grp which loops 1000
so if one element called TYPE in that segment becomes 'T' then in the right side (ie) X12 side of map ,the detail
group which also iterates 1000 times(this has many segments connected to our left side one segment) must not come in output.
like the right side loop must completely blank out whenever i get value 'T' to my element TYPE in left side,
TYPE will be getting other values also but only when it becomes 'T' this scenario must happen.

trying in lot different ways, please help me out,it very urgent for me.

Thanks in advance.

Raj
 
Raj, when you post a question? the good way to eloborate is
1.explain the situation
2.EDI tool you are using and transaction details.
2.desired output.
This gives idea what you wanted.
OK, According to what i understand, you want to empty the field when you have "T", is that right?

GIS Mapper:
if #field="T" then
empty(#field);

Gentran Mapper:
when data found #field;
when #field!="T"
map to #outputsidefield;

mail me if it helps
Thanks
Ravi
 
Hi Ravi,

Thanks for your help,

yep I already got thru this scenario kind of same way you

mentioned.

sorry that i couldnt be more clear on my question,

can you help in something else,

what is this generic envelope segment?

I am using Gentran NT 4.0

Like I can see generic envelope segment comprises of

nearly 40 fields like control number,sub count,field 1..40

so how do we know what value is for which field 1..40?

Thanks once again.

Raj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top