2014 Apr 24 5:51 AM
Hi All,
I have created one feeder class for 2 GUIBBs (List UIBB and Form UIBB) by implementing respective interfaces for them. These GUIBBs have been included in the same user screen. I have also setup parameter for this feeder class (No meaningful purpose, but just to try out). Here are my questions:
1. I was expecting a single instance of this class when user enters the screen which would then become basis for sharing data between these UIBBs. However, I noticed that 2 instance were created for each UIBB. Is it the normal behaviour? I also tried giving same value or no value to feeder class parameter but for no help.
2. To get rid of above problem, I declared feeder class attributes that were part of sharing as static attributes. But now the problem was, my Form data was dependent on List data. So I wanted that GET_DATA method of List UIBB should be called before GET_DATA method of Form UIBB. However, Form method is getting called first. Since it always happen, I wanted to know how the system decides on the sequence of calls and is there any way to program /change that sequence.
Thanks!
Bhaskar
Hi All,
I have created one feeder class for 2 GUIBBs (List UIBB and Form UIBB) by implementing respective interfaces for them. These GUIBBs have been included in the same user screen. I have also setup parameter for this feeder class (No meaningful purpose, but just to try out). Here are my questions:
1. I was expecting a single instance of this class when user enters the screen which would then become basis for sharing data between these UIBBs. However, I noticed that 2 instance were created for each UIBB. Is it the normal behaviour? I also tried giving same value or no value to feeder class parameter but for no help.
2. To get rid of above problem, I declared feeder class attributes that were part of sharing as static attributes. But now the problem was, my Form data was dependent on List data. So I wanted that GET_DATA method of List UIBB should be called before GET_DATA method of Form UIBB. However, Form method is getting called first. Since it always happen, I wanted to know how the system decides on the sequence of calls and is there any way to program /change that sequence.
Thanks!
Bhaskar
2014 Apr 25 9:15 AM
2014 May 14 5:57 PM
Sorry...can't be much help at the moment....not in front of system to try some of this out..But to answer you....
1. "I was expecting"....well there's your first mistake when it comes to anything SAP does. haha To "force" the behavior you want/expect, you will need to put some checking in the class constructor to insure that only one instance is create. This is done in other things like workflow so you should be able to find some examples and/or code. Look for examples on creating SINGLETON class objects.
2. Fix #1 and then this one won't be a problem. I would not use all static attributes/methods as those are really "global" and not instance specific unless you are merely using them as blackbox-ish functions/variables.
Hope this helps!
2014 May 14 6:49 PM
2014 May 15 2:07 AM
2014 May 22 1:34 PM
So this is what I am trying to do:
When the user enter Pernr and hit 'Search',
- all the related records should get updated in the list.
- Details section should get updated with the 1st index record
- On selection of other records from list, the related data should get update in details section.
Now the problem is, as I mentioned, the GET_DATA method of Form UIBB is getting called before List UIBB. Due to this, there is a lag in the details section data update. As earlier noted, I am using the same class for both UIBBs.
Advice please.
Best Regards,
Bhaskar
2014 Jul 09 9:38 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |