on 09-09-2011 1:08 PM
Hi Experts,
This query is raised because of difficulties faced in custom
development in TLB screen. The requirement is to provide TLB
planner details of Days of Supply with or without order (Days
of Supply and Days of Supply (firm)) details in the TLB
Shipment Line items table. The days of supply values are
extracted in the following way -
When we go from Alert Monitor to RR Overview screen and
select some line items (eash identified by product ID &
customer location) and click on Details button then Product
Grid details shows Days of Supply along with 19 other key
figures. This calculation is done in method RELOAD_DATA in
class /SCF/CL_ICHDM_REPL_BIZ - more
specifically /scf/if_model_2_ichdmv~query method call fetches
the required data in lt_kprmindex internal table. To use this
method an instance of the class /SCF/CL_DATA_ICHDM has been
instantiated and its attributes initialized.
The logic is to pick up the constituent line items of TLB
Shipment and based on the product Id and its customer
location, find out the period id (lt_kprmindex-kval_tab-
perid) for the TLB adjusted delivery date. 3 additional
columns need to be shown in the TLB Items table (3rd table in
the TLB screen after Replenishment Order Table, and TLB
Shipment Header table). On the TLB adjusted date,
DOS2 = Days of Supply (firm)
DOS3 = Days of Supply
DOS1 = Days of Supply (initial or perid 999-).
Now the data model class for TLB Shipment
is /SCF/CL_APP_MODEL_TLB whereas for Product Details Grid it
is /SCF/CL_DATA_ICHDM - unless we have a reference
to /SCF/CL_DATA_ICHDM it is not possible to invoke QUERY
method to obtain key figure values like Days of Supply.
My question is how do we make Days of Supply values in TLB
screen where the reference to relevant data model class is
missing.
STEPS taken so far...
1. I have created one implicit enhancement in RELOAD_DATA
method of /SCF/CL_ICHDM_REPL_BIZ where I pick up key figures
from lt_kprmindex after they are returned by QUERY method.
2. Exported custom created internal table containing the
Product ID and Customer location and its associated key
figure, to ABAP memory.
3. Created another implcit enhancement in EVENT_PROCESS
method of class /SCF/CL_ASSISTANCE_TLB
4. Append additional 3 fields (DOS1, DOS2 & DOS3) to the
structure /SCF/VTLB_ORDITM_UI_STR linked to context node
TLBITEM_NODE in the WD Component /SCF/TLB_TLB and do
necessary enhancement in the WD component.
4. imported the previously exported internal table containing
key figure and modifying the TLBORDITM_TAB attribute of the
instance attribute my_model of the TLB assistance
class /SCF/CL_ASSISTANCE_TLB.
The problem with this approach is that it works only when
user navigates to TLB screen from RR Overview but doesnt work
if the user goes to TLB Shipment from Alert Monitor directly
and click on Open Selection in TLB run screen and selecting
customer loc and getting all the related TLB Shipments, then
DOS values are not shown - this because QUERY method in
RELOAD_DATA method in /SCF/CL_ICHDM_REPL_BIZ class is not
called.
This was resolved - anybody willing to know how I did it please send me a PM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello rkb,
Have you resolved this yet? I have a similar requirement on this.
can you share the solution, please?
Thanks in advanced.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.