Skip to Content
0
Former Member
May 31, 2010 at 03:09 PM

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

31 Views

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