Quantcast
Channel: SCN : Unanswered Discussions - Supply Chain Management (SAP SCM)
Viewing all articles
Browse latest Browse all 5579

Assign product to transportation line with cost function

$
0
0

Hello guys,

 

I'm facing a problem when I want to create a cost function assigned to product on transportation lane through CIF interface.

The goal is to see in transaction for Transportation Lanes (/SAPAPO/SCC_TL1) cost function with its value.

We have implemented BADI /SAPAPO/PWB_TPSRC_IN, which is called before the transportation lane is created.

 

Here is a raw description of two solutions, which I have already tried, but without success.

 

1. Filling internal tables in method PUR_TPSRC_IN_COSTS_EXIT of mentioned BADI.

I tried several attempts with filling existing/non-existing COSID+COSEX+CSINT into the internal tables, but it's still not visible.

I can see the data stored in tables /sapapo/snp14 - 16, but PCOST and PCOSTID are not populated to table /sapapo/trprod, where it has to be.

 

2. Create TL and assign product via BADI using save BAPI.

I created cost function in advance with FM /SAPAPO/MSNP_COSTFUNC_DB_PUT, saved the TL and product with BAPI_PRDSRVAPS_SAVEMULTI2 and then do the cost function update with  /SAPAPO/TR_TLANE_POST.

This solution was working, but only when I did the transfer from ECC system to APO one time.

For another run (doesn't mind if it's via CFM2 or RIMODINI) it creates a duplicity assignment to the TL.

Furthermore I have a feeling, that it's not good approach to save within this BADI data to database. Should be used only for preparation, right?

 

So, please, could you advise me where/how to fill cost function when transfering product/tl from ECC to APO?

 

Thank you for any tips.

Martin


Viewing all articles
Browse latest Browse all 5579

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>