Application Development 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: 

regarding F4 help ..(Multiple selection tab disappeared )

Former Member
0 Kudos
554

Hi Experts,

I am creating a F4 help on a field with multiple selection by using 'AT SELECTION SCREEN ON VALUE-REQUEST' EVENT...My Problem is when i click on to multiple selection option on ma selection screen then it is not showing the multiple section tab on the window that pops up..Can any 1 temme what could be the reason behind this..

Regards,

Raman

10 REPLIES 10

vinod_vemuru2
Active Contributor
0 Kudos
219

Hi,

Can you post your code for definition of that selection screen field and F4 code???

I hope F4 code should be there for both LOW and HIGH values.

AT SELECTION-SCREEN ON VALUES-REQUEST for so_matnr-low.

F4 code

AT SELECTION-SCREEN ON VALUES-REQUEST for so_matnr-high.

F4 code

Thanks,

Vinod.

0 Kudos
219

i am pasting a part of code as an example..

select-options kunnso for kna1-kunnr modif id so.

  • *******************SEARCH HELP ON SALE OFFICER*****************************

at selection-screen on value-request for kunnso-low.

free kunnso_itab.

select * into corresponding fields of table kunnso_itab

from kna1 as a inner join knvp as b on akunnr = bkunn2

where

  • B~KUNN2 IN KUNNSO

  • AND

parvw = 'ZA'.

delete adjacent duplicates from kunnso_itab.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = 'KUNN2'

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = 'KUNNSO'

value_org = 'S'

tables

value_tab = kunnso_itab.

if sy-subrc <> 0.

endif.

at selection-screen on value-request for kunnso-high.

free kunnso_itab.

select * into corresponding fields of table kunnso_itab

from kna1 as a inner join knvp as b on akunnr = bkunn2

where

  • B~KUNN2 IN KUNNSO

  • AND

parvw = 'ZA'.

delete adjacent duplicates from kunnso_itab.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = 'KUNN2'

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = 'KUNNSO'

value_org = 'S'

tables

value_tab = kunnso_itab.

if sy-subrc <> 0.

endif.

Multiple selection tab after clicking on extention button is not showing..which is always visible if u r not using At selection screen on value request event for any parameter..

0 Kudos
219

Hi,

I suspect if this is causing the issue. Also use code tag when you post the code.


 ********************SEARCH HELP ON SALE OFFICER******************************
at selection-screen on value-request for kunnso-low.
free kunnso_itab.

select * into corresponding fields of table kunnso_itab
from kna1 as a inner join knvp as b on a~kunnr = b~kunn2
where
* B~KUNN2 IN KUNNSO
* AND
parvw = 'ZA'.
delete adjacent duplicates from kunnso_itab.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'KUNN2'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'KUNNSO'  "Delete
dynprofield = 'KUNNSO-LOW'  "add
value_org = 'S'
tables
value_tab = kunnso_itab.
if sy-subrc 0.
endif.

at selection-screen on value-request for kunnso-high.
free kunnso_itab.
select * into corresponding fields of table kunnso_itab
from kna1 as a inner join knvp as b on a~kunnr = b~kunn2
where
* B~KUNN2 IN KUNNSO
* AND
parvw = 'ZA'.
delete adjacent duplicates from kunnso_itab.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'KUNN2'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'KUNNSO'  "Delete
dynprofield = 'KUNNSO-HIGH'  "add
value_org = 'S'
tables
value_tab = kunnso_itab.
if sy-subrc 0.
endif.

Thanks,

Vinod.

0 Kudos
219

Try this


CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
*   DDIC_STRUCTURE         = ' '
      retfield               = 'ATWRT'
*   PVALKEY                = ' '
     dynpprog               = sy-cprog
     dynpnr                 = sy-dynnr
     dynprofield            = 'S_ATWRT'
*   STEPL                  = 0
*   WINDOW_TITLE           =
*   VALUE                  = ' '
     value_org              = 'S'
*   MULTIPLE_CHOICE        = ' '
     display                = 'F'
*   CALLBACK_PROGRAM       = ' '
*   CALLBACK_FORM          = ' '
*   MARK_TAB               =
* IMPORTING
*   USER_RESET             =
    TABLES
      value_tab              = i_atwrt1
     return_tab             = i_return
   EXCEPTIONS
     parameter_error        = 1
     no_values_found        = 2
     OTHERS                 = 3
            .
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

Thanks and regards,

Abhinav

Edited by: ASINGH512 on Mar 11, 2010 6:34 AM

0 Kudos
219

Hi Abhinav..

i have added ' Display = 'F' ' in ma code..but it is still not solved...

0 Kudos
219

Hi

Set the parameter MULTIPLE_CHOICE = ' X'

Regards,

Ravinder

0 Kudos
219

Use this code.


TABLES kna1.

TYPES : BEGIN OF ty_kunnso,
        kunnr TYPE kunnr,
        END OF ty_kunnso.

DATA : kunnso_itab TYPE STANDARD TABLE OF ty_kunnso,
i_return TYPE STANDARD TABLE OF ddshretval .

select-options kunnso for kna1-kunnr modif id so.
* ********************SEARCH HELP ON SALE OFFICER******************************
at selection-screen on value-request for kunnso-low.
refresh kunnso_itab.

select kunnr  into table kunnso_itab
from kna1 as a inner join knvp as b on a~kunnr = b~kunn2
where
* B~KUNN2 IN KUNNSO
* AND
parvw = 'ZA'.
delete adjacent duplicates from kunnso_itab.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'KUNNR'
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'KUNNSO'
value_org = 'S'
display   = 'F'
tables
value_tab = kunnso_itab
 return_tab = i_return
    EXCEPTIONS
     parameter_error        = 1
     no_values_found        = 2
     OTHERS                 = 3
.

if sy-subrc = 0.
endif.

The difference is that kunnso_itab is having only one field now. I'm not sure the TYPE that you are using for this field.

When I simply used it as type kna1 it was giving dump. Now when I'm using only 1 field it is working fine.

Thanks & Regards,

Abhinav

0 Kudos
219

Hi ravinder,

Multiple choice tab stil not visible after applying this...

0 Kudos
219

Hi Raman,

how you solved this problem..please help me on this iam also facing the same problem..

Thanks,

Shwetha

Former Member
0 Kudos
219

Hi,

Go trough the [LINK|http://wiki.sdn.sap.com/wiki/display/Snippets/F4helpinselectoption] which shows how to create F4 help

for select options.

Regards,

shanmugavel Chandrasekaran