Populating one field
HI I have a test database and one table I need has an important field that is blank. It should have a mix of either "Medicare", "Medicaid" "Private" etc.
I am completely new to Oracle so I need some assistance in how to do this.
Also, there are in fact some patients who have more than one record in Production that has both Medicare, Medicaid, etc. that is could be 3 records for a Patient refective of this one field or possibly other fields like this.
I don't want to refresh the entire table bec. I don't know who else is using this table but just if I can touch up the field I need.
TIA,
Philky
Its Oracle 10. I am not sure what you mean by Structure? How I would know which gets what type of service, I dont really, it can be random because I am testing this with Crystal Reports so I just want to make sure my group totals work.
I have access to PL SQL So I can answer better any question on this.
I am not sure what you mean by structure. It's a table, with several fields. This is a clinical database so these are large numbers of fields in the table, pertaiining to a patients' history, etc.
as far as the update part what I want to do is take a few thousand lines, make the field, Medicare", some other make them Medicaid, private, these are known as pay_source;
but I also want to make some of the patients who have multiple records having both types of pay_ source.
So I have a field called Patient ID. If there are more than one patient id in the table I need to make one of them Medicare, the next one Medicade, the next Private etc.
This could be done in a 2 part method. First this last piece, and then a general update for those still having blanks, make some Medicare ( the majority), make other Medicaid, etc.
I am in the right forum is another question. I am a total newbie to Oracle. I never had a chance to get out of IBM's world until now :)
Edited by: [email protected] on Mar 17, 2009 10:55 AM
Similar Messages
-
SQ01 query, one field not populating in first line, pushing data to next line
Good day all
I have worked with queries for some time and have never encountered this error
I have a few table joins (FAGLFLEXA, BKPF, BSEG, EKKN, SKAT and EKPO), every thing works and displays correctly, except for the one field
EKKN (ABLAD) - Unload Point.
For some reason, when I test the query, it displays correctly with one entry, but as soon as you run the test for more entries, for some reason, the first Unloading point on the report is empty and the value reflects on the next line. If you display the physical documents where the data pulls from, you can clearly see that the entire report pushes down the field to the next line.
For example
Physical SAP Document GL and or PO:
Year Per Do Document No Profit Account Short Text Merch Amount in Grp Segm Posted on Unload Point
2014 001 XF 40000000000 ABCD 86100 Text ACD 72799.60 11 20140106 24/59/68
2014 001 XD 40000000001 ABCC 86100 Text ACC 18755.50 11 20140108 26/00/48
SQ01 report (with one line)
Year Per Do Document No Profit Account Short Text Merch Amount in Grp Segm Posted on Unload Point
2014 001 XF 40000000000 ABCD 86100 Text ACD 72799.60 11 20140106 24/59/68
SQ01 report (with more lines)
Year Per Do Document No Profit Account Short Text Merch Amount in Grp Segm Posted on Unload Point
2014 001 XF 40000000000 ABCD 86100 Text ACD 72799.60 11 20140106 2014 001 XD 40000000001 ABCC 86100 Text ACC 18755.50 11 20140108 24/59/68I found the error! The query was written in a certain format. For example it had many fields which was used to populate the data from different tables. The error occured because of the sequence. The query had to bring in a field but it had to derive it from a purchase order, but the purchase order check was after the said field therefor, when it looked at the Purchase Order, it found the field and populated it, but only on the second line. In the first line it couldnt find the Purchase order yet (as EKKO was lower down), so it didnt populate it yet....
SIGH -
Populating more than one table and more than one field
I need some suggestions and this forum has always been a great source of good advice.
I have a web form at the following location: http://www.webdevpractice.com/genoptix/CE/register.php
Here's what the web form needs to do:
Send a confirmation email listing seminars the visitor checked on the form.
Create a similar message on a confirmation page.
Populate 2 two tables.
Items 1 and 2 are working fine.
The advice I need is on how to populate two tables in the database.
There are three tables:
ACCOUNTS
account_id
first_name
last_name
medtech_id
job_title
npi
company
city
state
email
phone
contact
ATTENDANCE
attendance_id
account_id
seminar_id
SEMINARS
seminar_id
seminar
speaker_first_name
speaker_last_name
date
The web form contains data that need to go into the ACCOUNTS table and the ATTENDANCE table. The challenge is getting the account_id and seminar_id into the ATTENDANCE table. If all the information was inserted properly, I could write a query that revealed who was taking what seminar.
Inserting data into the ACCOUNTS table is not a problem. I will create another form to insert information into the SEMINARS so that should not be a problem. But inserting the account_id and the seminar_id is what I am wondering about. Also, can more than one record be inserted in a table? If an user checks more that one seminar, each seminar (seminar_id) would need to be inserted in the ATTENDANCE table as separate records along with the account_id. I'm thinking I may have to do this manually. Also, the values for each seminar are their dates and titles. I used these as values to send the confirmations.
I'm just looking for advice at this point. Is this doable?Bregent,
The table I am wondering about is the ATTENDANCE table. There are two fields in addition to the primary key: account_id and seminar_id. The field I am concern with is the seminar_id which comes from a group of checkboxs on the form. So, one form could create several records. For example, presently there are three seminars that are offered. If the visitor selects all three seminars, that would create three records in the SEMINARS table. So, it might look like this:
attendance_id account_id seminar_id
1 1 1
2 1 2
3 1 3
My PHP skills are basic. I've done other forms and use PHP in other ways. But I have never had to populate several rows in one table with an array of checkboxes nor have I be able to find an example of this.
So the advice I am seeking (and perhaps this is premature) is this:
Can one field from a table populate more than one record?
Should I set up checkboxs as a group or individually with a different name?
I am also considering setting up my tables differently so there is a table from each seminar--that may solve my problem. -
Value is not populating in field through search help f4
Hello Expert,
I have made one field as a search help but data is not populating from popup.
Data is coming from BP_search_help. Here i did not create any search help in se11. not required here.
i used Code in get_p method.
Method GET_P_BP_NUMBER.
CASE iv_property.
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
IF iv_display_mode EQ abap_true.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.
ELSE.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_input.
ENDIF.
WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
rv_value = ' '. "EC NOTEXT
ENDCASE.
ENDMETHOD.
GET_V Method.
DATA: ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
lt_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
ls_map-context_attr = 'STRUCT.BP_NUMBER'.
ls_map-f4_attr = 'PARTNER'.
APPEND ls_map TO: lt_inmap,lt_outmap.
CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id = 'BP_HEAD_SEARCH' "#EC NOTEXT
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_dtel
iv_trigger_submit = 'X'
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap
endmethod.
But when i activate get_v method .i am getting 1 error.
Error is
Please help me how to rectify this error and any other way to populate data in field through f4 help.
If u want more detail. Please follow attachment.Hi Madhuri,
You can refer the below code for search help for partner. The code has to be written on GET_V_XXX method.
DATA: ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
ls_map-context_attr = 'STRUCT.BP_NUMBER'.
ls_map-f4_attr = 'PARTNER'.
APPEND ls_map TO lt_outmap.
CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id = 'UIF_BUPAP_WIDE_COL' ""Search help name
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
iv_trigger_submit = abap_true
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap.
Thanks,
Ritu -
How to populate value in other field after entering in one field?
hi everyone.
when i enter value in one field , automatically some xyz value should be populated in second field. How would this be possible without any enter? I mean i don want to perform any action like press enter or like that.Hello manumb6 ,
You coud also use "TimedTrigger" UI element for the same and you can specify the "delay" value in seconds.
Suppose if you enter x value.
After X seconds it will trigger the particular action associated to UI element.
My suggestion would be that you generate this UI element Dynamically when you expect end user to enter the value in the input field and system would keep invoking the method and as soon as your objective is met, Delete the UI element .
Hope this would help.
Regards
Anurag Chopra -
Question on populating a field based on 2 other fields
Hi,
I am looking for a solution wherein I need to populate a field (say no of days) based on the other two fields selected by the user (say date from and date to). As soon as user selects the value on "date to" field, "no of days" field should be auto-populated as the value from "date to - date from". I have tried using setter and getter methods on all three field, set valuechangelistener on date to field, set auto submit to true and in the valuechangelistener event code, I am doing the calculations as mentioned in the below snippet.
public void onChangeDateTo(ValueChangeEvent evt){
this.dtDateTo= (java.util.Date)evt.getNewValue();
this.dtDateFrom = (java.util.Date)getDateFrom();//This is the getter method for date from field
System.out.println("onChangeDateTo "+ this.dtDateFrom+":"+this.dtDateTo);
if (evt.getNewValue() != null){
int intCalcNoOfDays = DateHelper.getBusinessDaysCount(this.getDateFrom(),this.getDateTo()) + 1;// my custom class which does the calculation
String strCalcNoOfDays = String.valueOf(intCalcNoOfDays);
System.out.println("strCalcNoOfDays "+strCalcNoOfDays);
this.setNoOfDays(strCalcNoOfDays);
I am getting NullPointerException while getting the value for date from (this.dtDateFrom). I have tried other approaches like attaching a binding to date from field, passing attributes etc but no luck. Can someone assist me in achieving this? Basically I need to populate one field automatically based on values entered on two other fields whenever tab event/user selects value on second field AND it shouldn't fire any other validations on the form (basically partial trigger).
Thanks very much for the help in advance.
Thanks
ShreeThanks Lilly.
I don't have a backing bean associated with the page. I have managed bean instead. JSF source code snippet below
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich" xmlns:h="http://java.sun.com/jsf/html">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document title="LMS" id="d1">
<af:messages id="m1"/>
<af:form id="f1">
<af:panelStretchLayout id="psl1" startWidth="160px">
<f:facet name="top">
<af:panelGroupLayout id="pgl1" layout="vertical" halign="center">
<af:panelFormLayout id="pfl1" rows="1" maxColumns="1">
<af:outputText value="LMS" id="ot1"
inlineStyle="color:Blue; font-family:'Times New Roman', 'Arial Black', times, Serif; font-size:175%; font-weight:bold; text-align:center;"/>
</af:panelFormLayout>
</af:panelGroupLayout>
</f:facet>
<f:facet name="bottom">
<af:panelGroupLayout id="pgl2"/>
</f:facet>
<f:facet name="center">
<af:panelGroupLayout layout="scroll" id="pgl4">
<af:outputText value="Dashboard" id="ot6"
inlineStyle="color:Green; font-size:150%; font-family:'Times New Roman', 'Arial Black', times, Serif; font-weight:bold; text-align:center;"
visible='#{clickActionHandlerBean.clickLink== "HOME"}'/>
<af:spacer width="10" height="10" id="s1"
visible='#{clickActionHandlerBean.clickLink== "HOME"}'/>
<af:spacer width="10" height="25" id="s5"
visible='#{clickActionHandlerBean.clickLink=="APPLY"}'/>
<af:panelFormLayout id="pfl2" rows="1" maxColumns="1"
visible='#{clickActionHandlerBean.clickLink=="APPLY"}'>
<af:selectOneChoice label="Type" id="soc1" showRequired="true"
immediate="true" value="#{bean1.type}">
<af:selectItem label="X1" value="X1" id="si1"/>
<af:selectItem label="X2" value="X2 id="si2"/>
<af:selectItem label="X3" value="X3" id="si3"/>
<af:selectItem label="X4 value="X4" id="si4"/>
</af:selectOneChoice>
</af:panelFormLayout>
<af:panelFormLayout id="pfl3" rows="1" maxColumns="3"
visible='#{clickActionHandlerBean.clickLink=="APPLY"}'>
<af:inputDate label=" Date From" id="id1"
rendered='true'
showRequired="true" inlineStyle="vertical-align:baseline;"
value="#{bean1.dateFrom}">
<af:convertDateTime pattern="dd-MMM-yyyy" secondaryPattern="MM/dd/yyyy"/>
</af:inputDate>
<af:inputDate label="Date To" id="id2"
rendered='true'
showRequired="true" value="#{bean1.dateTo}" partialTriggers="it1"
valueChangeListener="#{bean1.onChangeDateTo}"
autoSubmit="true">
<af:convertDateTime pattern="dd-MMM-yyyy" secondaryPattern="MM/dd/yyyy"/>
</af:inputDate>
<af:inputText label="No of Days" id="it1" columns="7" showRequired="true"
rendered="true" value="#{bean1.noOfDays}" maximumLength="2">
<af:validateRegExp pattern="[0-9]{1,10}"
messageDetailNoMatch="No of days can have only numbers"/>
</af:inputText>
</af:panelFormLayout>
<af:spacer width="10" height="50" id="s6"/>
<af:group id="g1">
<af:spacer width="250" height="10" id="s7"
visible='#{clickActionHandlerBean.clickLink=="APPLY"}'/>
<af:commandButton text="Save" id="cb1" partialSubmit="true" blocking="false"
immediate="false"
visible='#{clickActionHandlerBean.clickLink=="APPLY"}'
actionListener="#{bean1.ApplyButtonClicked}">
</af:commandButton>
<af:spacer width="20" height="10" id="s8"/>
<af:commandButton text="Cancel" id="cb2"
visible='#{clickActionHandlerBean.clickLink=="APPLY"}'/>
</af:group>
</af:panelGroupLayout>
</f:facet>
<f:facet name="start">
<af:panelGroupLayout id="pgl3" halign="left">
<p>
<af:outputText value="#{userinfo.userInfo.firstName}" id="otWel"
inlineStyle="color:Maroon;" rendered="false"/>
</p>
<af:spacer width="1" height="50" id="s2"/>
<p>
<af:commandLink text="Home" id="glHome" action="#{clickActionHandlerBean.showHomeRN}"/>
</p>
<p>
<af:commandLink text="Apply" id="glApply"
action="#{clickActionHandlerBean.showApplyRN}"/>
</p>
</af:panelGroupLayout>
</f:facet>
</af:panelStretchLayout>
</af:form>
</af:document>
</f:view>
</jsp:root>
Thanks
Shree -
Auto-populating Infopath fields from a Sharepoint list after selecting a drop down
I currently have two lists one titled 'Book of Work' which holds details around on-going projects and the other titled 'Book of Work Amendments' which are requests submitted by users to change project details (through an infopath form).
There is a column in the BoW Amendments list entitled 'Select Project' which has a lookup to 'Project Name' in the BoW list. The aim is that when a user chooses an option from the 'Select Project' drop-down, other fields in the form such as 'Project Manager',
'Project Description' will be automatically populated with data from that row in the BoW table.
I have connected both Sharepoint Lists as data connections with BoW Amendments being the primary and BoW the secondary. If we take the Project Manager field as an example the method I have attempted is as follows:
. Create a rule with condition Select Project is not blank
. Action - Set a field's value: Field: Project Manager (BoW Amendments - Primary) Value:
Project Manager (BoW - Secondary) Add Filter: Project_Name (BoW - Secondary) =
Select Project (BoW - Primary)
Currently this is not populating the field when the project is selected in the drop down, any assistance would be greatly appreciated.Hi Josh,
This should be straight forward. You do not need BOW Amend data connection. You are creating requests in this list so this will be your Main Data Connection.
When creating the rule on the drop down, select Action:
Condition: anytime the value changes, Set a field's value - Project Manager (Main); Value - Project Manager(BOW) where Project[BOW] = Project [Main]
Hope it helps.
Regards, Kapil ***Please mark answer as Helpful or Answered after consideration*** -
How to delete the row in table control with respect to one field in module pool programming?
Hi,
Can I know the way to delete the row in table control with respect to one field in module pool programming
Regards
Darshan MSHI,
I want to delete the row after the display of table control. I have created push button as delete row. If I click on this push button, the selected row should get deleted.
I have written this code,
module USER_COMMAND_9000 input.
DATA OK_CODE TYPE SY-UCOMM.
OK_CODE = SY-UCOMM.
CASE OK_CODE.
WHEN 'DELETE'.
LOOP AT lt_source INTO ls_source WHERE mark = 'X'.
APPEND LS_SOURCE TO LT_RESTORE.
DELETE TABLE LT_SOURCE FROM LS_SOURCE.
SOURCE-LINES = SOURCE-LINES - 1.
ENDLOOP.
But I'm unable to delete the selected rows, It is getting deleted the last rows eventhough I select the other row.
So I thought of doing with respect to the field. -
One field is not downloading properly from ALV to EXCEL
Hi,
while downloading ALV out put to EXCEL sheet one field(CSTCTR) is not displaying properly it's truncating left and right side digits,
I have used function REUE_ALV_GRID_DISPLAY
FORM SUMMARY_REPORT .
PERFORM BUILD_FIELDCATLOG.
IF I_FINAL[] IS INITIAL.
MESSAGE I000 WITH 'NO DATA EXIST'.
EXIT.
ENDIF.
ST_SETTINGS-EDT_CLL_CB = 'X'.
V_REPID = SY-REPID.
SORT I_FINAL BY WERKS GEBNR PERNR.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_REPID
I_GRID_SETTINGS = ST_SETTINGS
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
IT_SORT = IT_SORT[]
IT_FIELDCAT = IT_FLDCAT[]
IT_EVENTS = IT_EVENTS[]
TABLES
T_OUTTAB = I_FINAL[]
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
ENDFORM. " alv_display summary_report
*& Form build_fieldcatlog
text
FORM BUILD_FIELDCATLOG.
WA_FLDCAT-FIELDNAME = 'WERKS'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'PA'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '1'.
WA_FLDCAT-KEY = 'X'.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'GEBNR'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'LOC'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '2'.
WA_FLDCAT-KEY = 'X'.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'PERNR'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'SAP #'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '3'.
WA_FLDCAT-KEY = 'X'.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'ADPFN'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'ADP #'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '4'.
WA_FLDCAT-KEY = 'X'.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'PERID'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'SSN'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '5'.
WA_FLDCAT-KEY = 'X'.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'KOSTL'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'CSTCTR'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '6'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'NACHN'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'LAST NAME'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '7'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'VORNA'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'FORST NAME'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '8'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'HIREDATE'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'HAL DATE'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '9'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'VACDATE'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'VAC DATE'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '10'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'GBDAT'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'BIRTHDT'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '11'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'SENDAT'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'SRDATE'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '12'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'SERADJDAT'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'SVCADJDT'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '13'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'TERMDATE'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'TERMDT'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '14'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'MGTXT'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'TERM REASON'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '15'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'GESCH'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = '***'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '16'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'RACKY'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'RACE'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '17'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'VTEXT'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'VET STAT'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '18'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'EXPAT'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'EXPAT'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '19'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'DISAB'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'DISAB'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '20'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'PTEXT'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'STAT'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '21'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'STELL'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'JOB'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '22'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'STLTX'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'JOB TITLE'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '23'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'PLANS'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'POSITION'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '24'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'PLSTX'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'POSITION T'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '25'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'AAPCT'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'JOBGP'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '26'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'EEOCT'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'EEO'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '27'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'ZBAND'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'BAND'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '28'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'EEOEX'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'FLSA'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '29'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
*WHEN DIVG
WA_FLDCAT-FIELDNAME = 'BETRG'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'BW/HR'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '30'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'ANSAL'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'ANNSAL'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '31'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'WOSTD'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'HRS'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '32'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'ZBONPLAN'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'PLAN'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '33'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'ZTARGET'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'TGT'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '34'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
ENDFORM. " BUILD_FIELD CATLOGAlso make sure if the reference field name and reference table name in the field cat .
There will be some fields where in when dropped to excel will not hold the field properties and may not download properly,In such cases pass the reference fileds to the field cat .
In the field cat u r using, pass this and check .
WA_FLDCAT-FIELDNAME = ' '. "
WA_FLDCAT-OUTPUTLEN = 'XX'.
WA_FLDCAT-SELTEXT_M = 'XXXXXXXXXXXXXXXXXXx'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
wa_fldcat- -
>reference field name,
wa_fldcat----
>reference table name
WA_FLDCAT-COL_POS = '25'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
Br,
Vijay. -
Display value and description of one field in alv grid
Hi Folks,
I want to display value and description of one field as one column in alv grid.
for example iam having Xfield = 01,02,03.
and 01 iam having text value as xxx,
01 xxx
02 yyy
03 zzz
Im report display the values are displaying as 01,02,03..
but i want to display it as 01 xxx,02 yyy, 03 zzz.
Please do needful.
Thx.Hi, swetha
You can do this with "concatenate".
example:
In you code check where you final internal table is getting filled up before that do this concatenate and then append it.
data t_text type string.
t_text = textfield
CONCATENATE 'Xfield'
t_text
INTO wa_workarea SEPARATED BY space.
cheers,
Bhavana -
Hotspot on more than one fields in ALV Report
I want to add Hotspot on more than one field in ALV,
one field is Vbeln , one is BSTNK, one is matnr and so on.
i have used form user_command.and have written coding for Vbeln (on vbeln i am showing transaction VA02)
i want to pass an eror mesaage when user clicks on bstnk or matnr.
ThanksHi Lovleen,
*Global definitions *
Data Types
type-pools: slis.
types: begin of tp_data,
ebeln like ekko-ebeln,
*matnr like ekko-matnr,
*meins like ekko-meins,
lifnr like lfa1-lifnr,
chk1,
end of tp_data,
tp_tbl_data type standard table of tp_data.
Constants
Data objects (variable declarations and definitions)
Report data to be shown.
data: it_data type standard table of tp_data.
Heading of the report.
data: t_heading type slis_t_listheader.
======================= Selection Screen ==========================
selection-screen: begin of block b1 with frame title text-t01.
DATA: w_aux_ebeln like ekko-ebeln.
SELECT-OPTIONS s_ebeln for w_aux_ebeln
DEFAULT 1000 .
DATA: w_aux_lifnr like lfa1-lifnr.
SELECT-OPTIONS s_lifnr for w_aux_lifnr
DEFAULT 00000001000 .
selection-screen: end of block b1.
======================== Event Blocks =============================
at selection-screen.
start-of-selection.
perform get_data using it_data.
end-of-selection.
perform build_alv using it_data t_heading.
======================== Subroutines ==============================
*& Form get_data
Gets the information to be shown in the report.
form get_data using t_data type tp_tbl_data.
SELECT e~ebeln
*e~matnr
*e~meins
l~lifnr
INTO CORRESPONDING FIELDS OF TABLE t_data
FROM ekko as e
inner join lfa1 as l on elifnr = llifnr
WHERE e~ebeln in s_ebeln
AND l~lifnr in s_lifnr
endform. " get_data
*& Form build_alv
Builds and display the ALV Grid.
form build_alv using t_data type tp_tbl_data
t_heading type slis_t_listheader.
ALV required data objects.
data: w_title type lvc_title,
w_repid type syrepid,
w_comm type slis_formname,
w_status type slis_formname,
x_layout type slis_layout_alv,
t_event type slis_t_event,
t_fieldcat type slis_t_fieldcat_alv,
t_sort type slis_t_sortinfo_alv.
refresh t_fieldcat.
refresh t_event.
refresh t_sort.
clear x_layout.
clear w_title.
Field Catalog
perform set_fieldcat2 using:
1 'CHK1' 'XFELD' space space space 'Select' 'Select this row' 'Sel'
'Select this row' space space space 'X' 'X' space t_fieldcat,
2 'EBELN' 'EBELN' 'EKKO' space space space space space space space
space space space space space t_fieldcat ,
3 'MATNR' 'MATNR' 'EKKO' space space space space space space space
space space space space space t_fieldcat ,
4 'MEINS' 'MEINS' 'EKKO' space space space space space space space
space space space space space t_fieldcat ,
5 'LIFNR' 'LIFNR' 'LFA1' space space space space space space space
space space space space space t_fieldcat .
Layout
x_layout-zebra = 'X'.
Top of page heading
perform set_top_page_heading using t_heading t_event.
Events
perform set_events using t_event.
GUI Status
w_status = ''.
w_repid = sy-repid.
Title
w_title = <<If you want to set a title for
the ALV, please, uncomment and edit this line>>.
User commands
w_comm = 'USER_COMMAND'.
Order
Example
PERFORM set_order USING '<field>' 'IT_DATA' 'X' space space t_sort.
Displays the ALV grid
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = w_repid
it_fieldcat = t_fieldcat
is_layout = x_layout
it_sort = t_sort
i_callback_pf_status_set = w_status
i_callback_user_command = w_comm
i_save = 'X'
it_events = t_event
i_grid_title = w_title
tables
t_outtab = t_data
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endform. " build_alv.
*& Form set_top_page_heading
Creates the report headings.
form set_top_page_heading using t_heading type slis_t_listheader
t_events type slis_t_event.
data: x_heading type slis_listheader,
x_event type line of slis_t_event.
Report title
clear t_heading[].
clear x_heading.
x_heading-typ = 'H'.
x_heading-info = ''(001).
append x_heading to t_heading.
Program name
clear x_heading.
x_heading-typ = 'S'.
x_heading-key = 'Program: '.
x_heading-info = sy-repid.
append x_heading to t_heading.
User who is running the report
clear x_heading.
x_heading-typ = 'S'.
x_heading-key = 'User: '.
x_heading-info = sy-uname.
append x_heading to t_heading.
Date of execution
clear x_heading.
x_heading-typ = 'S'.
x_heading-key = 'Date: '.
write sy-datum to x_heading-info.
append x_heading to t_heading.
Time of execution
clear x_heading.
x_heading-typ = 'S'.
x_heading-key = 'Time: '.
write sy-uzeit to x_heading-info.
append x_heading to t_heading.
Top of page event
x_event-name = slis_ev_top_of_page.
x_event-form = 'TOP_OF_PAGE'.
append x_event to t_events.
endform.
*& Form set_events
Sets the events for ALV.
The TOP_OF_PAGE event is alredy being registered in
the set_top_page_heading subroutine.
form set_events using t_events type slis_t_event.
data: x_event type line of slis_t_event.
Example
clear x_event.
x_event-name = .
x_event-form = .
append x_event to t_event.
endform.
*& Form set_order
Adds an entry to the order table.
FORM set_order USING p_fieldname p_tabname p_up p_down p_subtot
t_sort TYPE slis_t_sortinfo_alv.
DATA: x_sort TYPE slis_sortinfo_alv.
CLEAR x_sort.
x_sort-fieldname = p_fieldname.
x_sort-tabname = p_tabname.
x_sort-up = p_up.
x_sort-down = p_down.
x_sort-subtot = p_subtot.
APPEND x_sort TO t_sort.
ENDFORM. "set_order
*& Form set_fieldcat2
Adds an entry to the field catalog.
p_colpos: Column position.
p_fieldname: Field of internal table which is being described by
* this record of the field catalog.
p_ref_fieldname: (Optional) Table field / data element which
* describes the properties of the field.
* If this field is not given, it is copied from
* the fieldname.
p_ref_tabname: (Optional) Table which holds the field referenced
* by <<p_ref_fieldname>>.
If this is not given, the parameter
<<p_ref_fieldname>> references a data element.
p_outputlen: (Optional) Column width.
p_noout: (Optional) If set to 'X', states that the field is not
* showed initially. If so, the field has to be
included in the report at runtime using the display
options.
p_seltext_m: (Optional) Medium label to be used as column header.
p_seltext_l: (Optional) Long label to be used as column header.
p_seltext_s: (Optional) Small label to be used as column header.
p_reptext_ddic: (Optional) Extra small (heading) label to be
* used as column header.
p_ddictxt: (Optional) Set to 'L', 'M', 'S' or 'R' to select
whether to use SELTEXT_L, SELTEXT_M, SELTEXT_S,
or REPTEXT_DDIC as text for column header.
p_hotspot: (Optional) If set to 'X', this field will be used
* as a hotspot area for cursor, alolowing the user
* to click on the field.
p_showasicon: (Optional) If set to 'X', this field will be shown
as an icon and the contents of the field will set
* which icon to show.
p_checkbox: (Optional) If set to 'X', this field will be shown
as a checkbox.
p_edit: (Optional) If set to 'X', this field will be editable.
p_dosum: (Optional) If set to 'X', this field will be summed
(aggregation function) according to the grouping set
by the order functions.
t_fieldcat: Table which contains the whole fieldcat.
FORM set_fieldcat2 USING
p_colpos p_fieldname p_ref_fieldname p_ref_tabname
p_outputlen p_noout
p_seltext_m p_seltext_l p_seltext_s p_reptext_ddic p_ddictxt
p_hotspot p_showasicon p_checkbox p_edit
p_dosum
t_fieldcat TYPE slis_t_fieldcat_alv.
DATA: wa_fieldcat TYPE slis_fieldcat_alv.
CLEAR wa_fieldcat.
General settings
wa_fieldcat-fieldname = p_fieldname.
wa_fieldcat-col_pos = p_colpos.
wa_fieldcat-no_out = p_noout.
wa_fieldcat-hotspot = p_hotspot.
wa_fieldcat-checkbox = p_checkbox.
wa_fieldcat-icon = p_showasicon.
wa_fieldcat-do_sum = p_dosum.
Set reference fieldname, tablenam and rollname.
If p_ref_tabname is not given, the ref_fieldname given
is a data element.
If p_ref_tabname is given, the ref_fieldname given is a
field of a table.
In case ref_fieldname is not given,
it is copied from the fieldname.
IF p_ref_tabname IS INITIAL.
wa_fieldcat-rollname = p_ref_fieldname.
ELSE.
wa_fieldcat-ref_tabname = p_ref_tabname.
IF p_ref_fieldname EQ space.
wa_fieldcat-ref_fieldname = wa_fieldcat-fieldname.
ELSE.
wa_fieldcat-ref_fieldname = p_ref_fieldname.
ENDIF.
ENDIF.
Set output length.
IF NOT p_outputlen IS INITIAL.
wa_fieldcat-outputlen = p_outputlen.
ENDIF.
Set text headers.
IF NOT p_seltext_m IS INITIAL.
wa_fieldcat-seltext_m = p_seltext_m.
ENDIF.
IF NOT p_seltext_l IS INITIAL.
wa_fieldcat-seltext_l = p_seltext_l.
ENDIF.
IF NOT p_seltext_s IS INITIAL.
wa_fieldcat-seltext_s = p_seltext_s.
ENDIF.
IF NOT p_reptext_ddic IS INITIAL.
wa_fieldcat-reptext_ddic = p_reptext_ddic.
ENDIF.
IF NOT p_ddictxt IS INITIAL.
wa_fieldcat-ddictxt = p_ddictxt.
ENDIF.
Set as editable or not.
IF NOT p_edit IS INITIAL.
wa_fieldcat-input = 'X'.
wa_fieldcat-edit = 'X'.
ENDIF.
APPEND wa_fieldcat TO t_fieldcat.
ENDFORM. "set_fieldcat2
======================== Subroutines called by ALV ================
*& Form top_of_page
Called on top_of_page ALV event.
Prints the heading.
form top_of_page.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
i_logo = <<If you want to set a logo, please,
uncomment and edit this line>>
it_list_commentary = t_heading.
endform. " alv_top_of_page
*& Form user_command
Called on user_command ALV event.
Executes custom commands.
form user_command using r_ucomm like sy-ucomm
rs_selfield type slis_selfield.
Example Code
Executes a command considering the sy-ucomm.
CASE r_ucomm.
WHEN '&IC1'.
Set your "double click action" response here.
Example code: Create and display a status message.
DATA: w_msg TYPE string,
w_row(4) TYPE n.
w_row = rs_selfield-tabindex.
CONCATENATE 'You have clicked row' w_row
'field' rs_selfield-fieldname
'with value' rs_selfield-value
INTO w_msg SEPARATED BY space.
MESSAGE w_msg TYPE 'S'.
ENDCASE.
End of example code.
endform. "user_command
Reward Points if useful.
Regards,
Manoj Kumar -
Add List box for one field in ALV GRID
Hi All,
I need to add drop down list box for one field in ALV Grid.
If any body knows, please help.
Thanks in advance.
Regards
MangleshHi,
Here is the ex where i have used for date parameter in the sel screen
type-pools: vrm.
data: name type vrm_id,
list type vrm_values,
value like line of list.
parameters : p_date like p_date2
as listbox visible length 15.
at selection-screen output.
name = 'P_DATE'.
value-key = '1'.
value-text = 'Today'.
append value to list.
value-key = '2'.
value-text = 'Last 7 days'.
append value to list.
value-key = '3'.
value-text = 'Last 30 days'.
append value to list.
value-key = '4'.
value-text = 'Last 90 days'.
append value to list.
value-key = '5'.
value-text = 'Last year'.
append value to list.
Call the ''VRM_SET_VALUES' to display the values in Listbox
call function 'VRM_SET_VALUES'
exporting
id = name
values = list.
at selection-screen.
if sy-ucomm = 'CLI1'.
sscrfields-ucomm = 'ONLI'(001).
endif.
if p_date = '1'.
p_date11 = sy-datum .
elseif p_date = '2'.
p_date11 = ( sy-datum - 7 ).
elseif p_date = '3'.
p_date11 = ( sy-datum - 30 ).
elseif p_date = '4'.
p_date11 = ( sy-datum - 90 ).
elseif p_date = '5'.
p_date11 = ( sy-datum - 365 ).
endif.
Hope this helps u..
Please reward points if useful.
Regards,
Sreenivas -
I've been trying to find more information on this and I apologies if this has already been answered. I just don't know the correct way to ask this. We have a SharePoint List at the company that we have people input information into different columns. The
problem is most of those information are very repetitive. Is there a way for me to search more then one field text in the column and just input that same information in?
ex:
Column 1
Column 2
Date:
883851
MidWest
User input
8831518
MidWest
User input
On the search field in the SharePoint List, I would need to search for 883851, 8831518 etc, would view those requested numbers, then I would click edit and change dates to those rows. Does that make sense? I'm sorry I'm fairly new at sharepoint.I think what you're asking is about having repetitive options in a list, show up easily for new items being created.
This can be done by setting the columns that contain repetitive information to Choice fields. In the configuration of the Choice field, check the box for "Allow custom values". Now as users are entering data into the list, the dropdown of options
for a given field grows and users can quickly see and select previously entered and thus repetitive values for the given fields.
I trust that answers your question...
Thanks
C
|
RSS |
http://crayveon.com/blog |
SharePoint Scripts | Twitter |
Google+ | LinkedIn |
Facebook | Quix Utilities for SharePoint -
How do I validate one field's length based on another field's selection?
I am creating a form for our offices where I need to check one field for length of a serial number based on the answer to a previous field's selection. Depending on the product selection, the serial number has two different lengths. Both fields are marked as required, but I want to make sure that we receive the full serial number for our product. Previous forms were done on paper and instructions were for the last 4 digits only which now we want the full serial number. One product has a 12 digit number and the other is 6.
I'm guessing that I need a validation script in the serial number field, but I am not a JavaScript coder and haven't found the right thing when searching. Any help would be great!
Thanks!Never trust your users to follow what you expect them to do... That often leads to mistakes and problems later on.
I would reset the s/n field when a selection is made in the drop-down. To do so set the drop-down field to commit the selected value immediately and add code as its custom validation script:
this.getField("Serial Number").value = "";
To validate the s/n field you can use something like this as that field's custom validation script (of course, you'll need to adjust the field names and values to match the actual ones in your file):
event.rc = true;
if (event.value) {
var selection = this.getField("Dropdown1").valueAsString;
if (selection=="1" && event.value.length!=6) {
app.alert("Error! The s/n must be 6 digits long.");
event.rc = false;
if (selection=="2" && event.value.length!=12) {
app.alert("Error! The s/n must be 12 digits long.");
event.rc = false; -
How to use select statement for one field
I want to fetch the data from table and only one field , the below code i written is correct or not , because only for one field i used endselct if i am not giving endselect it is showing error. Please suggest me.
DATA : SBELN TYPE VBAK-VBELN.
parameters : s_vbeln type vbak-vbeln.
select vbeln from vbak into sbeln
where vbeln = P_VBELN.
endselect.Hi ,
As because you want single field but not single record so SELECT SINGLE is not correct .
You need to create a internal table with the field of VBELN.
Then you need to fetch the records from the VBELN field of table VBAK.
Try this code --
DATA : t_itab like table of VBAK-VBELN.
parameters : s_vbeln type vbak-vbeln.
select vbeln from vbak into table t_itab
where vbeln = s_VBELN.
Regards
Pinaki
Maybe you are looking for
-
2nd Day of ownership - Opinion = Flakey at the moment
I'm running NMH410 1TB with HP Laptop with Vista Home premium 32bit Netgear G router wireless, Firefox 3.5.7 mainly and also IE8. Just the one PC connected at the mo. looking to connect another 4 plus Wii..? + Sony 40w4500 TV and install a WD10EADS 1
-
Why does saving an Illustrator file as PDF cause the image to be reduced on the PDF document?
When I save a CS5 drawing as a PDF, the drawing is reduced in size on the resulting PDF page. This was not happening a few days ago, and I do not recall changing any settings. In fact, I have been unable to find any setting that affects this problem.
-
Hello Adobe Team, i'd like to know how can i fix this situation: I just added a couple of things (only text) more to my website, after i downloaded the update, and now everytime l upload it back to my host, some of the several pages it has changes th
-
How to recover in app purchases.
hello i have recently restored my iphone and now there isn't any of my in app purchases, how can i recover them?
-
Help needed with recursion algorithm..
I can't seems to figure out which recursion method to use, if anyone can give me some advice, pls do.. Input: There is a row of n elecments with the initial value of 1. Output: Change all the 1s to 0s using the following conditions. -The first elemen