Sankarguru Mani
Active Member
Hello Guys,
I have the following requirement
User wants modify the report (R03B413B) as follows.
Initial Reuirement:
User do not want include the Doc Type "RU" while processing.
They requested for a new processing for this. If the processing option is 1, do not include the doc type "RU".
What i did is, modified the processing option.
and added a following code in the Initialize section to not to include the doc type RU.
Set Selection Append Flag( <Yes>)
Set User Selection(BC Amount Open (F03B11), <Not Equal To>, <Zero>, <And>)
\\ My code Begins
If PO cExcludeRU is equal to "1"
Set User Selection(BC Document Type (F03B11), <Not Equal To>, "RU", <None>)
End If
\\ My code Ends
Modified Requirement:
After delivering the above solution they came up with the new requirement as follows.
User will enter a GL date range and the report will exclude the RU's of that period only . add 2 more processing option for date range of RU and take the date from the new processing option and filter by RU doc type to exclude these RUs.
My Research:
R03B413B is a tabular report. In the customised version, level break (data sequence) is set based on Company (CO) and Address Number (AN8).
I want to display the records based on the new requirement. I have added two more processing option for date range (From date and To Date) and added the following code in the Initialize section.
Set Selection Append Flag( <Yes>)
Set User Selection(BC Amount Open (F03B11), <Not Equal To>, <Zero>, <And>)
\\ My code Begins
If PO cExcludeRU is equal to "1"
Set User Selection(BC Document Type (F03B11), <Not Equal To>, "RU", <And>)
Set User Selection(BC Date - For G/L (and Voucher) - Julian (F03B11), <Greater Than or Equal To>, PO jdFromDateForGLandVoucher, <And>)
Set User Selection(BC Date - For G/L (and Voucher) - Julian (F03B11), <Less Than or Equal To>, PO jdToDateForGLandVoucher, <None>)
End If
\\ My code Ends
But the above condition ignores all the records with DOC Type "RU" and the other document types which does not meet the data range.my Code failed to get the expected records.
And I tried a new option. To suppress the records in the "Do Section" which does not meet the criteria and I have added the following code in the Do section of the report.
If PO cExcludeRU is equal to "1"
If BC Document Type (F03B11) is equal to "RU"
If BC Date - For G/L (and Voucher) - Julian (F03B11) is greater than or equal to PO jdFromDateForGLandVoucher
And BC Date - For G/L (and Voucher) - Julian (F03B11) is less than or equal to PO jdToDateForGLandVoucher
Suppress Section Write
End If
End If
End If
This code is also failed. Because in the Tabular report, Do section will be called only when the level break happens. In my case only when Company (CO) and Address Number (AN8) changes. my second try is also failed.
I have never worked on Tabular report. I doubt, whether my requirement is really achievable in the tabular report ? Is there anyway to fix this?
Any ideas on this would be really helpful.
I am extremely sorry, if the post is too big..
Thanks in advance.
-Sankarguru Mani
Enterprise One XE, B733- SP23_I1
I have the following requirement
User wants modify the report (R03B413B) as follows.
Initial Reuirement:
User do not want include the Doc Type "RU" while processing.
They requested for a new processing for this. If the processing option is 1, do not include the doc type "RU".
What i did is, modified the processing option.
and added a following code in the Initialize section to not to include the doc type RU.
Set Selection Append Flag( <Yes>)
Set User Selection(BC Amount Open (F03B11), <Not Equal To>, <Zero>, <And>)
\\ My code Begins
If PO cExcludeRU is equal to "1"
Set User Selection(BC Document Type (F03B11), <Not Equal To>, "RU", <None>)
End If
\\ My code Ends
Modified Requirement:
After delivering the above solution they came up with the new requirement as follows.
User will enter a GL date range and the report will exclude the RU's of that period only . add 2 more processing option for date range of RU and take the date from the new processing option and filter by RU doc type to exclude these RUs.
My Research:
R03B413B is a tabular report. In the customised version, level break (data sequence) is set based on Company (CO) and Address Number (AN8).
I want to display the records based on the new requirement. I have added two more processing option for date range (From date and To Date) and added the following code in the Initialize section.
Set Selection Append Flag( <Yes>)
Set User Selection(BC Amount Open (F03B11), <Not Equal To>, <Zero>, <And>)
\\ My code Begins
If PO cExcludeRU is equal to "1"
Set User Selection(BC Document Type (F03B11), <Not Equal To>, "RU", <And>)
Set User Selection(BC Date - For G/L (and Voucher) - Julian (F03B11), <Greater Than or Equal To>, PO jdFromDateForGLandVoucher, <And>)
Set User Selection(BC Date - For G/L (and Voucher) - Julian (F03B11), <Less Than or Equal To>, PO jdToDateForGLandVoucher, <None>)
End If
\\ My code Ends
But the above condition ignores all the records with DOC Type "RU" and the other document types which does not meet the data range.my Code failed to get the expected records.
And I tried a new option. To suppress the records in the "Do Section" which does not meet the criteria and I have added the following code in the Do section of the report.
If PO cExcludeRU is equal to "1"
If BC Document Type (F03B11) is equal to "RU"
If BC Date - For G/L (and Voucher) - Julian (F03B11) is greater than or equal to PO jdFromDateForGLandVoucher
And BC Date - For G/L (and Voucher) - Julian (F03B11) is less than or equal to PO jdToDateForGLandVoucher
Suppress Section Write
End If
End If
End If
This code is also failed. Because in the Tabular report, Do section will be called only when the level break happens. In my case only when Company (CO) and Address Number (AN8) changes. my second try is also failed.
I have never worked on Tabular report. I doubt, whether my requirement is really achievable in the tabular report ? Is there anyway to fix this?
Any ideas on this would be really helpful.
I am extremely sorry, if the post is too big..
Thanks in advance.
-Sankarguru Mani
Enterprise One XE, B733- SP23_I1