2005 Jul 22 7:10 PM
Hi,
I have a field AUFK-AUFNR (Order) in my dialog program.
I wanted the F4 help for this field based on the order type(AUART).Means when user press F4 help it should display orders for order type 'PP01'(Just Example).
Please let me know how can I get it.
Thanks
2005 Jul 22 7:15 PM
You can do this by using search help exit. Goto the search help of this field in SE11 and you can find a field for exit. You can get all the documentation of this by pressing F1 on that field.
Thanks
Vinod
2005 Jul 22 7:21 PM
2005 Jul 22 7:39 PM
But I need help from the select statement.
Select aufnr from AUFK where AUART = 'PP01'.
i want the output of the above list in the drop down.
2005 Jul 22 7:59 PM
the internal which you pass it to the fuction, just pass the filtered values, fro which you have to write a select stt. like what you have specified
Select aufnr from AUFK into table <itab> where AUART = 'PP01'.
<itab> is the internal table with just aufnr as a field.
is my understanding of your question right, or am i missing something
Regards
Raja
2005 Jul 25 7:17 AM
Hi,
did u check this FM:
F4IF_INT_TABLE_VALUE_REQUEST -
Display internal table as search help.
http://www.sapdevelopment.co.uk/dictionary/shelp/shelphome.htm
Also check out:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap faqs.faq#q-9
Regards,
Anjali
Message was edited by: Anjali Devi
2005 Jul 25 8:02 AM
Hi,
create a search help with exit and add your piece of code according to your requirements to restrict those values. This will definitely help u to achieve.
Regs,
Venkat
2005 Jul 25 9:35 AM
Hi Amandeep,
As Raja said, use the FM 'F4IF_FIELD_VALUE_REQUEST' in POV event. Fill the internal table with the values of orders based on the order types and pass it to the parameter 'RETURN_TAB' of the same FM.
Hope it will work.
Regards,
Phani
2005 Jul 25 10:01 AM
Hey Aman,
What happened. Did u check for search help with user exit ??
Regs,
Venkat
2005 Jul 27 7:32 AM
2005 Jul 27 8:10 AM
Hi,
In flow logic of POH
Herewith i am sending a psudo logic
Just Declare one internal table with the field(aufnr) that you want to show in F4help
write select statement to extract the order numbers where order type = 'PP01'.
check whether internal table has values or not
if internal table has records then call below function module as follows
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'AUFNR'
DYNPPROG = sy-repid
DYNPNR = sy-dynnr
DYNPROFIELD = 'AUFNR'
VALUE_ORG = 'S'
TABLES
RETURN_TAB = TL_RETURN_TAB
VALUE_TAB = Extracted data.
if find it is useful, Kindly reward me points.
2005 Jul 27 10:13 AM
Hey,
Create a elementary search help and attach that search help to the table field. It will work fine.
Regs,
Venkat
2005 Jul 27 10:15 AM
Hi,
With respect to my above latest answer, while creating the search help create it with user exit and write that query in that user exit. It will solve ur problem.
Regs,
Venkat