How to use the message class CL_BSP_MESSAGES in the event handler?
Hiii,
I need to use the message class CL_BSP_MESSAGES in the even handler, because I need to use the Condition co_cancel_event_prefix to prevent saving in the method
global_messages->add_message(
condition = co_cancel_event_prefix
message = TEXT-010
severity = cl_bsp_messages=>co_severity_error ).
dummy = ME->COMPONENT_ID ).
Can anybody explain me how to use this method?
Kind Regards,
John
solved
Similar Messages
-
How to know the message class and message number
When the web client show warnning message,
How can i to find the message class and message number?
Thnaks
KevinHi,
You can goto tcode SAAB and activate the log for Checkpoint group BSP_WD_EXCEPTION_DISPLAY. whenever you log into Web UI you can see the details of the message.
To troubleshoot teh message goto SE91 and enter the message class and message number. Select the message and then click on whereused. You will see all programs where this message is used.
Hope this helps.
Regards,
Chandrakant -
How to find the Message Class and ID for messages in WebIC
Dear Experts,
I get some error messages in the WebIC
I went to SAAB to activate and see details on the error messages
But, what i am missing is the the message class and the ID information
Can any one tell me if there is a work around to check and find out which message class and ID the message belongs to
Regards,
RajHi Raj,
Put a break-point in method get_instance or ADD_MESSAGE of class cl_bsp_wd_message_service.
Best regards,
Caíque Escaler -
How to import a message class in a fm
Hello!
I' m programminn a FM.
I need to use a message class that i have created. How i can import it?
I have to return a strcuct which i have to copy my message class.
My code:
DETAIL_RETURN-ID =
DETAIL_RETURN-NUMBER =
DETAIL_RETURN-MESSAGE =
DETAIL_RETURN-MESSAGE_V1 =
APPEND DETAIL_RETURN.
I know in a report is:
REPORT report_name MESSAGE-ID my_message_class_name.
In a FM?
regards1.Add in the Top include or
2.
message id is nothing but Message class .
here u have to populate the Return table itself.
like this
DETAIL_RETURN-ID = 'V1'.
DETAIL_RETURN-NUMBER ='100'.
DETAIL_RETURN-MESSAGE = 'Njoy SAP'.
DETAIL_RETURN-MESSAGE_V1 = 'U'.
APPEND DETAIL_RETURN.
Regards
Peram -
Revision: 16929
Revision: 16929
Author: [email protected]
Date: 2010-07-15 07:38:44 -0700 (Thu, 15 Jul 2010)
Log Message:
Add a class that will register the required class aliases in the event the mxml compiler generation [RemoteClass(alias="")] code is not called because an application does not use the Flex UI framework.
Add a reference to this class in the RPCClasses file so it always gets loaded.
QE notes: Need a remoting and messaging regression test that doesn't use Flex UI.
Bugs: Watson bug 2638788
Modified Paths:
flex/sdk/trunk/frameworks/projects/rpc/src/RPCClasses.as
Added Paths:
flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/RpcClassAliasInitializer.asGreat exercise to document the problem like this. It got me thinking about how an app with modules would be different from an app that does not use modules. Solution: I moved the dummy reference of PersonPhotoView out to the main application file (as opposed to being inside the module) and it worked. I've probably been lucky not to have experienced this problem earlier, because for most other entities I have an instance attached to my model which is linked / compiled with the main application.
-
Create a message without the message class
Hi,
How would I display an error message with the MESSAGE statement without using the MESSAGE CLASS.
Please let me know the code for it.
Thanks and regards,
AnishurHi Priyank,
I was missing the quotes in E.
Thanks a lot!!!!!!
Regards,
Anishur -
How to use inbound exit class for more than one workflow step
Hi All,
In Offline Workflow Approval Scenarios where the work items are sent to outlook of non sap users inbox through workitem exit of the respective workflow item. Based on the user reply from outlook email(either approve or reject) which sends an auto reply to Offline user . We configure an inbound exit class and assign the same in the SMICM transaction. Based on the code written using SAP_WAPI function modules in inbound class exit offline user gets the user approval result and performs the action in SAP.
My question now Is how can we use this inbound exit class for all the steps of a workflow.
For ex: In a workflow I have a decision step followed by an activity step. First I will write the work item exit for the user decision step and inbound exit code for the user decision step and offline user executed the user decision step with approve action.
followed by that I have an activity step for that I will code a work item exit for that activity level but how can I user the same inbound exit class for the activity step as well .
Quick reply would be of great help for me.
With Best Regards,
VeniFor the outbound processing you have the option of replacing the workflow exit by chancing the bsp application of the extended notification (see note 1448241 solution as an example of how to do the change) and replacing the standard links with a "mailto:...".
As far as the inbound processing, that depends on what should be done in the activity step, if for example you have a bapi which executes what the user does you can call it in the inbound class instead of the user and then the relevant wapi (complete the workitem/raise event etc.). -
How to use PO message type to output 'Form' as PDF file
Dear experts,
I am working for a topic of how to use PO message type to output 'Form' as 'PDF file', and save to external file system automatically.
Any one familiar to this topic, please kindly give me some guide, thank you!
Regards,
JoyceHi,
Go through the program RSTXPDFT4 (Converting SAPscript (OTF) or ABAP List Spool Job to PDF), you will get some idea. Using this program you can convert spool into PDF file.
-Alpesh -
How to use setFireActionForSubmit with parameters and capture the parameter
Hi,
Can anyone explain how to use setFireActionForSubmit.
I am extending the Controller of ShoppingCartPG. In the extended controller processRequest method I am adding a button to the table and setting up the setFireActionForSubmit, so when the button is pressed it raises the event associated with the setFireActionForSubmit.
I need to pass the RequisitionLineId as a parameter which is present in the VO associated with the ShoppingCartPG.
I have used the following code in processRequest
=================================
public void processRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
super.processRequest(paramOAPageContext, paramOAWebBean);
OATableBean otbRN=(OATableBean)paramOAWebBean.findIndexedChildRecursive("ItemTableRN");
OASubmitButtonBean oasb= (OASubmitButtonBean)paramOAPageContext.getWebBeanFactory().createWebBean(paramOAPageContext,"BUTTON_SUBMIT");
oasb.setID("addnInfo");
oasb.setUINodeName("addnInfo");
oasb.setText("Additional Info");
String pageName = paramOAPageContext.getRootRegionCode();
Hashtable params = new Hashtable (1);
params.put ("param1", pageName);
Hashtable paramsWithBinds = new Hashtable(1);
paramsWithBinds.put ("param2", new OADataBoundValueFireActionURL(oasb, "${oa.encrypt.current.RequisitionLineId}"));
oasb.setFireActionForSubmit("addnInfoEvent",params,paramsWithBinds,false,false);
otbRN.addIndexedChild(oasb);
=================================
And in processFormRequest method I am capturing the event "addnInfoEvent" and trying to capture the RequisitionLineId which I have passed it as a parameter.
This is the code I have used in processFormRequest.
=================================
public void processFormRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
super.processFormRequest(paramOAPageContext, paramOAWebBean);
OAApplicationModule localOAApplicationModule = paramOAPageContext.getApplicationModule(paramOAWebBean);
String strEvent= paramOAPageContext.getParameter(EVENT_PARAM) ;
if ("addnInfoEvent".equals(strEvent))
Number localNumber = 0;
try {
localNumber = new Integer(ClientUtil.getDecryptedParameter(paramOAPageContext, "param2"));
catch (Exception e) {e.printStackTrace();}
String outmsg="Line ID : " + localNumber + ":" + strEvent;
throw new OAException(outmsg,OAException.INFORMATION);
=================================
But I am not able to capture the RequisitionLineId which I have sent as a parameter.
Can anyone let me know what I am doing wrong.Hi,
This is the requested HTML Code
===============================
<button id="N3:addnInfo:0" class="x7g" style="background-image:url(/OA_HTML/cabo/images/swan/btn-bg1.gif)" onclick="return _chain('submitForm(\'DefaultFormName\',1,{\'param1\':\'${oa.encrypt.current.RequisitionLineId}\',\'serverValidate\':\'1\',\'param2\':\'${oa.encrypt.current.RequisitionLineId}\',event:\'addnInfoEvent\',source:\'N3:addnInfo:0\'});return false;',*'submitForm*(\'DefaultFormName\',1,{\'_FORM_SUBMIT_BUTTON\':\'N34\'});return false',this,event,true)" type="submit">Additional Info</button>
===============================
Hi I am not able to paste the HTML Code..some parts of HTML gets removed automatically when I paste it in the forum.
Regards,
Rohit -
What is '&' used in message class
Hi,
What is '&' used in message class with the message no in SE91.
Give me details idea on this.
Best Regards,
ChiniIf you use '&' operator in your message, then you can pass the text/literals whatever you want to get display in the message.
For example,
In a message clase zmsg, there is a message like this...
018 Table & not exist
you can call this message from your program by passsnig the table name in to this message...
For example,
ztablename = 'BUT000'.
Message e018(zmsg) with ztablename.
Filling Message Texts Dynamically *
Message texts in table T100 can contain up to four ampersand characters (&) as placeholders. You can replace these at runtime using the WITH addition in the MESSAGE statement:
MESSAGE ... WITH f1 ... f4.
The contents of fields f1 ... f4 are then inserted sequentially into the message text in place of the placeholders. -
How to check if Message already exists in the queue and if message is processing currently
Hi everyone
I am new to Azure and worked on adding messages to the queue through workerrole1. Worker role 2 pulls them out from queue and processing them and de-queing them.
Worker role1 runs method gets called after every 10 seconds and puts messages in queue
CloudQueueMessage
message = newCloudQueueMessage(oAzureWorker.WorkerInstanceOf
+ "_"+ oAzureWorker.AgentId.ToString()
+ "|"+ ExecutionId.ToString());
queue.AddMessage(message);
Worker role2 runs method gets called after every 10 seconds too and checks the queue like this
foreach
(CloudQueueMessagemessage
inqueue.GetMessages(20,
TimeSpan.FromMinutes(5)))
// Process all (20) messages in less than 5 minutes, deleting each message after processing.
// Process message
queue.DeleteMessage(message);
Following are my questions
1) How do I check in worker role1 if the message is already in queue, Because I don't want to queue it back again if its not yet processed and is in the queue already
2) How do I check in worker role1 if the message is currently processing. Because I don't want to queue it back again.
3) How do I make sure that ALL the messages get processed in the order they are inserted. I know Queue is FIFO, but I know if the message gets delayed in processing another instance can pick it up, even if it gets picked up by another instance, I want to
make sure that the order remains.
Right now the instances of both these worker roles are 1, in the future when we increase them, I don't want them to queue the same messages multiple times or queue them if the message is already in process mode.Hi Sarah,
I agree to the Frank's suggestion. Why you need to burden the worker role 1 to check if the message really sits on the queue or not? You can do this simply in your code before pushing it on queue instead querying queue.
All you need to do on worker role 1 is - push the message on the queue and forget as the entire queue design in azure is designed from asynchronous processing.
About worker role 2 - Use the GetMessage method which hides retrieved message's from other clients and hence makes sure that only one client is processing it at a time. If processing is successful - delete the message. if it is not - the message will be
visible anyways after the mentioned time provided in the GetMessage method.
I agree that when you will increase number of instances of your worker role 1 which might insert duplicates in the queue - in that case - you might need to introduce the shared entity (like database) and let all instances communicate through it to avoid
the duplication of messages on queue.
Bhushan | http://www.passionatetechie.blogspot.com | http://twitter.com/BhushanGawale -
How to use my findTheHighest method to find the highest value in my two dim
I am going to create a 13row by 10 colume two dimensional array.
how to use my findTheHighest method to find the highest value in my two dimensional array.
.When i compile this program , i got those as following;
"Exception in thread "main" java.lang.ArrayIndexOutOfBoundsExce
at TaxEvolution.findTheHighest(TaxEvolution.java:31)
at TaxEvolutionClient.main(TaxEvolutionClient.java:25)"
public class TaxEvolution{
public double[][] salesTaxRates;
public TaxEvolution()
salesTaxRates = new double[13][10];
fillProvinTaxRates();
private void fillProvinTaxRates()
for ( int row = 0; row < salesTaxRates.length; row++ )
for ( int column = 0; column < salesTaxRates[row].length; column++ )
salesTaxRates[row][column]= (int)(Math.random()*5000) + 1;
public double findTheHighest()
double highest = salesTaxRates[0][0];
for ( int row = 0; row <= salesTaxRates.length; row++ )
for ( int column = 0; column <= salesTaxRates[row].length; column++ )
if ( salesTaxRates[row][column] >= highest )
highest = salesTaxRates[row][column];
return highest;
public double[][] arrayTaxEvolution()
double[][] returnTaxRates = new double[13][10];
for ( int row = 0; row < salesTaxRates.length; row++ )
for ( int column = 0; column < salesTaxRates[row].length; column++ )
returnTaxRates = salesTaxRates;
return returnTaxRates;
public class TaxEvolutionClient{
public static void main( String[] args ){
TaxEvolution protaxRateList = new TaxEvolution();
double[][] taxRateList = protaxRateList.arrayTaxEvolution();
for ( int i = 0; i < taxRateList.length; i++ )
for ( int j = 0; j < taxRateList[0].length; j++ )
System.out.print( taxRateList[i][j] + "\t" );
System.out.print( protaxRateList.findTheHighest + "\t" );
}Multiposted
http://forum.java.sun.com/thread.jspa?threadID=699057&tstart=0 -
How to use RMI Stub class in programming?
Hi all,
I'm new on RMI.
Is there anyone can explain to me how to use RMI Stub class which is generated by invoking rmic command?
For my testing, I can only invoke rmi object nethod via its remote interface. Then what is stub used for when we are coding?
I do appreciate anyone's help.
Thanks very much,
Xianyi.YeWhen the remote object binds itself to the registry, what is actually bound is the stub.
So when the client does a registry lookup, what it gets is the stub. However from the client's point of view it is just some mystery object that implements the remote interface.
So you never have to use it directly, it is all automatic. -
How to use a new class in SAP XI
Hi @,
I have created one new class for the purpose of exception and error handling .I dont know as to where and how i should use this class within SAP XI .How can i include this class so that the effect can be viewed during runtime
RegardsHi,
In general we will create the package and import under archieves and create USDF in mapping there , you can mention as undr import that package , in code , in UDF , you can use package.class
see the below link for more details
/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
Regards
Chilla
<i>reward points if it is useful..</i> -
Change the Message class (OB28) for validations
Hi Experts,
I was trying to change the Message class (OB28) for validations which are created last 1 year ago, as we have two Validations where each validation has 15 to 16 steps in it. One validation starts with Y & another with Z. Both are using the same message class as of now.
But we want to use different message class for validation which starts from Z. We tried changing from program RGUGBR28 but it will change the message class for the both validation which starts from Y & Z, we need to change to only one validation.
Please let me know any way out for this.
Thanks & regards,
ShilpaHi Shilpa,
The message class during the maintenance of a validation, it is not changeable because the message class is not attached at the individual validation but at the entire validation class, that is a combination of application and call time.
During the first creation of a validation at the moment of "document line item" in application "cost accounting" the message class is asked for and these then for the entire validation class, stored in this case "001" in the table GB02C and from now is no more changeable.
The reason for that is, that a change affects all validation of a grade just globally and that even cross-client, since the GB02C is not client-specific.
I hope this helps.
Regards
Ravinagh Boni
Maybe you are looking for
-
my question is regarding SharePoint 2013 Farm topology. if i want go with Streamlined topology and having (2 distribute cache and Rm servers+ 2 front-end servers+ 2 batch-processing servers+ cluster sql server) then how distributed servers will be co
-
Hello,my iPod touch 4g is fairly new but for some reason it just won't charge. I replaced it the 1st time back in April,because it was very cracked and I got a new one but this one isn't working that well. When I plug in the ipod it shows the red low
-
3D render issues & creation of 3D shadows...
This is a two part question. The first is when I use "Extrude & Bevel" in AICS6, a LOT of the time it won't draw faces, not the hidden faces, but visible faces (see image). The second question is can someone point me to a tutorial on how to create re
-
A video codec or support for a compressed format (ZEN
i was wondering if creative could include support for some form of compressed video format in the next firmware release for the Creative Zen V Plus. i ask this as the supplied video converter uses incredibly large amounts of space even for a small vi
-
From: danielrmessick@*** Regarding: oliviamikael1@*** Issue: Mail sent to: oliviamikael1@*** transmits and receives successfully. Mail sent to: oliviamikael1@*** results in the following error: 5.1.1 unknown or illegal alias: oliviamikael1@*** Please