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

table maintenance generator

Former Member
0 Likes
1,319

hi,

i m validating user entries in SM30. i have done them in event '05'. working fine. now i want to have F4 help. for this i code a function module 'F4IF_FUNCTION_MODULE_NAME' in the same event. but it is not triggered in event '05'.

any one has an idea in which event F4 help function will be triggered ?

please help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,195

hi,

Go through the following code :

DATA: BEGIN OF LI_FABGRP OCCURS 0,

FABGRP LIKE ZAPO_FABGRP-FABGRP,

BEGDA LIKE ZAPO_FABGRP-BEGDA,

END OF LI_FABGRP.

DATA : T_RETURN TYPE STANDARD TABLE OF DDSHRETVAL WITH HEADER LINE,

L_RETFIELD TYPE DFIES-FIELDNAME.

parameters : S_FABGR like ZAPO_FABGRP-FABGRP.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_FABGR.

SELECT FABGRP BEGDA FROM ZAPO_FABGRP INTO table I_FABGRP.

SORT LI_FABGRP BY FABGRP ASCENDING BEGDA DESCENDING.

  • Henter de mulige fabriksgrupper med nyeste BEGDA *indenfor hver

DELETE ADJACENT DUPLICATES FROM LI_FABGRP COMPARING FABGRP.

L_RETFIELD = 'FABGRP'.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = L_RETFIELD

DYNPPROG = SY-REPID

DYNPNR = '1000'

DYNPROFIELD = 'S_FABGR'

VALUE_ORG = 'S'

MULTIPLE_CHOICE = ' '

TABLES

VALUE_TAB = LI_FABGRP

RETURN_TAB = T_RETURN

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3.

Thanks,

Ramya.

10 REPLIES 10
Read only

Former Member
0 Likes
1,195

Hi,

F4 Help would be triggered on Event. At Selection screen on value request.

The FM for F4 Help is F4if_int_table_value_request.

Best regards,

Prashant

Read only

Former Member
0 Likes
1,195

Hi,

I don't think there is any event in SM30 which supports your requirements. You could attach a search help to the datafield which needs the F4 and regenerate the maintenance screen.

Regards,

John.

Read only

0 Likes
1,195

HI JOHN,

i have attached standard dataelement so i can not change it to attach any search help

Read only

0 Likes
1,195

Hi surendarakumar,

1. No problem if it is a standard data element.

2. We ATTACH search help

in THE TABLE FIELD.

3. Please attach in the table field,

and it will get done automatically.

regards,

amit m.

Read only

0 Likes
1,195

where do we exactly attach it.

i m working in 4.6B

i didnt find a way to attach it in se11

Read only

0 Likes
1,195

Hi again,

1. where do we exactly attach it.

In se11,

place your cursor on the field,

and press the button <b>'Srch Help'</b>

which is present

just above the grid. (not on the toolbar)

(immediately to the right of primary key button )

regards,

amit m.

Read only

0 Likes
1,195

Hi,

You can attach the search help to the field of the table you are using. Use SE11 to change the table, double click on the field and add the search help.

Regards,

John.

Read only

0 Likes
1,195

THANKS JOHN and AMIT and others. done

Read only

Former Member
0 Likes
1,196

hi,

Go through the following code :

DATA: BEGIN OF LI_FABGRP OCCURS 0,

FABGRP LIKE ZAPO_FABGRP-FABGRP,

BEGDA LIKE ZAPO_FABGRP-BEGDA,

END OF LI_FABGRP.

DATA : T_RETURN TYPE STANDARD TABLE OF DDSHRETVAL WITH HEADER LINE,

L_RETFIELD TYPE DFIES-FIELDNAME.

parameters : S_FABGR like ZAPO_FABGRP-FABGRP.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_FABGR.

SELECT FABGRP BEGDA FROM ZAPO_FABGRP INTO table I_FABGRP.

SORT LI_FABGRP BY FABGRP ASCENDING BEGDA DESCENDING.

  • Henter de mulige fabriksgrupper med nyeste BEGDA *indenfor hver

DELETE ADJACENT DUPLICATES FROM LI_FABGRP COMPARING FABGRP.

L_RETFIELD = 'FABGRP'.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = L_RETFIELD

DYNPPROG = SY-REPID

DYNPNR = '1000'

DYNPROFIELD = 'S_FABGR'

VALUE_ORG = 'S'

MULTIPLE_CHOICE = ' '

TABLES

VALUE_TAB = LI_FABGRP

RETURN_TAB = T_RETURN

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3.

Thanks,

Ramya.

Read only

Former Member
0 Likes
1,195

Hai

Go through the following Code

data: l_select_value like help_info-fldvalue,

l_ind type sy-tabix,

L_REC type i,

l_matnr like mara-matnr.

DATA : T_RETURN TYPE STANDARD TABLE OF DDSHRETVAL WITH HEADER LINE.

DATA : T_RETURN1 LIKE DDSHRETVAL.

data : begin of it_mara occurs 0,

matnr like mara-matnr,

mtart like mara-mtart,

end of it_mara.

parameters : p_matnr like mara-matnr.

at selection-screen on value-request for p_matnr.

select matnr mtart from mara into table it_mara where mtart = 'ROH'.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = 'MATNR'

dynpprog = sy-repid

dynpnr = '1000'

dynprofield = 'MARA-MATNR'

value_org = 'S'

multiple_choice = ' '

tables

value_tab = it_mara

RETURN_TAB = T_RETURN.

if sy-subrc = 0.

read table T_RETURN index 1 transporting fieldval.

move T_RETURN-fieldval to v_matnr.

endif.

Thanks & regards

Sreeni