F4 Help for timestamp
I changed the data type for a database table field from DATUM to TIMESTAMP.
When using DATUM, I could use a F4-help in the GUI automatically that showed a calendar ("Input help based on data type"). Is there a similar thing for the TIMESTAMP domain?
Hi,
i don't think you can provide F4 help for TIMESTAMP domain
check this package 'SZTZ' , you may get some details.
Regards
Appana
Similar Messages
-
F4 help for timestamp on selection screen
Hi experts!
I have this code in custom ALV report:
selection-screen: begin of block b1 with frame title text-t01.
DATA: w_aux_sc_created_at like ztable-sc_created_at.
SELECT-OPTIONS s_sc_c02 for w_aux_sc_created_at.
Ztable-sc_created_at is COMT_CREATED_AT_USR (data element)
COMT_CREATED_AT_USR is standard data type (DEC, lenght 15) domain COM_TSTMP --> UTC Time Stamp Short Form (YYYYMMDDhhmmss) (Output sy-zonlo)
Ok, I would like to show a calendar for select date in my SELECT-OPTIONS custom ALV report like MATCHCODE OBJECT.
A lot of thanks in advance.
Best regards.
djlu
Moderator message: please use more descriptive subject lines from now on, changed for you this time
Edited by: Thomas Zloch on Nov 8, 2010 9:44 AMthanks you for your answer but I fixed it.
I created a select-options in date form (with F4 help) and I convert it to timestamp for my select sentence.
Regards -
Hi,
I have an Source XML as follows.
<ROOTNODE>
<A>value</A>
<B>value</B>
</ROOTNODE>
<ROOTNODE>
<A>value</A>
<B>value</B>
</ROOTNODE>
<CHILD1>
<A>value</A>
<B>value</B>
</CHILD1>
NOW AFTER PERFORMING XSLT I NEED TO GET THE RESULT XML AS FOLLOWS.
<ROOTNODE>
<ROOTNODE>
<A>value</A>
<B>value</B>
</ROOTNODE>
<ROOTNODE>
<A>value</A>
<B>value</B>
</ROOTNODE>
</ROOTNODE>
<CHILD1>
<CHILD1>
<A>value</A>
<B>value</B>
</CHILD1>
</CHILD1>
The problem is i donot know what elements will be coming in the source xml and i cant hardcode the element names in the xslt.hi,
Try with OOPs method. here is the sample code
data :lo_mxml type ref to cl_xml_document,
m_document type ref to if_ixml_document,
l_dom type ref to if_ixml_element,
l_ele type ref to if_ixml_element,
l_ele1 type ref to if_ixml_element,
l_ele2 type ref to if_ixml_element,
l_ele3 type ref to if_ixml_element,
l_ele4 type ref to if_ixml_element,
l_ele5 type ref to if_ixml_element,
l_ele6 type ref to if_ixml_element,
l_ele7 type ref to if_ixml_element,
m_doctype type ref to if_ixml_document_type,
g_ixml type ref to if_ixml,
l_text type ref to if_ixml_text,
ls_srctab1 type xstring,
l_retcode type sysubrc. "#EC *.
create object lo_mxml.
perform header_xml.
l_retcode = lo_mxml->create_with_dom( document =
m_document ).
CALL METHOD LO_MXML->DISPLAY.
call method lo_mxml->render_2_xstring
exporting
pretty_print = 'X'
importing
retcode = l_retcode
stream = l_string.
class cl_ixml definition load.
g_ixml = cl_ixml=>create( ).
m_document = g_ixml->create_document( ).
call method m_document->create_document_type
exporting
name = 'cXML'
receiving
rval = m_doctype.
call method m_document->set_document_type
exporting
document_type = m_doctype.
call method l_dom->set_attribute
exporting
name = 'payloadID'
value = l_string
receiving
rval = l_retcode.
call method l_dom->set_attribute
exporting
name = 'timestamp'
value = l_string
receiving
rval = l_retcode.
*___HEADER NODE (CHILD OF CXML NODE)
l_ele = m_document->create_element( name = 'Header' ).
l_retcode = l_dom->append_child( l_ele ).
*___FROM NODE (CHILD OF HEADER NODE)
l_ele1 = m_document->create_element( name = 'From' ).
l_retcode = l_ele->append_child( l_ele1 ).
l_ele2 = m_document->create_element( name
= 'Credential' ).
l_retcode = l_ele1->append_child( l_ele2 ).
*____ATTRIBUTE FOR CREDENTIAL FROM NODE
move gc_cre_from to l_string.
call method l_ele2->set_attribute
exporting
name = 'domain'
value = l_string
receiving
rval = l_retcode.
Hope this will help for you
Cheers,
Sasi -
Creating search help for a field in AdHoc Query
Hi
We have created an infoset based on LDB PCH.
(The infoset contains object type O only).
For the object-id field the users want search help when choosing this field for selection.
Using "start via selection screen" does not give a good solution.
Can anyone explain how I can create search help for fields in an infoset?
Regards
KirstenHi
We have created an infoset based on LDB PCH.
(The infoset contains object type O only).
For the object-id field the users want search help when choosing this field for selection.
Using "start via selection screen" does not give a good solution.
Can anyone explain how I can create search help for fields in an infoset?
Regards
Kirsten -
Need to restrict values in F4 help for Batch Characteristic
Hi,
I need to restrict values in F4 Help for a batch characteristic based on values entered for another characteristic. I could not find any BADI or Exit for this purpose. There is a BADI CACL_VALUE which is triggered after an entry is selected from dropdown list but nothing when we press F4. I thought of using Object Dependency but I need to write a programming logic for the requirement. Please let me know if there is any way to write program in Object Dependency or any other way for this requirement.
Regards,
NikhilHi nikhil simha,
first of all, find out which search help is called.
[Hierarchy of the Search Help Call|http://help.sap.com/saphelp_nw70/helpdata/en/0b/32e9b798da11d295b800a0c929b3c3/frameset.htm]
may help you.
If you know the search help, you may enhance it, but first of all you should check the where-used-list and make sure that the search help shows the requested behavior only in the context where you want it to.
If it is your own program, you may be better off to create your own search help and define the triggering fields as search help interface input fields. Then you can use the values to filter results.
Regards
Clemens -
Search Help for Vendor Feild not getting populated in the Screen Element
Hi Everyone,
In transaction Miro, I get a POP-UP for Invoicing Party i.e. Vendor and Users required a custom search help.
The Search help for Vendor(LIFNR) is KRED_C and i appended a Z search help under this.
Now that the search help exists and I can drill down the values too but when i select/choose any value, that value is not getting populated in Screen feild.
is there any validation I need to do for this.
Please suggest me... I checked SDN there are many things but i couldn't figure out wat i need to do and where I need to modify.
Regards,
RajDear Hema,
Could you please tell me how many internal tables you are using to store the data for display.
I observerd that you have lt_stock and lt_mat2 declared in the part of the program
>DATA: lv_stock TYPE lty_stock.
>DATA: ltmat2 TYPE TABLE OF lty_mat.
you have displayed above, however you are also using ls_stock and lv_stock .
>IF p_ztotal = ' '. "line
>WRITE 18 ls_stock-matnr.
>WRITE 38 lv_stock-strgr.
>
>ELSEIF ztotal = 'S'. "subtotal
>WRITE: 15 ls_stock-nrmit.
>WRITE 32 lv_stock-dispo.
>WRITE 43 lv_stock-fevor.
>ELSE. "total
>WRITE: 15 'TOTAL'(016), ls_stock-prgrp.
>
>ENDIF.
Are those for displaying some other information?
Also the problem of display you are facing can also be because there are no records to be displayed which satisfies the selection criteria.
Best Regards,
Rajesh.
Please reward points if found helpful. -
Search help for SKAT-SAKNR OR SKAT-SAKNR is not working
Hi All,
I have created a Search Help for F4 in a dialog program for SKAT-SAKNR OR SKAT-SAKNR. While i click F4 on that field, it displays blank values.
Here is the module:
module HELP_FOR_SAPGL_ACC input.
CLEAR t_SAPGL.
SELECT SAKNR TXT20
FROM SKAT
INTO CORRESPONDING FIELDS OF TABLE t_SAPGL UP TO 1000 ROWS
WHERE SPRAS = SY-LANGU.
WHERE L_GL_ACC = v_FIELD_VALUE-FIELDVALUE.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'SAKNR'
PVALKEY = ' '
DYNPPROG = PROGNAME
DYNPNR = DYNNUM
DYNPROFIELD = 'SKA1-SKANR'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = t_SAPGL
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
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.
endmodule.
In the above code I am selecting 1000 rows from SKAT table and in the Search Help Popup it is also displaying 1000 rows but all are blank.
Please help me.
Regards,
AvaneetHi check my weblog on search help exit codeing..
https://wiki.sdn.sap.com/wiki/x/du0
\* Prepare for output
CALL FUNCTION 'F4UT_RESULTS_MAP'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
source_tab = lt_result
CHANGING
shlp = shlp
callcontrol = callcontrol
EXCEPTIONS
illegal_structure = 1
OTHERS = 2.
IF rc = 0.
callcontrol-step = 'DISP'.
ELSE. -
I have problem with buying in games , I got the massage that the purchased can not be completed , please contact iTunes support.. I need help for my case please
http://www.apple.com/support/itunes/contact/
-
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 -
How to create a F4 help for a report selection screen field
hi,
can any one guide me to create F4 help for a field in a selection screen in a report program,plz give me a sample codehi,
Here are the following ways
1.with the help of match code objects we can create the F4 Functionality for Field.
Syntax is :
PARAMETERS: p_org LIKE t527x-orgeh MATCHCODE OBJECT zorg.
2. One more thing is we can do it with Search Help's also.
3. Even we can do it HELP Views also.
Help Views:
You have to create a help view if a view with outer join is needed as selection method of a search help
The selection method of a search help is either a table or a view. If you have to select data from several tables for the search help, you should generally use a database view as selection method. However, a database view always implements an inner join. If you need a view with outer join for the data selection, you have to use a help view as selection method.
All the tables included in a help view must be linked with foreign keys. Only foreign keys that have certain attributes can be used here. The first table to be inserted in the help view is called the primary table of the help view. The tables added to this primary table with foreign keys are called secondary tables.
The functionality of a help view has changed significantly between Release 3.0 and Release 4.0. In Release 3.0, a help view was automatically displayed for the input help (F4 help) for all the fields that were checked against the primary table of the help view. This is no longer the case in Release 4.0.
As of Release 4.0, you must explicitly create a search help that must be linked with the fields for which it is offered (see Linking Search Helps with Screen Fields ).
Existing help views are automatically migrated to search helps when you upgrade to a release higher than 4.0.
A help view implements an outer join, i.e. all the contents of the primary table of the help view are always displayed. You therefore should not formulate a selection condition for fields in one of the secondary tables of the help view. If records of these secondary tables cannot be read as a result of this selection condition, the contents of the corresponding fields of the secondary table are displayed with initial value.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 15, 2008 3:15 PM -
Reg : F4 help for custom fields in ALV report
hi friends..
in my internal table i have fields including 1 custom field..
DATA : BEGIN OF i_final OCCURS 0,
pernr LIKE p0000-pernr,
begda LIKE p0000-begda,
plans LIKE ZPOSITION-plans, (custom)
werks LIKE pspar-werks,
end of i_final.
i want to display this i_final table in alv. for that i genetrate one fieldcatalog
PERFORM fcat USING:
'I_FINAL' 'PERNR' 'P0000' 'PERNR' '15' 'X' '',
'I_FINAL' 'BEGDA' 'P0000' 'BEGDA' '10' 'X' '',
'I_FINAL' 'PLANS' 'ZPOSITION' 'PLANS' '8' 'X' '',
'I_FINAL' 'WERKS' 'PSPAR' 'WERKS' '14' 'X' ''.
in custom table zposition, i maintain serch help for custom field "PLANS".
then i used reuse_alv_grid_display.. for all the std fields along wit custom fields
i got f4 all std fields but for my custom i am not getting the f4 help
how can i get the F$ help for this custom fields Zposition-plans..
plz give some ideaHi
In that Ztable against the field
PLANS give the check table name as <b>T528B</b>
then it will automatically give the search help
or you can create your own search help(elementary) and add to that field
Reward if useful
regards
Anji -
How to add a search help for a field in alv?
HI!Everyone ,
i want to add a search help created by myself for one field in alv,
and i want to use this function "HELP_VALUES_GET_WITH_TABLE".
can anyone help me ?
thanks!HI,Vijay.
My code like this :
PERFORM build_fcat.
PERFORM build_objects.
PERFORM layo_build.
PERFORM set_drdn_table .
CALL METHOD alv_grid->set_table_for_first_display
EXPORTING
i_structure_name = 'STU_S'
is_layout = s_layo
CHANGING
it_outtab = itab_out
it_fieldcatalog = i_fcat
."Period
IF sy-subrc <> 0.
EXIT.
ENDIF.
for example, there is a field 'UNAME' IN Structure 'STU_S',
i want to add a search help for 'UNAME'.
the 'UNAME' is not users in SAP R/3 , i want to add some data by myself or from a table . -
How to add search help for field in ALV object
Hello,
In a program, we use ALV object ( container) to create a liste like : field1, field2 .. but when display we do not have search help for this . Could you please help me how to add match code in this case for field 1 and field2, We use set_table_for_first_display
Thanks,Hi,
when you define your field catalogue you can create data elements with search help in se11 and use them for field 1 and field 2.
But maybe it is enough to use data elements belonging to a domain with a value help and to set field F$AVAILABL in the field catalogue or to fill the name of the field CHECKTABLE.
Regards,
Klaus -
F4 - Help for field in ALV Grid Output
Hi,
I generated a report which gives output in ALV Grid output.
In the output, 1 of the field is editable.Here, for this field I need to have my own F4-Help.
I think the procedure to be followed is:--
Create a Search Help in SE11.
Link the Search Help to the editable field.
Please let me know if its the correct procedure.
I f yes, how can I link user defined Search Help to the editable field?
Thanks,
Shivaa........Hi siva,
you can also do that way.
while filling the fieldcatalog use the parameter F4AVAILABL
for more info check
F4 help in ALV Grid...
f4 help for a field in alv grid
hope it helps you
Thanks!
Edited by: Prasanth on Mar 6, 2009 3:59 PM -
Required F4 help for Requestioner(EBAN-AFNAM) in ME51N,ME52N & ME53N
Hi Experts,
Need F4 help for Requistioner(EBAN-AFNAM) in Tran. ME51N, the system is ECC 5.0,
How can i meet my requirement., kindly revert back <removed by moderator> if u have solution for this.
Regards,
Niranjan.G
Edited by: Thomas Zloch on Jun 21, 2010 4:35 PMHi,
There are 2 possibilities.
For these you need to get the Access key.
One is just create the search help and assign this search help to this field in the screen attributes.
Second one Just create the POV for this field.
With Regards,
Sumodh.P
Maybe you are looking for
-
Hi, I dropped my Zen Vision:M in to the toilet yesterday when I walked in watching a movie (so no, it wasn't in use, thankfully) and it hit the seat then was fully submerged for about second. When I grabbed it out, it wasn't off, but the screen kept
-
Is there a way to drag a specific page of a PDF into InDesign? Currently I use the Place function to place what page of the PDF I want to put in InDesign but it would be much quicker if I could easily drag the page instead. Thanks!
-
How to find for which select statement performance is more
hi gurus can anyone suggest me if we have 2 select statements than how to find for which select statement performance is more thanks®ards kals.
-
HELP My monitor shows up as negative screen
I don't know how it happened but pretty much everything shows up negative when I turn it on it's fine but as soon as I log in it shows up normal and 2 or 3 seconds later the screen goes negative Can Anyone help me?
-
Hello, Does anybody know some free, HiDPI scalable Look and Feel for Swing? I need L&F that works well (scaling components, borders, fonts and so on) on HiDPI screens. Thanks.