Skip to Content
0

SET PARAMETER ID not working for standard transaction

Jun 30, 2017 at 11:58 AM

39

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Thanh Dinh Jun 30, 2017 at 12:21 PM
0

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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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.

0

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.
0