It's mandatory to Create Char and Values in COPA
Hello Expert.
Can any one answer to the question to create Char and values in copa
Hi,
Based on your required, we may try the following workarounds:
1. Create the sub-reports
Build a report based on the one query/table. Try to keep it simple, just some nice looking rows of data. Ok, save this report.
Build a report based on each additional query/table you have. So, you wind up with
multiple reports.
Create a new blank report, and drag + drop each of those reports into the detail section one after another. The result is all 7 reports will appear as one report.
2. Build a nice large form with multiple large text box or however many different sets of text/comments you want in the reports.
For more detail information, please refer to the following link:
http://answers.microsoft.com/en-us/office/forum/office_2010-access/access-combining-several-query-results-into-1/d2500c81-9bb0-4c6e-a33f-024bf1e2a5f2
Regards,
George Zhao
TechNet Community Support
Similar Messages
-
Is mandatory to create SAPSLDAPI and LCRSAPRFC in R/3 system??
Hi XI gurus...
please tell me .. is mandatory to create tcp/ip connections SAPSLDAPI and LCRSAPRFC in R/3 side ??
thank you
regards
RamHi ,
Check this link........
http://help.sap.com/saphelp_erp2005vp/helpdata/en/0b/8512417301ee6fe10000000a1550b0/frameset.htm
Sekhar -
Create characteristic and value field in kea0
Hi there,
I am writing a doc about above mentioned subject and wondering if somebody can inform me, if there are certain standard points I have to considerate like, for e.g. regenerate the system?
Thanks,
K.Hi Kristina,
Creation of COPA data structure must be defined very carefully. Please note that adding value fields and CHARs are very easy in COPA but removing them is just near to impossible. Also you must remember that there is a limit of Max 120 value fields and 50 Characteristics in standard SAP. You can check note 160892 in case you want to increase the limit. The other thing you should take into account is it should be possible to regenerate the operating concern in KEA0 before and after the changes to the data structure. COPA will not generate any transport request for these changes automatically so you need to transport them viw transaction KE3I. In case you have added a new Characteristics and you want to update the historical data as well you should take help of reallignment (KEND). For value fields you need to repost the documents through KE4S, KE4ST, KE4SFI and KE4SMM.
I have tried to give some details if you need more information please let me know.
Regards,
Abhisek -
How can I make settlement rule mandatory in create work order (IW31)
How can I make settlement rule mandatory in create workorder and saving without release.
I kanow we can make settlement rule mandatory upon Release order but here requirement is
Create work order (IW21) save without releasing that time settlement rule should default.Hi,
1.If you want the settlement rule default then maintain account assignment data in technical object and when MO is created on that it would be copied into the settlement rule...
2. If you want to make those fields mandatory .... plz check up field selections in config , if you cannot find those then use SHD0 Transaction variant to make those fields mandatory.
3. Enter SHD0 , Enter IW31 in transaction and ZIW31 for transaction variant ..click create option and this takes you to IW31 initial screen , here enter required values of technical object etc and press enter and this gives you IW31 Initial scree screen variant , click continue and this takes you to inside screen and here enter required field values and on pressing enter gives you screen variant .. so you need to enter field values and check the flow of screen variants and on getting settlement rule screen variant select required option for the fields you need.
4. Finally you can save that in package created in SE80 for transporting to other client .., you can activate the variant in SHD0 -->Standard variants -->you can find activate option ..
regrds
pushpa -
Mandatory fields to create vendor and PO
Hi all,
I am migrating data from legacy system to ECC and to SRM. I found mandatory fields in ECC and I am not sure what are the mandatory fields for SRM. I need for Vendor creation(Foreign vendors also) and open PO. Please reply.
Regards,
BalajiHi
<b>Use the function module BBP_VENDOR_GET_NON_BAPI to create a vendor directly in SRM.</b>
<u>Function module - BBP_VENDOR_GET_NON_BAPI</u>
<u>Program</u> - <b>BBP_VENDOR_GET_DATA</b>
<u>BAPI</u> - <b>META_BUSINESS_PARTNER_CREATE</b>
<u>Also look at Function module - BBP_UPDATE_ATTRIBUTES.</u>
<b><u>Did you created any PO using that "bapi_poec_create"..? Don't forgot to add a commit work in your program.</u></b>
You will have to develop your own XML mapping to create a PO in SRM.
You can use BAPI_POEC_CREATE (read SE37 documentation about GUIDs).
This one also uses internal functions BBP_PD_PO_CREATE, UPDATE & SAVE.
You don't have to take care of GUIDs. This function will generate them for you. You can pass the PO number as PO header GUID, and PO items as PO item GUIDs. This will make the links as well.
<u>Please go through this as well -></u>
Re: Upload PO from XML file in SRM
Creating a PO with ME_CREATE_PO_ITEM
Re: Function Module/BAPI to create vendors in PPOMV_BBP
Re: BBP_PD_PO_CREATE
Create PO
<u>Hope this will definitely help. Do let me know.</u>
Regards
- Atul -
Problem with editable combo box and creating dynamic table values using js
Hai
I have used jquery.jec.js to make my dropdown list as editable... I need to create dynamic table values on the onChange event of dropdown using javascript.
Now am facing the problem in it...
I am getting duplicate rows in the table... think(assumption) this jquery.jec.js is calling the dropdown again creating duplicate values...
Please help me out.... Any help is appreciable... Thanks in advanceThanks elOpalo, for your valuable response....
I have found the correct way of doing.
Before i had my code like this,
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>test</title>
<script type="text/javascript" src="js/jquery-latest.js"></script>
<script type="text/javascript" src="js/jquery.jec.js"></script>
<script type="text/javascript">
$(function(){
$('#list').jec();
function giveAlert(){
alert('hello');
</script>
</head>
<body>
<form>
Combo Box:
<select id="list" name="list" onChange="giveAlert();">
<option value="1">one</option>
<option value="2">two</option>
</select>
</form>
</body>
</html>
Now i have changed as the following,
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>test</title>
<script type="text/javascript" src="js/jquery-latest.js"></script>
<script type="text/javascript" src="js/jquery.jec.js"></script>
<script type="text/javascript">
$(function(){
$('select.combo').jec();
$('select.combo')
.change(function() {
alert($(this).val());
}).change();
</script>
</head>
<body>
<form>
<table>
<tr>
<td>Combo Box:</td>
<td><select class="combo"><option value="b">banana</option><option value="a">apple</option></select></td>
</tr>
</table>
</form>
</body>
</html>
The problem is with the function i have called on the onChange Event.. Now i have defined it inside the jquery function of dropdown to make it as editable... -
How to make the fields of the table mandatory while creating new entries..?
Hi,
I have created a new Z table which has 6 fields. All the 6 fields are KEY fields and all are of CHAR type. I have generated the table maintenance generator for the same. My requirement is all the fields should be MANDATORY while creating the entries. No field should be BLANK.
When creating the new entries in the table, even if I don't give any values to some of the fields, it is saving the entry. But, it shouldn't happen like that. If any of the field is kept blank, it should not allow the user to save the entry. Can someone tell me how to approach this. Will there be any settings while creating the table which takes care of this.
I read somewhere that this can be done using the Table EVENTS. Can someone tell me what is the code that we should write there in the Events which prevents the user from saving the blank fields. While writing the logic in the events, how to check whether the particular field is BLANK or not. Will the values be stored in any internal table kind of thing..?
My table name is ZCRF_TAB and the fields are FLD!, FLD2, FLD3, FLD4, FLD5 & FLD6. Can someone provide me sample code for my requirement. Thanks in advance.
Best regards,
Paddu.Hi,I think u have generated Table Maintainance Generator, goto Environment->Modifications->Events
Select appropriate option by using F4,I think value 05 is appropriate for u r requirement.Enter From routine name.Dbl click on the routine.
Write the appropriate code like:
If ZTABLE-FIELD1 is initial.
Message (E000) with "Fill all the manadatory fields".
Thats it.Just look at the following docu with screenshots,by this understand how u can use Table Events:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc
Regards,
Rock. -
Difference between char and varchar, also the difference between varchar2
Hi,
Can anyone explain me the difference between char and varchar, and also the difference between varchar and varchar2...Varchar2 is variable width character data type, so if you define column with width 20 and insert only one character to tis column only, one character will be stored in database. Char is not variable width so when you define column with width 20 and insert one character to this column it will be right padded with 19 spaces to desired length, so you will store 20 characters in the dattabase (follow the example 1). Varchar data type from Oracle 9i is automaticlly promoted to varchar2 (follow example 2)
Example 1:
SQL> create table tchar(text1 char(10), text2 varchar2(10))
2 /
Table created.
SQL> insert into tchar values('krystian','krystian')
2 /
1 row created.
SQL> select text1, length(text1), text2, length(text2)
2 from tchar
3 /
TEXT1 LENGTH(TEXT1) TEXT2 LENGTH(TEXT2)
krystian 10 krystian 8
Example 2:
create table tvarchar(text varchar(10))
SQL> select table_name,column_name,data_type
2 from user_tab_columns
3 where table_name = 'TVARCHAR'
4 /
TABLE_NAME COLUMN_NAME DATA_TYPE
TVARCHAR TEXT VARCHAR2
Best Regards
Krystian Zieja / mob -
What is the key column name and value column name in JDBC Adapter parameter
Hi
Can any one please tell me what is the Key Column Name and Key Column Value in JDBC adatper parameters. If i dont mention those parameters i am getting the following error
<b> Value missing for mandatory configuration attribute tableEOColumnNameId</b>
Please help me
Best Regards
Ravi Shankar BHi
I am doing DataBase Lookup in XI
First i have created a Table in Database( CheckUser) which has two fields UserName and PhoneNumber and then i have created
I have created one Communication Channel For Reciever Adapter .
I have given the parameters like this
JDBC Driver : com.microsoft.jdbc.sqlserver.SQLServerDriver
Connection : jdbc:microsoft:sqlserver://10.7.1.43:1433;DatabaseName=Ravi;
UserName.... sa
password.... sa
persistence : Database
Database Table Name : CheckUser
Key column name and Value column name i left blank and activated
and then
I have created
Data Types : Source ...... UserName
Destination.... PhoneNumber
Message Types
Message Interfaces
In Message Mapping
I have created one User Defined function DBProcessing_SpecialAPI().This method will get the data from the database....
In this function i have written the following code
//write your code here
String query = " ";
Channel channel = null;
DataBaseAccessor accessor = null;
DataBaseResult resultSet = null;
query = "select Password from CheckUser where UserName = ' " +UserName[0]+ " ' ";
try {
channel = LookupService.getChannel("Ravi","CC_JDBC");
accessor = LookupService.getDataBaseAccessor(channel);
resultSet = accessor.execute(query);
for(Iterator rows = resultSet.getRows();rows.hasNext();){
Map rowMap = (Map)rows.next();
result.addValue((String)rowMap.get("Password"));
catch(Exception e){
result.addValue(e.getMessage());
finally{
try{
if(accessor != null)
accessor.close();
}catch(Exception e){
result.addValue(e.getMessage());
And the i have mapped like this
UserName -
> DBProcessing_SpecialAPI----
>PhoneNumber
when i am testing this mapping i am getting the following error
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Dest_JDBC_MT xmlns:ns0="http://filetofilescenario.com/ilg"><phoneNumber>Plain exception:Problem when calling an adapter by using communication channel CC_JDBC (Party: , Service: Ravi, Object ID: c360bc139a403293afbc49d5c46e4478) Check whether the communication channel exists in the Integration Directory; also check the cache notifications for the instance Integration Server (central Adapter-Engine) Channel object with Id Channel:c360bc139a403293afbc49d5c46e4478 not available in CPA Cache.
com.sap.aii.mapping.lookup.LookupException: Problem when calling an adapter by using communication channel CC_JDBC (Party: , Service: Ravi, Object ID: c360bc139a403293afbc49d5c46e4478) Check whether the communication channel exists in the Integration Directory; also check the cache notifications for the instance Integration Server (central Adapter-Engine) Channel object with Id Channel:c360bc139a403293afbc49d5c46e4478 not available in CPA Cache.
at com.sap.aii.ibrun.server.lookup.AdapterProxyLocal.<init>(AdapterProxyLocal.java:61)
at com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.getProxy(SystemAccessorInternal.java:98)
at com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.<init>(SystemAccessorInternal.java:38)
at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.getConnection(SystemAccessorHmiServer.java:270)
at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.process(SystemAccessorHmiServer.java:70)
at com.sap.aii.utilxi.hmis.server.HmisServiceImpl.invokeMethod(HmisServiceImpl.java:169)
at com.sap.aii.utilxi.hmis.server.HmisServer.process(HmisServer.java:178)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:296)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:211)
at com.sap.aii.utilxi.hmis.web.workers.HmisInternalClient.doWork(HmisInternalClient.java:70)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doWork(HmisServletImpl.java:496)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doPost(HmisServletImpl.java:634)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
</phoneNumber></ns0:Dest_JDBC_MT>
In RWB i have checked the status of JDBC driver its showing the following error
<b>Value missing for mandatory configuration attribute tableEOColumnNameId</b>
Best Regards
Ravi Shankar B
Message was edited by:
RaviShankar B -
Help (Chars and returns)
I need some help in 2 questions, thanks for your posts!
1. Can I join 2 or more chars in a string?
2. Can I return a array, like this?
double[ ][ ] returnarray(){
return darray[ ][ ];
}When I try it gives-me this error:
DynamicArray.java [44:1] '.class' expected
return darray[ ][ ] ;
^
Thanks for your posts!I�ve donne this subroutine, that is supose to return a array after creating it ( and with values inside it )
public class DynamicArray{
private double[ ] [ ] darray;
void dcreate(int num1, int num2);
if(num1<1 || num2<1){
System.out.println("System internal error: program needs to close!");
System.exit(1);
darray = new double[num1] [num2];
void dadd(int num1, int num2, double toput){
if (create==false){
System.out.println("System internal error: program needs to close!");
System.exit(0);
if(darray.length -1>= num1 & darray[0].length-1 >= num2){
darray[num1][num2]=toput;
double[ ][ ] returnarray(){
return darray [ ] [ ] ;
}But it gives-me this error:
DynamicArray.java [43:1] '.class' expected
return darray[][] ;
^
1 error
Errors compiling DynamicArray.
Can you tell-me how to return the array? -
ADF create form : change value fields
Hi all,
I have a create form:
first problem
one field is an ID known by my backing bean
<af:form>
<af:panelFormLayout>
<af:inputText value="#{bindings.Mpr.inputValue}"
label="#{bindings.Mpr.hints.label}"
required="#{bindings.Mpr.hints.mandatory}"
columns="150"
maximumLength="#{bindings.Mpr.hints.precision}"
shortDesc="#{bindings.Mpr.hints.tooltip}"
clientComponent="true">
<f:validator binding="#{bindings.Mpr.validator}"/>
<af:convertNumber groupingUsed="false" pattern="#{bindings.Mpr.format}"/>
<af:clientListener method="getMpr" type="mouseOver"/>
<af:serverListener method="#{backing_main.remplirChampMprCreerNote}" type="seekMPR"/>
</af:inputText>I would like that when my page appears this value field *#{bindings.Mpr.inputValue}* be filled by this one *#{backing_bean.myID}* .
second problem
I have 3 richTextEditor who provide auto-completion (If you type ADF and then *<ctrl+space>*, ADF would be replaced by Application Developpement Framework thanks to a bean)
It works outside a create form . Inside a create form the problem is when calling my bean I have a validator alert who say "you must enter a value" and my Component's value is reseted..
Does someone knows these problems ?
Thanks,
valéry.Hello simply,
I have an af:form generated by a viewObject's drag and drop, the automatically generated code use bindings, I just replace 3 af:inputText by 3 af:richTextEditors and I add the listeners for <ctrl+space> event.
here is the JSF page :
<f:view>
<af:document title="une note au dossier médical">
<af:messages/>
<f:verbatim>
<![CDATA[
<script language="javascript" type="text/javascript">
var comp;
var target;
var prevKey;
var curKey=0;
function wysiwygKeyPress(event) {
prevKey = curKey;
curKey = event.keyCode;
var wysiwygValue="";
if(prevKey==17 && curKey==32) // CTRL + espace
var richTextEditor = comp; //wysiwygmode
if (target.contentWindow.document.attachEvent){ //IE specific
if(target.contentWindow.document.body.firstChild.innerHTML)
wysiwygValue = target.contentWindow.document.body.firstChild.innerHTML;
else
wysiwygValue = target.contentWindow.document.body.innerHTML;
else { //FF specific
wysiwygValue = target.contentDocument.body.firstChild.textContent;
AdfCustomEvent.queue(comp, "customEvent",{value1:wysiwygValue}, true);
function rteMouseOver(event) {
comp = event.getSource(); //helper function
target = event._target;
//IE could not find the event._target
var clientId = comp.getClientId() + "::cont";
var iframe = document.getElementById(clientId);
if (iframe.contentWindow.document.attachEvent) { //IE
target = iframe;
//IE uses attachEvent
iframe.contentWindow.document.attachEvent('onkeydown', function() { wysiwygKeyPress(iframe.contentWindow.event); });
else {
//FF uses addEventListener
iframe.contentWindow.addEventListener('keydown',wysiwygKeyPress, true);
</script>
]]>
</f:verbatim>
<af:form>
<af:panelFormLayout>
<af:inputText value="#{bindings.Mpr.inputValue}"
label="#{bindings.Mpr.hints.label}"
required="#{bindings.Mpr.hints.mandatory}"
columns="150"
maximumLength="#{bindings.Mpr.hints.precision}"
shortDesc="#{bindings.Mpr.hints.tooltip}"
clientComponent="true"
>
<f:validator binding="#{bindings.Mpr.validator}"/>
<af:convertNumber groupingUsed="false" pattern="#{bindings.Mpr.format}"/>
</af:inputText>
<af:inputText value="#{bindings.Commentaire.inputValue}"
label="#{bindings.Commentaire.hints.label}"
required="#{bindings.Commentaire.hints.mandatory}"
columns="150"
maximumLength="#{bindings.Commentaire.hints.precision}"
shortDesc="#{bindings.Commentaire.hints.tooltip}"
>
<f:validator binding="#{bindings.Commentaire.validator}"/>
</af:inputText>
<af:spacer width="19" height="17"/>
<af:richTextEditor value="#{bindings.Observation.inputValue}"
label="#{bindings.Observation.hints.label}"
required="#{bindings.Observation.hints.mandatory}"
columns="150"
shortDesc="#{bindings.Observation.hints.tooltip}"
clientComponent="true">
<af:clientListener type="mouseOver" method="rteMouseOver"/>
<af:serverListener type="customEvent" method="#{backing_main.ctrlSpaceHandler}"/>
</af:richTextEditor>
<af:spacer width="15" height="22"/>
<af:richTextEditor value="#{bindings.Traitement.inputValue}"
label="#{bindings.Traitement.hints.label}"
required="#{bindings.Traitement.hints.mandatory}"
columns="150"
shortDesc="#{bindings.Traitement.hints.tooltip}"
clientComponent="true">
<af:clientListener type="mouseOver" method="rteMouseOver"/>
<af:serverListener type="customEvent" method="#{backing_main.ctrlSpaceHandler}"/>
</af:richTextEditor>
<af:spacer width="17" height="18"/>
<af:richTextEditor value="#{bindings.Conclusion.inputValue}"
label="#{bindings.Conclusion.hints.label}"
required="#{bindings.Conclusion.hints.mandatory}"
columns="150"
shortDesc="#{bindings.Conclusion.hints.tooltip}"
clientComponent="true">
<af:clientListener type="mouseOver" method="rteMouseOver"/>
<af:serverListener type="customEvent" method="#{backing_main.ctrlSpaceHandler}"/>
</af:richTextEditor>
</af:panelFormLayout>
<af:commandButton text="Sauvegarder la note"
action="#{backing_main.creerNote}"/>
</af:form>
</af:document>
</f:view>A pageDef file is automatically created :
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
version="11.1.1.52.5" id="ajoutNote3PageDef"
Package="viewcontroller.pageDefs">
<parameters/>
<executables>
<iterator Binds="TmpnoteView1" RangeSize="25"
DataControl="AppModuleDataControl" id="TmpnoteView1Iterator"/>
<invokeAction Binds="Create" id="invokeCreate" Refresh="prepareModel"
RefreshCondition="${!adfFacesContext.postback and empty bindings.exceptionsList}"/>
</executables>
<bindings>
<attributeValues IterBinding="TmpnoteView1Iterator" id="Mpr">
<AttrNames>
<Item Value="Mpr"/>
</AttrNames>
</attributeValues>
<attributeValues IterBinding="TmpnoteView1Iterator" id="Observation">
<AttrNames>
<Item Value="Observation"/>
</AttrNames>
</attributeValues>
<attributeValues IterBinding="TmpnoteView1Iterator" id="Traitement">
<AttrNames>
<Item Value="Traitement"/>
</AttrNames>
</attributeValues>
<attributeValues IterBinding="TmpnoteView1Iterator" id="Conclusion">
<AttrNames>
<Item Value="Conclusion"/>
</AttrNames>
</attributeValues>
<attributeValues IterBinding="TmpnoteView1Iterator" id="Commentaire">
<AttrNames>
<Item Value="Commentaire"/>
</AttrNames>
</attributeValues>
<action IterBinding="TmpnoteView1Iterator" id="Create"
RequiresUpdateModel="true" Action="createRow"/>
<action id="Commit" RequiresUpdateModel="true" Action="commitTransaction"
DataControl="AppModuleDataControl"/>
</bindings>
</pageDefinition>I add to this form a create button and a commit button, you could see it in the pageDef :
<action IterBinding="TmpnoteView1Iterator" id="Create"
RequiresUpdateModel="true" Action="createRow"/>
<action id="Commit" RequiresUpdateModel="true" Action="commitTransaction"
DataControl="AppModuleDataControl"/>I call these actions in the bean creerNote called by my submit buton:
public String creerNote() throws IOException {
// --- modify fields to remove some html tags --- //
// --- 1. get EL context --- //
FacesContext facesContext = FacesContext.getCurrentInstance();
Application app = facesContext.getApplication();
ExpressionFactory elFactory = app.getExpressionFactory();
ELContext elContext = facesContext.getELContext();
// --- 2. get ExpressionValues --- //
ValueExpression valueExpObserv = elFactory.createValueExpression(elContext, "#{bindings.Observation.inputValue}", String.class);
ValueExpression valueExpConcl = elFactory.createValueExpression(elContext, "#{bindings.Traitement.inputValue}", String.class);
ValueExpression valueExpTrait = elFactory.createValueExpression(elContext, "#{bindings.Conclusion.inputValue}", String.class);
// --- 3. get String values --- //
String texteObserv = (String)valueExpObserv.getValue(elContext);
String texteConcl = (String)valueExpConcl.getValue(elContext);
String texteTrait = (String)valueExpTrait.getValue(elContext);
// --- 4. remove some html tags --- //
texteObserv = texteObserv.replaceAll("<p>","");
texteObserv = texteObserv.replaceAll("</p>","");
System.out.println("[Main.java] CreerNote > observations après traitement : "+texteObserv);
texteConcl = texteConcl.replaceAll("<p>","");
texteConcl = texteConcl.replaceAll("</p>","");
System.out.println("[Main.java] CreerNote > conclusions après traitement : "+texteConcl);
texteTrait = texteTrait.replaceAll("<p>","");
texteTrait = texteTrait.replaceAll("</p>","");
System.out.println("[Main.java] CreerNote > traitements après traitement : "+texteTrait);
// --- set new values --- //
valueExpObserv.setValue(elContext, texteObserv);
valueExpConcl.setValue(elContext, texteConcl);
valueExpTrait.setValue(elContext, texteTrait);
// --- set mpr field --- //
ValueExpression valueExpMPR = elFactory.createValueExpression(elContext, "#{bindings.Mpr.inputValue}", String.class);
valueExpMPR.setValue(elContext, getMprSelected());
// --- call the create pageDef's action --- //
bindings = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("Create");
operationBinding.execute();
// --- call the commit pageDef's action --- //
bindings = getBindings();
operationBinding = bindings.getOperationBinding("Commit");
operationBinding.execute();
return "Abrev";
}As you know, If I type <ctrl+space> I call the method ctrlspaceHandler who change the value of the component.
public void ctrlSpaceHandler(ClientEvent clientEvent) {
// --- get applicationModule --- //
if(am==null)
setAm();
// --- get myViewObject --- //
ViewObjectImpl mesAbrev = am.getThesaurusVO1();
ViewCriteria vc = mesAbrev.createViewCriteria();
ViewCriteriaRow vcRow = vc.createViewCriteriaRow();
// --- get richTextEditor's last word without html tags--- //
RichTextEditor rte = (RichTextEditor) clientEvent.getComponent();
String texte = (String)clientEvent.getParameters().get("value1");
System.out.println("[Main.java] ctrlSpaceHandler > valeur du rte via rte.getParameter: "+texte);
int indiceDernierMot = texte.lastIndexOf(" ");
indiceDernierMot++;
String abr = texte.substring(indiceDernierMot).toUpperCase();
abr = abr.replaceAll("<BR/>",""); abr = abr.replaceAll("<br>","");
abr = abr.replaceAll("</P>",""); abr = abr.replaceAll("</p>","");
abr = abr.replaceAll("</FONT>",""); abr = abr.replaceAll("</font>","");
abr = abr.replaceAll("</SPAN>",""); abr = abr.replaceAll("</span>","");
System.out.println("[Main.java] ctrlSpaceHandler > abréviation recherchée : "+abr);
// --- add a criteria to my viewObject --- //
vcRow.setAttribute("Msgcourt", "like '"+abr+"'");
vc.addElement(vcRow);
mesAbrev.applyViewCriteria(vc);
// --- seek the abbreviation --- //
mesAbrev.executeQuery();
// --- get row found --- //
Row row = null;
while(mesAbrev.hasNext())
row = mesAbrev.next();
System.out.println("[Main.java] ctrlSpaceHandler > ligne trouvée : "
+row.getAttribute("Spr") +" - "
+row.getAttribute("Msgcourt")+" - "
+row.getAttribute("Msglong"));
// --- if found --- //
if(row!=null)
// --- get abbreviation's detail --- //
String detail = (String)row.getAttribute("Msglong");
System.out.println("[Main.java] ctrlSpaceHandler > message long = "+detail);
// --- replace abbreviation by detail in the text and update graphical component --- //
texte = texte.replaceAll(abr.toLowerCase(), detail);
texte = texte.replaceAll(abr.toUpperCase(), detail);
rte.setValue(texte);
RequestContext.getCurrentInstance().addPartialTarget(rte);
}When debug I see all my method bean works fine.
But as result on the form I have a message who say "first enter value", I can bypass this problem if I remove all richTextEditor's required attributes. Biggest problem is that my richText component is cleared after ctrl+space... My test with a richTextEditor bind to a bean was OK, the only difference here is my richTextComponents uses bindings with pageDef.
Thank you,
Valéry -
Hi friends,
how can we define virtual charecterstics and Virtual keyfigures.. in the info object creation screen there is no option to define that object as a Virtual.. then how can we define that object as virtual..
and in what situation we can declare as virtual... can you plz give me a brief explination abt this... plz dont suggest any links... i did't got any conclusion by seeing those links..
help ful answers will be highly appriciated...
regards
Babuhi babu..
virtual key figures are key figures within an InfoProvider that are not filled with data. Instead the key figure value is determined at runtime of the query using custom ABAP coding .(or)
Virtual characteristics and Key figures are useful if you want to dynamically pouplate data from the fact table to the field which doesn't have any data in the fact table and also used to build an internal security model before the data gets passed to DATA_PROVIDER.
Virtual Characteristics and Virtual key figures are not part of data targets.
By Virtual Characteristics and Virtual key figures Query performance is going to impact.because these are not part of the data targets.
Ex: you have keyfigures profit,sales
You are going to create a Virtual key figures say COST = sales - profit.
so these cost is a Virtual key figures which is not part of a data target.
when you execute particular query your OLAP processor is going to pick the data by caluclating the COST.& it impacts the query performance.
You can get more information if you review the documentation for enhancement RSR00002.Go to SMOD type in RSR00002 and select the documentation radiobutton..
/people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
/people/sanyam.kapur/blog/2005/04/30/custom-fields-and-bw-extractors-making-a-mixed-marriage-work-part-ii
Also check these threads tooo.
Virtual Characteristics and Virtual keyfigures
Virtual chars and key figures
sampel code for virtual key figures
Virtual Key Figure
Virtual Key Figure
Virtual key figure
Code for Virtual keyfigure
virtual key figures
See this:
https://forums.sdn.sap.com/click.jspa?searchID=3080291&messageID=3366412
https://forums.sdn.sap.com/click.jspa?searchID=3080291&messageID=3371606
and
https://forums.sdn.sap.com/click.jspa?searchID=3080292&messageID=3309795
In SAP BW, values of key figures and characteristics do not necessarily have to be stored permanently in an InfoCube or in a master data attribute table. Virtual key figures and virtual characteristics allow the dynamic computation or derivation of values for key figures and characteristics at query execution time.
Examples 4 Virtual Characteristics
Dynamic categorization of key figure values such as age groups and price ranges, where the basis for calculating the categorical values is variable (as for the age).
2.Computation of complex compound values, combining information read from the InfoCube
with current information retrieved from other sources (e.g., master data attributes).
Virtual key figures can be used to perform complex computations on the fly that are
beyond the scope of the formulas available in the BEx Query Designer.
Examples include
1.Dynamic computation of the current age of a customer based on the current date and the birth date of the customer or the number of days on back order.
Both virtual key figures and virtual characteristics are rarely used, as they impact query performance and the degree of flexibility in defining aggregates significantly.
hope this helps.. -
Transport Request Creation while creating Characteristics and Classes.
Hi
While do a Release Strategy i am creating Characteristics and Classes.
While saving Characteristics and Classes, i am not getting any Transport Request Creation.
Is there any problem with my configuration or the Standard SAP does not give me.
I want to track all the things i am doing.
Reply me ASAP
cheers
MaruthiRam
Edited by: MARUTHI RAM on Jul 17, 2008 9:43 PM
Edited by: MARUTHI RAM on Jul 17, 2008 9:44 PMCharacteristics and class are master data so system will not ask for transport.
if you want to migrate to another system than you have to create the LSMW (upload program)
using this you can upload all the char value into release strategy in wach client
now if you are migrating the whole client than system will copy the class and char along with release strategy but not value.
to upload the char value of release strategy
use LSMW with std object 0130. -
Effects of making PR mandatory while creating PO?
Hi,
What will be the effect of making PR mandatory while creating PO?Dear Ujjwal
Go to SPRO-Material Managamant-Purchasing--Authorization Managmant-2) Define Functional Auth for buyers---Function Authorizations: Purchase Order Create New function Authority(02- PO With Ref to PR) Mark Ref to Purchase Req.As per require condition.
Then Go to SU01 pass your SAP ID then goto select parameter and pass Parameter ID as EFB ,Parameter Value 02(as per your confi, and save.) -
is it possible to have a prompt having label and value
for example,
there are 3 choices in the prompt
the displays (choice name) are Hundred, Thousand, Million
the choices' values are 100 ,1000 ,1000000
then we can set a presentation variable on the value (not the name)
thanksOK. There are two parts...
STEP ONE: Build the prompt
1) Use any CHAR column from your dimension. In the fx, enter CASE WHEN 1=0 THEN tablename.columnname ELSE 'test' END.
2) In the "Show" window enter CASE WHEN 1=0 THEN tablename.columnname ELSE 'HUNDRED' END UNION CASE WHEN 1=0 THEN tablename.columnname ELSE 'THOUSAND' END UNION WHEN 1=0 THEN tablename.columnname ELSE 'MILLION' END
3) Set this prompt to a PV called pvTENS or whatever you want.
STEP TWO: Configure your report
1) Move another instance of the the column that contains the values 100, 1000, and 1000000 to your workspace and create a BINS. You can hide this column.
2) In the filter, when the value is 100, call it HUNDRED, when it is 1000, call it THOUSAND and when it is 1000000, call it MILLION.
3) Now do a filter on this column. Convert the filter to SQL and set the column equal to the PV.
There you go.
Mark as correct and close out this thread. Thanks.
P.S. I see that now some threads are marked answered. Good. What I didn't notice is that you didn't indicate whether anyone helped you find that answer or even provided the answer for you. Don't just mark the thread answered; if it is answered, let us know what helped you and how you solved your problem. This way others may benefit as well. And show your appreciation by awarding points to those that helped you. You can do this by clicking in the upper right of the post that helped or was "correct." It is part of the ettiquette of using this forum. Later on as you become more proficient, come back here periodically and see if you can GIVE some advice to someone whom you can help.
Edited by: David_T on Jul 27, 2009 10:48 AM
Maybe you are looking for
-
23" HD Cinema Etch-A-Sketch Symptoms
My 23" HD Cinema Monitor looks like an etch-a-sketch with whispy gray strands all over the screen (another analogy might be that the marks make the screen look like there's a bunch of faint sand dunes all over the screen). This is most noticeable wit
-
Any way to create an iTunes account without credit card or Paypal account?
Any way to create an iTunes account without credit card or Paypal account? I've been given a couple of free downloads, but can't seem to redeem them without giving out a credit card number to register. Since I don't have access to a credit card or Pa
-
Problem With Photoshop Ablum in more detail
All I want to do is add photos(pictures of the ablums), so when I play a song I can see what ablum it is from. And where to get the picture from.
-
Hi, I did an update of the java stack including the patches of the solman diagnostics tools. But I didn't set the SMD to "maintenance mode" during the patch activities. Since then the scheduler ist not working anymore. The requests stay in the status
-
Capture setup using first_scn parameter
Hello I am trying to setup capture and having issues when doing a 'point in time' streams capture setup. I started my target from a hot backup of the source and then I setup the capture process to start from the SCN when the back was taken. When I pa