12-13-2010 6:45 AM
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
12-13-2010 6:52 AM
KTN is the correct Parameter ID for contract. See the Help on Contract Number (VA43).
12-13-2010 6:52 AM
KTN is the correct Parameter ID for contract. See the Help on Contract Number (VA43).
12-13-2010 7:05 AM
Thanks Vinod.
It's working.
But when I check the HELP for ME33K - ME33, this kind of options (Available parameters) are not there.
What should do in such cases?
Is there any Table which can give all possible values of Parameter Id?
@Alok
Thanks.
But I already use this code in my previous Reports.
The problem was with Parameter id only.
Edited by: Priya.ABAP on Dec 13, 2010 8:07 AM
12-13-2010 7:09 AM
12-13-2010 7:39 AM
I don't think there is any table which stores the applicable Parameter ID of a specific field. (For VA43 it may be maintained in the documentation). Only option is to go to Object naviagtor (SE80) and Check the SET/GET parameters available for the application area package (eg. VA - sales, ME - Purchasing etc).
12-13-2010 7:50 AM
@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.
12-13-2010 7: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.