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

i need help

Former Member
0 Likes
684

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
642

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.

4 REPLIES 4
Read only

Former Member
0 Likes
642

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.

Read only

Former Member
0 Likes
642

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

Read only

Former Member
0 Likes
643

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.

Read only

Former Member
0 Likes
642

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