CopyServiceContractMediaObjectD

Copy Service Contract Media Objects

Minor Business Rule

Object Name: B1702500

Parent DLL: CCRIN

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

The purpose of this business function is to provide the following functionality:

• Copy Detail Media Objects
'b7'b7'b7'b7'b7'b7'b7'b7

1.2Setup Notes and Prerequisites

• Prior to calling this function, you must determine which media objects to copy.  In most cases this 
will be from the 'Copy Defaults' Processing Options Tab.

• You must have media objects attached to the original contract.
'b7'b7'b7'b7'b7'b7'b7'b7

1.3Special Logic

• If you copy a contract, and then cancel out of the copy, the media objects will be deleted from the 
F00165.

• cErrorCode_ERRC is reserved for future.  Currently, no flags are returned to this field.
• c_MediaObjectExist_EV01 will return a 1, 2, 3, 'Blank'.
•      1 = Internal Detail
•      2 = External Detail
•      3 = Both
•      'Blank' = Nothing was copied.
'b7'b7'b7'b7'b7'b7'b7


Data Structure

D1702500A - Copy Service Contract Detail Media Objects

Parameter NameData ItemData TypeReq/OptI/O/Both
mnOldDocumentNumber_DOCODOCOMATH_NUMERICOPTINPUT

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szOldDocumentType_DCTODCTOcharOPTINPUT

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

szOldDocumentCompany_KCOOKCOOcharOPTINPUT

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

szOldContractChangeNumber_COCHCOCHcharOPTINPUT

The change number of the contract. The change order number of the base contract is always initialized to 000. Each time you enter a 
change order for a contract, the system automatically increases the change order number by one. For example, the base contract is the change 
order number 000, the first change order is 001, the second is 002, and so on.

mnOldLineNumber_LNIDLNIDMATH_NUMERICOPTINPUT

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

mnNewDocumentNumber_DOCODOCOMATH_NUMERICOPTINPUT

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szNewDocumentType_DCTODCTOcharOPTINPUT

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

szNewDocumentCompany_KCOOKCOOcharOPTINPUT

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

szNewContractChangeNumber_COCHCOCHcharOPTINPUT

The change number of the contract. The change order number of the base contract is always initialized to 000. Each time you enter a 
change order for a contract, the system automatically increases the change order number by one. For example, the base contract is the change 
order number 000, the first change order is 001, the second is 002, and so on.

mnNewLineNumber_LNIDLNIDMATH_NUMERICOPTINPUT

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

cInternalDetailMO_EV01EV01charOPTNONE

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

cExternalDetailMO_EV01EV01charOPTNONE

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

cErrorCode_ERRCERRCcharOPTNONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

c_MediaObjectExist_EV01EV01charOPTNONE

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

Related Functions

None

Related Tables

None
CopyServiceContractMediaObjectH

CopyServiceContractMediaObjectH

Copy Service Contract Media Objects

Minor Business Rule

Object Name: B1702500

Parent DLL: CCRIN

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

The purpose of this business function is to provide the following functionality:

• Copy Header Media Objects
'b7'b7'b7'b7'b7'b7'b7'b7

1.2Setup Notes and Prerequisites

• Prior to calling this function, you must determine which media objects to copy.  In most cases this 
will be from the 'Copy Defaults' Processing Options Tab.

• You must have media objects attached to the original contract.
• Contract Company and Contract Type are provided as part of the datastructure but are not needed when 
copying header media objects as they are not part of the key structure to this Media Object 

Structure.

'b7'b7'b7'b7'b7'b7'b7'b7

1.3Special Logic

• If you copy a contract, and then cancel out of the copy, the media objects will be deleted from the 
F00165.

• cErrorCode_ERRC is reserved for future.  Currently, no flags are returned to this field.
• cMediaObjectExists_EV01 will return a 1, 2, 3, 'Blank'.
•      1 = Internal Header
•      2 = External Header
•      3 = Both
•      'Blank' = Nothing was copied.
'b7'b7'b7'b7'b7'b7'b7


1.Functional Description


1.1Purpose

The purpose of this business function is to provide the following functionality:

• Copy Detail Media Objects
'b7'b7'b7'b7'b7'b7'b7'b7

1.2Setup Notes and Prerequisites

• Prior to calling this function, you must determine which media objects to copy.  In most cases this 
will be from the 'Copy Defaults' Processing Options Tab.

• You must have media objects attached to the original contract.
'b7'b7'b7'b7'b7'b7'b7'b7

1.3Special Logic

• If you copy a contract, and then cancel out of the copy, the media objects will be deleted from the 
F00165.

• cErrorCode_ERRC is reserved for future.  Currently, no flags are returned to this field.
• c_MediaObjectExist_EV01 will return a 1, 2, 3, 'Blank'.
•      1 = Internal Detail
•      2 = External Detail
•      3 = Both
•      'Blank' = Nothing was copied.
'b7'b7'b7'b7'b7'b7'b7


Data Structure

D1702500 - Copy Service Contract Header Media Objects

Parameter NameData ItemData TypeReq/OptI/O/Both
mnOldDocumentNumber_DOCODOCOMATH_NUMERICOPTINPUT

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szOldDocumentType_DCTODCTOcharOPTINPUT

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

szOldDocumentCompany_KCOOKCOOcharOPTINPUT

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

szOldContractChangeNumber_COCHCOCHcharOPTINPUT

The change number of the contract. The change order number of the base contract is always initialized to 000. Each time you enter a 
change order for a contract, the system automatically increases the change order number by one. For example, the base contract is the change 
order number 000, the first change order is 001, the second is 002, and so on.

mnNewDocumentNumber_DOCODOCOMATH_NUMERICOPTINPUT

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szNewDocumentType_DCTODCTOcharOPTINPUT

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

szNewDocumentCompany_KCOOKCOOcharOPTINPUT

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

szNewContractChangeNumber_COCHCOCHcharOPTINPUT

The change number of the contract. The change order number of the base contract is always initialized to 000. Each time you enter a 
change order for a contract, the system automatically increases the change order number by one. For example, the base contract is the change 
order number 000, the first change order is 001, the second is 002, and so on.

cExternalHeaderMO_EV01EV01charOPTNONE

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

cInternalHeaderMO_EV01EV01charOPTNONE

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

cErrorCode_ERRCERRCcharOPTNONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

cMediaObjectExists_EV01EV01charOPTNONE

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

Related Functions

None

Related Tables

None