cancel
Showing results for 
Search instead for 
Did you mean: 

Script Logic in BPC 7 Nw

Former Member
0 Kudos

Hi All,

I am trying to implement the BADI "UJ_CUSTOM_LOGIC BADI" to do some calculations in my script logic. The documnet which i am referring talks about using this BADI for some calculation for "Planning" application in "APPSHELL" application set. How can i use this BADI to create my own logic in some other application in other appshell?

And my requirement is that this logic should be triggered whenever user saves the data.

Appreciate your Valuable suggestions on how to do this.

Regards,

Ashok.

Accepted Solutions (1)

Accepted Solutions (1)

sorin_radulescu
Employee
Employee
0 Kudos

After you implemented you custom BADI you have to call this one into Default script logic.

That's measn every time when you will input data, your functions or subroutine from BADI will be executed. Default logic is executed always when you are sending data.

You can find into admin module into script logic default.lgf.

This has to be modified to call your BADI.

Kind Regards

Sorin Radulescu

Former Member
0 Kudos

hi Sorin,

Thanks for your reply. Could you please tell me how to customize the BADI to suite my requirement? This is where i am struggling. Do we need to use "*START_BADI and *END_BADI" statements in Default logic to call this BADI?

And also i read somewhere that we can use the "Call_custom_program" to call a custom ABAP program, in which the ABAP code for the logic is written. What is the difference between this method and the BADI method?

If you could provide a example, it will be very helpful to me.

Regards,

Ashok Kumar.

Answers (3)

Answers (3)

Former Member
0 Kudos

I am able to use the Badi successfully to do a simple calculation. Thanks for your replies.

sorin_radulescu
Employee
Employee
0 Kudos

Hi,

Sorry but I really don't understand your question.

There it is even an example it show even how you can pass the parameters from script logic to BAPI into other document posted into same location.

You have:

1. How to call BAPI from script logic

2. How to pass the parameters

3. I provide you the indocation how to call script logic with BAPI every time when input data.

These 3 points cover all your requests.

Regards

Sorin Radulescu

Former Member
0 Kudos

Hi sorin,

My doubt is that how can i use this BADI in other applications? Do i need to make changes to this BADI to make it work for other applications.If so what changes i need to make? I am not familiar with BADIs. That is why i am confused.

Document says that create a new implementation on this badi with a filter and call this implementation using the filter from the application.

If i want to use this badi, do i need to create a new implementation using this BADI? in that case how the BADI recognizes the Dimensions of the this applications? I am totally confused.

Hope you understood my confusion. Appreciate your help on this.

Regards,

Ashok Kumar.

pravin_datar
Employee
Employee
0 Kudos

Hi Ashok,

You need to use ABAP skills to modify the BADI to suit to your requirements. The example shows only a sample BADI and how the BADI can be used in script logic and how we can pass the parameters.

Regards

Pravin

Former Member
0 Kudos

Hi Pravin,

Could you please forward me any documents related to this BADI,which can give me info like the interface parameters etc and how to modify it to suite my requirements? Is this is the only way to write logic in BPC 7?

We are thinking of creating fox formulas on the plan cube created by BPC and put it in a BI Process chain and then call this Process chain using the script logic. Will this work?

Appreciate your inputs on this.

Regards,

Ashok Kumar.

sorin_radulescu
Employee
Employee
0 Kudos

https://www.sdn.sap.com/irj/scn/wiki?path=/x/zb4

if you will follow this link you will find out into Section SAP BPC NW also HTG regarding script logic.

There you will find out how use BAPI.

Kind Regards

Sorin Radulescu

Former Member
0 Kudos

Hi Sorin,

I am following the document in the link you gave. But i am not sure how to customize the BADI "UJ_CUSTOM_LOGIC BADI", which is used in the document to suite my requirements.

Appreciate if you can tell me how to customize this BADI to suite my requirements.

Thanks&Regards,

Ashok Kumar.