cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to stop triggering WB BAdi after default logic SAP BPC script logic

MaheshKosuri
Explorer
0 Likes
526

Hi,

We want to send zero value from input form and convert it into 0.00001 in WB BAdi so that we can remove zero records from processing. But What we observed after default logic, WB BAdi is again getting triggered, because of this all zero's we are getting after default logic , WB is again converting them to 0.00001 that is we dont want it. How can we stop triggering WB BAdi after default logic.

regards

Mahesh

Accepted Solutions (0)

Answers (4)

Answers (4)

MaheshKosuri
Explorer
0 Likes

Vadim,

Yes as you said, CT_ARRAY in WriteBack will send two records only to db.After that it default logic will be triggered , that will populate CT_DATA with three records. But we want to process only changed records from input form at this stage.

former_member186338
Active Contributor
0 Likes

Asking third time - please explain FULL logic step by step!

If you are doing calculations in Write back - what's the reason to use default.lgf??? And other strange things...

MaheshKosuri
Explorer
0 Likes

Say my cube have 3 records

plant1 product1 qty 100

plant2 product2 qty 200

plant1 product2 qty 0

From input form if we post zero for first two records, based on qty is zero we want to do some other account calculations. at this point of time my ct_data is getting populated with three records because of script scope, out of them last record is invalid, that we dont want to process it.

so from ct_data if we remove signdata = 0 records, we loose valid records too. so we want to put a condition in WriteBack to convert 0 to 0.000001 to keep valid records in CT_DATA. When qty is 0.00001 ,we do some calculations then finally we want to make 0.00001 as zero.

former_member186338
Active Contributor
0 Likes

Sorry, but absolutely strange idea. And you are not describing calculation logic. How do you want to calculate figures - in wb badi or in default.lgf?

By the way, the write back badi in ct_data will contain only records to save -- only 2 records with zero's in your sample.

MaheshKosuri
Explorer
0 Likes

Vadim,

When default logic triggers, CT_DATA is getting populated with junk data with 0's, we are removing these zero's from CT_DATA. But when zero is coming from input form we want to use it in our BAdi logic for further processing. That's the reason when user sends 0 from input form , this zero we want to convert it into 0.000001 in WriteBack so that we can keep this record in CT_DATA for further processing.

What we noticed here at the end of custom badi WriteBack is getting triggered again and making 0 to 0.000001 that we dont want.

regards

former_member186338
Active Contributor
0 Likes

Once again, the logic looks strange and incorrect!

Can you provide step by step logic explanation? With input form sample and results you want to achieve?

former_member186338
Active Contributor
0 Likes

P.S. And it's better to use you real name! I don't like to answer "epm"

former_member186338
Active Contributor
0 Likes

Strange idea "to send zero value from input form and convert it into 0.00001 in WB BAdi"!

What do you want to achieve????