on ‎2018 Nov 27 8:08 PM
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
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Strange idea "to send zero value from input form and convert it into 0.00001 in WB BAdi"!
What do you want to achieve????
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 40 | |
| 9 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.