Hi All,
I am writing an AMDP method with multiple selects into it. Below is the code for the calling Program :
TABLES: mseg.
SELECT-OPTIONS: s_matnr FOR mseg-matnr,
s_pspnr FOR mseg-mat_pspnr,
s_werks FOR mseg-werks.
START-OF-SELECTION.
DATA : lo_amdp TYPE REF TO zamdp.
DATA : gt_416 TYPE zamdp=>gtt_quan,
gt_415 TYPE zamdp=>gtt_quan,
gt_qbew TYPE zamdp=>gtt_quan,
gt_28x TYPE zamdp=>gtt_quan,
gt_usnam TYPE zamdp=>gtt_usnam.
CREATE OBJECT lo_amdp.
DATA : lt_seltab TYPE if_shdb_def=>tt_named_dref,
lv_where TYPE string,
lst_seltab TYPE if_shdb_def=>ts_named_dref.
lst_seltab-name = 'MATNR'.
GET REFERENCE OF s_matnr[] INTO lst_seltab-dref.
APPEND lst_seltab TO lt_seltab.
CLEAR lst_seltab.
lst_seltab-name = 'MAT_PSPNR'.
GET REFERENCE OF s_pspnr[] INTO lst_seltab-dref.
APPEND lst_seltab TO lt_seltab.
cl_shdb_seltab=>combine_seltabs( EXPORTING it_named_seltabs = lt_seltab
RECEIVING rv_where = lv_where ).
CALL METHOD Zamdp=>meth_mseg_quan(
EXPORTING
im_where = lv_where
IMPORTING
ex_416 = gt_416
gt_415 = gt_415
gt_qbew = gt_qbew
gt_28x = gt_28x ).
cl_demo_output=>display_data( EXPORTING value = gt_416 ).
The AMDP Code is as attached.
I am not getting what exactly needs to be done to resolve the issue.
Thanks & Regards
Srinivas Rao