Hi there,
I just started with SUP development for my bachelor thesis. The Server is set up and the communication between the simulator and the server works fine. The Datasource is a SAP CRM System (BAPI RFC).
To get started, my first task is to create a simple process:
- The user searches businesspartners by partnerid/city/email
- A list of BPs is shown
- The user selects a BP
- The details of that BP are shown
Therefore I created a MBO with the input parameters city, partnerId and email and some output parameters (BP_NUMBER, BP_DESCRIPTION). The input parameters are capsulated in a structure. Then I created a personalization key for the load parameter (the structure).
in my code, I can now set those load parameters via the personalization key and execute the query
FirstApp_PersonalizationParameters *pp = [FirstApp_PersonalizationParameters getPersonalizationParameters];FirstApp_Z_BUPA_BOL_SEARCH_SUCHPARAMETER *pk = [FirstApp_Z_BUPA_BOL_SEARCH_SUCHPARAMETER getInstance];[pk setP_PARTNERID: @""];[pk setP_CITY: @"Hamburg"];[pk setP_EMAIL: @""];[pp setGpSuchenPk:pk];[pp save]... = [FirstApp_Geschaeftspartner findAll];
This only works, if the personalization parameter's storage type is set to Server. Transient or Client will not work. Is that a correct behaviour? Is this whole procedure the correct way to pass user-input-data to a query?
The next step would be that I take the BP_NUMBER of a selected business partner and pass this value to another MBO which gives details to a business partner.
It would be very helpful to get some feedback, if this is the correct way to do it.
Thanks in advance
chumbalum