05-31-2010 4:09 PM
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
05-31-2010 10:04 PM
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
05-31-2010 10:04 PM
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
06-03-2010 1:28 PM
Hi,
I have just use the call of the transaction FB03 with an option of the query.
It work fine.
Thx