‎2007 Jul 05 7:59 AM
i have coded for interactive ALV & i want that whenever i double click on the particular field named 'gpr_no', i want the screen no. say- 9012 to call.
For that i did :-------
WHEN '&IC1'.
IF WA_SELFIELD-FIELDNAME = 'GPR_NO'.
READ TABLE IST_OUTPUT INTO WA_OUTPUT INDEX WA_SELFIELD-TABINDEX.
IF SY-SUBRC EQ 0.
SET PARAMETER ID 'GPR' FIELD WA_OUTPUT-GPR_NO.
CALL SCREEN 9012.
ENDIF.
ENDIF.i just want to know that ..... is there any other way to call a screen or transaction w/o SET PARAMETER ID...........<b>not using OOABAP</b> ????
plzz help me
ThanQ.
dish
‎2007 Jul 05 9:35 AM
Hi,
You can use FM - COPF_CALL_TRANSACTION
e.g.
when '&IC1'.
CALL FUNCTION 'COPF_CALL_TRANSACTION'
EXPORTING
tcode = 'Enter you Transaction here'
new_session = ' '. " <-- if you want it to open in a new session window then mark 'X'
Regards,
Samson Rodrigues.
‎2007 Jul 05 8:03 AM
hi,
u should not call screen like by halt coding ex: 9012 or 1000 like that,
bcaz there r somany screens with the same numbers.
call transaction ' ' then skip your screen.
that's all.
sample code,
when 'MD04'.
if g_wa_globe is initial.
message i000(zf_mes) with text-048.
exit.
endif.
if g_wa_globe-matnr is not initial and g_wa_globe-werks is not initial.
set parameter id 'MAT' field g_wa_globe-matnr.
set parameter id 'WRK' field g_wa_globe-werks.
call transaction 'MD04' and skip first screen .
else.
message i000(zf_mes) with text-045.
exit.
endif.
reward points if useful,
regards,
seshu.
‎2007 Jul 05 8:08 AM
Hi Divya,
First hing, do not use CALL SCREEN, use CALL TRANSACTION.
and if you are using CALL TRANSACTION then you can pass parameter values only using SET..GET.
If you don't need the screen to be shown to the user then use SUBMIT.
Reward points if useful.
Regards,
Atish
‎2007 Jul 05 9:35 AM
Hi,
You can use FM - COPF_CALL_TRANSACTION
e.g.
when '&IC1'.
CALL FUNCTION 'COPF_CALL_TRANSACTION'
EXPORTING
tcode = 'Enter you Transaction here'
new_session = ' '. " <-- if you want it to open in a new session window then mark 'X'
Regards,
Samson Rodrigues.
‎2007 Jul 05 9:39 AM
hi divya,
have a look at the following links....it might help
http://www.sapfans.com/forums/viewtopic.php?t=11601
http://www.sapfans.com/forums/viewtopic.php?t=23010
Regards,
Roshani