Translating titles
I am having problems editing my titles. I am using the included Typewriter text effect and had a happy accident where I was able to translate the text on the Z-axis and rotate it along the central X-axis, making it look like it's coming out of the screen towards the viewers (See attached screenshot). This worked inconsistently on one text object when I moved it around in the Viewer. Sometimes I could click in certain areas of the text box and rotate or translate the text, other times I could not, and it was difficult to always find these regions. Unfortunately, there was no change in the hand symbol or any type of translating guides to let me know how I made this change. None of the panels in the Inspector changed either, so I am unable to recreate this effect on other title objects. Does anyone have any suggestions? I am not sure if this is completely clear, so please let me know if there are any questions? I've included a screenshot of how the text effect should look.
Well, I defined my axis and titles using substitution variables which do get translated, but this is a workaround.
I don'tb think I should have to do this, but it works for now
Similar Messages
-
Portal Content Translation - Unable to see the changed iView name, desc etc
Hi Experts,
I am using Portal Content Translation to translate the name of iViews, roles, iview description etc from English to Spanish. I have followed the method mentioned in the below mentioned link:
http://help.sap.com/saphelp_nw04/helpdata/en/74/641640b7b6dd5fe10000000a155106/frameset.htm
I have successfully executed all the processes mentioned in the document. It includes:
Creating Worklists and add content
Generate translation data
Release for translation
Search worklist and define source and target language
Load worklist for translation
Translate worklist
Make worklist as translated
Publish translation
I am able to publish the publish translation.
The above document says that "Publishing a translation means that the translated text strings are written back to the objects to which they belong (for example, the translated title of a role to the role object stored in the Portal Content Directory). "
In my case I have translated the name, description of an iView. After publishing am I supposed to see the name & description of iView in Spanish in the same iView (source iView).
I have not created any target iView. Am I supposed to create any target iView?
I am unable to see iView name, description in Spanish.
Can you please let me know what is going wrong?
Thanks
StuartHi Stuart,
please set the user's language in UME. You can do this in the personalization dialog (see SAP Library section <a href="http://help.sap.com/saphelp_nw70/helpdata/en/f8/64e93b3a612d52e10000000a11402f/frameset.htm">Setting Portal Preferences</a>. Assign the portal role "eu_core_role" to your user if you do not see the "personalize" link in the portal masthead.
In what language does the iview name appear if you do not select Spanish language?
Please check if the name of the iView appears in Spanish language in PCD after you switched portal language to Spanish.
Best regards,
Martin -
In oracle Httpuritype - Not getting the output correctly
Hi, I am trying out httpuritype in oracle for the first time. My requirement is to get the input string and the from_language and to_language and has to be converted accordingly.
I am using oracle 11.2.0.1.
So had setup acl explicitly and started writing the below program.
create or replace procedure trans_new_prc1
(p_words in varchar2, -- words to be translated
p_to in varchar2 , -- language to translate to
p_from in varchar2 ) -- language to translate from
is
l_res varchar2(2000);
l_words varchar2(2000);
txt varchar2(2000);
begin
txt:=utl_url.escape(l_words);
l_words:=regexp_substr(httpuritype('http://translate.google.co.in/?hl=en&tab=wT#'||p_from||'/'||p_to|| txt).getclob(),'"(.*?)"',1,1,null,1);
Dbms_output.put_line( l_words);
end;
While converting from polish language to english language I get the output as
SQL> exec trans_new_prc1('hen','pl','en');
text/html; charset=ISO-8859-2
But i need the exact string in polish language, which i am not getting. Please guide me.
Even while converting it into chinese language, i get the following message
SQL> exec trans_new_prc1('hen','zh-CN','en');
text/html; charset=ISO-8859-2
Please guide me to get the output exactly in chinese language.I think the problem is, google translate is not giving that info with this URL ! I removed REGEXP_SUBSTR and get all html code from HTTPURITYPE, in returned code, there is no translated word info!
for the code
exec trans_new_prc1('hen','ENGLISH','AUTO');result is:
<!DOCTYPE html><html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><meta name=keywords content="translate, translations, translation, translator, machine translation, online translation"><meta name=description content="Google's free online language translation service instantly translates text and web pages. This translator supports: English, Afrikaans, Albanian, Arabic, Armenian, Azerbaijani, Basque, Belarusian, Bengali, Bulgarian, Catalan, Chinese, Croatian, Czech, Danish, Dutch, Esperanto, Estonian, Filipino, Finnish, French, Galician, Georgian, German, Greek, Gujarati, Haitian Creole, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Irish, Italian, Japanese, Kannada, Korean, Latin, Latvian, Lithuanian, Macedonian, Malay, Maltese, Norwegian, Persian, Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish, Swahili, Swedish, Tamil, Telugu, Thai, Turkish, Ukrainian, Urdu, Vietnamese, Welsh, Yiddish"><meta name=robots content=noodp><meta name=google content=notranslate><link rel="canonical" href="http://translate.google.com/"><title>Google Translate</title><link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml?hl=en" title="Google Translate"><script>function _gtErr(e){var i=new Image();i.src='/gen204?jserr='+encodeURIComponent(e+": "+e.stack).substr(0,2000);i.onload=function(){i.onload=null;};}window.onerror=_gtErr;</script><script>(function(){var ti_a=function(b){this.t={};this.tick=function(b,c,a){a=void 0!=a?a:(new Date).getTime();this.t=[a,c]};this.tick("start",null,b)},ti_b=new ti_a;window.jstiming={Timer:ti_a,load:ti_b};if(window.performance&&window.performance.timing){var ti_c=window.performance.timing,ti_d=window.jstiming.load,ti_e=ti_c.navigationStart,ti_f=ti_c.responseStart;0<ti_e&&ti_f>=ti_e&&(ti_d.tick("_wtsrt",void 0,ti_e),ti_d.tick("wtsrt_","_wtsrt",ti_f))}
there is no "THEM" (translated word) in it. (I couldnt write whole returned info because exceed post limits.) -
TranslateMarkup output not displaying in design view
Hi
I'm trying to take a set of php pages which all follow a similar style
<?php
$p=new page();
$p->rightCol=<<<RC
SOME HTML GOES HERE
RC;
$p->mainContent=<<<MC
SOME OTHER HTML GOES HERE
MC;
This then pulls in various other files (css, js etc) and renders on the website. I'm used to working with an IDE and hand-writing php code. My non-technical colleague would like to edit the html using WYSIWYG and is used to using DW. At the moment the html in the heredoc strings doesn't display in design view. I've been trying to rejig the pages using translators and can convert the above php into html which renders fine in a browser. The html output from the translateMarkup function doesn't display in design view. I think I'm probably fighting a losing battle (for instance I'm not sure how I'm going to make html editable in DW even if I can get it to render), but if anyone could explain why the html won't render I'd be very grateful. My translator is
<html>
<head>
<title>Conditional Translator</title>
<meta http-equiv="Content-Type" content="text/html; charset=">
<script language="JavaScript">
function translateMarkup(docNameStr, siteRootStr, docContent){
//Find the right col stuff, delimited by <<<RC\n and RC;\n
var regexRC=/<<RC([\s\S]*)RC;/;
var regexMC=/<<MC([\s\S]*)MC;/;
var rcContent = regexRC.exec(docContent)[1];
var mcContent = regexMC.exec(docContent)[1];
var ret = (getHeader()+'<main>'+mcContent+'</main><aside id="rightcol">'+rcContent+'</aside>'+getFooter());
return ret;
function getTranslatorInfo() {
var transArray = new Array(6);
transArray[0] = "LG_TRANS";
transArray[1] = "Translates for LG";
transArray[2] = "1";
transArray[3] = "php";
transArray[4] = "0";
transArray[5] = "allFiles";
transArray[6] = "50";
return transArray;
function getHeader() {
return '<!DOCTYPE html><html><head><title>TEST</title></head><body>';
function getFooter() {
return '</body></html>';
</script>
</head>
<body>
</body>
</html>unless there's any way of rewriting the files before upload and download (ie dynamically rewrite the php pages as html before dreamweaver opens them, then rewrite them back as php before they're uploaded - I'm clutching at straws).
I believe that this should be possible but I'm definitely not a DW extensionologist so I couldn't say for sure. Also, I believe that the tricky part would be the last step -> WYSIWYG edits back to PHP, which may well be impossible.
If you want to talk to someone who knows DW inside out, contact the guys at http://www.projectseven.com. They are excellent. -
Program to find Custom objects
Hi everyone,
As per the requirement, I need to build a program which will list down all custom objects (tables, data element, domain, function module & etc) in a given program.
Could you please tell which is optimized way to write the program and which are the tables/function modules I need to use.
Thanks in advance.
Regards,
Balaji Viswanath.hi ,
you can find lots of program here
http://www.guidancetech.com/people/holland/sap/abap/
Program to list all sap tables
REPORT ZZBGS044 MESSAGE-ID Z1 LINE-COUNT 65 LINE-SIZE 132
NO STANDARD PAGE HEADING.
Description: This program list all tables in regards to the *
selection criteria. *
Customizing: You need not to make any customizing to use this program*
Change of You only have to check that tables, functions and *
release: includes till exists. Bedst just to check and run the *
program. *
Programmer: Benny G. Sørensen *
Date: July 1995 *
SAP R/3 2.2F *
Corrections----
Date Userid Correction *
xx-xx-xxxx xxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx *
TABLES: DD02V "SAP tables view
DATA: BEGIN OF DYNTAB OCCURS 2000.
INCLUDE STRUCTURE BDCDATA.
DATA: END OF DYNTAB.
DATA: BEGIN OF TABLES OCCURS 100.
INCLUDE STRUCTURE DD02V.
DATA: END OF TABLES.
DATA: L TYPE I,
REPL(30) TYPE C VALUE '????????????????????????????'.
FIELD-SYMBOLS:
PARAMETERS:
TABLE(30) TYPE C,
TITLE(74) TYPE C LOWER CASE DEFAULT ' ',
DOWNLOAD(1) TYPE C DEFAULT ' ',
FILENAME(65) TYPE C DEFAULT 'c:SAPDOC?',
EXCEPT(30) TYPE C DEFAULT ' '.
START-OF-SELECTION.
IF TABLE = ''.
TABLE = '*' .
ENDIF.
IF TITLE = ''.
TITLE = '*' .
ENDIF.
TRANSLATE TABLE USING '*%'.
TRANSLATE TITLE USING '*%'.
CONDENSE EXCEPT NO-GAPS.
L = STRLEN( EXCEPT ).
IF L > 0.
ASSIGN REPL(L) TO
ENDIF.
SELECT * FROM DD02V INTO TABLES
WHERE DDLANGUAGE = SY-LANGU
AND TABNAME LIKE TABLE
AND DDTEXT LIKE TITLE.
HIDE DD02V-TABNAME.
IF EXCEPT NE ''.
REPLACE EXCEPT LENGTH L WITH
INTO TABLES-TABNAME.
ENDIF.
TRANSLATE TABLE USING '% '.
CONDENSE TABLE NO-GAPS.
IF TABLES-TABNAME CS TABLE.
WRITE:/ TABLES-TABNAME, ' ', TABLES-DDTEXT.
APPEND TABLES.
ENDIF.
ENDSELECT.
IF DOWNLOAD NE ''.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = FILENAME
FILETYPE = 'WK1' "ASC, WK1, DBF, DAT, bin
TABLES
DATA_TAB = TABLES.
ENDIF.
AT LINE-SELECTION.
SET PARAMETER ID 'DOB' FIELD SY-LISEL(30) .
CALL TRANSACTION 'SE12' AND SKIP FIRST SCREEN.
AT PF8.
CHECK SY-LISEL <>
SET PARAMETER ID 'DTB' FIELD SY-LISEL(10) .
REFRESH DYNTAB.
PERFORM DYNPRO USING:
'X' 'SAPMSTAZ' '0100' "Selection screen
,' ' 'DD02V-TABNAME' SY-LISEL(10).
CALL TRANSACTION 'SE16' USING DYNTAB MODE 'A' .
FORM DYNPRO USING DYNBEGIN NAME VALUE.
IF DYNBEGIN = 'X'.
CLEAR DYNTAB.
MOVE : NAME TO DYNTAB-PROGRAM,
VALUE TO DYNTAB-DYNPRO,
DYNBEGIN TO DYNTAB-DYNBEGIN.
APPEND DYNTAB.
ELSE.
CLEAR DYNTAB.
MOVE: NAME TO DYNTAB-FNAM,
VALUE TO DYNTAB-FVAL.
APPEND DYNTAB.
ENDIF.
ENDFORM.
Yogesh N -
What are all the tables used for this report ? please reply
hai
i have practcing reports,
so any one give me the name of the tables used for the below report
<b>Created report for invoice details, shipping details and partner function.</b>
thanks in advance.
by
ashokHi Ashok,
I am sending you the code which will display tables present in SAP with the description and jump to datadic or SE16 by selecting plus F2 or F8.
REPORT ZZBGS044 MESSAGE-ID Z1 LINE-COUNT 65 LINE-SIZE 132
NO STANDARD PAGE HEADING.
Description: This program list all tables in regards to the *
selection criteria. *
Customizing: You need not to make any customizing to use this program*
Change of You only have to check that tables, functions and *
release: includes till exists. Bedst just to check and run the *
program. *
Programmer: Benny G. Sørensen *
Date: July 1995 *
SAP R/3 2.2F *
Corrections----
Date Userid Correction *
xx-xx-xxxx xxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx *
TABLES: DD02V "SAP tables view
DATA: BEGIN OF DYNTAB OCCURS 2000.
INCLUDE STRUCTURE BDCDATA.
DATA: END OF DYNTAB.
DATA: BEGIN OF TABLES OCCURS 100.
INCLUDE STRUCTURE DD02V.
DATA: END OF TABLES.
DATA: L TYPE I,
REPL(30) TYPE C VALUE '????????????????????????????'.
FIELD-SYMBOLS:
PARAMETERS:
TABLE(30) TYPE C,
TITLE(74) TYPE C LOWER CASE DEFAULT ' ',
DOWNLOAD(1) TYPE C DEFAULT ' ',
FILENAME(65) TYPE C DEFAULT 'c:SAPDOC?',
EXCEPT(30) TYPE C DEFAULT ' '.
START-OF-SELECTION.
IF TABLE = ''.
TABLE = '*' .
ENDIF.
IF TITLE = ''.
TITLE = '*' .
ENDIF.
TRANSLATE TABLE USING '*%'.
TRANSLATE TITLE USING '*%'.
CONDENSE EXCEPT NO-GAPS.
L = STRLEN( EXCEPT ).
IF L > 0.
ASSIGN REPL(L) TO
ENDIF.
SELECT * FROM DD02V INTO TABLES
WHERE DDLANGUAGE = SY-LANGU
AND TABNAME LIKE TABLE
AND DDTEXT LIKE TITLE.
HIDE DD02V-TABNAME.
IF EXCEPT NE ''.
REPLACE EXCEPT LENGTH L WITH
INTO TABLES-TABNAME.
ENDIF.
TRANSLATE TABLE USING '% '.
CONDENSE TABLE NO-GAPS.
IF TABLES-TABNAME CS TABLE.
WRITE:/ TABLES-TABNAME, ' ', TABLES-DDTEXT.
APPEND TABLES.
ENDIF.
ENDSELECT.
IF DOWNLOAD NE ''.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = FILENAME
FILETYPE = 'WK1' "ASC, WK1, DBF, DAT, bin
TABLES
DATA_TAB = TABLES.
ENDIF.
AT LINE-SELECTION.
SET PARAMETER ID 'DOB' FIELD SY-LISEL(30) .
CALL TRANSACTION 'SE12' AND SKIP FIRST SCREEN.
AT PF8.
CHECK SY-LISEL <>
SET PARAMETER ID 'DTB' FIELD SY-LISEL(10) .
REFRESH DYNTAB.
PERFORM DYNPRO USING:
'X' 'SAPMSTAZ' '0100' "Selection screen
,' ' 'DD02V-TABNAME' SY-LISEL(10).
CALL TRANSACTION 'SE16' USING DYNTAB MODE 'A' .
FORM DYNPRO USING DYNBEGIN NAME VALUE.
IF DYNBEGIN = 'X'.
CLEAR DYNTAB.
MOVE : NAME TO DYNTAB-PROGRAM,
VALUE TO DYNTAB-DYNPRO,
DYNBEGIN TO DYNTAB-DYNBEGIN.
APPEND DYNTAB.
ELSE.
CLEAR DYNTAB.
MOVE: NAME TO DYNTAB-FNAM,
VALUE TO DYNTAB-FVAL.
APPEND DYNTAB.
ENDIF.
ENDFORM.
Regards,
Azaz Ali. -
Xpath expression for a custom SearchBoxEx WebPart to a DataFormWebPart
Hi all,
I have a custom search webpart that has asp controls that are used in my dataview (DataFormWebPart) for retreiving data. This data view has the xslt variable "Rows" with the following xpath expression:
<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row[
(contains(translate(@Title,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'), translate($FilterName,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')) or $FilterName = '')]"/>
*<ParameterBinding Name="FilterName" Location="Control(txtName)" DefaultValue=""/>
This webpart searchs for people by their name. For example:
search for:
jose
results:
jose luis escudero
jorge jose torres
Ok, it works fine there, but what if I want to search for: jose escudero. There won't be any results because the search xpath expressions has a contains function for what you write in the textbox control.
So I think it should be splited by " " and searchs for the each word in the @Title column of the data source.
I don't master xpath expressions so I don't know how to code a correct xpath expression for that, any idea? I would greatly appreciate any help. Thanks.Hi betozg31,
According to your description, the point is that your Xpath code put the “jose escudero” search keyword as a unitary string. So your search would not return any results. I think
if you want to search result using two or more keywords ,you need to deal with the keywords firstly. Separating from the “jose escudero” search keyword , getting “jose” search keyword and “escudero” search keyword. Here is a simple code you
can have a look:
<xsl:if test="$FilterName =' ' ">
<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row[ $FilterName=' ']"/>
</xsl:if>
<xsl:variable name="FormatFN" select="lower-case(normalize-space($FilterName))"/>
<xsl:variable name="FormatT" select="lower-case(@Title)" />
<xsl:if test="matches($FormatFN,' ')">
<xsl:variable name="FilterNameBefore" select="substring-before($FormatFN,' ')"/>
<xsl:variable name="FilterNameAfter" select="substring-after($FormatFN,' ')"/>
<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row[ contains(contains($FormatT, $FilterNameBefore),$FilterNameAfter )]"/>
</xsl:if>
<xsl:if test="not(matches($FormatFN,' '))">
<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row[ contains($FormatT,$FormatFN)]"/>
</xsl:if>
Hope this helps!
Best Regards,
Eric
Eric Tao
TechNet Community Support -
I'm not being lazy, I have looked through many of the threads and don't seems to be able to find the answer to this query, if anyone can offer any assistance I'd be very grateful.
I want to send email with multiple attachments and I'm taking advantages of the demo_mail functionality already in place. I can successfully send email with and attachment by passing in the file name from the wwv.flows table after I've uploaded the file. The problem is that I'm not sure how to pass multiple attachments. I imagine I would either be passing multiple file names or combining the blobs?
Code as follows:
procedure email_attachments_asis(
p_sender varchar2, -- sender, example: 'Me '
p_recipients varchar2, -- recipients, example: 'Someone '
p_subject varchar2, -- subject
p_body varchar2, -- body
p_filename varchar2, -- name of pdf file
p_blob blob, -- file(s)
p_mime_type varchar2,
p_number_to_attach number) is
conn utl_smtp.connection;
i number;
len number;
v_eol VARCHAR2(2) := chr(13)||chr(10);
BEGIN
conn := demo_mail.begin_mail(
sender => p_sender,
recipients => p_recipients,
subject => p_subject,
mime_type => demo_mail.MULTIPART_MIME_TYPE);
if p_number_to_attach > 1 then
demo_mail.attach_text(
conn => conn,
data => p_body,
mime_type => p_mime_type);
elsif p_number_to_attach = 1 then
demo_mail.attach_text(
conn => conn,
data => p_body,
mime_type => p_mime_type);
end if;
for counter in 1..p_number_to_attach loop
demo_mail.begin_attachment(
conn => conn,
mime_type => p_mime_type,
inline => TRUE,
filename => p_filename,
transfer_enc => 'base64');
-- split the Base64 encoded attachment into multiple lines
i := 1;
len := DBMS_LOB.getLength(p_blob);
WHILE (i < len) LOOP
IF(i + demo_mail.MAX_BASE64_LINE_WIDTH < len)THEN
UTL_SMTP.Write_Raw_Data (conn
, UTL_ENCODE.Base64_Encode(
DBMS_LOB.Substr(p_blob, demo_mail.MAX_BASE64_LINE_WIDTH, i)));
ELSE
UTL_SMTP.Write_Raw_Data (conn
, UTL_ENCODE.Base64_Encode(
DBMS_LOB.Substr(p_blob, (len - i)+1, i)));
END IF;
UTL_SMTP.Write_Data(conn, UTL_TCP.CRLF);
i := i + demo_mail.MAX_BASE64_LINE_WIDTH;
END LOOP;
end loop;
demo_mail.end_attachment(conn => conn);
demo_mail.end_mail( conn => conn );
END email_attachments_asis;The method I would use is:
1) Write a utility function that accepts a SQL cursor, converts it to XML and applies a XSL stylesheet to convert it to an HTML table and return the result as a CLOB. An example that I based code on is here. My modified example that accepts the stylesheet is at the end.
2) For each report, run the function and attach it to the email.
FUNCTION FNCREFCURSOR2XML
( p_refCursor SYS_REFCURSOR,
p_stlsht CLOB,
p_parms VARCHAR2 default null)
RETURN CLOB
IS
lRetVal CLOB;
lHTMLOutput XMLType;
lXMLData XMLType;
lContext DBMS_XMLGEN.CTXHANDLE;
stringarg varchar2(200);
BEGIN
-- get a handle on the ref cursor --
lContext := DBMS_XMLGEN.NEWCONTEXT(p_refCursor);
-- setNullHandling to 1 (or 2) to allow null columns to be displayed --
DBMS_XMLGEN.setNullHandling(lContext,1);
-- create XML from ref cursor --
lXMLData := DBMS_XMLGEN.GETXMLTYPE(lContext,DBMS_XMLGEN.NONE);
if lXMLData is null then
DBMS_XMLGEN.CLOSECONTEXT(lContext);
close p_refCursor;
return null;
end if;
DBMS_OUTPUT.PUT_LINE('xmldata = ' || lXMLData.getStringVal());
-- XSL transformation to convert XML to HTML --
--stringarg:=regexp_replace(p_parms,'"([[:alnum:][:space:]]*)"','"string(' || '''' || '\1' || '''' || ')"',1,0,'m');
lHTMLOutput := lXMLData.transform(XMLType(p_stlsht),p_parms);
-- convert XMLType to Clob --
lRetVal := dbms_xmlgen.convert(lHTMLOutput.getClobVal(),DBMS_XMLGEN.ENTITY_DECODE );
--lRetVal := lHTMLOutput.getClobVal();
lRetVal := regexp_replace(lRetVal,'_x0020_',' ',1,0,'m');
lRetVal := regexp_replace(lRetVal,'_x0026_','&',1,0,'m');
lRetVal := regexp_replace(lRetVal,'_x003C_','<',1,0,'m');
lRetVal := regexp_replace(lRetVal,'_x002F_','/',1,0,'m');
lRetVal := regexp_replace(lRetVal,'_x003E_','>',1,0,'m');
lRetVal := regexp_replace(lRetVal,'>','>',1,0,'m');
lRetVal := regexp_replace(lRetVal,'<','<',1,0,'m');
lRetVal := regexp_replace(lRetVal,'"','"',1,0,'m');
lRetVal := regexp_replace(lRetVal,'&','&',1,0,'m');
--lRetVal := lHTMLOutput.getStringVal();
DBMS_XMLGEN.CLOSECONTEXT(lContext);
CLOSE p_refCursor;
RETURN lRetVal;
end fncRefCursor2XML;-----
Example Stylesheet:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:param name="title"/>
<xsl:param name="widthpx" />
<xsl:param name="widthpct" />
<xsl:template match="/">
<div style="width:100%">
<table border="1px" class="t16standard" style="border-collapse:collapse">
<xsl:if test="string-length($widthpx) > 0">
<xsl:attribute name="width">
<xsl:value-of select="$widthpx"/>px
</xsl:attribute>
</xsl:if>
<xsl:if test="string-length($widthpct) > 0">
<xsl:attribute name="width">
<xsl:value-of select="$widthpct"/>%
</xsl:attribute>
</xsl:if>
<xsl:if test='string-length($title) > 0 '>
<tr>
<th style="font-size:14px;background:#9DB8D2">
<xsl:attribute name="colspan">
<xsl:value-of select="count(/ROWSET/ROW[1]/*)"/>
</xsl:attribute>
<xsl:attribute name="align">center</xsl:attribute>
<xsl:value-of select="translate($title,'_',' ')"/>
</th>
</tr>
</xsl:if>
<tr>
<xsl:for-each select="/ROWSET/ROW[1]/*">
<th class="t16ReportHeader"><xsl:value-of select="name()"/></th>
</xsl:for-each>
</tr>
<xsl:for-each select="/ROWSET/*">
<tr>
<xsl:for-each select="./*">
<td>
<xsl:choose>
<xsl:when test="string(@bgcolor)">
<xsl:attribute name="bgcolor">
<xsl:value-of select="@bgcolor" />
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="bgcolor">#FFFFFF</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="string(@style)">
<xsl:attribute name="style">
<xsl:value-of select="@style" />
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="style">
padding:3px
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="text()"/> </td>
</xsl:for-each>
</tr>
</xsl:for-each>
</table>
</div>
</xsl:template>
</xsl:stylesheet>Edited by: Fairfax_Al on Apr 15, 2009 4:17 PM -
Function module to create business partner
Hi,
I want to create the business partner and iam using the 'BAPI_BUPA_FS_CREATE_FROM_DATA2' but it is not updating the record in but000.
its very urgent, popints will be rewarded.DATA : PARTNER_CATEGORY TYPE BAPIBUS1006_HEAD-PARTN_CAT,
CENTRALDATA TYPE BAPIBUS1006_CENTRAL,
PERSON_DATA TYPE BAPIBUS1006_CENTRAL_PERSON,
ADDRESS_DATA TYPE BAPIBUS1006_ADDRESS,
TELEFONDATA TYPE TABLE OF BAPIADTEL WITH HEADER LINE,
FAXDATA TYPE TABLE OF BAPIADFAX WITH HEADER LINE,
E_MAILDATA TYPE TABLE OF BAPIADSMTP WITH HEADER LINE,
WA_RETURN TYPE BAPIRET2,
PARTNER_GRP TYPE BAPIBUS1006_HEAD-PARTN_GRP,
TITLE_KEY TYPE AD_TITLE.
PARTNER_CATEGORY = '1'. "Person
PARTNER_GRP = '0002'.
CENTRALDATA-SEARCHTERM1 = SEARCHTERM1.
CENTRALDATA-SEARCHTERM2 = SEARCHTERM2.
TRANSLATE TITLE TO UPPER CASE.
IF TITLE = 'MR.'.
TITLE_KEY = '0002'.
ELSEIF TITLE = 'MS.'.
TITLE_KEY = '0001'.
ENDIF.
CENTRALDATA-TITLE_KEY = TITLE_KEY.
PERSON_DATA-FIRSTNAME = FIRSTNAME.
PERSON_DATA-LASTNAME = LASTNAME.
PERSON_DATA-TITLE_ACA1 = TITLE_ACA1.
PERSON_DATA-TITLE_SPPL = TITLE_SPPL.
PERSON_DATA-NAMEFORMAT = NAMEFORMAT.
PERSON_DATA-BIRTHDATE = BIRTHDATE.
PERSON_DATA-CORRESPONDLANGUAGE = CORRESPONDLANGUAGE.
PERSON_DATA-*** = ***.
PERSON_DATA-MARITALSTATUS = MARITALSTATUS.
PERSON_DATA-NATIONALITY = NATIONALITY.
ADDRESS_DATA-STANDARDADDRESS = 'X'.
ADDRESS_DATA-HOUSE_NO = HOUSE_NO.
ADDRESS_DATA-STREET = STREET.
ADDRESS_DATA-PO_BOX = PO_BOX.
ADDRESS_DATA-POSTL_COD1 = POSTL_COD1.
ADDRESS_DATA-CITY = CITY.
ADDRESS_DATA-REGION = REGION.
ADDRESS_DATA-COUNTRY = COUNTRY.
ADDRESS_DATA-LANGU = LANGUAGE.
TELEFONDATA-TELEPHONE = TELEPHONE.
APPEND TELEFONDATA.
FAXDATA-FAX = FAX.
APPEND FAXDATA.
E_MAILDATA-E_MAIL = EMAIL.
APPEND E_MAILDATA.
CALL FUNCTION 'BAPI_BUPA_CREATE_FROM_DATA'
EXPORTING
BUSINESSPARTNEREXTERN = BP_NO
PARTNERCATEGORY = PARTNER_CATEGORY
PARTNERGROUP = PARTNER_GRP
CENTRALDATA = CENTRALDATA
CENTRALDATAPERSON = PERSON_DATA
ADDRESSDATA = ADDRESS_DATA
IMPORTING
BUSINESSPARTNER = BP
TABLES
TELEFONDATA = TELEFONDATA
FAXDATA = FAXDATA
E_MAILDATA = E_MAILDATA
RETURN = RETURN.
Reward if useful. -
Transférer des fichiers word et pdf sur l'Ipad. des cours quoi pour les lire partout
Je souhaites transférer des cours (pdf et worf, excel) sur mon Ipad de façon à pouvoir les lire à tout moment même quand je n'ai pas de connexion internet. En vous remerciant par avance.
Translated
Title - transferring word files and pdf on the iPad. what courses to play them anywhere
Question - I want to transfer courses (and Word, pdf, excel) on my Iphone so you can read them at all times even when I have no internet connection. Thanking you in advance.
I don't understand your question. Maybe someone else can help.
Je ne comprends pas votre question. Peut-être que quelqu'un d'autre peut vous aider.
Cheers, Tom -
Ho to create BusinessPartner in SAP CRM
Hi All,
iam new to SAP CRM and i want to create Businespartner in crm
please tell me through which bapi i have to create businesspatner and what is the mandotary fields of those bapi's....
Thanks in advance...Yes u can create BP using the BAPI 'BAPI_BUPA_CREATE_FROM_DATA'.
Just refer the code below,
DATA : PARTNER_CATEGORY TYPE BAPIBUS1006_HEAD-PARTN_CAT,
CENTRALDATA TYPE BAPIBUS1006_CENTRAL,
PERSON_DATA TYPE BAPIBUS1006_CENTRAL_PERSON,
ADDRESS_DATA TYPE BAPIBUS1006_ADDRESS,
TELEFONDATA TYPE TABLE OF BAPIADTEL WITH HEADER LINE,
FAXDATA TYPE TABLE OF BAPIADFAX WITH HEADER LINE,
E_MAILDATA TYPE TABLE OF BAPIADSMTP WITH HEADER LINE,
WA_RETURN TYPE BAPIRET2,
PARTNER_GRP TYPE BAPIBUS1006_HEAD-PARTN_GRP,
TITLE_KEY TYPE AD_TITLE.
PARTNER_CATEGORY = '1'. "Person
PARTNER_GRP = '0002'.
CENTRALDATA-SEARCHTERM1 = SEARCHTERM1.
CENTRALDATA-SEARCHTERM2 = SEARCHTERM2.
TRANSLATE TITLE TO UPPER CASE.
IF TITLE = 'MR.'.
TITLE_KEY = '0002'.
ELSEIF TITLE = 'MS.'.
TITLE_KEY = '0001'.
ENDIF.
CENTRALDATA-TITLE_KEY = TITLE_KEY.
PERSON_DATA-FIRSTNAME = FIRSTNAME.
PERSON_DATA-LASTNAME = LASTNAME.
PERSON_DATA-TITLE_ACA1 = TITLE_ACA1.
PERSON_DATA-TITLE_SPPL = TITLE_SPPL.
PERSON_DATA-NAMEFORMAT = NAMEFORMAT.
PERSON_DATA-BIRTHDATE = BIRTHDATE.
PERSON_DATA-CORRESPONDLANGUAGE = CORRESPONDLANGUAGE.
PERSON_DATA-*** = ***.
PERSON_DATA-MARITALSTATUS = MARITALSTATUS.
PERSON_DATA-NATIONALITY = NATIONALITY.
ADDRESS_DATA-STANDARDADDRESS = 'X'.
ADDRESS_DATA-HOUSE_NO = HOUSE_NO.
ADDRESS_DATA-STREET = STREET.
ADDRESS_DATA-PO_BOX = PO_BOX.
ADDRESS_DATA-POSTL_COD1 = POSTL_COD1.
ADDRESS_DATA-CITY = CITY.
ADDRESS_DATA-REGION = REGION.
ADDRESS_DATA-COUNTRY = COUNTRY.
ADDRESS_DATA-LANGU = LANGUAGE.
TELEFONDATA-TELEPHONE = TELEPHONE.
APPEND TELEFONDATA.
FAXDATA-FAX = FAX.
APPEND FAXDATA.
E_MAILDATA-E_MAIL = EMAIL.
APPEND E_MAILDATA.
CALL FUNCTION 'BAPI_BUPA_CREATE_FROM_DATA'
EXPORTING
BUSINESSPARTNEREXTERN = BP_NO
PARTNERCATEGORY = PARTNER_CATEGORY
PARTNERGROUP = PARTNER_GRP
CENTRALDATA = CENTRALDATA
CENTRALDATAPERSON = PERSON_DATA
ADDRESSDATA = ADDRESS_DATA
IMPORTING
BUSINESSPARTNER = BP
TABLES
TELEFONDATA = TELEFONDATA
FAXDATA = FAXDATA
E_MAILDATA = E_MAILDATA
RETURN = RETURN -
Help: Verify or Suggest a Simple Regular Expression
I'm trying to do a mapping from a title to a file name portion of a URL. Thus the result needs to follow the rules as specified here:
http://labs.apache.org/webarch/uri/rfc/rfc3986.html#unreserved
I identified the following characters as legal: a-z / 0-9 / "-" / "." / "_" / "~"
Everything else has to be converted to an underscore.
I came up with the following expression:
someString.replaceAll("[^a-zA-Z0-9-._~]", "_")Is that correct? I spent a lot of time trying to figure out regular expressions, but it seems like everyone (i.e. PHP, TextPad and now Java) has a slightly different version and to top it off, there not very good tutorials or explanations. I dread regular expressions!!!
Can anyone help please?HoganWang wrote:
Ur regular expression is right. The regular expression has simple and complex versions. If the replaceAll is frequently called, it is recommended to use Pattern to compile the regular expressions first.How does the expression know that the hypen isn't part of range? I guess the only way is that it is between alphabetical letters or numbers.
In terms of efficiency. This is called once per page request i.e.
somedomain.com/somecategory/title_title_title
Well, I need to be able to translate title&title$title to title_title_title. It doesn't seem like a pre-compiling the regular expression will speed it up since between page requests, it won't remember fields or am I wrong? -
Comment transférer sur l'Ipad les modèles de Pages enregistrées sur Mac ?
Comment transférer sur l'Ipad les modèles de Pages enregistrées sur Mac ?
Par ailleurs, lorsqu'on récupère sur Ipad via Icloud les documents Pages depuis Mac, les styles sont modifiés. Il y a-t-il un paramétrage à faire pour éviter cet inconvénient ?Translated
Title - transferring word files and pdf on the iPad. what courses to play them anywhere
Question - I want to transfer courses (and Word, pdf, excel) on my Iphone so you can read them at all times even when I have no internet connection. Thanking you in advance.
I don't understand your question. Maybe someone else can help.
Je ne comprends pas votre question. Peut-être que quelqu'un d'autre peut vous aider.
Cheers, Tom -
FMT and SQL tablibs not recognised in JSF2 xhtml page
The following xhtml page produces the html source shown below. However I can't get it to process the fmt and sql taglibs correctly. I had this working prior to using xhtml pages. I had a look a the J6EE tutorial (Chapter 6 - Facelets) which mentions all the other tab libraries, but not those two. What are the available alternatives ?
other.xhtml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
xmlns:sql="http://java.sun.com/jsp/jstl/sql"
xmlns:fn="http://java.sun.com/jsp/jstl/functions"
xml:lang="en" lang="en">
<fmt:setBundle basename="com.j2anywhere.addressbookserver.web.Translations" var="translations" scope="session"/>
<f:loadBundle basename="com.j2anywhere.addressbookserver.web.Translations" var="faces_translations"/>
<h:head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<c:if test="${pageContext.request.requestURI ne '${pageContext.request.contextPath}/autoLogout.jsf'}">
<meta http-equiv="refresh" content="1800;url=${pageContext.request.contextPath}/autoLogout.jsf"/>
</c:if>
<title><fmt:message key="PageTitle" bundle="${translations}"/></title>
<script src="${pageContext.request.contextPath}/scripts/common.js" type="text/javascript"></script>
</h:head>
<h:body>
<h1>Other</h1>
<h:form>
<h:outputText value="#{faces_translations.Yes}"/>
</h:form>
<h:outputText value="#{faces_translations.Yes}"/>
</h:body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" xmlns:sql="http://java.sun.com/jsp/jstl/sql" xml:lang="en" lang="en">
<fmt:setBundle basename="com.j2anywhere.addressbookserver.web.Translations" var="translations" scope="session"></fmt:setBundle>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="1800;url=/autoLogout.jsf" />
<title><fmt:message key="PageTitle"></fmt:message></title>
<script src="/scripts/common.js" type="text/javascript"></script></head><body>
<h1>Other</h1>
<form id="j_idt10" name="j_idt10" method="post" action="/other.jsf" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="j_idt10" value="j_idt10" />
Yes<input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="-9208139216578266380:-4314993053830858838" autocomplete="off" />
</form>Yes</body>
</html>okay here's the code for the whole procedure. Some variable names have been changed but it's otherwise the same code:
DECLARE
v_total_cost NUMBER(10,2);
v_deposit NUMBER(10,2);
v_remaining NUMBER(10,2);
v_payment_type varchar2(2);
v_checkbox varchar2(4000);
v_user varchar2(4000);
v_bok_paid varchar2(1);
v_msg varchar2(4000);
BEGIN
v_total_cost := :P100_COST;
v_deposit := :P100_DEPOSIT;
v_remaining := v_total_cost - v_deposit;
v_payment_type := :P100_PAYMENT_AMOUNT;
v_checkbox := :P100_CHECKBOX;
v_user := :APP_USER;
--wwv_flow.debug('before condition');
if v_checkbox != '' AND :P100_RADIO = 'CD' THEN
v_bok_paid := 'Y';
else
v_bok_paid := 'N';
end if;
--wwv_flow.debug('after condition');
IF v_payment_type = 'D' THEN
:P100_AMOUNT_TO_PAY := :P100_DEPOSIT;
INSERT INTO SAL_TRANSACTIONS (TRA_BKG_ID, TRA_COST, TRA_TOTAL,TRA_TYPE, TRA_PAID, TRA_PAY_TYPE, TRA_DATE, TRA_MANUAL, TRA_USER)
VALUES (:P100_BKG_ID, 0, v_deposit, v_payment_type, v_bok_paid, :P100_RADIO, SYSDATE, v_checkbox, v_user);
INSERT INTO SAL_TRANSACTIONS (TRA_BKG_ID, TRA_COST, TRA_TOTAL,TRA_TYPE, TRA_PAID, TRA_PAY_TYPE, TRA_DATE, TRA_MANUAL, TRA_USER)
VALUES (:P100_BKG_ID, 0, v_remaining, 'L','N', null, SYSDATE, v_checkbox, v_user);
ELSIF v_payment_type = 'F' THEN
:P100_AMOUNT_TO_PAY := :P100_COST;
INSERT INTO SAL_TRANSACTIONS (TRA_BKG_ID, TRA_COST, TRA_TOTAL,TRA_TYPE, TRA_PAID, TRA_PAY_TYPE, TRA_DATE, TRA_MANUAL, TRA_USER)
VALUES (:P100_BKG_ID, 0, v_total_cost, :P100_PAYMENT_AMOUNT, v_bok_paid, :P100_RADIO, SYSDATE, v_checkbox, v_user);
END IF;
:P100_TRANSACTION_FLAG := '1';
if v_bok_paid = 'Y' then
v_msg := '<div>Message clipped</div>';
--send confirmation email
GLO_CORRESPONDANCE.proc_corr_controller(
:P100_BOOKING_MEMBER_ID,
:P100_BKG_ID,
null,
v_msg,
'E',
'Payment confirmation',
null
end if;
END;Thanks :) -
Hi folks
I dont know but could you please let me know the security reports and tables.
Ill appreciate your help
Cheers
UsmanUsman ,
You can see the reports Under t-code SUIM
RSUSR000 Currently Active Users
RSUSR002 Users by Complex Selection Criteria
RSUSR002_ADDRESS Users by address data
RSUSR003 Check the Passwords of Users SAP* and DDIC in All Clients
RSUSR004 Restrict User Values to the Following Simple Profiles and Auth. Ob
RSUSR005 List of Users With Critical Authorizations
RSUSR006 Locked Users and Users with Incorrect Logons
RSUSR007 Display Users with Incomplete Address Data
RSUSR008 Critical Combinations of Authorizations at Transaction Start
RSUSR008_009_NEW List of Users With Critical Authorizations
RSUSR009 List of Users With Critical Authorizations
RSUSR010 Transactions for User, with Profile or Authorization
RSUSR011 Lists of transactions after selection by user, profile or obj.
RSUSR012 Search authorizations, profiles and users with specified object va
RSUSR020 Profiles by Complex Selection Criteria
RSUSR030 Authorizations by Complex Selection Criteria
RSUSR040 Authorization Objects by Complex Selection Criteria
RSUSR050 Comparisons
RSUSR060 Where-used lists
RSUSR060OBJ Where-Used List for Authorization Object in Programs and Transacti
RSUSR061 Enter Authorization Fields
RSUSR070 Roles by Complex Selection Criteria
RSUSR080 Users by License Data
RSUSR100 Change Documents for Users
RSUSR101 Change Documents for Profiles
RSUSR102 Change Documents for Authorizations
RSUSR200 List of Users According to Logon Date and Password Change
RSUSR300 Set External Security Name for All Users
RSUSR301 Fill non-checking transactions with auth.object S TCODE
RSUSR302 Delete authorization check on object S TCODE from table TSTCA
RSUSR304 Reload Table TSTCA From Table TSTCA_C
RSUSR400 Test Environment Authorization Checks (SAP Systems Only)
RSUSR401 Report to give all SAPCPIC users profile S_A.CPIC
RSUSR402 Download user data for CA manager from Secude
RSUSR403 Assign Profile S_A.CPIC to User SAPCPIC in Current Client
RSUSR404 Conversion Program for Authorizations of Basis Development Environ
RSUSR405 Reset all user buffers in all clients (uncritical)
RSUSR406 Automatically Generate Profile SAP_ALL
RSUSR406_OLD Automatically Generate Profile SAP_ALL
RSUSR408 XPRA: Conversion of USOBX-OKFLAG, USOBX-MODIFIED for upgrade tool
RSUSR409 Transfer all translated titles to generated transaction codes
RSUSR421 Clean-up report: TSTC-CINFO if no check in TSTCA
RSUSR500 User Administration: Compare Users in Central System
RSUSR500D Report RSUSR500D
RSUSR998 Call Reporting Tree Info System
RSUSREXT Enter Correct SNC Names in Table View VUSREXTID (from SAP R/3 4.5)
RSUSREXTID Enter Correct SNC Names in Table View VUSREXTID (from SAP R/3 4.5)
RSUSRLOG Log Display for Central User Administration
RSUSRSCUC CUA: Synchronization of the Company Addresses
RSUSRSUIM User Information System
RSUSR_S_USER_SAS Activate Authorization Object S_USER_SAS
RSUSR_S_USER_SAS_01 Complete Authorization Data for S_USER_SAS in Roles
RSUSR_S_USER_SAS_02 Convert Authorization Defaults
RSUSR_SYSINFO_PROFILE Report cross-system information/profile
RSUSR_SYSINFO_ROLE Report cross-system information/role
RSUSR_SYSINFO_ZBV Report cross-system information/***
Here`re the tables :
User/Security tables
DEVACCESS Table of development users including dev access key
USR02 Logon data
USR04 User master authorization (one row per user)
UST04 User profiles (multiple rows per user)
USR10 Authorisation profiles (i.e. &_SAP_ALL)
UST10C Composit profiles (i.e. profile has sub profile)
USR11 Text for authorisation profiles
USR12 Authorisation values
USR13 Short text for authorisation
USR40 Tabl for illegal passwords
OBJT Authorisation objetc table
<b>Hope thisll give you some idea . I deserve 10 points now :)</b>
Thanks
Saquib Khan
Maybe you are looking for
-
How to mass-reindex files with same name but different file extensions
(reposting cos I'm confused about if I posted in the proper place before. Please delete if it is a repost.) So I'm on a remote workflow. I pick all the raw data and convert it in two quality standards, one on 'high' with full specifications and one o
-
How could i get the material description in cost esti itemization view?
Hi Gurus, I have created the process order (T.Code COR1) and calculate the cost & get the material costing details.but i required to see the material description (Packaging material) rather than the material code (PK01-1204) in costing itemization vi
-
Using a script to match data with text
I don't know a lot about writing code so perhaps one of you can come up with a solution to this repetitive task. I have created a 232 page catalog. All products in the catalog have either an ISBN number, product number, or UPC listed with them. In o
-
Hi Im trying to display the cost parts share in percent of the total cost. in normal cases i would use the Scope argument to divide the cost parts against total cost but this time i have no sumaraized level for total cost to use as Scope parameter. I
-
Wht is RELEASE DATE in SD?
Hi Experts, Pls. clarify my simple doubt that, What is RELEASE DATE(VBAK-CMFRE) in SD? I got one statement here blow, It dont think we need it as long as it can confirm delivery released from order pls. explaing me. thanq