Skip to Content

SET PARAMETER ID - For VA43 - 'AUN' is not working.

Hi,

Code -->

PUBLIC SECTION.

    METHODS: data_gathering,
             display_alv,
             handle_hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid IMPORTING e_row_id e_column_id.

------------------------------------------------------

METHOD handle_hotspot_click.
    READ TABLE gi_merge INDEX e_row_id-index INTO gwa_merge.
    IF e_column_id = 'VBELN'.
      CHECK NOT gwa_merge-vbeln IS INITIAL.
      IF sy-subrc EQ 0.
        SET PARAMETER ID 'AUN' FIELD gwa_merge-vbeln.                 " Not working
        CALL TRANSACTION 'VA43' AND SKIP FIRST SCREEN.
      ENDIF.
    ELSEIF e_column_id = 'BVBELN'.
      CHECK NOT gwa_merge-bvbeln IS INITIAL.
      IF sy-subrc EQ 0.
        SET PARAMETER ID 'VF' FIELD gwa_merge-bvbeln.
        CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.
      ENDIF.
    ENDIF.
  ENDMETHOD.                    "handle_hotspot_click

Here SET PARAMETER ID is not passing the value of gwa_merge-vbeln to VA43.

(It's going to VA43 but without value & In debugging - value is there in gwa_merge-vbeln)

I think my parameter id (i.e. 'AUN') is not correct. Is it so?

I know only one Method to search it - i.e - Press F1 at field - Tech settings - Parameter id and this gives me 'AUN'.

What is the alternate procedure to search Parameter id?

(Before this I face the same Problem for ME33k -where F1 is giving Parameter id as 'VRT' which is not working and when I replace it as 'CTR' it works )

In SDN Search - I find one tabel TNAPR --> But this is giving only output types (from NACE) not the parameter id.

Edited by: Priya.ABAP on Dec 13, 2010 7:47 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 13, 2010 at 06:52 AM

    KTN is the correct Parameter ID for contract. See the Help on Contract Number (VA43).

    Add a comment
    10|10000 characters needed characters exceeded

    • @Gautham

      Thanks.

      This table is giving Text and not the relevant Tcodes.

      But - I got the Data Element - MEMORYID -->

      And when go for 'Where Used', I got few tables like T457C, T063T, TCLO... which are useful at some extend.

      @Vinod

      Yes.. SE80 - Package - It's really good to search the possible options.

      Thanks again.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2010 at 07:03 AM

    Hi ,

    Use read table statement after check the "column_id" Like below code.....Hope it will work......

    IF e_column_id = 'VBELN'.

    READ TABLE gi_merge INDEX e_row_id-index INTO gwa_merge.

    CHECK NOT gwa_merge-vbeln IS INITIAL.

    IF sy-subrc EQ 0.

    SET PARAMETER ID 'AUN' FIELD gwa_merge-vbeln. " Not working

    CALL TRANSACTION 'VA43' AND SKIP FIRST SCREEN.

    ENDIF.

    ELSEIF e_column_id = 'BVBELN'.

    READ TABLE gi_merge INDEX e_row_id-index INTO gwa_merge.

    CHECK NOT gwa_merge-bvbeln IS INITIAL.

    IF sy-subrc EQ 0.

    SET PARAMETER ID 'VF' FIELD gwa_merge-bvbeln.

    CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.

    ENDIF.

    ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.