How to get customized text when ALL as parameter
Hi all,
I am having OEM as parameter in my bipublisher report.when I am selecting ALL as parameter i want to display customized text.If particular oem is selected it should display that OEM.
I tried like
select decode(:OEM,'*','XYZ',:OEM) from table-name where oem in (:OEM)but no luck!!can any one helps me in this.
Please place this in the datamodel
{$ if ${pdept}='*' $}
select 'Sample Text' from dual
{$else $}
SELECT * FROM SCOTT.EMP
WHERE 1=1
and deptno =:pdept
{$endif$}
In this 'pdept' is the parameter. When you select All, it will execute the below query.
select 'Sample Text' from dual
and you will get below xml.
<ROWSET>
<ROW>
<SAMPLETEXT>Sample Text</SAMPLETEXT>
</ROW>
</ROWSET>
When you select deptno=30, it will execute the below query.
SELECT * FROM SCOTT.EMP
WHERE 1=1
and deptno =30
and you will get below xml.
<ROW>
<EMPNO>7499</EMPNO>
<ENAME>ALLEN</ENAME>
<JOB>SALESMAN</JOB>
<MGR>7698</MGR>
<HIREDATE>1981-02-20T00:00:00.000-06:00</HIREDATE>
<SAL>1600</SAL>
<COMM>300</COMM>
<DEPTNO>30</DEPTNO>
</ROW>
So in the RTF template you can place some thing like
<?if:SAMPLETEXT?>
Sample Text
<?end if?>
<?if:EMPNO?>
<?EMPNO?> <?DEPTNO?>
<?end if?>
Similar Messages
-
Can't get all how to get album artwork when all help options didn't work
help - how do I get album artwork when all itunes help options didn't work
Other is usually around 1 GB...
A ' Large Other ' usually indicates Corrupt Data...
First Try a Restore from Backup... But... if the Large Other Persists, that is an Indicator of Corrupt Data in the Backup... Then a Restore as New is the way to go...
Details Here > http://support.apple.com/kb/HT1414
More Info about ‘Other’ in this Discussion
https://discussions.apple.com/message/19958116 -
How to get custom defined messages in WAD
Hi
can you please help me how to get customized error messages in WAD.
While I'm executing in RSRT the customer exit variable throws error message saying that 'No Sales orders exist for this Sold_To Party' but when I execute same query using Bex WAD, then no error message throwing for me for given sold_to party. I tried with all options as given in below code, but WAD gives me system error that "No values found for the customer exit variable 'Zxxxx'. Please help me in this regard. Should I do any settings in WAD to get custom defined messages. Kindly let me know
my code is as below
I_STEP = 2.
CASE i_vnam.
WHEN 'Custome exit variable'.
IF sy-subrc = 0.
ELSE.
MESSAGE e060(/bmc/bw). "No Authorization exist
g_errflag1 = 'X'.
exit.
CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
EXPORTING
i_class = '/bmc/bw'
i_type = c_e "'E'
i_number = '061'
i_msgv2 = l_msgv2.
RAISE NO_REPLACEMENT.
l_s_range-low = g_soldto.
l_s_range-sign = c_sign_i.
l_s_range-opt = c_range_opt_eq.
APPEND l_s_range TO e_t_range.
ENDIF.
I_STEP = 3.
READ TABLE i_t_var_range INTO w_s_var_range
WITH KEY vnam = 'customer exit variabel'.
IF sy-subrc = 0.
Check the flag and throw message 'No Sales orders'.
IF g_errflag1 = 'X'.
l_msgv1 = 'No Sales orders'.
Call the FM to populate message
CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
EXPORTING
i_class = c_r9
i_type = c_e "'E'
i_number = c_000
i_msgv1 = l_msgv1
EXCEPTIONS
dummy = 0
OTHERS = 0.
CALL FUNCTION 'RRMS_MESSAGES_SHOW'.
CALL FUNCTION 'RRMS_MESSAGES_DELETE'.
RAISE NO_REPLACEMENT..
ENDIF.
Thanks & Regards
siluHi
Custom Messages WAD -
How to get the 'text' property value of a button in coding?
Hi Experts,
I'm using 10 buttons all are having common action('click'). when i click a button the 'text' value of the button should pass to a function.So the action is same but the passed value will be the 'text' value of the corresponding button. I don't know how to get the 'text' property of a button in coding. Kindly help me to solve this problem.
Thanks and Regards
BasheerHi,
My event is like this.
public void onActionclick(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
String s = ? ; // should get the 'text' property of clicked button
fillInput(s); // function to be called
The called function is,
public void fillInput( java.lang.String id )
String str=wdContext.currentContextElement().getNum();
str = str + id;
wdContext.currentContextElement().setNum(str);
How can i get the 'text' property value of the corresponding button. Click action should be common to all buttons.
Thanks and Regards,
Basheer -
How to Including custom text in the step "User Decision"
Hi All
Please help me in this regards I got problem
How to Including custom text in the step "User Decision"
Regards
Poonam
Edited by: Julius Bussche on Feb 2, 2009 1:59 PM
Please use the corect forum, meaningfull subject titles and use the search before asking questionsHi Poonam,
If I understood your problem correctly...
When you create a user decision a screen will appear.
In the decision tab under Title you can give your custom text.
Even if you want to give some variable (value of which will be determined at runtime) you can give that as well.
Like you have created a container for BOR objects MAT_DETAIL, in that object there is a field MATERIAL.
You can define your custom text as below:
Title: Would you like to create new material or display material &
Parameter 1: &MAT_DETAIL.MATERIAL&;
In Title you can give as max. as 4 &(ampersand). And each & will be replaced by each Parameter at runtime in same sequence.
In parameters you use to select the container defined by you earlier.
Hope this will help. -
How to deselect the text when I start the program?
how to deselect the text when I start the program?
photo:wants the blue background could not be seen:
Code Form:
Public Class Form2
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If ComboBox1.SelectedItem = "The Sims 4" Then
Form3.Show()
Else
End If
If ComboBox1.SelectedItem = "The Sims 3" Then
Form4.Show()
Else
End If
End Sub
End Class
There's a lot wrong with all of that.
I'm sorry that I won't be able to help...
Still lost in code, just at a little higher level. -
How to get customer number and name from the SD document
Hi All,
Can you please let me know how to get Customer Number and Name from the SD Document?
Thanks a lot....
AnilHi,
It will be displayed in the SD (BIlling document) itself, you clikc on the VF03. The customer name and number will also appear in the SO document also Tcode VA03
regards,
radhika
Edited by: kolipara radhika on Jul 10, 2009 5:32 AM -
How the get an overview of all existing sapscripts ?
How the get an overview of all existing sapscripts ?
does someone know ?
thanks again : )Hi David,
Go to SE71, and press F4 in the Form name tab.There you can view the various Modules, from where in you can get an overview of the all forms related to the corresponding modules.
SE71 is the transaction for creating customized forms, viewing and making changes to the standard forms by copying them to Z-forms.
Hope this is helpful to you. If you need further information, revert back.
Reward all the helpful answers.
Regards
Nagaraj T -
How to get an email when data got inserted
Hi All,
Could you please let me know how to get an email when data got inserted into table by using sql/plsql
Thanks in adavanceCould you please let me know how to get an email when data got inserted into table by using sql/plsql
Well that seems pretty straightforward - write some pl/sql to send you an email when that pl/sql inserts data into a table.
See this Oracle-base article for an example of sending mail.
http://www.oracle-base.com/articles/misc/email-from-oracle-plsql.php
Post what you have tried so far. What part of what you have tried doesn't seem to be working? -
How to get the values of all elements and sub elements from following xml
how to get the values of all elements and sub elements from following xml...
<?xml version="1.0" encoding="UTF-8" ?>
<List_AML_Finacle xmlns="http://3i-infotech.com/Cust_AML_Finacle.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://3i-infotech.com/Cust_AML_Finacle.xsd List_AML_Finacle.xsd">
<TransactionID>TransactionID</TransactionID>
<Match>
<Src_Matched_Field>Src_Matched_Field</Src_Matched_Field>
<List_Matched_Field>
<FSFM_Matches>
<NUMBER>NUMBER</NUMBER>
<TERROR>TERROR</TERROR>
<TU>TU</TU>
<NAMEU>NAMEU</NAMEU>
<DESCRIPT>DESCRIPT</DESCRIPT>
<KODCR>KODCR</KODCR>
<KODCN>KODCN</KODCN>
<AMR>AMR</AMR>
<ADDRESS>ADDRESS</ADDRESS>
<SD>SD</SD>
<RG>RG</RG>
<ND>ND</ND>
<VD>VD</VD>
<GR>GR</GR>
<YR>YR</YR>
<MR>MR</MR>
<CB_DATE>CB_DATE</CB_DATE>
<CE_DATE>CE_DATE</CE_DATE>
<DIRECTOR>DIRECTOR</DIRECTOR>
<FOUNDER>FOUNDER</FOUNDER>
<TERRTYPE>TERRTYPE</TERRTYPE>
</FSFM_Matches>
<OfacMatchDetails>
<UID>UID</UID>
<TITLE>TITLE</TITLE>
<SDNTYPE>SDNTYPE</SDNTYPE>
<REMARKS>REMARKS</REMARKS>
<ID_UID>ID_UID</ID_UID>
<IDTYPE>IDTYPE</IDTYPE>
<IDNUMBER>IDNUMBER</IDNUMBER>
<IDCOUNTRY>IDCOUNTRY</IDCOUNTRY>
<ISSUEDATE>ISSUEDATE</ISSUEDATE>
<EXPIRATIONDATE>EXPIRATIONDATE</EXPIRATIONDATE>
<ADDRESS1>ADDRESS1</ADDRESS1>
<ADDRESS2>ADDRESS2</ADDRESS2>
<ADDRESS3>ADDRESS3</ADDRESS3>
<CITY>CITY</CITY>
<STATEORPROVINCE>STATEORPROVINCE</STATEORPROVINCE>
<POSTALCODE>POSTALCODE</POSTALCODE>
<COUNTRY>COUNTRY</COUNTRY>
</OfacMatchDetails>
</List_Matched_Field>
</Match>
</List_AML_Finacle>avoid multi post
http://forum.java.sun.com/thread.jspa?threadID=5249519 -
Xml: how to get node value when pasing node name as a parameter
Hi,
I've got some xml:
var xmlData:XML =
<1stNode>
<buttonID>first child node value</buttonID>
<imageID>second child node value</imageID>
<labelID>third child node value</labelID>
</1stNode>
Then I want to read specific node value based on a value passed to a function. .
var buttonID = new Button;
var imageID = new Image;
var labelID = new Label;
getNodeValue(buttonID); //the value here is set dynamically
private function getNodeValue (nodeName:String):void {
trace (xmlData.nodeName) //doesn't work
var str:String = "xmlData." + nodeName;
var xml:XMLList = str as XMLList //doesn't work
I'm don't know how to get the value when node name is dynamically changed.use:
getNodeValue(buttonID); //the value here is set dynamically
private function getNodeValue (nodeName:String):void {
trace (xmlData[nodeName]) -
How to get the Text name to pass in the parameter header in save_text
Hi,
I am trying to change the long text of operation for historical order by using the flat file.I am using the save_text to do this.I would like to know how to get the text name in order to pass the parameter header in save_text.
I went to the tcode iw62 to get the header information of the long text.300100000009200000001
i would like to know what this 1000000092 indicates and where is this value updated in the table so that i can link it thru the order no to get the link and pass it in the text_name.
can anyone help me out?
krishnanHi,
Your query is.
I went to the tcode iw62 to get the header information of the long text.300100000009200000001
i would like to know what this 1000000092 indicates
In above number
300 - Client
1000000092 - AUFPL - Routing number of operations in the order (You can fetch this from table HIVG)
00000001 - APLZL - General counter for order ( You can fetch this from table HIVG).
BR,
Vijay -
How to get the text present in JTextArea
i am writing application for some system to be computerised and i am not getting how to get the text present in text area and set it into database...can anybody suggest me solution??
You must have named the TextArea like
JTextArea textArea;so, use the getText() method like
String strTextAreaContents = textArea.getText();You can then use JDBC to connect to the database that you want and save your contents that is now in strTextAreaContents.
-- Srikanth -
How to get Sales Text & Purchase Order Text in MM based on (MSEG-MATNR)
Hi
Am working on a Report based on Purchase order & Sales, Could any body tell How to get Sales Text & Purchase Order Text in MM based on (MSEG-MATNR).
the Field i need to get are : SALES TEXT, PO TEXT.
Sunil.Hi Sunil,
For getting Material PO text and sales text, you have to rely on Purchase Order and Sales Order. And use READ_TEXT function module to fetch the text.
Below are examples of PO text and Sales Text:
1. PO text:
CALL FUNCTION 'READ_TEXT'
EXPORT
ID = 'F03'
LANGUAGE = SY-LANGU
NAME = '450000011200010' conacte PO number and line item number
OBJECT = 'EKPO'
TABLES
LINES = INT_TLINES "you will get text in this table
2. Sales order text:
CALL FUNCTION 'READ_TEXT'
EXPORT
ID = '0001'
LANGUAGE = SY-LANGU
NAME = '0000000036000010' conacte SO number and line item number
OBJECT = 'VBBP'
TABLES
LINES = INT_TLINES "you will get text in this table
ref: STXH and STXL tables.
Hope it will solve the problem.
Regards
Krishnendu -
How to add custom texts in Office Templates for the COBRA form set up
Hi,
How to insert custom texts in the copied BDS form from COBRA set up. I could not edit the text. I can edit the contact numbers in the standard text and displaying after saving the document.
I do not know how to proceed for this.
Please share your valuable experience in this regard.
Thank you,
Ravi.Structure Ptk03 ,Ptk33 needs to be enhanced
Maybe you are looking for
-
Where is getAsDataURL function in firefox 9? I have this error in a site working before in firefox <=8: files[i].getAsDataURL is not a function
-
What does scaled resolution mean in OSX?
I am using a 4k monitor with the latest version of OSX. In display settings, I have a choice of using scaled resolution for getting larger text. But in these resolution will I lose quality over graphic application such as photoshop and lightroom? Als
-
We had everything working and uploaded it to our server, which was fine, everything worked. However the quiz was opening in a new window which we didnt want so we went back to the properties of the relevant button that launched the quiz and we saw t
-
I bought and downloaded this extension. It has never worked properly. When I try to get a frame to open it simply closes the window I use to browse the frames. The window opens on for a fraction of a second. I have uninstalled/reinstalled this extens
-
Cannot import Photos from any location LR5.4
i cannot import any photos from anywhere on my Mac Book Pro 10.9 to LR 5.4. i will not see any photos in the import dialouge no matter where i try to take an image from.