Data Selection of Sales Order Batch Price/Cost Update (R42950) in Running Calling UBE in Local Environment

Purpose of Document

Issue

The data selection of Sales Order Batch Price/Cost Update R42950) when called by Print Invoice (R42565) and Sales Update (R42800) does not match. For testing purpose, we have run R42565/R42800 on local machine. It takes long time to run with huge data selection for R42950. What wentr wrong?

Solution

This is working as designed, working per the current design.

This functionality will be working fine only when:

See 656362.1 to understand RuntimeCache and UBEOverride in Spec directory of your Logic/Batch Server

The different results seen when running on the server versus running on the full client are caused by BSFN B0000196 - UseReportDataSelection (Use Report Data Selection)

The functionality of B0000196 - UseReportDataSelection is working only when R42565/R42800 are submitted to the server. The local RDASPEC does not store runtime data selection information. The RDASPEC difference between the server and client is in constructing runtime data selection. For this example, R42565, R42800 and R42950 are making use of same table (F4211 - Sales Order Detail). The data selection can be inherited from calling UBE to called UBE.

Note


Currently R42950 can be called from the following options:

  1. Standalone
  2. Called by Print Invoice (R42565)
  3. Called by Sales Update (R42800)
  4. Called by Orders Affected by Price Chg (R40821)
cf., For subsystem version only RI values will affect the result
a. Mode 1
B0000196 - UseReportDataSelection (Use Report Data Selection)
R42565 -> szReportName
RI szVersion -> szVersion
1 -> idSectionID
b. Mode 2
B0000196 - UseReportDataSelection (Use Report Data Selection)
R42800 -> szReportName
RI szVersion -> szVersion
6 -> idSectionID
c. Mode 3
this does not specify any information other than mode as R42950 is to be called at the end of transaction (written at 'End Section' event)

Meanwhile, to call R42950 before/after calling UBEs:

A. Print Invoice (R42565)
B. Sales Update (R42800)
C. Orders Affected by Price Chg (R40821)
NOTE: In case the customer's case Daily Business Logic requires it (e.g., R42565) to be run in Local (check PDF result and print) make it sure that the data selection of R42950 is to be same data selection which is waiting for Print Invoice (For instance, ShipDate = 'SL Date Today' and Next Status = 'Waiting for Invoice').