‎2011 Feb 17 4:12 AM
Hi All
I have developed ALV report which is working fine
while i double click on one record i need to call another transaction code i.e "COHV" which is also working fine
and the value is not population to that transaction code.
I have written code like this
CASE r_ucomm.
WHEN '&IC1'.
READ TABLE ta_final INTO wa_final INDEX rs_selfield-tabindex.
IF sy-subrc = 0.
IF rs_selfield-fieldname = 'AUFNR'.
SET PARAMETER ID 'ANR' FIELD wa_final-aufnr.
* GET PARAMETER ID 'ANR' FIELD rs_selfield-value.
CALL TRANSACTION 'COHV'." AND SKIP FIRST SCREEN .
ENDIF.
ENDIF.
ENDCASE.this is not working
now i came to know that is t-code for a report selection screen how to pass the value to that
Please help me
Surendra
‎2011 Feb 17 9:10 AM
instead of call transaction use submit statement
SUBMIT <program name> WITH p_param1 = l_param1
WITH p_param2 = l_param2
AND RETURN.
‎2011 Feb 17 4:28 AM
Hi,
Ttry with CALL FUNCTION 'ABAP4_CALL_TRANSACTION' FM.
in this you can pass parameter ID in SPAGPA_TAB tables.
Regards,
Salil
Edited by: salil chavan on Feb 17, 2011 5:29 AM
‎2011 Feb 17 5:31 AM
‎2011 Feb 17 6:15 AM
Hi,
You can use SUBMIT PPIO_ENTRY USING SELECTION-SCREEN instead of CALL TRANSACTION.
Or if you still want to use call transaction only then do not comment "AND SKIP FIRST SCREEN" ,It should work after this.
Regards,
Saurabh
‎2011 Feb 17 6:15 AM
just make changes to this line.
SET PARAMETER ID 'ANR' FIELD rs_selfield-value.
‎2011 Feb 17 6:30 AM
Hi
1. Use SUBMIT COHVOMPP AND RETURN instead of CALL TRANSACTION 'COHV'.
2. Here's some example code of SUBMITTING a program WITH SELECT-OPTIONS:
DATA: SELTAB TYPE TABLE OF RSPARAMS,
SELTAB_WA LIKE LINE OF SELTAB.
MOVE: 'LANGU' TO SELTAB_WA-SELNAME,
'S' TO SELTAB_WA-KIND, " SELECT-OPTION
'I' TO SELTAB_WA-SIGN,
'BT' TO SELTAB_WA-OPTION,
'D' TO SELTAB_WA-LOW,
'I' TO SELTAB_WA-HIGH.
APPEND SELTAB_WA TO SELTAB.
MOVE: 'E' TO SELTAB_WA-SIGN,
'EQ' TO SELTAB_WA-OPTION,
'F' TO SELTAB_WA-LOW,
SPACE TO SELTAB_WA-HIGH.
APPEND SELTAB_WA TO SELTAB.
CLEAR SELTAB_WA.
MOVE: 'ARBGB' TO SELTAB_WA-SELNAME,
'P' TO SELTAB_WA-KIND, " PARAMETER
'XX' TO SELTAB_WA-LOW.
APPEND SELTAB_WA TO SELTAB.
SUBMIT REPORT00
USING SELECTION-SET 'VARIANT1'
WITH ARBGB CP 'A*'
WITH SELECTION-TABLE SELTAB
AND RETURN.
‎2011 Feb 17 7:26 AM
‎2011 Feb 17 9:10 AM
instead of call transaction use submit statement
SUBMIT <program name> WITH p_param1 = l_param1
WITH p_param2 = l_param2
AND RETURN.