Carlos,

I think you are missing the group name in the 2nd "IF".

 

Michael

 

From: EDI-L@yahoogroups.com [mailto:EDI-L@yahoogroups.com] On Behalf Of
Carlos
Sent: Wednesday, August 21, 2013 8:10 AM
To: EDI-L@yahoogroups.com
Subject: [EDI-L] Gentran for Windows 5.1 856 looping question

 

  

Hello all, 

Wondering if any of you could help me out here. I have the below on a
Extended Rule On End, In my HL Loop Item Group. My problem is the 2nd IF -
What I want to do is check to see if the Element isn't there if So then grab
m y PO# from the REF Segment on the Order HL Loop. 

I normally ask my TPs to send me the PO# on the Item Loop LIN07 and that
works fine if they do - we do this because some do pack mix PO# and I need
to know what is in that pack. But we have those that do not mix the PO# but
I still need to output the detail of the PO# if the send it in the LIN07 im
golden but if them do not I want to capture it from the REF and write it out
on all of my detail lines. any ideas? I hope that I had made any sense here.

Thanks in Advance Carlos

IF $1000_HL:4.#0735:4="I" THEN
BEGIN
$TempDetailGroup[HL_S_CNT][HL_O_CNT][HL_T_CNT][HL_I_CNT].#TempPoNum:2 =
$1000_HL:4.#0234:48828;
$TempDetailGroup[HL_S_CNT][HL_O_CNT][HL_P_CNT][HL_I_CNT].#TempPoNum:2 =
$1000_HL:4.#0234:48828;
IF $1000_HL:4.#0234:48828= "" THEN
$TempDetailGroup[HL_S_CNT][HL_O_CNT][HL_P_CNT][HL_I_CNT].#TempPoNum:2 =
$1000_HL:2.#0328:3;
$TempDetailGroup[HL_S_CNT][HL_O_CNT][HL_T_CNT][HL_I_CNT].#TempISBN:2 =
$1000_HL:4.#0234:16276;
$TempDetailGroup[HL_S_CNT][HL_O_CNT][HL_P_CNT][HL_I_CNT].#TempISBN:2 =
$1000_HL:4.#0234:16276;
$TempDetailGroup[HL_S_CNT][HL_O_CNT][HL_T_CNT][HL_I_CNT].#TempPrice:2 =
$1000_HL:4.#0212:5;
$TempDetailGroup[HL_S_CNT][HL_O_CNT][HL_P_CNT][HL_I_CNT].#TempPrice:2 =
$1000_HL:4.#0212:5;
$TempDetailGroup[HL_S_CNT][HL_O_CNT][HL_T_CNT][HL_I_CNT].#TempQTYShipped:2 =
$1000_HL:4.#0382:11;
$TempDetailGroup[HL_S_CNT][HL_O_CNT][HL_P_CNT][HL_I_CNT].#TempQTYShipped:2 =
$1000_HL:4.#0382:11;
HL_I_CNT = HL_I_CNT + 1;
TEMP_CNT_ITEM = TEMP_CNT_ITEM + 1;
END





[Non-text portions of this message have been removed]



------------------------------------

...
Please use the following Message Identifiers as your subject prefix: <SALES>, 
<JOBS>, <LIST>, <TECH>, <MISC>, <EVENT>, <OFF-TOPIC>

Job postings are welcome, but for job postings or requests for work: <JOBS> IS 
REQUIRED in the subject line as a prefix.Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/EDI-L/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/EDI-L/join
    (Yahoo! ID required)

<*> To change settings via email:
    edi-l-dig...@yahoogroups.com 
    edi-l-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    edi-l-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to