Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Interactive ALV list Problem

Former Member
0 Likes
915

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
849

instead of call transaction use submit statement

SUBMIT <program name> WITH p_param1 = l_param1

WITH p_param2 = l_param2

AND RETURN.

7 REPLIES 7
Read only

Former Member
0 Likes
849

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

Read only

0 Likes
849

Not working the function module

please suggest

Read only

Former Member
0 Likes
849

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

Read only

SharathYaralkattimath
Contributor
0 Likes
849

just make changes to this line.

SET PARAMETER ID 'ANR' FIELD rs_selfield-value.

Read only

0 Likes
849

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.

Read only

Former Member
0 Likes
849

if above said answers are not working, try to call BDC

Read only

Former Member
0 Likes
850

instead of call transaction use submit statement

SUBMIT <program name> WITH p_param1 = l_param1

WITH p_param2 = l_param2

AND RETURN.