Plz help - its a toughie
Does anyone know how to parse a dtd file into xml??
Any help would be great!!
What I am trying to do is to have a dtd file and then convert it into xml tags. For example
<?xml version=�1.0� encoding=�UTF-8�?>
<!DOCTYPE ARTICLES [
<!ELEMENT ARTICLES(ARTICLE*)>
<!ELEMENT ARTICLE(ARTICLEDATA)>
<!ELEMENT ARTICLEDATA(TITLE, AUTHOR)>
<!ELEMENT TITLE(#PCDATA)>
<!ELEMENT AUTHOR(#PCDATA)>
]>will be transformed to:
<ARTICLES>
<ARTICLE>
<ARTICLEDATA>
<TITLE>XML and Java</TITLE>
<AUTHOR>B. McLaughlin</AUTHOR>
</ARTICLEDATA>
</ARTICLE>
</ARTICLES>
Similar Messages
-
Lsmw issue plz help its urgent
Hi Experts ,
i need to create a LSMW using batch input .
but the requirement is on the basis of conditions my recording need to be changed .
dat means
3127POL09 3127POL09-1 CTR 3127-1003E 100 FUL
3127POL09 3127POL09-2 WBS 3127POL01 60 FUL
for ctr i ill have to post data in screen number 200
and for wbs i ill have to post data in screen number 400 .
can we put some conditions in recording in lsmw ?
i no we can create multiple recording but how can we use them to fullfill my requirement .
plz help its urgent
thanx in advanceHi,
Within LSMW, there is an option to write our own code wherein this code can be incorporated.
This is in the Field Mapping Option...
Just go to the Menu Extras->Layout
and click on the check box Form Routines
Global Data.
Here you can define Global Variables and also perform your ABAP Coding.
Regards,
Balaji. -
Experts plz help its very urgent
hi expert
plz help- me
previously i was getting dump in this statement
TRANSFER v_tab TO p_file.
FYI:
here v_tab is a table which hav som records
and p_file contains the path of a file like c:\new\ggg.txt
DATA: v_tab TYPE STANDARD TABLE OF t_line WITH HEADER LINE,
TYPES: BEGIN OF t_line,
pspid(9) TYPE c,
tab1 TYPE x,
post1 TYPE proj-post1,
tab2 TYPE x,
vernr TYPE prps-vernr,
tab3 TYPE x,
END OF t_line.
DUMP I WAS GETTIN :
For the statement
"TRANSFER f TO ..."
only character-type data objects are supported at the argument position
"f".
In this case. the operand "f" has the non-character-type "T_LINE". The
current program is a Unicode program. In the Unicode context, the type
'X' or structures containing not only character-type components are
regarded as non-character-type.
to avoid this dump i used feild symbol
assign V_TAB to <IN> casting.
p_file = <in>.
unassign <IN>.
nw there is no dump
but problem is p_file contains the contents of v_tab not the file path .
plz help me its very urgent
thanx in advanceHey, no probs,
after your initial declaration, do this.
TYPES: BEGIN OF n_line,
pspid(9) TYPE c,
tab1(15) TYPE c, "check the length you want
post1 TYPE proj-post1,
tab2(15) TYPE c, "check the length you want
vernr TYPE prps-vernr,
tab3(15) TYPE c, "check the length you want
END OF t_line.
DATA: n_tab TYPE STANDARD TABLE OF n_line WITH HEADER LINE.
now after you fetch data into v_tab,
move it to n_tab.
using a loop at v_tab and move corresponding fields to n_tab's work area
append to n_tab.
once you have populated n_tab and are ready to TRANSFER.
OPEN your file using
open dataset <file> for output in text mode encoding default.
now
loop at n_tab.
TRANSFER n_tab to p_file.
endloop.
CLOSE DATASET. -
Hi all,
i am getting value in format '123-'
i need to display in format '-123'
plz help me.
Thanks ,
GauravHi,
Check this
report ztest_46.
data: val type i value '154633-'.
write (8) val using edit mask '-________'.
aRs -
hi friends
Here is my query in Workflow
I would like to know when a work item gets triggered.?
I know that its a run time object,but i want to know is there any such condition which must satisfy before any work item gets triggered,or is there any process that helps to triggered a work item.
Thanks in Advance
mrutyun^hai
for a workitem should be triggred, we dont want any thing.
if workflow is triggred using event then, the following steps which is designed below is executed. -
Problem with Table.getSelectedColumn() method plz help its so urgent
Hi,
I need to display a input msg box while the given icode( coloumn name) is not there in database and the the input value should goto the product( 3rd column in my table) column in table. my code is bellow.
private void TablePropertyChange(java.beans.PropertyChangeEvent evt) {
// ss
i=0;
int s=1;
String icde=new String();
String Prdct=new String();
String result=new String();
// String CODE=new String();
String ICDE=new String();
String prd=new String();
int Colselected=Table.getSelectedColumn();
//column.getPreferredWidth();
try
TableColumn ICode = Table.getColumnModel().getColumn(1);
TableColumn product = Table.getColumnModel().getColumn(2);
TableColumn unit = Table.getColumnModel().getColumn(3);
TableColumn rate = Table.getColumnModel().getColumn(4);
TableColumn Amount = Table.getColumnModel().getColumn(5);
for(;i<s;++i)
//For loop starts
ICode.setPreferredWidth(76);
product.setPreferredWidth(157);
unit.setPreferredWidth(75);
rate.setPreferredWidth(85);
Amount.setPreferredWidth(95);
Table.setValueAt(i+1,i,0);
float gr=0,//Gross amt
qt=0,//Qty
rt=0,//Rate;
dcp=0,//Disc%
dcam=0,//Disc Amt
edrt=0,//EDrate
edrt1=0,
edam=0,//EDGross
taxrt=0,//TaxRate
taxam=0,//TaxAmt
netam=0;//netamt
try
Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
Connection con1 = DriverManager.getConnection(url1,"suresh", "special");
Statement stmt1 = con1.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.CONCUR_READ_ONLY);
Prdct=Table.getValueAt(i,1).toString();
Statement stmti= con1.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.CONCUR_READ_ONLY);
ResultSet rsi = stmti.executeQuery("select * from prd where ICODE='"+Prdct+"'");
java.util.Vector <String> prdct = new java.util.Vector <String>();
if(rsi.next())
String prodct=rsi.getString("ITEM");
prdct.add(prodct);
Table.setValueAt(prdct,i,1);
Double RT=rsi.getDouble("saleprice");
String RTS=RT.toString();
Table.setValueAt(RTS,i,4);
// int ColValue=Colselected==1;
else if(Colselected==1)
result = (String)JOptionPane.showInputDialog(this,
"Enter the new Item", "S-appsys's INFO",JOptionPane.INFORMATION_MESSAGE);
System.out.println("asdrf "+i);
Table.setValueAt(result,i,2);
// Colselected=0;
// Table.setV
// System.out.println("asdrf "+i);
}// Table.setValueAt(result,i,2);
}catch ( java.lang.ClassNotFoundException cl)
System.out.println("Error"+cl);
catch(java.sql.SQLException sq)
System.out.println("Error"+sq);
qt=Float.parseFloat(Table.getValueAt(i, 3).toString());
rt=Float.parseFloat(Table.getValueAt(i, 4).toString());
gr=qt*rt;
Table.setValueAt(gr,i,5);
s=Table.getRowCount();
}catch(java.lang.NullPointerException e){}
my problem is i can get the msg box while i am giving value in 1st time. but if i am giving the value in second row it will show the msgbox 4 times and it will change previous rows product column value twise and then it will change current row value. i need solution for this
plzzz help me
Thanks in advance
Suresh.Your description of the problem makes no sense to me.
The code you posted in not formatted or executable so I'm not going to waste time trying to understand it.
If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting. -
Goods movement on a mass scale...Plz help, its urgent.
Hi Gurus,
I need to do the goods issue to a cost centre on a mass scale. Is there any way to do it in one hit or do i need to to put all the materials manually (around 3000 materials) and then enter the qty to be transfered?
Kindly help me out, its very urgent...
Thanks,
Swati.Ask your Abaper to write a BDC Program and give all the details in EXCEL sheet
-
Hi,
I want to send sms from PC through GSM modem.
for this i m using smslib
To use smslib i need to install
jar file commons-net-1.4.1.jar(Apache Jakarta Commons/NET )
can u plz suggess me from where '
can i get it?
Thank uWhat makes you think that the people on this forum can magically see the modem you're using and find out the model number and manufacturer, so they could send you to the right URL which you also seem to think they've memorized.
You're the one with the modem. Pick it up, read the label, find out who made it and what its model number is, then go to their web site and look for the emulator and documentation and whatever else you need. -
Hi
In Linux/Unix Environment we can pass command line arguments as
java filename arg1 arg2 ....
If I want to pass command line arguments while running Java in Eclipse .How can I do it?
ThanksHi
In Linux/Unix Environment we can pass command line
arguments as
java filename arg1 arg2 ....
If I want to pass command line arguments while
running Java in Eclipse .How can I do it?
ThanksBy reading the documentation / help screens that come with Eclipse, to see where you fill out some part of some screen about your project. -
HELP in Generating XML(PLz help its urgent)
Hi,I need to generate XML FIle.Since i m new to XML.
I had toregister the valid schema in my DB now i want to generate the XML file and with the refernce to this schema that xml file should be validated one against that schema.
things i hav done till now
->i hav registered the scehma
and the sample XML file provided by client
<?xml version="1.0"?>
<MEDMLDATA xmlns="PhaseForward-MedML-Inform4">
<!-- Insert Trial/Study Information -->
<STUDYVERSION UUID="id"
STUDYNAME="name"
VERSIONDESCRIPTION="text" />
<!-- Insert Site Personnel Information -->
<USER USERNAME="mmeyer"
USERTYPE = "SITE"
ACTIVESTATE = "TRUE"
DELETESTATE = "FALSE"
FIRSTNAME = "Marianne"
LASTNAME = "Meyer"
DISPLAYNAME = "Marianne Meyer"
TITLE = ""
HOMESCREENURL = "./Custom/HomeDefault.html"
PHONE = "(555) 555-1212"
FAX = "(555) 555-1212"
ALTPHONE = ""
EMAIL = "[email protected]"
ADDRESS = ""
ADDRESS2 = ""
CITY = ""
STATE = ""
ZIPCODE = ""
COUNTRY = ""
BEEPER = ""
USERMUSTRESETPASSWORD = "FALSE"
DESCRIPTION = ""
PASSWORD="changeme"/>
<USER USERNAME="john"
USERTYPE = "SITE"
ACTIVESTATE = "TRUE"
DELETESTATE = "FALSE"
FIRSTNAME = "John"
LASTNAME = "Meyer"
DISPLAYNAME = "John Meyer"
TITLE = ""
HOMESCREENURL = "./Custom/HomeDefault.html"
PHONE = "(555) 555-1212"
FAX = "(555) 555-1212"
ALTPHONE = ""
EMAIL = "[email protected]"
ADDRESS = ""
ADDRESS2 = ""
CITY = ""
STATE = ""
ZIPCODE = ""
COUNTRY = ""
BEEPER = ""
USERMUSTRESETPASSWORD = "FALSE"
DESCRIPTION = ""
PASSWORD="changeme"/>
<!-- Insert Site Information -->
<SITE NAME= "(01) Massachusetts General Hospital" MNEMONIC="01"
ADDRESS = "1 Main Street"
ADDRESS2 = ""
CITY = "Boston"
STATE = "MA"
ZIPCODE = ""
COUNTRY = "USA"
PHONE = "(555) 555-1212"
ALTPHONE = ""
FAX = ""
EMAIL = ""
TIMEZONE="(GMT-05:00) Eastern Time (US & Canada)"
SITEDATEFORMAT = "MONTH_DAY_YEAR"
STARTDATE = "April 1, 2005">
</SITE>
<SITE NAME= "(02) Boston General Hospital" MNEMONIC="01"
ADDRESS = "1 Main Street"
ADDRESS2 = ""
CITY = "Boston"
STATE = "MA"
ZIPCODE = ""
COUNTRY = "USA"
PHONE = "(555) 555-1212"
ALTPHONE = ""
FAX = ""
EMAIL = ""
TIMEZONE="(GMT-05:00) Eastern Time (US & Canada)"
SITEDATEFORMAT = "MONTH_DAY_YEAR"
STARTDATE = "April 1, 2005">
</SITE>
<!-- Insert SITE and User Mapping Information -->
<SITEGROUP SITENAME="(01) Massachusetts General Hospital">
<USERREF USERNAME="mmeyer"/>
</SITEGROUP>
<SITEGROUP SITENAME="(02) Boston General Hospital">
<USERREF USERNAME="John"/>
</SITEGROUP>
<!-- Insert User ROle Information -->
<RIGHTSGROUP GROUPNAME="CRA">
<!-- Insert Rights -->
<RIGHTREF RIGHT="Print"/>
<RIGHTREF RIGHT="Monitor"/>
<RIGHTREF RIGHT="Canned Reports"/>
<RIGHTREF RIGHT="View CRF"/>
<RIGHTREF RIGHT="View Signature History for CRF"/>
<RIGHTREF RIGHT="View Signature History for CRB"/>
<RIGHTREF RIGHT="Data Export Listings"/>
<RIGHTREF RIGHT="Freeze a CRF"/>
<RIGHTREF RIGHT="Unfreeze a CRF"/>
<RIGHTREF RIGHT="Mark and Unmark a CRF as SVed"/>
<RIGHTREF RIGHT="Freeze a CRB"/>
<RIGHTREF RIGHT="Unfreeze a CRB"/>
<RIGHTREF RIGHT="Change Query State from Candidate to Open"/>
<RIGHTREF RIGHT="Change Query State from Candidate to Deleted"/>
<RIGHTREF RIGHT="Change Query State from Answered to Closed"/>
<RIGHTREF RIGHT="Change Query State from Open to Closed"/>
<RIGHTREF RIGHT="Change Query State from Reissued Candidate to Closed"/>
<RIGHTREF RIGHT="Enter Query in Candidate State"/>
<RIGHTREF RIGHT="Enter Query in Open State"/>
<RIGHTREF RIGHT="Re-issue Query in Candidate State"/>
<RIGHTREF RIGHT="Re-issue Query in Open State"/>
<RIGHTREF RIGHT="Navigate by Visit"/>
<RIGHTREF RIGHT="Navigate by Form"/>
<RIGHTREF RIGHT="Reordering of Patients"/>
<!-- Insert Users for role -->
<USERREF USERNAME="mmeyer"/>
<USERREF USERNAME="john"/>
</RIGHTSGROUP>
</MEDMLDATA>
now i need to generate XML based on the above SAMple XML file,can anybody tell me how to generate XML file based on this..and after generating it should be validated against the registerd schema.Maybe I am wrong, but my understanding is that you have to generate the xml from your data source (usually tables) and then you validate it against your schema. I don't know if the schema has a magic that can generate the xml for you. Is that correct? Anyone please? At the beginning, I asked a .Net guy if his tool could "generate" an xml simply using the schema (I thought so). But he said they had to use many style sheets to create the xml.
Ben -
Query on SRM Shopping Cart ,plz help its very very urgent
Hi Friends,
I have a query on workflow.
Users creates PO through SRM shopping cart and immedeately they receive a mail in there mail box.Below is the process flow of sending the mail to the user inbox from srm shopping cart.
SRM Shopping Cart>Business Object>Workflow-->Mail
Here my problem is.
The bususinees object generally holds the data for cart number and cart description, but when i am checking the workflow it does not contain any cart number or cart description,so that the mail that is going to user inbox also does not contain any cart number and cart description value.
Recenly our client upgrade from 4.6c to Ecc 6.0 and this problem is happening after the upgradation.
Please suggest if anyone face this kind of problem or anyone having any idea on this.
Pls give me some suggestion.
Thanks a lot
Mrutyun^Hi,
Your condition is puzzling... the workflow in SRM for SC is triggered after the SC is saved.
The PO is a follow-on document after the SC is approved. As such it has no relationship to the backend upgrade since the workflow engine is in the SRM server. Your worflow is triggered from the SC or PO?
Regards. -
can't open adobe premiere element 11 on my MacBook Pro? which I buy it from App Store? plz help
its says that its currently not availabe
I have so many work counting on this programme plz helpThank you for your replay
It was working on my Mac before installing the new update of Mac software. then its corrupted
from where I can ask for refund? as I bought from App Store ?
regards -
Plz help production issue(smartform)
hi experts plz help its a production issue
i have a box in my smartform in which in one line i can only show 50 characters .and i have a text of 70 characters but i only have to show 50 characters from 70 characters .
now wat i did i stored 70 characters variable into 50 char variable abd displaying it .
but the issue is
if i want to print .
hi this is sdn and here u can get all the information about sap .
now lets say
i of information is the 46th character of my line
now what is happening it is coming like
hi this is sdn and here u can get all the
infor
its showing 50 character only but if word is not completed it is printing it in next line.
it should print like
hi this is sdn and here u can get all the infor
plz help how to do it
thanx in advance .code i am using is ::::::::::::::::::::::::::::::::::::::::::::::::
data : TEXT_3I56(50) type c .
move is_bil_invoice-hd_gen-bil_number TO textname.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = '0002'
language = is_nast-spras
name = textname
object = 'VBBK'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = t_lines_3156
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*describe table t_lines lines n.
*if not n is initial.
*bank_note = 'X'.
*endif.
READ TABLE T_LINES_3156 INDEX 1 .
IF SY-SUBRC = 0 .
TEXT_3I56 = T_LINES_3156-TDLINE .
ENDIF. -
Plz help upgrade issue moving data from char type structure to non char typ
Hi Experts
plz help its very urgent
Data :workout(5000) .
FIELD-SYMBOLS : <FS_WORKOUT> TYPE ANY.
workout = ' u' .
ASSIGN WORKOUT TO <FS_WORKOUT> CASTING TYPE C .
BAPISDITM = <FS_WORKOUT>.
i am getting dump after BAPISDITM = <FS_WORKOUT>.
i think i am getting the dump bcoz i am moving character type structure to non character type structure but i think with field symbols we can remove this issue thats y i used it but its not working plz help me
its very urgent
*dump is :*
Short text
Data objects in Unicode programs cannot be converted.
What happened?
Error in the ABAP Application Program
The current ABAP program "ZSDR0009" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
How to correct the error
Use only convertible operands "dst" and "src" for the statement
"MOVE src TO dst"
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"UC_OBJECTS_NOT_CONVERTIBLE" " "
"ZSDR0009" or "ZSDR0009_I02"
"USER_COMMAND"
thanx in advancei got d solution in this thread
Hi all,
data: gv_line(6000) type c.
Bvbapkom = gv_line.
But i am getting the Error like : gv_line and Bvbapkom are not mutually convertable.
Note: Bvbapkom is a Structure
How do i solve this ?
Mahesh
KR
Posts: 210
Registered: 11/24/06
Forum Points: 0
Re: gv_line and Bvbapkom are not mutually convertable.
Posted: Nov 30, 2007 8:40 AM in response to: KR Reply
Hi ,
i got the solution
ANSWER:
Field-symbols: <X_Bvbapkom> type x,
<X_gv_line> type x.
Assign: Bvbapkom to <X_Bvbapkom> casting,
gv_line to <X_gv_line> casting.
<X_Bvbapkom> = <X_gv_line>.
Nasaka Ramakris...
Posts: 4
Registered: 1/19/08
Forum Points: 20
Re: gv_line and Bvbapkom are not mutually convertable.
Posted: Jan 19, 2008 7:42 AM in response to: KR Reply
Hi Check this answer.
ANSWER:
Field-symbols: <X_Bvbapkom> type x,
<X_gv_line> type x.
Assign: Bvbapkom to <X_Bvbapkom> casting,
gv_line to <X_gv_line> casting.
<X_Bvbapkom> = <X_gv_line>. -
When i download an update for my iphone4 it downloads the full way and then times ou some1 plz help
when i try to download the update for my iphone 4 its downloads the full wayn on my computer and then just times out some1 plz help its driving me mad
check out this article and see if there is anything helpful in there: TS3694
it has all of the meanings of the different error messages and such
Maybe you are looking for
-
Australia Post Shipping - Can't get to work
Hi, I have read all the online support docs I can find and I just can't get Australia Post Shipping to work on our site for international orders. Everywhere it says: Choose your shipping provider Enter your account details Your customers see real tim
-
Fireworks CS4 hangs on install
I am attempting to install Fireworks CS4 from an Adobe DVD sent to me by mail. When I get past the licensing agreement, I get a "prepaing to install" message. The process will go no farther than that. I even left it in that state overnight with no pr
-
Time Machine does not complete backup to Time Capsule
Within the past few days my iMac will not complete a backup to my Time Capsule. The two other computers connected to the Time Capsule appear to be backing up but they size of the backup is smaller. The Time Machine starts but then stops after 10
-
Inexplicable Shutdowns from Sleep in Windows 7
I have a new 2010 Macbook Pro with Windows 7 on it. On my Mac side, I can close the lid on my laptop and let it sleep for hours or days without issue. On the Windows side, if I let the computer sleep for more than a couple hours, it inexplicably shut
-
IE disables addons of JRE and others, 64 bit, how to enable incompatible addons?
Following message (for Windows 8.1 64 bit's JRE 64 bit install) shows Internet Explorer disables many add ons, websites fails display at all. How configuration enables these add-ons?