Skip to Content
avatar image
Former Member

SET PARAMETER ID not working for standard transaction

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jun 30, 2017 at 12:21 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

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