Calander date selection in WAD 7.0 for date field
Dear freind,
How to do calander date selection in WAD 7.0.
i think its possible in WAD 3.5.
thanks,
regards,
dushyant.
Hi
Follow this Step by step
http://help.sap.com/saphelp_nw70/helpdata/en/43/f5daaddfdb4c60e10000000a155369/frameset.htm
Regards
N Ganesh
Similar Messages
-
Can't select CMYK text colour for text fields in Acrobat Pro forms?
I have designed a business card template in Indesign, and now want to use Acrobat Pro to add in text fields so that a client can edit the contact details on the cards in future.
I need to select a specific text colour for the fields, so that it matches the rest of the design. The cards will obviously need to be printed and the document has been set up in CMYK, but when I enter the CMYK colour breakdown in the Properties > Text Colour panel, it won't apply the colour to that field. The text either stays at the default black, or reverts to RGB - which isn't suitable for printing and doesn't match the colour I need.
Can anybody PLEASE shed some light on this? Other similar posts have either not been answered or people have suggested JavaScript..? I have no idea what I'm supposed to do with a JS code..? Surely there's an easier explanation?
Thanks in advance.This is for a text field that you create in Acrobat, whether the form is used offline or online. The script is a custom Format script, which you can place by bringing up the Properties dialog for the field, select the Format tab, set a format category of Custom, and you should see where you can enter the script. Change the string "Instructional text goes here" to the text you want to display when the field is blank.
-
Select-options for date field.
Hi all,
i need to give select options for Date field.How can i give that.
Thanks & Regards
Ravi.Hi Ravi,
Use the Component WDR_SELECT_OPTIONS to include select options in Web Dynpro ABAP. Follow these steps:
1. In your Component , "Used Componet" tab add Component WDR_SELECT_OPTIONS . Component Use can be any name that you want to give, eg SELECT_OPTIONS
2. Go to the View where you want to include the Date Select Options. I am assuming that you already have an Attribute of Type DATS in your context.
3. View: Properties Tab:Create Controller Usage and select
SELECT_OPTIONS WDR_SELECT_OPTIONS
SELECT_OPTIONS WDR_SELECT_OPTIONS INTERFACECONTROLLER
4. View Layout Tab:Include a View Container. In this view container we will show the Date Select Options.
5. View Attributes Tab: Create Following two attributes:
M_HANDLER type IF_WD_SELECT_OPTIONS
M_WD_SELECT_OPTIONS type IWCI_WDR_SELECT_OPTIONS
6: View Methods Tab: Create a method eg CREATE_SELECTION_SCREEN. Call this method in the WDDOINIT of the view.
7:CREATE_SELECTION_SCREEN: Write following Code:
* Data Declaration
data:
lt_range_table TYPE REF TO DATA.
data:
lr_componentcontroller TYPE REF TO IG_COMPONENTCONTROLLER,
lr_componentusage TYPE REF TO IF_WD_COMPONENT_USAGE.
* Execution
* Create Used Component
lr_componentusage = wd_this->wd_cpuse_select_options( ).
if LR_COMPONENTUSAGE->HAS_ACTIVE_COMPONENT( ) is initial.
lr_componentusage->create_component( ).
endif.
* Get pointer to interface controller of select options
wd_this->M_WD_SELECT_OPTIONS = wd_this->wd_cpifc_select_options( ).
* initialize selction screen
wd_this->M_HANDLER = wd_this->M_WD_SELECT_OPTIONS->init_selection_screen( ).
* Create Range Table for: Date
CALL METHOD WD_THIS->M_HANDLER->CREATE_RANGE_TABLE
EXPORTING
I_TYPENAME = 'DATS'
RECEIVING
RT_RANGE_TABLE = lt_range_table.
* Add Selection Field for: Date
CALL METHOD WD_THIS->M_HANDLER->ADD_SELECTION_FIELD
EXPORTING
I_ID = '<name of date attribute in the context>'
* I_WITHIN_BLOCK = MC_ID_MAIN_BLOCK
* I_DESCRIPTION =
* I_IS_AUTO_DESCRIPTION = ABAP_TRUE
IT_RESULT = lt_range_table
* I_OBLIGATORY = ABAP_FALSE
* I_COMPLEX_RESTRICTIONS =
* I_USE_COMPLEX_RESTRICTION = ABAP_FALSE
* I_NO_COMPLEX_RESTRICTIONS = ABAP_FALSE
* I_VALUE_HELP_TYPE = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_NONE
* I_VALUE_HELP_ID =
* I_VALUE_HELP_MODE =
* I_VALUE_HELP_STRUCTURE =
* I_VALUE_HELP_STRUCTURE_FIELD =
* I_HELP_REQUEST_HANDLER =
* I_LOWER_CASE =
* I_MEMORY_ID =
* I_NO_EXTENSION = ABAP_FALSE
* I_NO_INTERVALS = ABAP_FALSE
* I_AS_CHECKBOX = ABAP_FALSE
* I_AS_DROPDOWN = ABAP_FALSE
* IT_VALUE_SET =
* I_READ_ONLY = ABAP_FALSE
* I_DONT_CARE_VALUE =
* I_EXPLANATION =
I_TOOLTIP = 'Select Date'.
8: To Fetch Data entered in the selection field, write following code on action of button click:
data:
lt_date type REF TO DATA.
FIELD-SYMBOLS:
<fs_date> TYPE table.
* retrieve Date from Select Options
CALL METHOD WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD
EXPORTING
I_ID = '<attrib_name>'
RECEIVING
RT_RANGE_TABLE = lt_date.
* assign Date Field Symbol
ASSIGN lt_date->* to <fs_date>.
9: Windows Window Tab: In the View Conatiner, embed the WND_SELECTION_SCREEN view from SELECT_OPTIONS component Usage of WDR_SELECT_OPTIONS component.
Regards,
Reema. -
Using a parmater field for a Date field using the "in the period" selection
Users would like to fetch records using the "in the period" record selection. They would like to be prompted on the period to run the report. ie
MonthToDate
YearToDate
Last7Days
Last4WeeksToSun
LastFullWeek
LastFullMonth
AllDatesToToday
etc...
I've created a parameter with a dropdown list of values. However the parmeter field I created isn't available as a value in the date field in the "Select Record Expert" function.
Is there a work around?Ron,
Unfortunately you still have a little bit more work to do... but not much.
You need to add a formula to your selection criteria. Something along these lines:
IF {?DateRange} = "MonthToDate" THEN {TableName.DateField} in MonthToDate ELSE
IF {?DateRange} = "YearToDate" THEN {TableName.DateField} in YearToDate ELSE
IF {?DateRange} = "Last7Days" THEN {TableName.DateField} in Last7Days ELSE
IF {?DateRange} = "Last4WeeksToSun" THEN {TableName.DateField} in Last4WeeksToSun ELSE
IF {?DateRange} = "LastFullWeek" THEN {TableName.DateField} in LastFullWeek ELSE
IF {?DateRange} = "LastFullMonth" THEN {TableName.DateField} in LastFullMonth ELSE
IF {?DateRange} = "AllDatesToToday" THEN {TableName.DateField} in AllDatesToToday
On the plus side, you'll be able to go back into your parameter and add some spaces to list options... which will look better for the end users.
HTH,
Jason -
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 -
WAD - Best way to layout master data fields for a single record
I am creating an employee profile which will be fed from various InfoProviders in BI. I am going to lay it out so that there is a master data section at the top and then below there will be various histories (salary, job, etc) and everything will be populated by the value of a single variable.
The question I have is what is the best way to lay out about 20 master data fields in the top section and have it look nice? My guess (and I am not fond of the tedium) is to create a bound text for each of them and bind it to the appropriate characteristic. Then just have the variable setting affect all of them.
Anyone have any other ideas?Hello,
you can use the interface command:
storm-control unicast level 10.00
or
storm-control unicast bps 10000000
The first command will limit bandwidth to 10% of what is available, the second will limit bandwidth to 10Mbps, effectively achieving the same thing.
Check this link to the relevant configuration reference:
Configuring Storm Control
http://www.cisco.com/en/US/products/hw/switches/ps5023/products_configuration_guide_chapter09186a00802c10bc.html#wp1063295
HTH,
GP -
Reg:how disaplay selection range for date field
hi all
can you please let me know how to write the code in wdabap to display a date field with range option.i mean in abap we use at selection screen ,but coming to wdabap can you help how to write the code in wdabap.
Thanks in advance
DeepikaTo simplify the requirement, let me consider the followign understanding:
1. You need few fields in the selection screen. They need to be select options and some parameter fields.
2. The user clicks the button. You need to read teh user entered data.
Once, you have teh data in your code, assign it to the context node - attributes. later, you need to decide what you shoudl do with that data.
Sol: 1. To obtain fields into selection screen, use the component "wdr_select_options" and *** the interface view into your window. Make the view as default.
Now, you need to build the select options. Firstly create a method or insert the code in init().
DATA: lr_componentcontroller TYPE REF TO ig_componentcontroller,
l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
create the used component
l_ref_cmp_usage = wd_this->wd_cpuse_select_options( ).
IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
l_ref_cmp_usage->create_component( ).
ENDIF.
wd_this->m_wd_select_options = wd_this->wd_cpifc_select_options( ).
init the select screen
wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ).
wd_this->m_handler->set_global_options(
i_display_btn_cancel = abap_false
i_display_btn_check = abap_false
i_display_btn_reset = abap_true
i_display_btn_execute = abap_false ).
Adding a block (type Tray) to the select-options
wd_this->m_handler->add_block(
i_id = `BSC01`
i_block_type = if_wd_select_options=>mc_block_type_tray
i_title = `Selection Screen` ).
Adding a parameter field to the created block
Create a reference to the type of customer number KUNNR
CREATE DATA lr_field TYPE kunnr.
Sets the airline code initial value
ASSIGN lr_field->* TO <fs_field>.
Add the parameter to the group
wd_this->m_handler->add_parameter_field(
i_id = `KUNNR`
i_within_block = `BSC01`
i_obligatory = abap_true
i_value = lr_field ).
FREE lr_field.
Adding a select-options field to the created block
Create a reference to the material number range table
lr_field = wd_this->m_handler->create_range_table( `MATNR` ).
Add the select-option to the group
wd_this->m_handler->add_selection_field(
i_id = `MATNR`
i_within_block = `BSC01`
it_result = lr_field ).
FREE lr_field.
The code with method "set_global_options" is used to make the buttons visible or disappear.
Its convinient to create your own button with an action instead or subscribing to the action of exceute button.
Sol. 2: Read the data.
FIELD-SYMBOLS:
<fs_sel_item> LIKE LINE OF lt_sel_item,
<fs_kunnr> TYPE kunnr,
<fs_matnr> TYPE ranges_matnr.
wd_this->m_handler->get_value_of_parameter_field(
EXPORTING i_id = 'KUNNR'
RECEIVING r_value = p_kunnr ).
Get the selection-screen items
wd_this->m_handler->get_selection_fields(
IMPORTING et_fields = lt_sel_item ).
Retrieve the values from the select-options items
LOOP AT lt_sel_item ASSIGNING <fs_sel_item>.
CASE <fs_sel_item>-m_id.
WHEN `MATNR`.
ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_matnr>.
WHEN < Other sel-option'
ENDCASE.
ENDLOOP.
Obtain a reference to your context node and assign the field symbols to the attributes.
Finally, you would have the data in your nodes. Now, you need to handle the coe as per your req.
Regards,
Sharath
Edited by: Sharath M G on Aug 27, 2010 9:45 AM -
Exporting selected contacts from Outlook 2011 for Mac
I've wanted to easily export a set of selected contacts from Outlook in Microsoft Office for Mac 2011. I've been through many threads about synching to Address Book and then exporting, but I've found a host of troubles, including duplicate copies of contacts being created.
So, I finally broke down and wrote an AppleScript script to export all of the currently selected contacts from Outlook to a file in either vcf (vcard) or csv (comma separated value) format. The best use of this script is to:
-- Install this as a script in Microsoft Outlook by saving the script below to Documents>Microsoft User Data>Outlook Script Menu Items
-- Change to your Contacts in Outlook. Use the Outlook search bar to find the contacts you want to export. You might search by name, category, company, or anything else that identifies the contacts you want to export. Or, you might just leave the view showing all contacts.
-- Select the contacts you want to export
-- Launch the script
The script will have you select between vcard and csv and select a destination file. This hasn't been optimized for speed, so if you're exporting 100's or 1,000's of contacts, be patient. And there isn't a progress bar at present, so you have to wait. It will display an alert when it's complete.
Sorry not to have a download location for you. You'll just have to copy the script text :-). Keep in mind there's been some but limited testing. Read the comments for details. And enjoy.
-- jsc
-- Export Outlook Contacts
-- (c) 2012 J. Scott Carr. The script is made available for free use, with no
-- warranty, under the Creative Commons license agreement.
-- This script has only been tested on Mac OS X 10.6.8 with Micrsoft Outlook for
-- Mac 2011 version 14.1.4.
property byCategory : "By category"
property byPattern : "Names matching pattern"
property vcardFormat : "VCard"
property csvFormat : "CSV"
-- main
set contactsToExport to {}
-- Get the contact selection
set contactsToExport to get_contacts_to_export()
if (count of contactsToExport) is 0 then
display alert "Please select contacts to export and rerun script" as warning
return
end if
-- Shall we export to vcard or CSV?
set theFormat to vcard_or_csv()
if theFormat is "" then
display alert "Error: Must select VCard or CSV format" as warning
return
end if
-- Get and open the output file
set oFile to open_output_file(theFormat)
if (oFile is equal to -128) then
display alert "Canceled"
return
else if (oFile < 0) then
display alert "File open failed (" & oFile & ")" as warning
return
end if
-- Export the contacts
display dialog "About to export " & (count of contactsToExport) & " contacts in " & theFormat & " format. Proceed?"
if button returned of result is not "OK" then
try
close access oFile
end try
return
end if
if theFormat is vcardFormat then
export_to_vcard(contactsToExport, oFile)
else if theFormat is csvFormat then
export_to_csv(contactsToExport, oFile)
else
display alert "Invalid format" as warning
end if
close access oFile
display alert "Complete"
return
-- get_contacts_to_export()
-- We're going to export the Contacts currently selected in Outlook.
-- Check that the current selection is Contacts and not some other Outlook
-- object. Snag the selected Contacts and return them as a list.
-- A side note. When I started this, I built options to enter a matching
-- name string or select a category. And then it hit me that those features
-- are much more robust in Outlook, and it would be easy to just use the
-- current selection.
-- There is some strange behavior that Outlook needs to have recently been
-- the front, active window.
on get_contacts_to_export()
set selectedContacts to {}
tell application "Microsoft Outlook"
set theSelection to selection
if class of theSelection is list then
if class of the first item of theSelection is contact then
copy theSelection to selectedContacts
end if
else
if class of theSelection is contact then
copy theSelection to selectedContacts
end if
end if
return selectedContacts
end tell
end get_contacts_to_export
-- vcard_or_csv()
-- Get the format to use when exporting contacts
on vcard_or_csv()
choose from list {vcardFormat, csvFormat} with prompt "Select export file format:"
if result is false then
return ""
else
return first item of result
end if
end vcard_or_csv
-- open_output_file()
-- Open the destination file for the export, returning the file descriptor or the error number
-- if the operation fails
on open_output_file(exportType)
-- Get the filename, letting "choose file name" deal with existing files.
set theDate to current date
set theTime to time of theDate
if exportType is csvFormat then
set fileName to "contacts.csv"
else
set fileName to "contacts.vcf"
end if
try
set outputFile to choose file name with prompt "Select export destination file" default name fileName
on error errText number errNum
return errNum
end try
-- Open the file
try
-- Open the file as writable and overwrite contents
set oFile to open for access outputFile with write permission
set eof oFile to 0
on error errText number errNum
display alert "Error opening file: " & errNum & return & errText as warning
try
close access oFile
end try
return errNum
end try
return oFile
end open_output_file
-- export_to_vcard()
-- Export each of theContacts to the open file outFile as a set of vcards. Note that the
-- vcard data is from the "vcard data" property of the theContacts. This routine
-- doesn't attempt to reformat an Outlook vcard, nor limit the fields included
-- in the vcard.
on export_to_vcard(theContacts, outFile)
set vcards to {}
tell application "Microsoft Outlook"
repeat with aContact in theContacts
copy vcard data of aContact to the end of vcards
end repeat
end tell
repeat with aCard in vcards
write (aCard & linefeed) to outFile
end repeat
end export_to_vcard
-- export_to_csv()
-- Export each of theContacts to the open file outFile in csv format
on export_to_csv(theContacts, outFile)
set csvFields to {}
-- Get the fields of the contact to export
set csvFields to init_csv()
-- Write the header row
set nFields to count csvFields
write first item of csvFields to outFile
repeat with i from 2 to nFields
write "," & item i of csvFields to outFile
end repeat
write linefeed to outFile
-- Export the fields of the contacts in CSV format, one per line
repeat with aContact in theContacts
write build_csv_line(csvFields, aContact) & linefeed to outFile
end repeat
end export_to_csv
-- init_csv(): defines the fields to export when csv format is selected
-- Each of the fields in the list must match a name used in the routine build_csv_line().
-- The idea is to later create a a pick list so the user can select which contact properties
-- to export.
on init_csv()
set csvFields to {"first name", "last name", "middle name", "title", "nickname", "suffix", "phone", "home phone number", "other home phone number", "home fax number", "business phone number", "other business phone number", "busines fax number", "pager number", "mobile number", "home email", "work email", "other email", "company", "job title", "department", "assistant phone number", "home street address", "home city", "home state", "home country", "home zip", "business street address", "business city", "business state", "business country", "business zip", "home web page", "business web page", "note"}
end init_csv
-- build_csv_line(): format one line for the csv file
-- Parameter csvFields determins which fields to include in the export.
-- Unfortunately I've not figured out how to use perl-style generation of
-- indirect references. If I could, this would have been much more elegant
-- by simply using the field name to refer to a Contact properly.
-- Note that email address are a special case as they're a list of objects in
-- Outlook. So these are handled specially in the export function and can only
-- be selected by the column names "home email", "work email", and "other email".
-- Outlook allows a contact to have more than one of each type of email address
-- but not all contact managers are the same. This script takes the first of
-- each type. So if a contact has more than one "home" email address, you will
-- only be able to export the first to a csv file. Suggest you clean up your
-- addresses in Outlook to adapt. The alternative is to support multiple
-- columns in the csv like "other email 1" and "other email 2", but that's not
-- supported in this version.
-- Another note. In this version, any embedded "return" or "linefeed" characters
-- found in a property of a contact are converted to a space. That means that
-- notes, in particular, will be reformated. That said, this gets arond a problem
-- with embedded carriage returns in address fields that throw off importing
-- the csv file.
-- Also note that at this time IM addresses aren't supported, but it's an easy add
-- following the same logic as email addresses.
on build_csv_line(csvFields, theContact)
set aField to ""
set csvLine to ""
set homeEmail to ""
set workEmail to ""
set otherEmail to ""
tell application "Microsoft Outlook"
set props to get properties of theContact
-- Extract email addresses from address list of contact
set emailAddresses to email addresses of props
repeat with anAddress in emailAddresses
if type of anAddress is home then
set homeEmail to address of anAddress
else if type of anAddress is work then
set workEmail to address of anAddress
else if type of anAddress is other then
set otherEmail to address of anAddress
end if
end repeat
-- Export each desired fields of the contact
repeat with aFieldItem in csvFields
set aField to aFieldItem as text
set aValue to ""
if aField is "first name" then
set aValue to get first name of props
else if aField is "last name" then
set aValue to last name of props
else if aField is "middle name" then
set aValue to middle name of props
else if aField is "display name" then
set aValue to display name of props
else if aField is "title" then
set aValue to title of props
else if aField is "nickname" then
set aValue to nickname of props
else if aField is "suffix" then
set aValue to suffix of props
else if aField is "phone" then
set aValue to phone of props
else if aField is "home phone number" then
set aValue to home phone number of props
else if aField is "other home phone number" then
set aValue to other home phone number of props
else if aField is "home fax number" then
set aValue to home fax number of props
else if aField is "business phone number" then
set aValue to business phone number of props
else if aField is "other bsiness phone number" then
set aValue to other business phone number of props
else if aField is "bsuiness fax number" then
set aValue to business fax number of props
else if aField is "pager number" then
set aValue to pager number of props
else if aField is "mobile number" then
set aValue to mobile number of props
else if aField is "home email" then
set aValue to homeEmail
else if aField is "work email" then
set aValue to workEmail
else if aField is "other email" then
set aValue to otherEmail
else if aField is "office" then
set aValue to office of props
else if aField is "company" then
set aValue to company of props
else if aField is "job title" then
set aValue to job title of props
else if aField is "department" then
set aValue to department of props
else if aField is "assistant phone number" then
set aValue to assistant phone number of props
else if aField is "age" then
set aValue to age of props
else if aField is "anniversary" then
set aValue to anniversary of props
else if aField is "astrololgy sign" then
set aValue to astrology sign of props
else if aField is "birthday" then
set aValue to birthday of props
else if aField is "blood type" then
set aValue to blood type of props
else if aField is "desription" then
set aValue to description of props
else if aField is "home street address" then
set aValue to home street address of props
else if aField is "home city" then
set aValue to home city of props
else if aField is "home state" then
set aValue to home state of props
else if aField is "home country" then
set aValue to home country of props
else if aField is "home zip" then
set aValue to home zip of props
else if aField is "home web page" then
set aValue to home web page of props
else if aField is "business web page" then
set aValue to business web page of props
else if aField is "spouse" then
set aValue to spouse of props
else if aField is "interests" then
set aValue to interests of props
else if aField is "custom field one" then
set aValue to custom field one of props
else if aField is "custom field two" then
set aValue to custom field two of props
else if aField is "custom field three" then
set aValue to custom field three of props
else if aField is "custom field four" then
set aValue to custom field four of props
else if aField is "custom field five" then
set aValue to custom field five of props
else if aField is "custom field six" then
set aValue to custom field six of props
else if aField is "custom field seven" then
set aValue to custom field seven of props
else if aField is "custom field eight" then
set aValue to custom field eight of props
else if aField is "custom phone 1" then
set aValue to custom phone 1 of props
else if aField is "custom phone 2" then
set aValue to custom phone 2 of props
else if aField is "custom phone 3" then
set aValue to custom phone 3 of props
else if aField is "custom phone 4" then
set aValue to custom phone 4 of props
else if aField is "custom date field one" then
set aValue to custom date field one of props
else if aField is "custom date field two" then
set aValue to custom date field two of props
else if aField is "note" then
set aValue to plain text note of props
end if
if aValue is not false then
if length of csvLine > 0 then
set csvLine to csvLine & ","
end if
if (aValue as text) is not "missing value" then
set csvLine to csvLine & "\"" & aValue & "\""
end if
end if
end repeat
end tell
-- Change all embeded "new lines" to spaces. Does mess with the formatting
-- of notes on contacts, but it makes it cleans the file for more reliable
-- importing. This could be changed to an option later.
set csvLine to replace_text(csvLine, return, " ")
set csvLine to replace_text(csvLine, linefeed, " ")
return csvLine
end build_csv_line
-- replace_text()
-- Replace all occurances of searchString with replaceString in sourceStr
on replace_text(sourceStr, searchString, replaceString)
set searchStr to (searchString as text)
set replaceStr to (replaceString as text)
set sourceStr to (sourceStr as text)
set saveDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to (searchString)
set theList to (every text item of sourceStr)
set AppleScript's text item delimiters to (replaceString)
set theString to theList as string
set AppleScript's text item delimiters to saveDelims
return theString
end replace_textThank You, but this is a gong show. Why is something that is so important to us all so very, very difficult to do?
-
SQL Query for Date field updation
I want a query from u.. Hope u help me with a
solution soon..
My Q: I want to update a date field in Oracle
database. But the condition is that i shouldnt change
the hours, minutes & seconds of the date field.
generally , if we update the date field then it takes
the default values for hours, min's & sec's to
00:00:00.
EX : if we have a value 21-SEP-2002 04:54:44 in a date
field. I want to update it to 22-SEP-2002 04:54:44.
But it updates to 22-sep-2002 00:00:00 if we use
UPDATE command.Use a PreparedStatement:
PreparedStatement ps = conn.prepareStatement("SELECT * FROM TEMP WHERE TDATE > ? AND TDATE < ?");
// note: month numbers start at 0, so 1 is february
GregorianCalendar c1 = new GregorianCalendar(2002, 1, 11, 11, 0);
GregorianCalendar c2 = new GregorianCalendar(2002, 1, 18, 22, 0);
Date d1 = c1.getTime();
Date d2 = c2.getTime();
java.sql.Timestamp sqlDate1 = new java.sql.Timestamp(d1.getTime());
java.sql.Timestamp sqlDate2 = new java.sql.Timestamp(d2.getTime());
ps.setTimestamp(1, sqlDate1);
ps.setTimestamp(2, sqlDate2);
ResultSet rs = ps.executeQuery();
// get results from the result setJesper -
Addition of a Field in EKKO/Data not getting populated for that field
Hi All,
I have added a Z Field in EKKO Table through the Append Structure "CI_EKPODB".
There are around 2000 records in EKKO and for all the records that Z field is Blank.
But, when I write a Select Query in Program to Fetch the Records where that Z Field is BLANK, I get only 50 Records.
The same happens when I Execute SE16 for EKKO by giving condition Z Field = INITIAL. I get only 50 records in the output.
Please help me understand why I dont get all the Records where that Z Field is INITIAL?
Is any customization required or is this a Technical Issue?
Please help.
Thanks in Advance.hi rohan,
if you are adding a field in a table by append structure then make that field as ZZ instead of Z to differentiate it from normal fields.
now when you have created the field in a append structure then if have not checked the initial flag.thats why u are getting this data inconsistency.
this is because earlier 2000 entries are prestent in the table , now when you add another field in the table then that field will not have value for those 2000 records.
now when you create the fiels select the init flag field,if you select this then new flag field will NOT NULL,so initial values will be filled for that field for existing 2000 records.
Note : NULL and INITIAL are different things, NULL means not defined and initial means which is having its initial value.
check that init flag and u will get those 2000 records, you are getting inconsistent data now becuse value for that field is null ie not defined.
hopr this will solve ur post and u wil get the concept of append structure.
Thanks and regards,
Tanmaya -
Help for date field not working after upgrade
hi experts,
In our BSP application for a page we had an inputfield (date).
Onvaluehelp for input field we were calling the saphelpdate function.
however after upgrade this functionality is not working properly as no pop up comes after clicking on the icon.
we have upgraded to SPS 16 recently.
please help me.
regards,
Arvind.Hi, I try upper case but nothing happen. This is all my code by far, I hope you can help me:
DATA: BEGIN OF T_PCONT OCCURS 0,
PCONT LIKE ZPSPERMISOS-PSOBKEY,
END OF T_PCONT.
DATA: BEGIN OF T_FIELDS OCCURS 0.
INCLUDE STRUCTURE help_value.
DATA END OF T_FIELDS.
DATA: BEGIN OF T_VALUES OCCURS 0,
VALUE(60) TYPE c.
DATA: END OF T_VALUES.
DATA: N TYPE i.
SELECTION-SCREEN BEGIN OF BLOCK b20 WITH FRAME TITLE text-b02.
SELECT-OPTIONS:
P_CONT FOR ZPSPERMISOSH-PSOBKEY OBLIGATORY NO-EXTENSION NO INTERVALS,
P_INT FOR ZPSPERMISOSH-PARTNER OBLIGATORY NO-EXTENSION NO INTERVALS,
P_FEC FOR ZPSPERMISOSH-ZFINICN NO-EXTENSION NO INTERVALS,
P_RAZ FOR ZPSPERMISOSH-ZRAZONFINIC NO-EXTENSION NO INTERVALS.
SELECTION-SCREEN END OF BLOCK b20.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_CONT-LOW.
PERFORM P_HELP_P_CONT USING P_CONT-LOW.
*& Form P_HELP_P_CONT
FORM P_HELP_P_CONT USING P_P_CONT.
DESCRIBE TABLE T_PCONT LINES N.
IF N EQ 0.
T_FIELDS-FIELDNAME = 'PSOBKEY'.
T_FIELDS-TABNAME = 'ZPSPERMISOS'.
T_FIELDS-SELECTFLAG = 'X'.
APPEND T_FIELDS.
CLEAR T_FIELDS.
SELECT PSOBKEY FROM ZPSPERMISOS
INTO TABLE T_PCONT.
SORT T_PCONT BY PCONT.
CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
EXPORTING
CUCOL = 10
CUROW = 1
TABNAME = 'T_PCONT'
FIELDNAME = 'PCONT'
IMPORTING
SELECT_VALUE = P_P_CONT
TABLES
FIELDS = T_FIELDS
VALUETAB = T_VALUES.
ENDFORM. " P_HELP_P_CONT
Edited by: J. Garibaldi on Nov 25, 2009 11:14 AM
Edited by: J. Garibaldi on Nov 25, 2009 11:16 AM -
Formatted Search for Delivery Date field in SO not working
Hi All
Can anyone help me as to why my formatted search is not working?
I am currently using SAP B1A SP01 Patch 19.
I have created a user query as follows:
SELECT $ [$10.0.DATE] + 5
When I add this to the delivery field within the Sales Order and bring through the saved query which I set to auto refresh when the Posting Date field changes and to Display Saved Values it doesn't work.
Any ideas?
Thanks and best wishes
GailHI Gail,
If I am not mistaken you want to add days to the posting date...if that is so then try this out:
SELECT $[ORDR.DocDate.DATE]+5 From ORDR T0 For Browse
Set The indicator to Auto Refresh when the fields change
Nagesh -
Select Option's Context Element for the REPORT_ATTRIBUTE_ERROR_MESSAGE
Hi,
We're on 7.0 ehp1.
I found a thread on same subject u201Cwdr:select_options and highlight Error Message with a Link to Inputfield u201C, Jul-23-2008, in which Thomas Jung gave an explanation of how to get the context element of the Select Options on a view.
I tried to follow it, but Iu2019m still not getting it. Please show how to get the context element of a Select Option for the u201CREPORT_ATTRIBUTE_ERROR_MESSAGEu201D .
wd_comp_controller->go_message_manager->report_attribute_error_message(
exporting
message_text = ls_messaga_text
element = ?????
attribute_name = ls_option_id
Thomas' explanation:
I gave you the code that gets you to the interface controller. From there you call the GET_API to get the component controller. After you have the component controller it is normal context coding to read the context of the Select-Options context. Run the debugger and use the Web Dynpro view to see what your context looks like at runtime. When I test this with one of my applications, the names of the context nodes that were dynamically generated was really straight forward - as it uses the names of the select-option itself. Nothing special once you reach this point - just normal context coding...."
Kind regards,
HuntrHi ,
Use the below approach to achieve this,
data:
lr_context_node type ref to if_wd_context_node,
lr_element type ref to if_wd_context_element,
message_text type string.
get the node and leadSelection of that field
lr_context_node = get_node_of_sel_field( <field>-m_id ).
lr_element = lr_context_node->get_lead_selection( ).
case <field>-m_type.
For Select option field
when if_wd_select_options=>mc_sscreen_item_type_field.
m_message_manager->report_attribute_error_message(
element = lr_element
attribute_name = 'LOW'
message_text = message_text ).
"For Parameter field
when if_wd_select_options=>mc_sscreen_item_type_parameter.
m_message_manager->report_attribute_error_message(
element = lr_element
attribute_name = 'VALUE'
message_text = message_text ).
when others.
endcase. -
Select-options for input field
hi,
Is it possible to use 'Select-options' in web dynpro for the input field like we use in abap?
Ex. material is the input field. i want to select range also for this input field using 'Select-options'
I have tried only with ovs(f4 help) for the input field. can u pls tel me how to use if it is possible ?
Thanks,
Aishwarya.DATA: LT_RANGE_TABLE TYPE REF TO DATA,
RT_RANGE_TABLE TYPE REF TO DATA,
READ_ONLY TYPE ABAP_BOOL,
TYPENAME TYPE STRING. DATA: LR_COMPONENTCONTROLLER TYPE REF
TO IG_COMPONENTCONTROLLER,
L_REF_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
create the used component
L_REF_CMP_USAGE = WD_THIS->WD_CPUSE_SELECT_OPTIONS( ).
IF L_REF_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
L_REF_CMP_USAGE->CREATE_COMPONENT( ).
ENDIF.
WD_THIS->M_WD_SELECT_OPTIONS = WD_THIS->WD_CPIFC_SELECT_OPTIONS( ).
init the select screen
WD_THIS->M_HANDLER =
WD_THIS->M_WD_SELECT_OPTIONS->INIT_SELECTION_SCREEN( ).
WD_THIS->M_HANDLER->SET_GLOBAL_OPTIONS(
I_DISPLAY_BTN_CANCEL = ABAP_FALSE
I_DISPLAY_BTN_CHECK = ABAP_FALSE
I_DISPLAY_BTN_RESET = ABAP_FALSE
I_DISPLAY_BTN_EXECUTE = ABAP_FALSE ).
*create a range table that consists of this new data element
LT_RANGE_TABLE = WD_THIS->M_HANDLER->CREATE_RANGE_TABLE(
I_TYPENAME = 'matnr' ).
add a new field to the selection
WD_THIS->M_HANDLER->ADD_SELECTION_FIELD(
I_ID = 'matnr'
IT_RESULT = LT_RANGE_TABLE
I_READ_ONLY = READ_ONLY ).
This is my code followed by saptechnical. but when i exec, am getting err like the type matnr is invalid. -
How to get the F4 help for a field in the selection screen
Hi all,
I am working on a report program. In the selection screen, I have the field 'Brand Node ID'(ZNODEID). The requirement is to have the F4 help for this field. This field is available in a 'Z' table ZNODETAB. There is no Value table maintained for the corresponding data element. So, without disturbing the table data element/domain, I should get the F4 help in the selection screen of the report. In the F4 help, data should be fetched from the table ZNODETAB and the field is ZNODEID. Is there any way to do this.
By searching the function modules, I could find that, we can use the FM F4IF_INT_TABLE_VALUE_REQUEST. But, I am not Sure. Can someone tell me the parameters to be passed to this function module to get the F4 help and the procedure to follow. S_NODEID is the select option used in the program. Please help me in this regard. Thanks in advance.
Thanks & Regards,
Paddu.look at this code and try
select-options : S_NODEID for ZNODETAB-ZNODEID.
at selection-screen on value-request for s_nodeid-low
perform f4_nodeid using 'S_NODEID-LOW'.
at selection-screen on value-request for s_nodeid-low
perform f4_nodeid using 'S_NODEID-HIGH'.
end-of-selection.
FORM f4_nodeid USING p_field.
declare it_node.
select znodeid from ZNODETAB into table it_node.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ZNODEID'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = p_field
value = space
value_org = 'S'
display = 'F'
TABLES
value_tab = it_node
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
endform
Maybe you are looking for
-
How can I change the color of the text/font for my emails on iPad?
HHow do I change the font color when typing email messages on iPad?
-
Changing GL acc posting for movement type
Dear all, I want to change the GL account posting for the new movement type copied from 101. and also the offsetting entry posting. please give the steps for the same? regards, prash
-
Does anyone have any suggestions for a webcam for Ichat for the mac pro. I know some people have indicated the xbox webcam works well. Ideally I'd like one with a built in microphone since I would like to avoid having a microphone loose on my desk. A
-
Error when determining the CTIADM_PROF profile for agent xyz
Hi, I have created the new cic frame work and assigned it to the position. when i run the TC - cic0, I am getting the following "Error when determining the CTIADM_PROF profile for agent xyz" Can you help me out ? Thanks in advance
-
How to speed up 3D Rendering in Photoshop CS5
Hello, My 3D rendering (ray trace) seems rather slow in Photoshop CS5. Would it make a difference to upgrade my GPU or my 2.5GHz Quad-Core CPU, or both? The CPU peaks for over 10 minutes during the ray-tracing rendering, but the "interactive" 3d stuf