jtlaser
Member
Hello,
I am a bit new to JDE, about two or three months of learning, so hopefully I use the correct terminology to describe my problem, and hopefully I'm in the correct forum. Also I believe my information is correct in my signature, please say something if it looks off.
So now to my problem. I am struggling with what I believe is File_I/O_Status reporting success an extra time, thus I'm getting A+B+B instead of A+B.
I'm using a LBF to print out my information, breaking on a change in AN8. I'm using tables F07830/F07831/F07832, all but one user for the year has one entry. I'm using a custom view with most columns selected and a join between F07830/F07831 on AN8 and DTEY.
<font class="small">Code:</font><hr /><pre>0019 F07830.Select
BC Date - YR = TK Date - YR
BC Address Number = TK Address Number
BC Type of W-2 = TK Type of W-2
0020 F07830.Fetch Next
VA rpt_mnSavedFedAddressNumber <- TK Address Number
VA rpt_cSavedFedTypeofW2 <- TK Type of W-2
VA rpt_mnWagesFederalAdjusted <- TK Amount - Wages, Federal Taxable Adjusted
VA rpt_mnAmountFederalTax <- TK Amount - Federal Income Tax
VA rpt_mnWagesSocSecAdjusted <- TK Amount - Wages, OASDI Taxable Adjusted
VA rpt_mnAmountSocSecTax <- TK Amount - OASDI Tax
VA rpt_mnWagesMedicareAdjusted <- TK Amount - Wages, Medicare Taxable Adjust
VA rpt_mnAmountMedicareTax <- TK Amount - Medicare Tax
VA rpt_mnTipsSocSecTaxable <- TK Amount - Tips, OASDI Taxable
VA rpt_mnAmountTipsAllocated <- TK Amount - Tips, Allocated
0021 VA rpt_cFedTypeofW2 = ""
0022 While SV File_IO_Status is equal to CO SUCCESS
0025 If VA rpt_cSavedFedTypeofW2 is not equal to VA rpt_cFedTypeofW2
0026 VA rpt_cSavedFedTypeofW2 = VA rpt_cFedTypeofW2
0027 VA rpt_mnGTWagesFederalAdjusted = [VA rpt_mnWagesFederalAdjusted]+[VA rpt_mnGTWagesFederalAdjusted]
0028 VA rpt_mnGTAmountFederalTax = [VA rpt_mnAmountFederalTax]+[VA rpt_mnGTAmountFederalTax]
0029 VA rpt_mnGTWagesSocSecAdjusted = [VA rpt_mnWagesSocSecAdjusted]+[VA rpt_mnGTWagesSocSecAdjusted]
0030 VA rpt_mnGTAmountSocSecTax = [VA rpt_mnAmountSocSecTax]+[VA rpt_mnGTAmountSocSecTax]
0031 VA rpt_mnGTWagesMedicareAdjusted = [VA rpt_mnWagesMedicareAdjusted]+[VA rpt_mnGTWagesMedicareAdjusted]
0032 VA rpt_mnGTAmountMedicareTax = [VA rpt_mnAmountMedicareTax]+[VA rpt_mnGTAmountMedicareTax]
0033 VA rpt_mnGTTipsSocSecTaxable = [VA rpt_mnTipsSocSecTaxable]+[VA rpt_mnGTTipsSocSecTaxable]
0034 VA rpt_mnGTAmountTipsAllocated = [VA rpt_mnAmountTipsAllocated]+[VA rpt_mnGTAmountTipsAllocated]
0035 End If
0037 F07830.Fetch Next
VA rpt_mnSavedFedAddressNumber <- TK Address Number
VA rpt_cFedTypeofW2 <- TK Type of W-2
VA rpt_mnWagesFederalAdjusted <- TK Amount - Wages, Federal Taxable Adjusted
VA rpt_mnAmountFederalTax <- TK Amount - Federal Income Tax
VA rpt_mnWagesSocSecAdjusted <- TK Amount - Wages, OASDI Taxable Adjusted
VA rpt_mnAmountSocSecTax <- TK Amount - OASDI Tax
VA rpt_mnWagesMedicareAdjusted <- TK Amount - Wages, Medicare Taxable Adjust
VA rpt_mnAmountMedicareTax <- TK Amount - Medicare Tax
VA rpt_mnTipsSocSecTaxable <- TK Amount - Tips, OASDI Taxable
VA rpt_mnAmountTipsAllocated <- TK Amount - Tips, Allocated
0038 End While</pre><hr />
I added "If VA rpt_cSavedFedTypeofW2 is not equal to VA rpt_cFedTypeofW2" because it looked as though it was processing the next item regardless, but it still processes the next item regardless.
I've tried a few other things, but I think I'm missing something in the way JDE is processing the information.
I've tried debugging, but most of my variables are not showing up, this again is probably from either bad design on my part or lack of knowledge as to where they should be.
Thanks for your time, and again, I apologize if any of my information seems off, I'll clarify whatever is asked for to the best of my abilities.
I am a bit new to JDE, about two or three months of learning, so hopefully I use the correct terminology to describe my problem, and hopefully I'm in the correct forum. Also I believe my information is correct in my signature, please say something if it looks off.
So now to my problem. I am struggling with what I believe is File_I/O_Status reporting success an extra time, thus I'm getting A+B+B instead of A+B.
I'm using a LBF to print out my information, breaking on a change in AN8. I'm using tables F07830/F07831/F07832, all but one user for the year has one entry. I'm using a custom view with most columns selected and a join between F07830/F07831 on AN8 and DTEY.
<font class="small">Code:</font><hr /><pre>0019 F07830.Select
BC Date - YR = TK Date - YR
BC Address Number = TK Address Number
BC Type of W-2 = TK Type of W-2
0020 F07830.Fetch Next
VA rpt_mnSavedFedAddressNumber <- TK Address Number
VA rpt_cSavedFedTypeofW2 <- TK Type of W-2
VA rpt_mnWagesFederalAdjusted <- TK Amount - Wages, Federal Taxable Adjusted
VA rpt_mnAmountFederalTax <- TK Amount - Federal Income Tax
VA rpt_mnWagesSocSecAdjusted <- TK Amount - Wages, OASDI Taxable Adjusted
VA rpt_mnAmountSocSecTax <- TK Amount - OASDI Tax
VA rpt_mnWagesMedicareAdjusted <- TK Amount - Wages, Medicare Taxable Adjust
VA rpt_mnAmountMedicareTax <- TK Amount - Medicare Tax
VA rpt_mnTipsSocSecTaxable <- TK Amount - Tips, OASDI Taxable
VA rpt_mnAmountTipsAllocated <- TK Amount - Tips, Allocated
0021 VA rpt_cFedTypeofW2 = ""
0022 While SV File_IO_Status is equal to CO SUCCESS
0025 If VA rpt_cSavedFedTypeofW2 is not equal to VA rpt_cFedTypeofW2
0026 VA rpt_cSavedFedTypeofW2 = VA rpt_cFedTypeofW2
0027 VA rpt_mnGTWagesFederalAdjusted = [VA rpt_mnWagesFederalAdjusted]+[VA rpt_mnGTWagesFederalAdjusted]
0028 VA rpt_mnGTAmountFederalTax = [VA rpt_mnAmountFederalTax]+[VA rpt_mnGTAmountFederalTax]
0029 VA rpt_mnGTWagesSocSecAdjusted = [VA rpt_mnWagesSocSecAdjusted]+[VA rpt_mnGTWagesSocSecAdjusted]
0030 VA rpt_mnGTAmountSocSecTax = [VA rpt_mnAmountSocSecTax]+[VA rpt_mnGTAmountSocSecTax]
0031 VA rpt_mnGTWagesMedicareAdjusted = [VA rpt_mnWagesMedicareAdjusted]+[VA rpt_mnGTWagesMedicareAdjusted]
0032 VA rpt_mnGTAmountMedicareTax = [VA rpt_mnAmountMedicareTax]+[VA rpt_mnGTAmountMedicareTax]
0033 VA rpt_mnGTTipsSocSecTaxable = [VA rpt_mnTipsSocSecTaxable]+[VA rpt_mnGTTipsSocSecTaxable]
0034 VA rpt_mnGTAmountTipsAllocated = [VA rpt_mnAmountTipsAllocated]+[VA rpt_mnGTAmountTipsAllocated]
0035 End If
0037 F07830.Fetch Next
VA rpt_mnSavedFedAddressNumber <- TK Address Number
VA rpt_cFedTypeofW2 <- TK Type of W-2
VA rpt_mnWagesFederalAdjusted <- TK Amount - Wages, Federal Taxable Adjusted
VA rpt_mnAmountFederalTax <- TK Amount - Federal Income Tax
VA rpt_mnWagesSocSecAdjusted <- TK Amount - Wages, OASDI Taxable Adjusted
VA rpt_mnAmountSocSecTax <- TK Amount - OASDI Tax
VA rpt_mnWagesMedicareAdjusted <- TK Amount - Wages, Medicare Taxable Adjust
VA rpt_mnAmountMedicareTax <- TK Amount - Medicare Tax
VA rpt_mnTipsSocSecTaxable <- TK Amount - Tips, OASDI Taxable
VA rpt_mnAmountTipsAllocated <- TK Amount - Tips, Allocated
0038 End While</pre><hr />
I added "If VA rpt_cSavedFedTypeofW2 is not equal to VA rpt_cFedTypeofW2" because it looked as though it was processing the next item regardless, but it still processes the next item regardless.
I've tried a few other things, but I think I'm missing something in the way JDE is processing the information.
I've tried debugging, but most of my variables are not showing up, this again is probably from either bad design on my part or lack of knowledge as to where they should be.
Thanks for your time, and again, I apologize if any of my information seems off, I'll clarify whatever is asked for to the best of my abilities.