09-21-2018 10:19 AM - edited 02-04-2024 4:52 AM
Dear all,
We have a code which is based on a transient field.
So If the code is getting runb one time I am setting the transient boolen = true but when if the second round trip happens in same session the transient field gets refreshed , as far as I know to hold the values in session we can use the transient fields.
What am i Doing wrong? Below is the field in Quote XBO
[Transient] element invokePartySession : Indicator;
// Below is AfterModify event of Root
if(shiptoDetermined == true || billtodetermined == true )
{ this.invokePartySession = true; Party determination
}
The most strange thing is it works in my one system Dev system but not in my UAT system!
Basically i want a flag to hold a value in my current session , can you please suggest?
Regards, Dhruvin
Dear Dhruvin,
There are a lot many factors that could lead to different behavior of same snippet in two systems, test data and framework internal calls be among.
You can hold the value in one variable in after loading event and clear it at the end of session.
Watch out for the calls of the after loading event in your ABSL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sneha,
There are a lot many factors that could lead to different behavior of same snippet in two systems, test data and framework internal calls be among.
If this is the case , This shouldmt be how can one anticipate the behavior then? Like It will work in Test system and then not in Prod!? I dont think so... that I have ever faced this kind of issue in any SAP System be in onPRem or C4C! 😞
Nonetheless I did what u said in afterloading still no success and in General this is working in DEV environment! Do you think I should raise an Incident?
Hi Sneha,
There are a lot many factors that could lead to different behavior of same snippet in two systems, test data and framework internal calls be among.
If this is the case , This shouldmt be how can one anticipate the behavior then? Like It will work in Test system and then not in Prod!? I dont think so... that I have ever faced this kind of issue in any SAP System be in onPRem or C4C! 😞
Nonetheless I did what u said in afterloading still no success and in General this is working in DEV environment! Do you think I should raise an Incident?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can try creating a simple element and write the logic to clear it's value at the end of session to achieve your requirement.
By Simple means Persistant element then yes I did try that as well and that gets refreshed as well.
😞 i am creating now the After loading event and check if its something wrong there
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dhruvin,
The transient fields are filled with the afterloading event. If your code is running multiple time in a session it will trigger the after loading multiple times which will affect the transient fields. You can try creating a simple element and write the logic to clear it's value at the end of session to achieve your requirement.
It's strange that UAT & Dev system are behaving differently.
Thanks,
Jayant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.