How to handle & or when part of an attribute value
In my xml file, i have &(ampersand) or > as part of the attribute value.As a result i get SAXParserExeption. Is there a way to handle this error other than writing & as & in the xml file.
<p>
Thanks.
Dear DrClap,
Thanks for the solution, but i have been using it already. I would like some other alternative. Is there some kind of Handler to deal with such issues or do we write some code to handle it..If so, could someone please help me out with this..
Thanks.
Similar Messages
-
How to handle vendor discounts based on the qty / value procured.
Hello
How to handle vendor discounts based on the qty / value procured.
a. Scenario: you have entered into a contract with vendor that you will buy goods worth Rs 10000/- and if you buy goods worth more than 100000 the vendor says he will give a discount of Rs 5000/- @ the end of the year.
i) How to handle this sceneriou2019s with SAu2019s
ii) What does STD SAP offer.
Regards
Sapman manHi,
For the discucount condition type, you have to maintain scales.
Take Condition type - Discount Value ( RB00)
Discount Value ( RB00) - Means Fixed discount. For this condition type, you have to maintain Scale basis as Value scale 'B' in the condition type customization.
Transcation : M/06
Select your condition type RB00 and click on the details icon.
In the Scales block, you have to maintain and save.Calculation type = Fixed amount
Scale basis = Value scale 'B'
For this condition type, you have to maintain scales in the inforecord.
Transcation : ME12
Select this condition type, click on the Scales icon. There you have to maintain like
From : 10,0000 Rate: 5000.
It means, if the document value is reached 10,0000 then discount is 5000rs. If the value islessthen the 10,0000 then no discount.
Regards
KRK -
How to handle Forecasting when modeling in BW?
Hello Experts,
can you give me hints on how to handle forecasting during modeling?
Do you create a whole new Cube to load actual fugures and another for the forecasted figures? Or, there is another way. This pertains to HR environment. Any samples any where to read on?
Thanks.Hi,
I am new to BPS. Trying to implement forecasting. Can u let me know how i should implement the forecast planning function when using a single cube scenario.
can u give me a small example to make it clearer or point me to an example link where they actually tell you how to implement the function.
I am having a lot of difficulty expressing the exact issue, but i'll still try explaining. How can i in the forecasting function use several data columns in the layout as reference data columns and copy the result of the forecast to new data columns in the same layout. I have defined each data column as a key figure in the cube.
I am really having a lot of problem. If u have some contact number please let me know so that i can call you from my office now.
Regards,
Really Desparate for Help.
Regards,
Salman -
How to handle event when the user closing the browser (Urgent Please)
Hi,
How to handle the event when user closes the browser....
i want to display some alter message when user trying to close the browser...
Please can any one help me how i have to do this...........
Thanks.Finally got this working. You cannot use the stop() or destroy methods. By the time they are called all database connections are gone and you will get a null pointer exception.
You will have to use the onBeforeUnload method in the html file that calls the applet and use JavaScript to call the save method in java which saves the document:
<SCRIPT LANGUAGE="JScript" TYPE="text/javascript">
function Save()
//i call the applets doSave() method from here in which i save all
//changes to the database
top.Tree.document.TestApplet.doSave();
//this will invoke the default IE message for closing the window
//when user clicks on the x in the browser
message = "Your document has been saved."
return message;
window.onbeforeunload=Save;
</SCRIPT>
//the applets doSave()
public void doSave()
//this frame provides user with the message that document is being
//saved
final JFrame frame = new JFrame("Saving");
JPanel contentPane = new JPanel();
JLabel label = new JLabel(" Please wait, saving document...");
frame.getContentPane().add(label,BorderLayout.CENTER);
frame.setSize(250, 100);
frame.setLocation(300, 400);
frame.setResizable(false);
frame.setVisible(true);
frame.addWindowListener(new WindowAdapter()
//the frame is just for user's information, so prevent user from
//closing it or iconifying it.
public void windowClosing(WindowEvent e)
frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
public void windowIconified(WindowEvent e)
frame.setState(frame.NORMAL);
//call my saveDocument() method that saves everything to the database.
editorModule.saveDocument();
//System.out.println("finished calling saving document");
//once the saving is done the frame with the message disappears
frame.setVisible(false);
//System.out.println("setting frame to false");
//I also had an exit button in my applet, that would perform the same task, however now with the above onBeforeUnload method, the exit message would appear twice, so had to modify my exit button action performed, so that if the exitbutton was clicked the onbeforeunload method would get passed a null value and not do anything.
private void exitButton_actionPerformed()
if (DEBUG) System.out.println("Calling exit");
doSave();
window.eval("this.onbeforeunload=null;");
window.eval("top.close();");
//continue from here if user cancels the closing of the window
window.eval("this.onbeforeunload=doSave;");
window.eval("top.focus()");
window.eval("document.TestApplet.requestFocus()");
homePanel.requestFocus();
} -
How to use SQL import to set the attribute value based on another?
Hello all,
I want to set an attribute of a dimension based on another attribute (if matches). Let's say I have a dimension PRODUCT. And I have defined two user defined attributes MANAGER and ISVISIBLE.
Now within a PERMIT_READ program I want to set the ISIVISIBLE to true where the MANAGER Value is selected from a table.
Something like
<define a cursor c1 to select all the Manager values>
sql import c1 into -
:MATCHSKIPERR PRODUCT_MANAGER then <PRODUCT_ISVISIBLE (PRODUCT MANAGER) = true>
<etc>
Obviously the above is not correct. But I am stuck as to how this can be done? Can some one on this forum please help me with correct syntax/ approach please?
Thanks a lot.
Pxsheth
This statement assigns true to the isvisible attribute for every gc_dim_bu dimension (selected as part of cursor c1).
SO FAR SO GOOD.. NOW -
If I want to change the above so that the attribute value gets assigned based on another attribute for the dimension (say a flag). i.e.
Set the isvisible to true where attribute flag has a certain value. How do I code this in OLAP DML?There are a number of ways to do this. If you want to use an attribute that has been defined within AWM as an attribute of Product then simply using the mapping tool to populate the attribute as part of the normal dimension load procedure.
Alternatively you could create an attribute at the DML level, and assuming you are not using surrogate keys, you can then define a cursor to read the relational table to populate your attribute. Something like this:
sql declare MKT_BASKET cursor for -
select PRODUCT_ID, PROD_MGR , PROD_VISIBLE -
from PRODUCT_DIM
if SQLCODE ne 0
then goto ERROR
sql open MY_CURSOR
sql fetch MY-CURSOR loop into :append PRODUCT, :PRODUCT_MANAGER, :PRODUCT_ISVISIBLE
sql close MY_CURSOR
sql cleanup
update
commit
If you want to create a complex PERMIT function using OLAP DML then personally I would create a formula and assign a program of type BOOLEAN and have the program return a YES or NO depending on the outcome of your test. Then your PERMIT_READ still references a dimension object. For example:
DEFINE PROD.ISVISIBLE BOOLEAN FORMULA <PRODUCT>
EQ PRG.ISVISIBLE(PRODUCT)
DEFINE PRG.ISVISBLE PROGRAM BOOLEAN
The program will then return Yes or No depending on the processing you need to do.
Hope this helps
Keith Laker
Data Warehouse Solution Architect
Oracle EMEA Consulting
BI Blog: http://oraclebi.blogspot.com/
DM Blog: http://oracledmt.blogspot.com/
BI on Oracle: http://www.oracle.com/bi/
BI on OTN: http://www.oracle.com/technology/products/bi/
BI Samples: http://www.oracle.com/technology/products/bi/samples/ -
How to handle transactions when two different databases are involved.
consider two tables namely Table-A and Table-B part of two different databases namely ORACLE and MYSQL.
Now the project requirement is updating the Table-A(ORACLE) and Table-B (MYSQL) as one transaction. i.e. either update both the tables or rollback both the tables.
Now my question is how could i handle this situation using JDBC(Type-4) driver.Because i think at a time only one JDBC driver can be loaded into the JVM.NareshAnkuskani wrote:
Now my question is how could i handle this situation using JDBC(Type-4) driver.Because i think at a time only one JDBC driver can be loaded into the JVM.No, that is not true.
But anyway, you need to use distributed (XA) transactions. i believe that the latest version (5.0) of mysql actually has support for XA transactions. you need to use a to setup a distributed transaction and attach the connections for the two databases to that transaction. then it should function as you desire. -
How to handle error when in middle of processing of data, target DB goes down
I have large amounts of data ( for e.g.- 1000 records). It is writing to a DB target table. At the middle of processing of 500 th record, target DB goes down.
What will happen to the data after 500??
In which table will the data after 500 th record be stored?
After target DB comes up how will the data( from 501 th record) be fetched so that no data loss takes place..
Thanks,
AnindyaAnindya,
ODI's performance is pretty good, because in fact there is no "ODI Performance". The performance will be as good as your enviroment performance + a good load strategy. I've been working in several ODI projects with gigantic volumes, with no performance issues.
There is no such thing as "remaining un-inserted data". All data being inserted remains in the I$ table until the end of the process. ODI does not automatically control inserted/uniserted data, so, be carefull if you will implement a commit in your process. You will have to implement your process in order to flag the data that has been comitted, and where clauses to ignore them when the load is aborted/restarted.
Also you will have to use a row-by-row processing which will dramatically decrease your performance.
Please let me know if that helps!
[]'s -
How to handle events when artboard list change in Illustrator?
It is very strange for me, but AIEvent has no event type for handle artboard list change events.
http://cssdk.host.adobe.com/sdk/1.5/docs/WebHelp/references/cshalib/com/adobe/cshostadapte r/AIEvent.html
May be there are any ideas how to get artboard events: "add", "delete", "reorder"Well, the right event type is AIEvent.DOCUMENT_CROP_AREA_MODIFIED. It is very usefull to play with EventWatcher example from Remote Creative Suite SDK Examples.
-
Regarding bdc , how to handle records when power is off
hi experts
whenever i update the records by session method suppose after 100
records power is off, then how i can handle the records now.
this is frequently asked me .
please replay.
thanks
subhasis.put the power on again, and go to transaction SM35 and search for your session.
regards,
Hans
Please reward all helpful answers !!!!! -
How to handle Event when more that 2 rows are selected in a WD Table
Hello WD developers,
I need your assistance.
My case is as following:
I have a WD table populated with data.
I also have several buttons in the toolbar table.
One of those buttons should be enabled only in case that one row (and only one)
is selected in the table otherwise it should be disable.
The problem is that an even is triggered only when the first row is selected
and when the second (third....) are selected no event occur.
Do you have any idea How can I solve this issue.
Thnaks in advance for your help.
Regards
HarryHi,
In the Onlead selection of table make it visible and invisble of your buttons as per your selection.
The table have single selection and multi seletion options are availble when you defing the table you can find this options in the properties of the table.
In onlead selection your button to be mapped with attribute WDVisble.
And based on your selection you can visible and invisible.
wdContext.currentContextElement.set<attribute>(WDVisble.Visble);
and
wdContext.currentContextElement.set<attribute>(WDVisble.NONE);
This might helps you.
Do you need more post your issues.
Thanks,
Lohi -
Hi Experts,
This is a question regarding BAPI_SALES_ORDER_CHANGE.
Normally, through VA02 if we change the shipping condition VBAK-VSBED of a sales order, then a popup will raise from which we can determine the route (VBAP-ROUTE).
If we pass the same change in shipping condition to BAPI_SALES_ORDER_CHANGE, can BAPI automatically handles the change in route?
As human intervention is needed to determine the route while trying with VA02 , how this can be handled using the BAPI.?
Please guide me.
Regards
SunilHi,
Generally SAP does not recommand any popup windows in the BAPI.So it is not possible to get popup in the bapi.But you can check bapi user-exits any way to get popup windows.But it is not recommanded.
Thanks,
radha. -
How to handle Event when a radio button in selection screen is clicked
Hi all,
What is the Event generated when a radio button is clicked in the selection Screen. My requirement is .If one radio button is clicked a field in selection screen should be greyed.
Here I used AT SELECTION-SCREEN OUTPUT. but this event is generated only if i press 'ENTER' after clicking the radio button in the selection screen.
Is there any other way to process this radio button event?
Thanks&Best Regards,
Vishnuhi,
try like this
TABLES : kna1,lfa1.
SELECTION-SCREEN:BEGIN OF BLOCK blk1 WITH FRAME TITLE text-002.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : rad_but1 RADIOBUTTON GROUP one DEFAULT 'X' USER-COMMAND ucom.
SELECTION-SCREEN COMMENT 3(26) text-003.
SELECT-OPTIONS : kunnr FOR kna1-kunnr.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : rad_but2 RADIOBUTTON GROUP one .
SELECTION-SCREEN COMMENT 3(26) text-004.
SELECT-OPTIONS : lifnr FOR lfa1-lifnr.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN:END OF BLOCK blk1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF rad_but1 = 'X'.
IF screen-name = 'KUNNR-LOW' OR screen-name = 'KUNNR-HIGH' .
screen-input = '1'.
MODIFY SCREEN.
ENDIF.
IF screen-name = 'LIFNR-LOW' OR screen-name = 'LIFNR-HIGH'.
screen-input = '0'.
REFRESH lifnr.
MODIFY SCREEN.
ENDIF.
ENDIF.
IF rad_but2 = 'X'.
IF screen-name = 'KUNNR-LOW' OR screen-name = 'KUNNR-HIGH'.
REFRESH kunnr.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
IF screen-name = 'LIFNR-LOW' OR screen-name = 'LIFNR-HIGH'.
screen-input = '1'.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
reward if usefull.... -
How to handle error when importing taxonomy for product using XML?
We are on MDM 5.5 and built a repository for SAP R/3 Material Master. It has basic material information and taxonomy information as well. We built an import map based on an XML file, which includes basic info as well as taxonomy (classification) info. The import process runs smoothly. But if the import file includes some materials which characteristic values don't exist in MDM, the import will fail and exception file has a complete different format as our import file also it only display one material. Therefore, we cannot reprocess the exception file for errorred out items. What could we do wrong? By the way, we use "Create Pivot table" option in MDM to create the original import map.
Hi Micheal,
I Think your problem is similar to the below one,you can refer the below link for the same.
Import file using Pivot Tables
What you need to make sure is that you are using the same structure of the source file for importing as you used while creating the map else it wont work.
Your schema of the source file as well the schema used when creating the map must match.
You can refer the below links to know more about Taxonomy data importing:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30aa1447-80a1-2a10-e483-a76087bcb12f
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6090d0bd-1da7-2a10-468f-bdd17badb396
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8090941f-a5a7-2a10-3ba6-b4af5ec6d97b
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/308c62a2-5faa-2a10-fda6-fa4aa7169734
Hope It Helped
Thanks & Regards
Simona Pinto -
How to handle spaces when calling javaw.exe or java.exe
Hi guys, I'm in the process of releasing my application.
My application need to make this system call on Windows.
C:\Program Files\MySoftware\javaw.exe -jar C:\Program Files\MySoftware\myJar.jar C:\Program Files\MyDocs\MyArgumentFile
this 'Program Files' for after the javaw.exe call: C:\Program Files\MySoftware\myJar.jar causes a problem because javaw.exe consider C:\Program as it's first argument and thus crash.
I wonder what to do with this. I don't want to change it to C:\MySoftware since it looks unprofessional.
A cup of Java, cheersyawmark wrote:
I wonder what to do with this.Quotation marks.
~Right, every shell I can think of allows you to use quotation marks around a set of any characters that you want to be treated as one token. Note that this feature is a function of the shell you're using, not necessarily the system API. Also, many shells treat single quotes and double quotes differently, though they usually both accomplish the purpose of grouping what they contain into a single token. -
How to handle failure when sending messages to remote queues from OAS10.1.3
Hi,
Here is my problem. IN my project, I have a MDB which is looking for message in a queue and once a message arrived, it supposed to send the message to remote queues.
Assume that there are 3 remote queues, and my mdb is trying to send the message to all the 3 remote queues,
1) My problem is, If one of the remote queue is not reachable or down, then the MDB should be able to resend it several times until it reaches the failed remote queue.
2) At the same time, I dont want to resend the messages(duplicate) to the queues which are successful ones.
Please suggest me some solution for this in JMS.
My MDB deployed at 10.1.3 and assume that remote queue can be in either another 10.1.3 or WAS 6.0(Optional).
Thanks and regards,
SS.Hi,
1) My problem is, If one of the remote queue is not reachable or down, then the MDB should be able to resend it several times until it reaches the failed remote queue.
Not very sure what is your question, depending on if you want to resend the message if one of three queues is down.
If the message has to arrive to a certain destination while mdb received it, you may try to reconnnect and resend the message in a couple of times. Perhaps you need a couter or timeout to limit the number of time to retry or the period to retry.
Is that what you are asking.
2) At the same time, I dont want to resend the messages(duplicate) to the queues which are successful ones.
While sending message to a queue, those implementation is within the exception try/catch block, so any resend failure (JMSException) will fall into the catch block I guess. And we can probably use that exception to determine if the message is able to send to remote queue, if not, keep resending util it is over the limit of retries. For example:
onMessage(Message){
resend(message, counter);
public void resend(message, counter) {
try{
if (counter <= retryLimit){
.... // do the reconnect or/and resend operation
}catch(exception e){
resend(message, counter++);
If the above is not what you are asking, please clarify a bit.
Rocky
Maybe you are looking for
-
I really need the help. Thanks.
-
Not able to post document using BAPI_ACC_GL_POSTING_POST
Hi all, While trying to post documents in FB60 using BAPI_ACC_GL_POSTING_POST we are getting error Account not assigned to company code. But we are able to post documents manually using the same account and company code. Couls any one help me out to
-
How to define a data carrier type "archive" in DMS
Hi, experts. In order to intgerate DMS and ArchiveLink(Check in origin with ArchiveLink), i want to define a data carrier type "archive" in DC20. I have already defined a content repository 'Z2' in OAC0, but i can't enter 'Z2' into the field-data car
-
The latest iTunes couldn't enter itunes store & itunes match
It just not show anything at the itunes store & itunes match page!!! The latest safari is also not show anything!!
-
WSDL with unwanted https_port
When the WSDL is displayed from the Sender Agreement in Integration Directory, it has two endpoints/wsdl ports. One is HTTP_Port and the other is HTTPS_Port. But my PI system is not set up for https. It uses a Sender SOAP channel and when I try to ca