Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Value of DATA(s) on SAP list Viewer in a Query

Former Member
0 Kudos

Hi,

I have do a query and my result is a SAP LIST Viewer when i click on a line i ask an ABAP Program.

In my ABAP Program i need to use value of the selected line data.

i want to get the value of

p_belnr like RF05L-BELNR,

p_bukrs like RF05L-BUKRS,

p_gjahr like RF05L-GJAHR.

My ABAP Program :

REPORT  Z_CALL_TR_VF03.
PARAMETERS : p_belnr like RF05L-BELNR,
             p_bukrs like RF05L-BUKRS,
             p_gjahr like RF05L-GJAHR.

data: gt_bdcdata type table of bdcdata,
      gs_bdcdata type bdcdata,
      gs_opt     type ctu_params.

start-of-selection.
* Build a BDC to navigate to the 3rd screen of FB03
  clear gt_bdcdata.

* Initial screen
  perform bdc_screen using : 'SAPMF05L'     '0700'.
  perform bdc_field  using : 'RF05L-BELNR'  p_belnr,
                             'RF05L-BUKRS'  p_bukrs,
                             'RF05L-GJAHR'  p_gjahr.

  "gs_opt-dismode = 'E'.
  gs_opt-nobinpt = 'X'.
  call transaction 'FB03' using  gt_bdcdata
                          options from gs_opt.

Thank you for you answers.

Edited by: Emilien P. on May 31, 2010 5:10 PM

1 ACCEPTED SOLUTION

former_member214857
Contributor
0 Kudos

Hi Emilien

You can use event AT LINE-SELECTION. When user double click on a list in the screen this event is triggered.

But I am affraid if you try to get selected line for result of transactyion FB03, it won´t be possible as it will start another

transaction.

Kind regards

Edited by: Carlos Machado on May 31, 2010 11:05 PM

2 REPLIES 2

former_member214857
Contributor
0 Kudos

Hi Emilien

You can use event AT LINE-SELECTION. When user double click on a list in the screen this event is triggered.

But I am affraid if you try to get selected line for result of transactyion FB03, it won´t be possible as it will start another

transaction.

Kind regards

Edited by: Carlos Machado on May 31, 2010 11:05 PM

0 Kudos

Hi,

I have just use the call of the transaction FB03 with an option of the query.

It work fine.

Thx