How to convert Special charachter in SAP PI
Hi SAP PI Team,
I am working on SAp PI 7.31 single stack .
I have a requirement to convert the special character into entity reference as seen below.
Name
Character
Entity Ref
Quotation mark
"e;
Ampersand
&
Apostrophe
'
Less than sign
<
⁢
Greater than sign
>
>
Could you please check and let me know if i will have to parse the entire xml or is there any other way to achieve this.
Regards
Ravi
Hi Stefan,
The input looks like this as seen below :
And the required output should be as seen below :
Regards
Ravi
Similar Messages
-
How to print Special Characters in Sap-Scripts
How to print Special Characters in Sap-Scripts
Thanks,
RaviHi
if u want print special characters we can use hot codes i.e ' ' (single inverted commas). in between these hot codes insert u r special characters.
write ' !@#$%^&*( ) '.
for the above write statement output is
output is !@#$%^&*( ) -
How to convert special characters in ABAP to XML?
Hi All.
We have a scenario where from XI (exchange Infrastructure), a BAPI is called which returns an XML. From that XML, a PDF is generated.
Now, if the XML contains any special characters, it will fail.
So if any CHinese char or >, # etc signs are there, it fails.
Can you please tell me how to convert my string in ABAP to a proper XML?
I am new to it and I was trying the following code
DATA: today TYPE string,
result TYPE string.
today = 'This is testing'.
CALL TRANSFORMATION ID
SOURCE today = today
RESULT XML result.
IF sy-subrc = 0.
WRITE result.
ENDIF.
But it does not return me anything.
Thanks in adv.hi
good
go through these links,hope these would help you to solve your problem
http://www.sap-press.de/download/dateien/792/sappress_abapreference_2edition.pdf
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
thanks
mrutyun^ -
How to convert date format into sap standard format?
Hi All,
In SAPUI5 screen i have one simple form in form i have date field which is format (MM/DD/YYYY). but i am getting POST error while inserting the data in to sap table.
I want convert date format in sap format (YYYY/MM/DD).
One more issue, when i am fetching the data from sap table,but the date display with time and time zone.
eg. Sat Aug 02 2014 05:30:00 GMT+0530 (India Standard Time)
I want to display only date.
Thanks,
Prashant.Now i am using <DatePicker id="Emp_fsdate" displayFormat="yyyy-MM-dd"/>
I checked in console, but date is display like mm/dd/yy
In my controller.js file i have written code
OData.request
requestUri: "http:sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata",
method: "GET",
headers:
"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/atom+xml",
"DataServiceVersion": "2.0",
"X-CSRF-Token":"Fetch"
function (data, response){
var header_xcsrf_token = response.headers['x-csrf-token'];
OData.request
requestUri:
"http://sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata",
method: "POST",
headers:
"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/atom+xml",
"DataServiceVersion": "2.0",
"Accept": "application/atom+xml,application/atomsvc+xml,application/xml",
"X-CSRF-Token": header_xcsrf_token
data:
Empid:Emp_id,
Empname:Emp_name,
Start_Date:Emp_sdate,
// End_Date:Emp_edate,
Status:Emp_status,
City:Emp_city,
Location:Emp_location,
and in my CREATE_ENTITY method
method ES_SODATA_CREATE_ENTITY.
DATA: ls_request_input_data TYPE zcl_zservice_final_mpc=>ts_et_sodata,
ls_userinfo TYPE zsodata.
DATA ls_temp TYPE sy-datum.
* Read Request Data
io_data_provider->read_entry_data( IMPORTING es_data = ls_request_input_data ).
* Fill workarea to be inserted
ls_userinfo-Empid = ls_request_input_data-Empid.
ls_userinfo-Empname = ls_request_input_data-Empname.
ls_userinfo-Start_Date = ls_request_input_data-Start_Date.
ls_userinfo-End_Date = ls_request_input_data-End_Date.
ls_userinfo-Status = ls_request_input_data-Status.
ls_userinfo-City = ls_request_input_data-City.
ls_userinfo-Location = ls_request_input_data-Location.
* Insert Data in table ZUSERINFO
INSERT zsodata FROM ls_userinfo.
IF sy-subrc = 0.
er_entity = ls_request_input_data. "Fill Exporting parameter ER_ENTITY
ENDIF.
endmethod.
But still i am getting an error
POST http://sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata 500 (Internal Server Error)
I am able to insert all field except date field. How to insert date field in sap table. -
How to handle special character in SAP CRM
Hi all,
I am facing a problem on SAP CRM Web UI - Contact Creation - When a special character is inserted on address fields of Business
Partner (e.g. ` ~ ^ etc.), the interface does not understand this character and changes it to a TRIANGLE on pressing enter key.
Kindly guide as how to handle it or something is missing in terms of (note or patch).
I am running on SAP CRM 7.0
Thanks,
Pradeep Singh DhadwalHi Pradeep.
At the end of the day, a character is stored as a byte sequence on disk, and a code page defines the mapping between the byte sequence and any given character.The code page determines what character you can see and enter, therefore different code pages map different characters to the same byte sequence.
I suggest you to first check if your system is a Unicode system by checking the System menu->Status option->Unicode system field. I'll assume it is.
Then, please run report RSCP0018 (optionally also RSCPINST and then select Current NLS config pushbutton).
These reports will show you the actual configuration of languages and code pages of your Application Server. Please check that the correct languages and code pages are configured. If you need to know more about code pages configuration, please check Note 42305, which explains pretty well the whole process.
Kind regards, and good luck.
Federico -
How to convert special characters like #, &, etc occuring in the input stri
Hi,
I am using method 'Get' to submit a form . When ever there is any
special character like '#' in my input For example "033#Test", nothing
gets posted beyond 033.
Can any one please let me know how do I overcome this problem.
Thanks in advance.
Regards,
MoinBefore you send the form parameters you need to url-encode them. Like this:String param1="param=033#Test";
String encodedParam1 = java.net.URLEncoder.encode(param1);Then send the encoded version, which if you examine it you will see looks like "033%25Test". -
How to convert special characters like #, &, etc occuring in the input string
Hi,
I am using method 'Get' to submit a form . When ever there is any
special character like '#' in my input For example "033#Test", nothing
gets posted beyond 033.
Can any one please let me know how do I overcome this problem.
Thanks in advance.
Regards,
Moin
Moinuddin:
It seems possible your browser may be confused by the fact that 033 is
the octal representation for an ESCape character (Hex 1B). Try dropping
the leading zero. In addition, it is usually better to represent special
characters like the hash mark "#" using HTML character entities instead
of literals, i.e. # = hash mark
Regards,
Jim Brown
Moinuddin Ahmed wrote:
>
> Hi,
> I am using method 'Get' to submit a form . When ever there is any
> special character like '#' in my input For example "033#Test", nothing
> gets posted beyond 033.
>
> Can any one please let me know how do I overcome this problem.
>
> Thanks in advance.
> Regards,
> Moin
Jim Brown
Developer Relations Engineer
BEA Support
-
How to enter special charcterstics like alpha, gama, beta in text in sap
Dear friends
One of my client insisting to to have special characters values like alpha, beta, gama etc need to be entered in material short text and some other places. I know how to get those special letters through MS word, But how to get the same in SAP.
Plz povide solution.Hello
One silmple solution is to write the description in MS word or Excel, and use "Set in->Symbols" functionality to in order to have characters like u03BC u03B2 etc. And then cut and paste the letters into the description in SAP.
Regards
Jan Erik -
How to convert JSR-168 compliant Portlets into SAP iviews
Hi All,
Its very urgent requirement for me...
<b>How to convert JSR-168 compliant Portlets into SAP Enterprise Portal supported iViews in SAP NetWeaver 2004 or 2004s.</b> Can you please tell me any tools are available for conversion or is there any another procedure to achieve this problem.
At last can we ach
Each answer will be awarded with points.
Regards
Sreedhar GHi Sreedhar,
Is there anyway to display Standard Business packages content in IBM websphere portal.If there is anyway please let me know.
thanks,
Anil -
How to convert JSR 168 compliant Portlets into SAP supported iViews.
Hi,
How to convert JSR 168 compliant Portlets into SAP supported iViews in SAP NetWeaver 2004.
Thanks & Regards
SivaGuys,
JSR is not supported untill NW05. Please check this
/thread/176954 [original link is broken]
Akhilesh -
How to convert spool request to pdf format (to send mail) - SAP 3.1H
Hi,
I am working in 3.1H version. How to convert spool request into pdf cormat to send a mail?. Spool request is in TEXT format.
regards,
sundaram J.Hi sundaram,
1. I suppose u know how to send
mail with attachment.
2. If that is the case,
then no need to do anything.
3. Bcos
There is setting in SCOT,
for INTERNET
ABAP List ---> PDF
Raw TEXT -
PDF
(Your basis team will help u)
4. text data will get automatically converted
to pdf and get mailed.
regards,
amit m. -
How to convert a Word Document to SAP SCript standard text.
Hi team,
Does any one know how to convert a word document or text in Word format to standard text.
So that we can use that standard text in Script output.
This might be very useful if we need to convert a lot of text into standard text.Hi,
Create the name of the standard text you want in SO10.
When the editor is called up, select Text -> Upload and then browse for your file(s). Must be saved in RTF format in Word remember.
Cheers
Colin. -
How to handle sub subcontracting in SAP B1 ?
Dear all,
How to handle sub subcontracting in SAP B1 ?
Let me explain in detail,
My client doing sub contracting work for parent company,raw material is actually received from parent company
thru 57F4 challan,raw material sent for further processes in my client company and later converted material
is sent to a sub contractor for finishing thru 57F4 challan,after finishing material is recieved by client company,
send it once again to parent company.In this process raw material is received as X and send it to parent company as Y.
My question is, How to handle sub sub contracting items stock ?
Expecting u all valuable ideas / suggestions.
Jeyakanthanhai!
Will u raise any bill for ths. i mean ur child cmpny to parent cmpny.?
1. Receive the items to your child cmpny through GRPO or GR
2. Use Production Order cycle to do FG.
3. Define BOM or use Special Production
4. Transfer to the Sub- contarct warehouse through Inv.Transfer.
5. once after processing over, book inv.Transfer to you good down.
6. Use Goods Return or GR to issue the item out to parent company.
hope it gvs u a starting.. -
Hi all, I am new in java card development.
This is my environment setting:
@echo off
set JC_HOME=C:\JavaCard\java_card_kit-2_2
set JAVA_HOME=C:\j2sdk14103
set PATH=.;%JC_HOME%\bin;%PATH%
I have created the Wallet applet according to 'Zhiqun Chen" text book and named it WalletApp.java.
I have compiled this file to a class file.
This is where is I saved my file
C:\JavaCard\java_card_kit-2_2\samples\src\com\sun\javacard\samples\WalletApp\WalletApp.java.
But I don't really understand how to convert the class file.
May I know what is this for?
-out EXP JCA CAP
-exportpath
-applet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1:0x1
com.sun.javacard.samples.HelloWorld.HelloWorld
com.sun.javacard.samples.HelloWorld
0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1 1.0
must save this in what file?
I tried to type in the command line below (and the result):
C:\JavaCard\java_card_kit-2_2\samples>converter -config scr\com\sun\javacard\sap
les\Wallet\Wallet.opt
error: file scr\com\sun\javacard\saples\Wallet\Wallet.opt could not be found
Usage: converter <options> package_name package_aid major_version.minor_ver
sion
OR
converter -config <filename>
use file for all options and parameters to converter
Where options include:
-classdir <the root directory of the class hierarchy>
set the root directory where the Converter
will look for classes
-i support the 32-bit integer type
-exportpath <list of directories>
list the root directories where the Converter
will look for export files
-exportmap use the token mapping from the pre-defined export
file of the package being converted. The converter
will look for the export file in the exportpath
-applet <AID class_name>
set the applet AID and the class that defines the
install method for the applet
-d <the root directory for output>
-out [CAP] [EXP] [JCA]
tell the Converter to output the CAP file,
and/or the JCA file, and/or the export file
-V, -version print the Converter version string
-v, -verbose enable verbose output
-help print out this message
-nowarn instruct the Converter to not report warning messages
-mask indicate this package is for mask, so restrictions on
native methods are relaxed
-debug enable generation of debugging information
-nobanner suppress all standard output messages
-noverify turn off verification. Verification is default
*********************************************************May I know What is the correct command line to convert the class file and what must I do to before converting the class file?
I saw some article saying we must use JDK1.3, is it a must?
Your solution is highly appreciated.
Thank you!Hi Ricardo,
I saved the file below as WalletApp.opt in the directory of scr\com\sun\javacard\samples\WalletApp
-out EXP JCA CAP
-exportpath c:\javacard\java_card_kit-2_2\api_export_files
-applet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x2:0x1 WalletApp.WalletApp
WalletApp 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x2 1.0
But I still have the problem below:
C:\JavaCard\java_card_kit-2_2\samples>converter -config scr\com\sun\javacard\sam
ples\WalletApp\WalletApp.opt
error: file scr\com\sun\javacard\samples\WalletApp\WalletApp.opt could not be fo
und
Usage: converter <options> package_name package_aid major_version.minor_ver
sion
OR
converter -config <filename>
May I know What's wrong with my command or file?
Where can I download JDK because what I can find is J2SDK.
Thank you! -
How to get purchasing data from SAP R/3 to OWB (Oracle warehouse builder).
Hi,
My name is Pavan Tata. I work as a SAP BW developer. Here is the situation at my client place. Client decided to retire BW system and wants to replace with OWB(Oracle warehouse). In all this currently we have purhchasing application in BW production system and wants to move this application to OWB for the same type of reporting what they are getting currently.
Here is my question:
How to get purchasing data from SAP R/3 to OWB(Warehouse) with initial full loads and deltas mechanism in the same way as we do in BW.
Please help on this, also send me any documentation about this if you have.
Thanks,
Pavan.Hello,
here is a short report which converts S012 entries to strings with separator semicolon. Perhaps this will help you?
Regards
Walter Habich
REPORT habitest2 LINE-SIZE 255.
TYPES:
strtab_t TYPE TABLE OF string.
CONSTANTS:
separator VALUE ';'.
DATA:
it_s012 LIKE s012 OCCURS 0,
wa_s012 LIKE s012,
strtab TYPE strtab_t,
strele TYPE string.
SELECT * FROM s012 INTO TABLE it_s012 UP TO 100 ROWS.
PERFORM data_to_string
TABLES
strtab
USING
'S012'. "requires it_s012 and wa_s012
LOOP AT strtab INTO strele.
WRITE: / strele.
ENDLOOP.
*& Form data_to_string
FORM data_to_string TABLES strtab TYPE strtab_t
USING ittab TYPE any.
DATA:
h_zaehler TYPE i,
line_str TYPE string,
l_tabellenname(10) TYPE c,
l_arbeitsbereichsname(10) TYPE c,
h_string TYPE string,
h_char(255) TYPE c.
FIELD-SYMBOLS: <l_tabelle> TYPE ANY TABLE,
<l_arbeits> TYPE ANY,
<feldzeiger> TYPE ANY.
CLEAR strtab.
CONCATENATE 'IT_' ittab INTO l_tabellenname.
ASSIGN (l_tabellenname) TO <l_tabelle>.
CONCATENATE 'WA_' ittab INTO l_arbeitsbereichsname.
ASSIGN (l_arbeitsbereichsname) TO <l_arbeits>.
LOOP AT <l_tabelle> INTO <l_arbeits>.
CLEAR: h_zaehler, line_str.
line_str = ittab.
DO.
ADD 1 TO h_zaehler.
ASSIGN COMPONENT h_zaehler OF
STRUCTURE <l_arbeits> TO <feldzeiger>.
IF sy-subrc <> 0. EXIT. ENDIF.
WRITE <feldzeiger> TO h_char LEFT-JUSTIFIED. "#EC *
h_string = h_char.
CONCATENATE line_str separator h_string INTO line_str.
ENDDO.
APPEND line_str TO strtab.
ENDLOOP.
ENDFORM. "data_to_string
Maybe you are looking for
-
Compressor 4.1 does not work in any way, shape or fashion while everything else, including FCPX 10.1., under Mavericks. I did the app cleaner bit to uninstall all of compressor 4.1 to do a clean install as folks says this approach works but I don't k
-
Problem ;[ please help me
hi from me.last year my pc suite was working just great but i think i've done something and for 4 months probably(maybe more) i can't work with my pc suite. now it says that i should "check if all needed hardware,software and drivers are installed".
-
I am having trouble accessing a data file for my program to run. the code I have is this so far: // a good starting shell for the first real program import java.awt.*; import java.net.*; import java.io.*; import java.awt.event.*; import javax.swing.*
-
Au crashes on launch (Mac CS6)
Au CS5.5 (4.0x1815) works fine. Au CS6 was working before I upgraded to Lion, with 10.6.8 Any ideas how to fix? I trashed Prefs. Maybe I should un/reinstall. Partial crash log: Process: Adobe Audition CS6 [6773] Path: /Applicatio
-
I have color coded some of the rows for a project I'm working on and would love to sort all the 'colored' rows together. Is there a way to sort by the color that I've chosen to fill each row with? When I had only two colors I was using a workaround.