Hi,
I'm trying to create a scenario where I'll make an MBO from a BAPI which will give me certain details using which I can query on a second MBO made from some other BAPI. I'll try to explain this with an example.
MBO 1: I create it using BAPI_BANK_GETLIST. The input parameter to this is BANKCOUNTRY. So when I enter bank country (say "IN" for eg.), I should be able to fetch all the BANKKEYs and maybe populate them in a spinner.
MBO 2: Now that I have a list of all the BANKKEYs. I pass this detail to the MBO that I want to create from BAPI_BANK_GETDETAIL. The input parameters to this are BANKKEY& BANKCOUNTRY. I already have BANKCOUNTRY from the field in which I enter "IN" the first time, to fetch BANKKEYs and I'll also be able to select a BANKKEY from the spinner item. So I should be able to query on this MBO using the BANKKEY and BANKCOUNTRY and it should return me the details of the bank.
What is the best and efficient way to create the above scenario? I have been able to achieve this in a very crude way, but I can very well understand that it is not a very good way to do this.
In my workaround I have created the MBOs as below:
I have created 1 personalization key for Bank_List and 2 personalization keys for Bank_Details. However, when I synchronize both the MBOs get executed together, so I have to load the personalization parameters with dummy values each time I query on the MBOs. When I query on Bank_List, I load the Bank_Detail with dummy personalization parameters and vice versa.
I'm unable to think as to how to link the MBOs and how to query on only one MBO at a time. Maybe I need to use different synchronization groups? Or maybe some other logic? But, I stand confused. Somebody please explain me the working and guide me to achieve this, the CORRECT way.
I'll link to a video of what I'm trying to achieve (which I have already done in an incorrect way).
Thank you all in advance!