Never Ending Report

Elimilar

Member
Hi,

I did a report in order to create diferent pdf files (request for quotation) using the following code. **

If I run it in the fat client everything seems to be alright. However the report never ends if i submit it in the Enterprise Server.

If you have any idea in order to create multiple pdf or if you see any problem with my code. Please let me know.

Thanks in advance.

XE/SP 18/SQL 2000/WIN 2000

**
GLOBALS: Global Variable
***********************************************
rpt_AddressNumber_AN8

==============================================
SECTION: Quote Supplier Entry [COLUMNAR SECTION] (S1)
==============================================
OBJECT: SECTION
EVENT: Initialize Section
----------------------------------------------
0001 If RI szOrderType is not equal to <Blank>
And RI szOrderType is not equal to <Null>
0002 Set Selection Append Flag( <Yes>)
0003 Set User Selection(BC Order Type (F4330),
<Equal To>, RI szOrderType, <And>)
0004 Set User Selection(BC Document (Order No, Invoice, etc.) (F4330),
<Equal To>, RI mnDocumentOrderInvoiceE, <None>)
0005 Else
0006 End If

----------------------------------------------
EVENT: Do Section
----------------------------------------------
0001 VA rpt_AddressNumber_AN8 = BC Address Number (F4330)

===============================================
SECTION: On Address Number [COLUMNAR SECTION] (S3)
================================================
OBJECT: SECTION
EVENT: Do Section
-----------------------------------------------
0002 IF RI_cLanguage is equal to S
0003 CALL( UBE:R5543530G , Ver: AMX0001 )
RI mnDocumentOrderInvoiceE -> mnOrderNumber
RI szOrderType -> szOrderType
RI szCompanyKeyOrderNo -> szOrderKeyCompany
RI cLongDescription -> ImprimeDesLarga
VA rpt_AddressNumber_AN8 -> mnAddressNumber
0004 Else
0005 CALL( UBE:R5543530F , Ver: AMX0001 )
RI mnDocumentOrderInvoiceE -> mnOrderNumber
RI szOrderType -> szOrderType
RI szCompanyKeyOrderNo -> szOrderKeyCompany
RI cLongDescription -> cImprimeDesLarga
VA rpt_AddressNumber_AN8 -> mnAddressNumber
0006 End If
 
Not sure this will be of help , but try this

0001 If RI szOrderType is not equal to <Blank>
And RI szOrderType is not equal to <Null>
0002 Set Selection Append Flag( <Yes>)
0003 Set User Selection(BC Order Type (F4330),
<Equal To>, RI szOrderType, <And>)
0004 Set User Selection(BC Document (Order No, Invoice, etc.) (F4330),
<Equal To>, RI mnDocumentOrderInvoiceE, <AND>

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

Set user selection works differently than we expect.

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

Gopal.
 
Hi

The 'and' , 'or' and 'none' clause are related to the line of code above (Set user selection or Set selection append flag). I've attached a document which explains this all in detail.

Hope this helps.
 

Attachments

  • 93151-ExecutionOrderUBEDataSelection.doc
    293 KB · Views: 180
Back
Top