cancel
Showing results for 
Search instead for 
Did you mean: 

newbie Q : fill BAPI import parameter with data from selected table row

Former Member
0 Kudos

Hi all,

Perhaps you can point me in the right direction.

I have a table containing R/3 data where the user can select a row. I need to pass the value of one cell in this table (or context element) as an import parameter to another bapi call.

Until now I have only hardcoded the import parameters in the wdInit() of the custom controller.

I know that the table-cell-data can be be called from the context with this code:

wdContext.nodeEt_Keys().getEt_KeysElementAt(wdContext.getLeadSelection()).toString()

but where should this be implemented?

a)onActionSelectRow of the View

b)executeBapi_Xxx method of the custom controller

c)elsewhere

Thanks for the help!

Cheers,

faB

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You can have something like this.

on onActionSelectRow - take the row that is selected.

pass that value thr' the method executeBapi.

From there on to the import.

Former Member
0 Kudos

there is one step between, so I presume I should store the selected row in the context and then call it later when I set the import parameter during the executeBapi method?

Former Member
0 Kudos

You do not need to explicitely store a selected table row. The table selection is always the lead selection of the associated data source node. The currently selected node element is

wdContext.current<Node>Element()

Armin

Former Member
0 Kudos

Thanks.

This has helped a lot!

faB