cancel
Showing results for 
Search instead for 
Did you mean: 

SUP 2.3 - How to pass value to input parameter of an MBO on button click

Former Member
0 Kudos

Hi,

Just working on a PO Approval - HWC Mobile app in SUP 2.3.
Here, I’m trying to pass input parameter to screen 2 (i.e. POLineItems MBO-2) on the click of a button based on a particular PO Number selected from screen 1 i.e. from a list of Pending POs ( PendingPOList MBO-1). guidance on this front would

Not sure where I am going wrong or is there any step that I'm missing here.

Any guidance on this front would be highly appreciated...

These are my two MBOs created:
 
POLineItems – Input parameter:-


The steps taken by me are as follows:-

  1. Created a Personalization Key (PONum_PK)
  2. Under the “Load Arguments” tab of the MBO-2 properties, updated the “Propogate to Attribute” and “Personalization Key” fields:
  3. On the Screen 1 button's properties page,
    1. Settings done under the General Tab…
    2. Settings done under the “Personalization Key Mappings” tab…
      Linked the PO Number’s edit box key i.e. PendingPOList_EBELN_attribKey to the Personalization key created.

    3. Setting done under the Output Keys tab…
    4. Setting done under the Success/Error tab…


Regards,
Aaron D'C

   

Accepted Solutions (1)

Accepted Solutions (1)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

I have written a blog on similar scenario some years back. Have a look at it. Hope you will get few inputs.

Former Member
0 Kudos

Hi Jitendra,

Thank You!

This link was quite helpful.

I am able to pull all the LineItems for a Pending PO selected by the user...but I'm still stuck up at a point where I am unable to approve any of these Pending POs.

I tried doing it by creating a relationship between the PendingPOList MBO (doesn't have any input parameter) and the ApproveOfPO MBO (it has the PURCHASEORDER as the input parameter) but as soon as I run the app all the Pending POs for that particular user are getting approved from the back-end without letting me select any for approval in the GUI.

This is what I did...

  1. Select one particular PO from the list of Pending POs - screen 1
  2. Display that particular PO on another screen (screen 2) which has an PO Approve button
  3. The PO should get approved on click of a button (screen 2)

I am able to get the selected Pending PO till the second screen which has the button but unable to pass that PO as input to the ApproveOfPO MBO which can then run the ApproveOfPO BAPI.

Settings done on the ApproveOfPO MBO:-  

 

Settings done on the PO Approve button:-
   

  PO Number Editbox properties:-


Regards,
Aaron D'C

 

 

Former Member
0 Kudos

Thanks Jitendra,

Finally found out that there was in issue with an entry in the BAPI.

It has been taken care of now.

Regards,
Aaron D'C

Answers (1)

Answers (1)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thread has been moved to "SAP For Mobile" space from "SMP Developer Center" as to keep all SUP/MBO related stuffs at one place.

Regards,

JK (Moderator)