cancel
Showing results for 
Search instead for 
Did you mean: 

SET PARAMETER ID not working for standard transaction

Former Member
0 Kudos

Hello Experts,

I am using the following code to call transaction EMMACL with parameter ID,

SET PARAMETER ID 'EMMA_CNR' FIELD <fs_case>-casenr."for case number

CALL TRANSACTION 'EMMACL' AND SKIP FIRST SCREEN.

But while calling transaction, it shows all the records present for EMMACL , instead of showing the record that is being captured in field symbol.

Please suggest some solution.

Accepted Solutions (1)

Accepted Solutions (1)

thanh_dinh
Explorer
0 Kudos

Hello Srishty,

Instead of using CALL TRANSACTION, you can use SUBMIT.
I made the demo and it seems ok.

TABLES : emma_case.
SELECT-OPTIONS: so_emma FOR emma_case-casenr.
SUBMIT remmacaselist
        WITH caseno IN so_emma.

Input your casenr and it will display the result matched your input.

Regards,

Thanh.

Former Member
0 Kudos

Hello Thanh,

I am calling this TCODE, when user clicks on a cutomized button in module pool,

hence I am unable to declare a select option in PAI event as well as TOP Include.

Please provide some other option.

Thanks,

Srishty.

thanh_dinh
Explorer
0 Kudos

Hello Srishty,

My demo code just to show you that SUBMIT command can show only records which have matched case number (<fs_case>-casenr) and not display all data.
For your case, put this code in the event of your customized button:

Types: begin of gty_casenr_so,
  sign(1)   TYPE c,
  option(2) TYPE c,
  low       TYPE emma_case-casenr,
  high      TYPE emma_case-casenr,
end of gty_casenr_so.

data: lt_casenr type table of gty_casenr_so,
ls_casenr type gty_casenr_so.


ls_casenr-sign = 'I'.
ls_casenr-option = 'EQ'.
ls_casenr-low = <fs_case>-casenr.
append ls_casenr to lt_casenr.

SUBMIT remmacaselist    WITH caseno IN lt_casenr.

Answers (0)