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?
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.
Currently R42950 can be called from the following options:
cf., For subsystem version only RI values will affect the result
a. Mode 1
B0000196 - UseReportDataSelection (Use Report Data Selection)b. Mode 2
R42565 -> szReportName
RI szVersion -> szVersion
1 -> idSectionID
B0000196 - UseReportDataSelection (Use Report Data Selection)c. Mode 3
R42800 -> szReportName
RI szVersion -> szVersion
6 -> idSectionID
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)
- Tab: Cost/Price Update
- Parameters
- Item #1. Update Cost: 1 (= Update Item Costs)
- Item #2. Sales Price/Cost Update Versions (R42950): Specific Version - if you do not specify this parameter the default version ZJDE0001 is used
C. Orders Affected by Price Chg (R40821)
- Tab: Cost Update
- Parameters
- Item #1. Update Cost: 1 (= Update Item Costs)
- Item #2. Sales Price/Cost Update Versions (R42950): Specific Version - if you do not specify this parameter the default version ZJDE0001 is used
- Tab: Process
- Parameters
- Item #3. Enter a value of '1' to update price: 1 (= Update Cost before you run R40821)
- Item #4. If you have entered a '1' for previous selection. Set Version