Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Single row MBO and bind the result manually

Hello gurus

i'm now working on a project that allow the user to provide a parameter to the BAPI and the BAPI returns only one row of data and when i started to create the HWC i wasn't able to bind the returned value directly to the screen i had to create a listview control and bind the cells to the MBO and in the details page i can view the data in the controls

is there is a way that i can skip the list view page and start the MBO from a menu or a button and bind the result to the controls manually

Thanks in advance

replied

Thank you very much jitendra kansal for your time and effort but i managed to solve it by this code

function customConditionalNavigation(currentScreenKey,actionName, defaultNextScreen, conditionName, workflowMessage) {

  if ((currentScreenKey === 'Start') && (actionName ==='btn_Login')) {

  if (conditionName === 'One_Row') {

  var values = workflowMessage.getValues();

  var m = workflowMessage.serializeToString();

  var expenseTracking = values.getData("User_Login_MBO");

  var etList = expenseTracking.getValue();

  var count = etList.length;

  if (count == 1) {

  var etRow1 = etList[0];

  workflowMessage.updateValues(etRow1);

  return true;

  }

  }

  else if (conditionName === 'Two_Rows') {

  return false; // ie do the normal navigation which is to go to the

  // listview screen

  }

  }

}

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question