on 08-28-2013 3:59 PM
Hi All,
I have a MBO created from BAPI_FLIGHT_GETLIST. It runs fine when I use query find all. But when I add the attributes From and to it doesn't allow me to deploy the MBO. I have mapped these attributes to the personalization key as shown in image 2. I wanted to create a new query which searches based on From and to .
I was following http://runmobile.blogspot.com lesson 5 and lesson 5a.
Appreciate your help.
The input of the RFC that you given is a table input. Create a PK of type same as the table input of the RFC. To do that click just below the PK column go to the bottom of the PK list from the selection and select new then click finish it will create a PK for you with the structure and same as RFC.
- Midhun VP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Midhun,
Thanks for the reply. But my input fields have only From and to Airport code.
Actually I wanted to create a new Query, which will get the data based on From and to. For this I created two attributes in the MBO and then mapped to the propogated attribute and personalization key.
Is this approach correct?
To do this you can write your own query in the MBO and call that query once the user click on the menu item you created. That's how queries can be done. There will be multiple queries to an MBO if you are trying to do that using the load parameter of the MBO it will not be possible.
Example queries are here,
SELECT id,
fname,
lname,
address,
city,
state,
zip,
phone,
company_name FROM sampledb.dba.customer where id = :custId
findall and findbyprimarykey are auto generated queries that you can make use of. Take these code as example to write new query as per your requirement.
- Midhun VP
Hi,
you can try one alternate solution:
1. set your cache policy to Online
2. right click mbo > attributes>load arguments>
Map CITY paramters in destination_To and Destination_FROM to CITYTO and CITYFROM under propogate to attribute tab
3.deploy mbo
4. drag nd drop mbo to flow design screen
4. in the start screen, create 2 input fields as you have mentioned... for the menu Search Flights select online request.
5. do parameter mappings for both input fileds.
Hi Jitendra,
I followed the same approach you mentioned . This approach was causing issue.
Step1: Created MBO from BAPI_FLIGHT_GETLIST. Image paste in the post.
Step2: Created two attributes in the MBO, Say From and To.
Step3. Mapped these attributes to the Destination From-AirportID and Destination To AirportID under the MBO->Attributes->load Arguements->Propogate to Attribute Tab.
Step 4. Deploy .
When I deploy the MBO I get the below error.
Appreciate your help.
Hi Gopi,
Just check once again.. you have created 2 attributes in mbo of data type (string 20) and you are mapping these attributes to data type (string 3)... I mean to airport id in load arguments section.
Either you reset attributes length as 3
OR map attributes to Destination From-city and Destination To city
Rgrds,
Jitendra
did you redeploy mbo after resetting the attributes length?
if no, please do that and check.
while redeploying select replace option.
you may check this link:
Rgrds,
Jitendra
User | Count |
---|---|
78 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.