cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a BRF+ value in TM charge calculation (TCCS)

Former Member
0 Kudos

Hi

I am calculating a Price factor in BRF+ using a function. How can I pass this value to TCCS (TM Charge calculation sheet)?

Thanks for your help in advance.

Regards

Pankaj

Accepted Solutions (0)

Answers (2)

Answers (2)

anbusivam_s
Participant
0 Kudos

Hi Pankaj,

If you are in SAP_BASIS 731 or upwards you can generate code template from the BRF+ workbench itself. This is available as a button in the function object. If you are in lower release then you run report FDT_TEMPLATE_FUNCTION_PROCESS with function id and you will get the code template on how to call a brf+ function. For debugging you can use simulate functionality available in function object in brf+ workbench. This will give a complete trace of how the function is executed and you can analyze it further. If you want to see the traces of real productive runtime then you need to call brf+ function in lean trace mode. Then you can view the traces later using show traces action in the function object in brf+ workbench. If you need exact debugging kind as in abap then this functionality is available in SAP NetWeaver Decision Service Management. Hope this helps.

Regards,

Anbu

Former Member
0 Kudos

Thanks for your reply and the link Anbu.. Let me put my question very specifically... Right now I have managed to pass a "hard coded value" to the Pricing in TM from BRF..

Now I am trying to read some value from a document ( creation date and partner number) and using which I want to do the calculation of price in BRF and send it back to this document. For this purpose I have created two Data access determination for date and partner, but not able to figure out, how to read the dates and partner numbers in these DADs and pass to BRF. Moreover If I simulate the BRF Fn, than it will be standalone (without date and partner from any documents).. though I want to see how it reads the data from the application.. nevertheless I am going thru the link you have sent, but in case you have any ready pointer on it, it will be really helpful.

Thanks and Regards

Pankaj

anbusivam_s
Participant
0 Kudos

Hi Pankaj,

BRF+ doesn't read any value from application on its own. While calling BRF+ you need to call whatever application functions to collect the input data that you need to pass into brf+. In the code template generated that I gave you will see place holders for data that you need to pass into brf+. So the logic is yours on how you will retrieve the data from application(TM). If you are not sure how to retrieve this value from TM it would be appropriate to raise a question to TM as I mentioned in my first comment.

Regards,

Anbu

anbusivam_s
Participant
0 Kudos


Hi Pankaj,

If you are looking for from where exactly you need to feed the output you received from brf+ into TM then this needs TM knowledge. Hence I would suggest you to post your query in http://scn.sap.com/community/scm/transportation-management as well to get a quicker response. But if you want to know how to call a BRF+ function from any application code then I can help you.

With Regards,

Anbu

Former Member
0 Kudos

Hi Anbu,

Thanks for your reply.. It will be really helpful if you can give some info on "how to call a BRF+ function from any application code".. Moreover.. could you pls also share how to do debugging or check if the correct input is being flown to BRF function or not.

Thanks

Pankaj