‎2008 Mar 18 6:41 AM
hi
i have created a ZTABLE(structure), i need to add search help to one of the field name1 which is the standard sap field from table lfb1. can i add it into the table which i have created, if yes how can i add a search help to the field.
‎2008 Mar 18 6:54 AM
Hi,
TYPES: BEGIN OF t_reques,
lgnum TYPE lgnum,
END OF t_reques.
DATA:i_reques TYPE STANDARD TABLE OF t_reques.
SELECTION-SCREEN: BEGIN OF BLOCK b1.
PARAMETER: p_ware TYPE lgnum OBLIGATORY.
SELECTION-SCREEN: END OF BLOCK b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ware.
SELECT lgnum
FROM T301
INTO TABLE i_reques.
PERFORM f4_help USING i_reques CHANGING p_ware. "SUBROUTINE FOR F4 HELP.
&----
SUBROUTINE FOR F4 HELP. *
----
-->P_I_REQUES text
<--P_P_WARE text
----
FORM f4_help USING p_i_reques
CHANGING p_p_ware.
************************************************************************
CALLING FM F4IF_INT_TABLE_VALUE_REQUEST FOR F4 HELP. *
************************************************************************
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
ddic_structure = 'LINK'
retfield = 'LGNUM'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'P_P_WARE'
callback_program = 'ZAR_F4HELP' "Your Program Name
TABLES
value_tab = i_reques
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE i006(zmm_ab).
ENDIF.
ENDFORM.
Thanks,
Arunprasad.P
Reward if useful.
‎2008 Mar 18 7:07 AM
>
> hi
>
> i have created a ZTABLE(structure), i need to add search help to one of the field name1 which is the standard sap field from table lfb1. can i add it into the table which i have created, if yes how can i add a search help to the field.
Yes, you can add a search help to the field in the ZTABLE.
Search Help Creation:
Goto SE11 Tx.
Select the radio button Search Help and create it by giving the reference field from the standard table.
Now go back to the same Tx. Goto the table field to whci you want to add the search help and select the field and click on search help button at the top of the table fields.
Give the search help name which you have created.
Note: This is as per my knowledge.
Reply me after using the above.
Thanks & Regards,
Balaram
‎2008 Mar 18 7:10 AM
thanks but the original field which i am refering doesn't have a search option.
‎2008 Mar 18 7:13 AM
Hi,
that field doesn't need to have the search help.
This is how u can create "Search Help" for the fields of the ztables that u have created.
SE11- Create Search Help for 1 field, "Selection Method" box put the Table name to which the field belongs to. "Dialog Type" box write: "Display Value Immediately".
Search Help Parameter is the Field name for which u want the Help. Tick Imp & Exp options and assign LPOS = 1 and Enter. , save and Activate.
SE11- Go to the table , Click on the Field that needs to be assigned a search Help....Click at the left side of the Field so that all the corresponding data Elements, Key field etc also gets selected.
Click on the "Search Help tab" just above the "Data Type " column.
Put the "Search Help" name that u just created. Mention the Field and Enter. it takes up the required values. Now Copy.
U can repeat the process for whatever fields u want to assign a Search Help.
se51- Go to Screen Painter, Select Fields from Dictionary table to which u want search help to be assigned.
Double click on the Text box of the corresponding field,......> Screen Painter Attributes.......> Search help Text box.........> Enter the name of the Search help that u created for a field.
Ok....>Save.........> Activate
Now u should be able to get the Search help for the fields that u wanted to.
rgds,
bharat.
‎2008 Mar 18 7:19 AM
you needed the values in a particular filed from standard table as a search help to the field in the Z-table.
so no need to have a search help to that field in the standard table.
we are creating a search help manually.
‎2008 Mar 18 7:08 AM