F1755ProcessRequestStatus

F1755 Process Request Status

Minor Business Rule

Object Name: B1702860

Parent DLL: CCRIN

Location: Client/Server

Language: C

Functional Description
This business function will validate status (CLST) generic or specific queue for a maintenance request record 

And the Task record.  


Purpose

The purpose of this function is to simplify code in the N1700140, P17501, and P17504 by reusing code.


Setup Notes and Prerequisites

Variables need to be initialized correctly: cEditMode can not be Blank.  Initialize this to a 1 for Add, 2 for Update, 3 for Inquiry.  cChangeStatus: if the 

Auto-Update is detected from the activity rules if this value is 1, it will update the status, and retrieve the highest status activity rules, if it is a blank, the 

status will not change, but the highest status activity rules will be retrieved.  This is typically used for calling forms and updating the actual status in 

another function.


Special Logic




Technical Specification

I1702860_GenericSpecific


If Mode of Entry is ADD 


I1702860_GetDefaultRequestStatus

IF NextStatus is BLANK
NextStatus = DefaultStatus
ELSE
IF NextStatus is not equal to AssignedStatus

I1702860_ValidateRequestStatus

END

END

END IF ADD MODE


IF Mode of Entry is UPDATE 


IF STATUS is not equal to BLANK
IF PreviousStatus is not equal to NextStatus
I1702860_GetRequestStatus (PreviousStatus)
Determine if REOPEN

IF REOPEN

I1702860_ValidateReopenDays
END
END
ELSE
Status is equal to blank, so set error
END IF STATUS BLANK

End Mode


I1702860_GetNextStatus


Determine if CLOSED


IF Mode of Entry is INQUIRY


I1702860_GetRequestStatus (PreviousStatus)

END


I1702860_CopyStatusToOutput


END FUNCTION




Data Structure

D1702860 - F1755 Process Case Status

Parameter NameData ItemData TypeReq/OptI/O/Both
szOrderTypeDCTOcharOPTNONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

mnRequestQueueCALLQMATH_NUMERICOPTNONE

The address number of the case provider group. To resolve customer problems, the system or a person can assign case to provider 
groups. A provider group might be that of a specific service person, or it might be a group that is used to monitor and assign requests to the 
provider groups of service personnel.

cRequestTypeCT01charOPTNONE

A code that specifies the type of case.

cGenericSpecificEV01charOPTNONE

An option that specifies the type of processing for an event.

szAllowedStatus1CLST1charOPTNONE

An optional code that specifies which status can be the next step in the case process. You can override this code. The case status code is 
stored in the Case Status Rules table (F1751).

szAllowedStatus2CLST2charOPTNONE

An optional code that specifies which status can be the next step in the case process. You can override this code. The case status code is 
stored in the Case Status Rules table (F1751).

szAllowedStatus3CLST3charOPTNONE

An optional code that specifies which status can be the next step in the case process. You can override this code. The case status code is 
stored in the Case Status Rules table (F1751).

szAllowedStatus4CLST4charOPTNONE

An optional code that specifies which status can be the next step in the case process. You can override this code. The case status code is 
stored in the Case Status Rules table (F1751).

szAllowedStatus5CLST5charOPTNONE

An optional code that specifies which status can be the next step in the case process. You can override this code. The case status code is 
stored in the Case Status Rules table (F1751).

cProtectHistoryCLBH1charOPTNONE

A code that specifies whether you can change a case that has a particular status.

cUpdateNextStatusCLBH2charOPTNONE

A code that specifies whether the system can update a case that has a particular status.

cDisplayTimeEntryCLBH3charOPTNONE

A code that specifies whether the system displays a time entry form for a particular status.

cDisplayFailureAnalysisCLBH4charOPTNONE

A code that specifies whether the system displays a failure analysis form for a particular status.

cSubledgerInactiveCLBH5charOPTNONE

For future use. A code that specifies whether the subledger is inactive at a particular status.

szPreviousStatusCLSTcharOPTNONE

A code that specifies the status of a case.

szNextStatusCLSTcharOPTNONE

A code that specifies the status of a case.

szDefaultStatusCLSTcharOPTNONE

A code that specifies the status of a case.

szAssignedStatusCLSTcharOPTNONE

A code that specifies the status of a case.

cEditModeMODEcharOPTNONE

Use this paramter to determine mode of entry.  Different modes retrieve different 
values and return different errors.  

Valid Values are:

'1': Add Mode

'2': Update Mode

'3': Inquiry Mode


cErrorCodeERRCcharOPTNONE

Use this parameter to determine if there was at least 1 error occurring while 
processing statuses.

Valid Values:

'0': No errors encountered

'1': At least 1 error encountered

szErrorMessageDTAIcharOPTNONE

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

cSuppressErrorsEV01charOPTNONE

An option that specifies the type of processing for an event.

cChangeStatusEV01charOPTNONE

Use this to instruct the BSFN to update the Next Status if the activity rules 
detect an auto-update while processing.

Valid Values are:

0/Blank:  Do not Automatically update the status

1: Update the status automatically


cReopenedStatusEV01charOPTNONE

Use this to determine if a changing status (Update Mode) went from a closed 
status to an open status - REOPEN.

Valid Values:

Blank/Null:  Status Change was not a reopen

1:  Status change was a reopen

cClosedStatusEV01charOPTNONE

Use this parameter to determine if the Current status inquired on is a closed 
status.  This will be if the Next Status is Blank.

Valid Values:

Blank/Null:  Status is not a closed status

'1':  Status is a closed status


mnMaxDaysReopenMATH01MATH_NUMERICOPTNONE

Use this parameter to instruct the BSFN on the days allowd to reopen a 
Maintenance Request or a Task.  This will typically come from the processing option.

jdDateEndingENDJDEDATEOPTNONE

In the case there is an ending date, the Maintenance Request or Task is closed, 
this will be sent to the BSFN to determine if a reopen is allowd.

jdCurrentDateDTEJDEDATEOPTNONE

This is sent to the BSFN to be used in coordination with the Max Days for 
reopening and Ending date to determine if a reopen is allowd.

Related Functions

None

Related Tables

None