cancel
Showing results for 
Search instead for 
Did you mean: 

SUP - Hybrid application - Handling multiple MBO from same BAPI

Gairik
Participant
0 Kudos

Hi Experts

I'm new to SUP and mobile application development . My problem should be very common but I didn't find any existing discussion on the same.

I'm using a BAPI ( BAPI_MATERIAL_GET_ALL ) which returns multiple tables data . I need RETURN table and MATERIALDESCRIPTION table along with the  CLIENTDATA which is a single row ( structure ). When I'm creating a MBO , it is actually creating 3 MBOs as I have multiple tables to be returned. First MBO for  material, 2nd MBO for description and 3rd one for return .

Now , in one of the screens, I have to populate Material and Material description together which are part of two different MBOs. As there can be multiple descriptions , I have to pick up the english description only. As the Material MBOs object query will return just the clientdata attributes, how to can I get the description from the MATERIALDESCIPTION MBOs based on the material and language .

When I create an editable field in the hybrid application and try to bind the key , I can only see the parent MBO ( Material ) to bind .

So, in short, when we are getting multiple MBOs from the same BAPI ( as multiple tables are returning ) , how to get the data from the parent and child MBOs together to display in a Single hybrid application screen.

Any help will be appreciated .

Regards

Gairik

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can write simple custom wrapper ZBAPI for BAPI_MATERIAL_GET_ALL

and add the selections you want , can manipulate the data easily.

This way you can also avoid unwanted tables..have a simple MBO.

Gairik
Participant
0 Kudos

Thanks Ramkris for your response. however, I was trying to do it without changing anything in the backend ABAP . Is it possible in MBO ?

Answers (1)

Answers (1)

midhun_vp
Active Contributor
0 Kudos

Interesting,

how to get the data from the parent and child MBOs together to display in a Single hybrid application screen.

  • Drag and drop the MBO to the designer.
  • If you want to show data of screen B in screen and make a connection between them. Thereby the keys available in screen B will be available in screen A and you can map that to editbox, text. You can bring the list from screen B to screen A in the same way.
  • This will result in a creation of menu item called "Open screen A" in the screen B. No worries you can hide these menu items usingJquery.

I have to pick up the english description only

  • Write query in the MBO to get this done.

- Midhun VP