Search help for date in module pool
Hi experts
i am developing a module pool prog, in the second screen 6 fields are displayed and one of them is date field. I wanna search help for that date field. Plz note the date field is populated from Work area of iternal table.
Plz help me out in solving the issue.
Thanks and Regards,
Alson
Hi
We have a lot of Example programs in SAP, have a look at the demo program
<b>DEMO_DYNPRO_F4_HELP_MODULE</b>..
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm
Regards
Sudheer
Similar Messages
-
Hi,
I have created an iview in Visual Composer for a query. it contains date field on selection variable fomr. i tried entering date in various format, but it gives an error : variable expects interval value ; enter an interval".
can we provide search help for date field in VC?
Regards,
Sonali.Hi,
You have to create search help it avoid inconsistency.
Thanks & Regards,
Venkat. -
HI all,
I want to attach search help for a DATE field created in screen painter.
For PERNR, PREM is attached. Similarly what is the statndard search help name for DATE field?
Thanks,
Shanthi.Hi ,
Declare the date field as sy-datum ,
parameters : date type sy-datum .
This shud bring the standard search help for date .
Thanks ..Get back for any issues.
Anil -
To implement search help for date and time fields details
how can i implement search help for date and time fields in screen painter
Hi
Declare the variables as sy-datum and sy-uzeit or any other pre-defined data typ of date and ime types. Serach help will automatically comes.
Aditya -
Search help for date in ALV grid
I have ALV grid with field type date and search help for this:
ws_field-ref_table = 'ADCP'.
ws_field-ref_field = 'DATE_FROM'.
ws_field-inttype = 'D'
After I have clicked on this key F4 then I see a calendar and I have choosen some date, but in input grid field there aren't
choosen value. Why? Another search helps works perfect except this. Where is the problem?
Edited by: Kosmo on Jul 7, 2009 8:48 AMHi,
Find the code below
TYPE-POOLS: slis.
DATA: it_fcat TYPE slis_t_fieldcat_alv,
wa_fcat LIKE LINE OF it_fcat.
DATA: it_data TYPE vbap_t.
SELECT *
FROM VBAP
INTO TABLE it_data
UP TO 20 ROWS.
wa_fcat-fieldname = 'VBELN'.
wa_fcat-tabname = 'IT_DATA'.
wa_fcat-ref_fieldname = 'VBELN'.
wa_fcat-ref_tabname = 'VBAK'.
APPEND wa_fcat TO it_fcat.
clear wa_fcat .
wa_fcat-fieldname = 'POSNR'.
wa_fcat-tabname = 'IT_DATA'.
wa_fcat-seltext_l = 'Date'.
wa_fcat-ref_fieldname = 'ERDAT'.
wa_fcat-ref_tabname = 'VBAK'.
APPEND wa_fcat TO it_fcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_interface_check = sy-repid
it_fieldcat = it_fcat
TABLES
t_outtab = it_data
EXCEPTIONS
program_error = 1.
I have derived the above code from WIKi link
https://wiki.sdn.sap.com/wiki/display/Snippets/f4helpforalvgrid+display
Regards,
Murthy. -
Hi Gurus,
I have a screen containing fields from an internal table. As I cannot use the 'from dictionary' option in the screen painter attributes, (since internal table field is not in ABAP dictionary), I'm not able to display the search help for a field of type DATS. How can i access the stabdard date search help for my type DATS internal table screen fields?
assistance will be rewarded.
thanx in advance.Hi,
Try this:
On your customizing screen flow,
PROCESS ON VALUE-REQUEST.
Field T_ZT-SDATE " your date field
module create_dateselect.
In your main program:
module create_dateselect.
data:p_date like sy-datum.
CALL FUNCTION 'F4_DATE'
EXPORTING
holiday_calendar_id = 'CN'
display = ' '
IMPORTING
select_date = p_date
EXCEPTIONS
OTHERS = 4.
t_zt-sdate = p_date.
endmodule.
Regards,
Pole -
Customize search help for date.
Dear All ,
Any Idea how we going to customize / standard function the search help for the date by refering to the closing period month and year.
Example this month closing period is 'July 2009', so when user click on the screen search help date button, the search help will pop up only 'July 2009' calender. Not like standard one with different years and months.
I only want 1 month calender.
Any idea ??
Thanks.You may need to look into fm
CALL FUNCTION 'F4_DATE'
EXPORTING
date_for_first_month = sy-datum " <your date>
IMPORTING
select_date = l_select_date
select_week = l_select_week.
or use class CL_GUI_CALENDAR
a®s -
Search help for date field in Editable ALV
Hello Friends,
I am using editable alv using 'reuse_* '.
I have used date as input field. While creating fieldcatlog also i have declared dat as a mkpf-budat.
But i am not getting serach help for date in output.
Is it possible with reuse or i have to go by object oriented ?Hi,
Just pass the Edit option of the fieldcatalog for those specific fields...
fcat-edit = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_pf_status_set = 'PF_STATUS_SET'
i_callback_user_command = 'USER_COMMAND' "<---- pass this
i_callback_top_of_page = 'TOP'
is_layout = it_layout
it_fieldcat = it_fcat
i_default = 'X'
i_save = 'A'
it_events = it_event
TABLES
t_outtab = it_final
EXCEPTIONS
program_error = 1
OTHERS = 2.
*& Form USER_COMMAND
* text
* -->R_UCOMM text
* -->RS_SELFIELD text
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN '&DATA_SAVE'. "<-------check this
PERFORM save_data.
ENDCASE.
ENDFORM. "USER_COMMAND -
F4 ( Search Help ) for date field on the selection screen
Hi Freinds,
i have used WDR_SELECT_OPTIONS In my component, i have one date field on selection screen(BUDAT), for this date field i want seach help
this is my code
create a range table for Posting Date
lt_range_table = wd_this->m_handler->create_range_table(
i_typename = 'BUDAT' ).
add Posting Date to the selection
wd_this->m_handler->add_selection_field( i_id = 'BUDAT'
i_value_help_type = if_wd_value_help_handler=>CO_PREFIX_SEARCHHELP
I_VALUE_HELP_ID = '??????'
I_DESCRIPTION = 'Posting Date'
it_result = lt_range_table ).
can any one help me
Thanks
Srinihi sarbjeet
i created search help in dictionary and i used that search help in my program, but still its now working , any other ideas
Thnx
srini -
F4 help for date in select options..
Hi Gurus,
I want a search help for date field which belongs to select options.
I know if it is a parameter we directly map the attribute value to that data element.
Can some help me with this..
Best Regards,
Navin Fernandes.Hi Gurus,
The select options works for date.. I got the solution.
It directly relates to the default data dcitionary help.
Got it from this example: WDR_TEST_SELECT_OPTIONS
Best Regards,
Navin Fernandes. -
Search Help for custom data element
Hi experts,
I have a small question regarding accessing data on different clients.
Can I have an abap program where I can make reference to data /tables in different client AAA, assuming the system (AAA) with data is logically connected to the client that has the ABAP Program ?
thanks,
RajeshThanks Ankur and Rich,
I would like to clarify your responses.
I have a custom field my material in SAP xRPM system( different client from R/3). As per your previous replies, I understand it is possible to have search help for material in xRPM and validate the data with material in R/3. Is this correct? Do I need to maintain all the data in the xRPM ?
thanks again,
Rajesh -
Search help for custome field with different data type
Hi Friends,
I have Created a custom table in which i have created a field is
ZMATLONG which stores material number.
Now the data element is zdmat which is of char 40..
Now i want to give search help for this field ZMATLONG..
I have tried many ways giving search help to this field
a) i Tried to attach the standard search help of MATNR ie : MAT1 but its showing me data type inconsistancy
b) i created a zsearch help and in the selection method i have used database table mara , again here iam getting the same error data type inconsistancy...
Now how can i give the search help like matnr field to my custom field ZMATLONG...
How can i do it..?
Thanks in Advance..
Regards
KumarHi,
MATNR ahs length 18 and ZMATLONG has length 40.So due to this u cannot use MAT1 search help.
best way would be cope MAT1 into Z search help. Then in the search help parameter change the data element of field
MATNR as ZMATLONG.
Now if you assign Z search help to ZMATLONG it will work.
I tried this its working fine.
Shanmugavel Chandrasekaran -
Search help for VA01 Header Data Partners
Hello Team,
I have a requirement in va01/02/03 , where i will need to create/enhance a search help for one of the partner functions under SO header data.
and values will need to be extracted from a customer Z-Table., taking into consideration the sales area of the SO
Right now, I am not sure, but it looks like it has a search help attached to it, but when i press F4, nothing comes up.
Is there a way i can check if there is any standard search help associated with those screen field?thankyou suresh.
As i have created this search help and in the view i have given the join conditions as
MARA-MATNR = MARC-MATNR
MARA-MATNR = MAKT-MATNR
MARA-MATNR=MVKE-MATNR
and in search help parameters :
VKORG
MATNR
BISMT
MAKTX
MTART
WERKS
PRODH
I took the Hotkey as 1.
Please guide me what are selection conditions that i need to give in my VIEW.
Here iam using 4 tables.
MARA
MAKT
MVKE
Edited by: vinay raj on Jun 12, 2009 6:42 AM
Edited by: vinay raj on Jun 12, 2009 7:18 AM -
SEARCH HELP FOR STANDARD SAP DATA ELEMENT AFNAM
Hello All,
Is there any possibility for adding a search help for the standard SAP field AFNAM.
Thanks in Advance!
AshishHi Ashish,
You can APPEND your own search help to an SAP field that has search help defined. This is similar to APPENDing fields to an SAP table.
You can also attach the search help to a field on a screen, i.e. limit the scope to that single screen, but this would still require a modification to the system, and hence, an access key.
Hence if you want to attach search help to the standard SAP field, then you will need access key for that.
If the access key will be available then you can attach your search help to the standard SAP field.
For more reference go through the link :
http://help.sap.com/erp2005_ehp_04/helpdata/EN/3d/e53642e2a3ab04e10000000a1550b0/frameset.htm
Thanks,
Nitesh Jain -
How to get search help for 2nd parameter based on the 1st parameter value
Hi all!
I have 2 parameters (material no, revision level). I have created a search help for revision level. It has an importing parameter :material no. and one exporting parameter : revision level.When I checked it, it's giving the revision values only for the specified.
In my report , I have kept these 2 materials in my selection screen.For revision level , I have added the matchcode object which I have created. When I pressed F4 for revision level, it's giving all the values irrespective of the material no. in the first parameter. How to solve it? Please suggest.Hi,
Try this code filling internal table fields,
DATA: BEGIN OF values,
OID TYPE ZCL_OBJECT-OBJECTID,
ODEC TYPE ZCL_OBJECT-OBJECT_DESC,
END OF values,
W_FIELD(10).
DATA: ZCL_PROJECT-PROJECTID type zcl_project-projectid,
ZCL_OBJECT-OBJECTID(5).
DATA: progname TYPE sy-repid,
dynnum TYPE sy-dynnr,
dynpro_values TYPE TABLE OF dynpread,
field_value LIKE LINE OF dynpro_values,
values_tab LIKE TABLE OF values.
CALL SCREEN 100.
*& Module VALUE_PROJECTID INPUT
text
*MODULE VALUE_PROJECTID INPUT.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'ZCL_PROJECT'
fieldname = 'PROJECTID'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'ZCL_PROJECT-PROJECTID'.
*ENDMODULE. " VALUE_PROJECTID INPUT
*& Module VALUE_OBJECTID INPUT
text
MODULE VALUE_OBJECTID INPUT.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = progname
dynumb = dynnum
translate_to_upper = 'X'
TABLES
dynpfields = dynpro_values.
READ TABLE dynpro_values INDEX 1 INTO field_value.
W_FIELD = FIELD_VALUE-FIELDVALUE.
SELECT OBJECTID
OBJECT_DESC
FROM ZCL_OBJECT
INTO (VALUES-OID,
VALUES-ODEC)
WHERE PROJECTID = FIELD_VALUE-FIELDVALUE.
APPEND VALUES TO VALUES_TAB.
ENDSELECT.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'OID'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'ZCL_OBJECT-OBJECTID'
value_org = 'S'
TABLES
value_tab = values_tab.
ENDMODULE. " VALUE_OBJECTID INPUT
*& Module INIT OUTPUT
text
MODULE INIT OUTPUT.
progname = sy-repid.
dynnum = sy-dynnr.
CLEAR: field_value, dynpro_values.
field_value-fieldname = 'ZCL_PROJECT-PROJECTID'.
APPEND field_value TO dynpro_values.
IF SY-UCOMM = 'BACK'.
LEAVE program.
ENDIF.
IF SY-UCOMM = 'ANS'.
LEAVE TO SCREEN '0'.
ENDIF.
ENDMODULE. " INIT OUTPUT
START-OF-SELECTION.
WRITE: / field_value-fieldvalue,
W_FIELD.
LOOP AT VALUES_TAB INTO VALUES.
WRITE / VALUES.
ENDLOOP.
if sy-subrc <> 0.
WRITE / field_value-fieldvalue.
endif.
Plzz reward points if it helps
Maybe you are looking for
-
Transfer data from Powermac G4 to new 27" iMac
I have a 2003 PowerMac G4 that I am replacing with a new 27" iMac 3.4 i7 which is on order. I want to transfer my photos and iTunes files to the new machine. I had purchased a LaCie d2 USB3/Thunderbolt harddrive in hopes of backing up the G4 but it i
-
How to get data from multiple tables
Hello Everyone, I need to read data from a few tables (VBAK, VBAP, VBUK, VBUP etc.) because I'd like to get all open Sales Orders. I've tried to use RFC_READ_TABLE but it looks like it can read only 1 table at a time. I've tried to read data from ind
-
How to Create the new Field ( Table - Row) in SAP B1
I have a scenario in which the Purchase calculation is based on LR, so for that we have to add new field in Purchase Document. that filed is not available in form setting. kindly let me know how to Create a new field in Purchase document. Thanks
-
Is it possible to get a virus or spyware on a iPad ?
My iPad II seems to have a virus. Notes have disappeared twice. Changes pages for no reason. It it possible t get a virus o spyware? Thank you.
-
My iPod will not display in iTunes or in third party software like iPodAgent or SharePod. I got an error in the ipodcontrol\music file or something like that. I may go to my local Apple Store tomorrow. I have not tried to format my ipod yet. I'm worr