Populating a field
Post Author: sjames
CA Forum: Desktop Intelligence Reporting
Hi All,
I have two fields from the same universe. Example - Field 1 called Location code , Field 2 called Location name
Location code is populated with the following values
000000000002
000000000003
000000000004 etc
Location Names are blank but I know what values they should be.
For instance
000000000002 (location code), Location Name should be (ABC)
000000000003 (location code), Location Name should be (DEF)
how can I popluate the location Name field? I tried the following code but it doesn't work.
If Location Code = 000000000002 and Location Name = " " then Location Name = "ABC" Elseif Location Code = 000000000003 and Location Name is " " then Location Name = "DEF" Elseif Location Code = 000000000004 and Location Name = " " the Location Name = "GHI" ......
Any suggestions greatly appreciated. Thanks.
Hi,
Try this..
Use the transaction MASS..
Give the object type BUS2032..
Thanks,
Naren
Similar Messages
-
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*** -
Auto-populated ID field?
Can I create an auto-populated ID field? Trying to create a unique record ID for an incident report form.
ThanksDepends how many responses you anticipate, I therefore realise not ideal, a workaround I have used is;
Import responses into Excel.
The Date / Time field, whilst displayed as Date and Time, is in fact encoded.
By re formatting that column in Excel to, for instance, 'Number' (with no decimal places), you get a code for the day.
If you format, with decimal places, you get the time code as well. The more decimal places you allow, the more unique (is that English?), the code.
Just a thought -
How to auto populating the field in MS crm
How to auto populating the field in MS crm
Hi,
To populate URL of account based on account name please refer this link.
If you are asking about the address auto populate/complete refer this link
To Retrieve from other entity and populate the fields, for example on entering the account name in opportunity form the fields from account form like Sector, Region can be retrieved and can be auto populated in opportunity form using Odata as follows.
Call the function getAccountDetails in onchange event of Companyname. Do not forget to add Jquery and Json in libraries.
function getAccountDetails() {
var companyName = Xrm.Page.getAttribute("customerid").getValue();
if ((companyName != null)) {
var companyNameValue = companyName[0].name;
var companyNameID = companyName[0].id;
var serverUrl = Xrm.Page.context.getServerUrl();
//The XRM OData end-point
var ODATA_ENDPOINT = "/XRMServices/2011/OrganizationData.svc";
var odataSetName = "AccountSet";
var odataSelect = serverUrl + ODATA_ENDPOINT + "/" + odataSetName + "(guid'" + companyNameID + "')";
//alert(odataSelect);
$.ajax({
type: "GET",
contentType: "application/json; charset=utf-8",
datatype: "json",
url: odataSelect,
beforeSend: function (XMLHttpRequest) { XMLHttpRequest.setRequestHeader("Accept", "application/json"); },
success: function (data, textStatus, XmlHttpRequest) {
var result_account = data.d;
var name;
var Id;
var entityType;
//replace the fields with the fields on your entity
Xrm.Page.getAttribute("new_sector").setValue(result_account.new_Sector.Value);
Xrm.Page.getAttribute("new_region").setValue(result_account.new_Region.Value);
error: function (XmlHttpRequest, textStatus, errorThrown) { alert('OData Select Failed: ' + odataSelect); }
Also as another option if you donot wat the java script then you can go for a workflow to poplate, please refer this link: https://www.powerobjects.com/blog/2013/11/25/retrieving-data-from-a-related-entity-crm-2013/
Regards, Rekha.J -
OVS value not getting populated in field
Hi Experts,
Kindly suggest me a solution for the below given issue.
I have added three custom fileds to an already existing WD Coponent.
And also added OVS help as an input help method to these fields.
If I right click on the WD application and TEST, the application opens in browser and I am able to select the value from OVS list.
If I run the application by copying the URL and paste it in the browser, or clicking on Portal link, if we select the value from OVS list that value is not getting populated in the field.
Below is the logic I have written.
method ON_OVS_PAYMENT .
TYPES: BEGIN OF ty_payment,
payment TYPE char4,
desc TYPE char30,
END OF ty_payment.
* declare data structures for the fields to be displayed and
* for the table columns of the selection list, if necessary
types:
begin of lty_stru_input,
* add fields for the display of your search input here
payment type char4,
* desc type string,
end of lty_stru_input.
types:
begin of lty_stru_list,
* add fields for the selection list here
payment type char4,
desc type char30,
end of lty_stru_list.
data: ls_search_input type lty_stru_input,
lt_select_list type standard table of lty_stru_list,
ls_text type wdr_name_value,
lt_label_texts type wdr_name_value_list,
lt_column_texts type wdr_name_value_list,
lv_window_title type string,
lv_group_header type string,
lv_payment type string,
lt_payment TYPE TABLE OF ty_payment,
ls_payment TYPE ty_payment,
lv_short TYPE string,
lv_table_header type string.
field-symbols: <ls_query_params> type lty_stru_input,
<ls_selection> type lty_stru_list.
case ovs_callback_object->phase_indicator.
when if_wd_ovs=>co_phase_0. "configuration phase, may be omitted
* in this phase you have the possibility to define the texts,
* if you do not want to use the defaults (DDIC-texts)
ls_text-name = `PAYMENT`. "must match a field name of search
ls_text-value = `Terms of payment`. "wd_assist->get_text( `001` ).
insert ls_text into table lt_label_texts.
ls_text-name = `PAYMENT`. "must match a field in list structure
ls_text-value = `Terms of Payment`. "wd_assist->get_text( `002` ).
insert ls_text into table lt_column_texts.
ls_text-name = `DESC`. "must match a field in list structure
ls_text-value = `Description`. "wd_assist->get_text( `002` ).
insert ls_text into table lt_column_texts.
ovs_callback_object->set_configuration(
label_texts = lt_label_texts
column_texts = lt_column_texts
group_header = lv_group_header
window_title = lv_window_title
table_header = lv_table_header
col_count = 2
row_count = 20 ).
when if_wd_ovs=>co_phase_1.
ovs_callback_object->context_element->get_static_attributes(
importing static_attributes = ls_search_input ).
* pass the values to the OVS component
ovs_callback_object->set_input_structure(
input = ls_search_input ).
when if_wd_ovs=>co_phase_2.
if ovs_callback_object->query_parameters is not bound.
******** TODO exception handling
endif.
assign ovs_callback_object->query_parameters->*
to <ls_query_params>.
if not <ls_query_params> is assigned.
******** TODO exception handling
endif.
* call business logic for a table of possible values
* lt_select_list = ???
lv_short = <ls_query_params>-payment.
CALL FUNCTION 'ZSIILESD001' DESTINATION 'LOGICALE22'
EXPORTING
i_payment = lv_short
TABLES
ET_PAYMENT = lt_payment.
lt_select_list[] = lt_payment[].
ovs_callback_object->set_output_table( output = lt_select_list ).
when if_wd_ovs=>co_phase_3.
* apply result
if ovs_callback_object->selection is not bound.
******** TODO exception handling
endif.
assign ovs_callback_object->selection->* to <ls_selection>.
if <ls_selection> is assigned.
ovs_callback_object->context_element->set_attribute(
name = `PAYMENT`
value = <ls_selection>-payment ).
endif.
endcase.
endmethod.Hi Pradeep,
I don't think it really make any difference to the application run if we run from SE80 or run via application url.
Try to set the external break point in OVS PHASE3 for your user. Check if the break point is reached and data is set after selection from OVS.
Regards,
Rama -
End Routine - populating Target Field based on Master Data
Hi,
I have an issue with my End Routine in BI 7.0. The scenario is as follows....
The Target-Fields ZSALES_OFFICE , 0SALES_CHANNEL etc. are being mapped 1:1 from their respective source fields. In addition to these target fields I have a target field 0SALESORG which I need to populate based on the values from 0COMP_CODE which is an attribute of ZSALES_OFFICE. The values of 0COMP_CODE are 9000, 9001, 9002 and 9003 respectively. The end routine condition needs to be implemented as follows...
For every 0COMP_CODE which has value 9000, 0SALESORG should be populated with the value "EAST". Similarly for every 0COMP_CODE which has value 9001, 0SALESORG should be populated with the value "WEST", for every 0COMP_CODE which has value 9002, 0SALESORG should be populated with the value "NORTH" and for every 0COMP_CODE which has value 9003, 0SALESORG should be populated with the value "SOUTH". I tried the following code but it doesnt seem to work. Could you pls help!!
Thanks,
SD
DATA: it_tab4 TYPE TABLE OF /BIC/PZF31SALOFF,
wa_tab4 TYPE /BIC/PZF31SALOFF.
SELECT *
FROM /BIC/PZF31SALOFF
INTO CORRESPONDING FIELDS OF TABLE it_tab4.
sort it_tab4 by /BIC/ZF31SALOFF.
LOOP AT RESULT_PACKAGE
INTO <result_fields>.
read table it_tab4
with key /BIC/ZF31SALOFF = <result_fields>-/BIC/ZF31SALOFF
into wa_tab4
binary search.
if sy-subrc eq 0.
CASE wa_tab4-comp_code.
WHEN '9000'.
<result_fields>-salesorg = 'EAST'.
WHEN '9100'.
<result_fields>-salesorg = 'WEST'.
WHEN '9200'.
<result_fields>-salesorg = 'NORTH'.
WHEN '9300'.
<result_fields>-salesorg = 'SOUTH'.
MODIFY it_tab4 FROM wa_tab4.
ENDCASE.
endif.
ENDLOOP.Replace your select statement ,
SELECT *
FROM /BIC/PZF31SALOFF
INTO CORRESPONDING FIELDS OF TABLE it_tab4.
instead of selecting all the fields , pick only the fields which are required.(one good performance improvement)
SELECT /BIC/PZF31SALOFF comp_code
FROM /BIC/PZF31SALOFF
INTO CORRESPONDING FIELDS OF TABLE it_tab4.
Remove the line below , this is not required
MODIFY it_tab4 FROM wa_tab4. -
Populating the field description on the screen
Hi Group,
In the program after executing on the screen I have 3 screen fields. After entering the two fields when user hit the enter it needs to retrieve third field value from the table and have to display on the screen,and again I will click execute button the program needs to run.
But after entering the two fields and hitting the enter program executing and the third field value getting populated after the execution.
I am using the following code:
here in this P_scen and p_fid filed I am entering on the screen and after hitting the Enter I need to populate
p_des before doing the execution.
AT SELECTION-SCREEN on block selblock.
*Fetch the the database table
PERFORM retrieve_table tables it_des
using p_scen
p_fid
if sy-subrc <> 0.
MESSAGE 'Not found'.
endif.
* Pass the description of the scenario.
p_des = it-desc.Check the FM DYNP_VALUES_UPDATE:
ws_dyname = 'ZSRO_MASTER_DATA'.
ws_dynumb = '1000'.
ws_dynpfld-fieldname ='PPDESC'.
ws_dynpfld-fieldvalue = ty_aa-name_textc.
APPEND ws_dynpfld TO i_dnpfld.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = ws_dyname
dynumb = ws_dynumb
TABLES
dynpfields = i_dnpfld
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
ENDIF. -
Problem while populating a field on process form- Values truncated
Hi,
I am facing a strange problem.
I have a requirement to populate Country field on AD process form based on the value of country code on the same process form which should eventually go to 'co' attribute in AD. So for eg. if the Country Code has value- 'US' then the Country field should be populated with 'United States'. This value is picked from lookup- Lookup.Locations.Country.
My adapter code works perfectly fine (checked using sysouts) it gets the proper values from the lookup but the country filed gets populated only with partial value. So instead of United States it only shows 'UNIT'. Same is for any country having more than 4 charatcters. It truncates the rest of the string and populates the field with only first 4 characters. I tried manually populating the Country field with complete country name on the process form and it works fine and the same value goes to AD also but when I run the adapter it only populates it with 4 charactetrs.
This is strange and I have no clue what could be stopping it. Any idea/experiences?
Thanks in advance,
-AbhiHi Abhi,
Can you tell me how you have implemented populating an UDF based on Prepopulation of another UDF. I have a similar kind of requirement. It would be great if you share your code or relevant part of it.
Regards,
Sunny Ajmera -
Populating other fields in a form based on the selection in a combobox field
We have done a form(masterdetail) in which we have a combobox field.When we make a selection in the field we require some two other fields to be automatically populated retrieving data from a table(which has the details required) based on the selection made.For eg. Selecting emp id(combobox) should populate empname and salary automatically in the form.Is this possible?If so how can this be done?
Thanks & Regards,
Jayanthi.SThis is what I did following Michael's suggestion and it works fine :-
1> Created a dynamic LOV named LOV_EMPNO as:-
select empno,empno from scott.emp
2> Started creating a form named FORM024_EMP2 on scott.emp.
3> On reaching the Formatting and Validation section, I chose the EMPNO field in the left frame.
In the right frame for EMPNO, I changed the item-type to Combobox and selected the lov LOV_EMPNO.
Then I went to the Javascript handler section for EMPNO, chose the Javascript event onChange and in the
adjacent Textarea, I wrote:-
popdetails(this);
We will create the javascript function popdetails() in the Additional pl/sql section.
4> Click next and goto the Additional PL/SQL section and I wrote the following code in
"...after displaying the page" area.
(You can write this either in
before displaying the page,
before displaying the form,
after displaying the form,
after displaying the page).
declare
type tvcarr is table of varchar2(2000) index by binary_integer;
l_empno_arr tvcarr;
l_ename_arr tvcarr;
l_sal_arr tvcarr;
begin
select empno,ename,sal
bulk collect into
l_empno_arr,l_ename_arr,l_sal_arr
from scott.emp;
htp.p('
<script>
var empdets = new Array();
empdets[0] = new Array("","");
for i in 1..l_empno_arr.count
loop
htp.p('empdets['||l_empno_arr(i)||'] = new Array("'||l_ename_arr(i)||'","'||l_sal_arr(i)||'");');
end loop;
htp.p('
function popdetails(ele)
var val = new Number();
var thisform = ele.form;
val = parseInt(ele.value);
if (isNaN(val))
val = 0;
for (var i = 0; i < thisform.length; i++){
if (thisform.name == "FORM024_EMP2.DEFAULT.ENAME.01")
thisform[i].value = empdets[val][0];
else if(thisform[i].name == "FORM024_EMP2.DEFAULT.SAL.01")
thisform[i].value = empdets[val][1];
htp.p('</script>');
end; -
Populating description field in selection-screen
Hi Experts,
My WD report has a selection-screen with select-options and parameters built using IF_WD_SELECT_OPTIONS.
One of the select-options has a search help, but the value it returns is a guid, so I want to have a new read-only description field, populated with the description of the selected value, next to the input field for the guid.
How can I do this?
I tried adding a new read-only parameter field and populating it in WDDOMODIFYVIEW but I got a short dump when I tried to set the value, because the new field is not in the context of the component controller.
Many thanks, BenHi Ben,
You will have to define the new field in the context and then programatically bind the value of the description field to this attribute.
But ideally, you can have a structure, which the two fiels (guid & description), and define a search help which is mapped to the structure, then you do not need to do any programming, the description field should get populated automatically.
Hope this helps.
Regards
Wenonah -
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 -
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 -
Reading CSV file, populating text fields, saving each as image to folder
I need to generate a bunch of images by reading a CSV file of records, populating various text fields over an image and then saving each iteration as a new image in a folder. Is Illustrator the best solution to this problem? And if so can someone help me get started?
In my opinion...
While Illustrator is an awesome tool its scripting DOM is a little limited, you may have better luck using InDesign as it has a much broader DOM.
If it is just simple text manipulations and you only require an image (not a document) Photoshop may work well for this as well.
Both the InDesign and Photoshop scripting forums seem to have much more activity as well.
For PhotoShop you can also use the awesome resources @: http://www.ps-scripts.com/bb/
Regards,
Herr Mueller -
Table I_KOMP in PO Pricning Item User Exit is not populating CHARG field
Hi,
I have activated the user exit EXIT_SAPLMEKO_002 which is used for pricing.
But the while creating PO the structure I_KOMP is not getting populated with CHARG i.e BATCH field which I want to use for pricing calculations.
Is there any thing to do so that the CHARG field in I_KOMP strucure is populated
Please help me for the same
Regards
Sujit SawantHi,
I have activated the user exit EXIT_SAPLMEKO_002 which is used for pricing.
But the while creating PO the structure I_KOMP is not getting populated with CHARG i.e BATCH field which I want to use for pricing calculations.
Is there any thing to do so that the CHARG field in I_KOMP strucure is populated
Please help me for the same
Regards
Sujit Sawant -
Populating Empty Fields for Existing Internal Table Using For All Entries
I have an internal table called itab_extract that populates without any issues in SELECT A and SELECT B below. Trying to avoid looping, I am using select DB table 'for all entries' in itab_extract. I want the empty fields in itab_extract to populate from the values in the database. However, about 200,000 entries are being appended to the table, and, the values that existed for the already populated fields in itab_extract are gone, and the new fields are populated.
I've played with the syntax and cannot seem to get it to work. My next option is a time consuming loop.
How should the for all entries syntax look to accomplish filling the empty fields in the itab? Thank-You
*read ekko
select ebeln lifnr aedat bsart from ekko *SELECT A*
into CORRESPONDING FIELDS OF TABLE me->itab_extract
where aedat in r_aedat.
select ebeln lifnr aedat BSART from ekko *SELECT B*
appending CORRESPONDING FIELDS OF TABLE me->itab_extract
where aedat in S_DATE2 AND
BSART IN S_BSART.
select ebelp werks matnr *SELECT C*
into CORRESPONDING FIELDS OF TABLE itab_extract
from ekpo
FOR ALL ENTRIES IN itab_extract
where ebeln = itab_extract-ebeln.Hi Tom,
This SQL statement will be time consuming, Do not use a loop.
There are two options.
1. Select EKKO and EKPO details based on standard SAP view. (You can type EKKO in se11 view to find the correct view).
also use one range table populate r_aedat and s_date2 in the same. So you where condition will have r_newrange and
s_bsart. Also do not use into corresponding fields, it is not a good idea. It will increase your performance. Maintain the proper
sequence (Based on database structure of EKKO and EKPO)
2. If you are keen to use for all entries, then first select ekko then after your sy-subrc check get the data from EKPO.
Should be like this.
select ebeln bsart aedat lifnr from ekko into table gt_ekko where aedat in r_newrange and bsart in s_bsart.
if sy-subrc eq 0.
sort gt_ekko by ebeln ascending.
select ebeln ebelp werks matnr into table gt_ekpo for all entries in gt_ekko where ebeln eq gt_ekko-ebeln.
endif.
Hope it helps,
Best Regards,
Tapodipta Khan. -
Automatically populating Assignment Field from Customer Invoice Reference
Dear All
I have a situation. I want when a customer invoice is posted the invoice reference mentioned in the Reference field of the document Header should automatically be populated into assignment field
Can any one tell me how to get this situation condigured
BilalHi,
You can use substitution function. T.Code GGB2.
Create substitution under Financial Accounting> Line Item
Click Create Substitution : System will ask How would you like to substitute
field BSEG-ZUONR : Choose Field - Field Assignment : Choose the Field Assignment
Create Click Step : Prerequisities : Double Click ABAP System Fields > Double Click System Transaction Code > Click = > Click Constant tab > Give T.Code F-43 (for eg) save
Double Click Substitute Enter BKPF-DBBLG in the blank field and save.
Now Use T.Code : OBBH
Enter Company Code; Call Point 0002 Line Item fill substitution and activation level 1 save.
If you are an End User kindly advise your FICO Consultant to do that.
Best Regards,
Sadashivan
Edited by: Sadashivan Natarajan on Feb 12, 2009 3:17 PM
Edited by: Sadashivan Natarajan on Feb 12, 2009 3:19 PM
Maybe you are looking for
-
Problem While loading Master data from R/3
Hi All, When i am trying to load masters data from R/3 datasources to BW Info objects in Info provider menu data is coming to PSA but going to dta targets. the data is matching with the data in R/ 3 but Missing message: Request received Missing messa
-
How can I see the heading of a column, whilst at the bottom of a document?
I'm doing a long list of expenses, and the headings are at the top of columns. Now I've filled in many rows, I have to go up and down the page to see the heading make sure that I fill the correct column in. Is there a way of splitting a document acro
-
Hi, while using a n:1 or n:m Mapping inside a ccBPM I have the problem that messages are disappearing. For example I have 3 Messages (Abstract Interfaces) in the order A, B and C where A and C are mandatory and B is optional for the Interface Mapping
-
Moderator message: please use a more meaningful subject in future Hi All. I have requierment to code the function rountine to satisfy the condition of pricing. YVRD is a scale based group condition, so while calculating VRD system is considering the
-
Can Visual Composer talk to/connect to any database?..
Hi , My first question is if Visual Composer can talk to a database directly? I would like to know the all the databases which visual composer can connect to? Does it connect only to SAP Backend systems? Or can it connect to Any Database like SQL ser