Triggerring error messages in bsp
Hi,
I have 2 screens in bsp,first screen with 2 input fields and 5 checkbox,if the user doesn't select any of the checkbox and excute ,the error message should trigger in the same page .
please provide me the code on javascript with bsp application as example.
Thanks & Regards,
Naveen
Hi Naveen,
Exactly similar issue is discussed in [THIS|Error messages in BSP; thread.
Please search before posting.
Regards,
Anubhav
Similar Messages
-
How to display error message in BSP
Hi,
I am working on a BSP application where I want to display some error messages if a particular validation fails.
I have written the code for adding the message using CL_BSP_MESSAGES->ADD_MESSAGE in event DO_HANDLE_EVENT. The message passed is added successfully in table M_MESSAGES in method ADD_MESSAGE . But I want to know what code should be written in the layout to display this error message.Hi,
In javascript you have to do validation(Eror Message) below is the sample code for message
var yourwords = "Enter Carrid" !';
vae speed = 500;
var control = 1;
function flash()
if ( control == 1 )
windows.status = yourwords ;
control = 0;
regards
krishnakiran
Edited by: Krishna KiranN on Dec 12, 2011 11:53 AM -
Hi,
I have a requirement in BSP which consists of 2 pages.the first page has 5 checkboxes with 2 input parameters and my reqiurement is that i need to get the error message if the user executes the first page without selecting any of the checkboxes.
Kindly advice on this.
Thanks & Regards,
ManiHi Manikandan,
I guess you have a button on first page , which when clicked takes the user to second page.So you can use the onClientClick event of the button .
Something like:
<htmlb:button id = "BTN"
text = "continue"
on C l i e ntCli c k = "c h e c kDa t a();
o n C lick = "some_event">
<s cript>
function checkData()
if( (d ocument.getElementById('cbox1').value='')|| ( (d ocument.getElementById('cbox12).value='')|| ( (d ocument.getElementById('cbox3').value='')|| ( (d ocument.getElementById('cbox4).value='')|| ( (d ocument.getElementById('cbox15).value='')|| )
a lert('Your error message');
htmlbCancelSubmit = true ;
</s cript>
Regards,
Anubhav -
Using labview with GPIB to run Agilent 4156c: configuring SMU3/SMU4 triggers error message
Hello,
I posted this also in the GPIB board, since it concerns labview I thought I'd post here too.
I'm trying to measure and plot drain curves for a JFET. When trying to run it in labview I get the following error message:
Error -1074000000
Instrument reports:
+181,"Illegal setup. Invalid command."
+0,"No error"
I see other people have had this problem, I've reviewed all the previous posts and tried implementing the proposed solutions, to no avail.
Here's my configuration for when trying to run a sweep with Vgs = 0V:
Unit Vname Iname MODE FCTN
SMU1 Vdd Id V VAR1 (drain)
SMU2 Vg Ig COMMON CONST (gate)
SMU3 Vs Is COMMON CONST (source)
I ran NIspy and it told me that the error message is generated after the channels are assigned immediately after configuring SMU3 or SMU4 (SMU3 & SMU4 will both trigger it). If I try to disable SMU3 and configure SMU4 then SMU3 will show that it's disabled on the front panel and SMU4 will be configured and I get the error. After I get the error message, If I go to the front panel I can manually run my sweep using the configurations labview sent to the instrument. So labview seems to be configuring the channels properly but then it halts and gives me the error message.
I've tried configuring/disabling all unused channels and that didn't help. I've also tried leaving the series resistance setting for each SMU as the default and assigning 0V to them, which didn't help either.
Any help or feedback would be greatly appreciated.Hello
I see that you posted this issue in the GPIB forum. I would recommend you to keep the conversation in that forum, because it is the specialized one for those subjects. Have a good day! -
Error message in bsp application
hi
Im tamil selvan .....this is my first bsp application i created .. but i cant view the output..the default html code itself not executing... i copied the same code in text and saved in html its executing there... i dont know what is the issue..is any system files are missing...plz guide me im new to bsp....first what should i learn ... the below is the error i pasted...
Business Server Page (BSP) error
What happened?
Calling the BSP page was terminated due to an error.
SAP Note
The following error text was processed in the system:
Die URL enthält keine vollständige Domainangabe (isys-ecc statt isys-ecc.).
Exception Class CX_FQDN
Error Name
Program CX_FQDN=======================CP
Include CX_FQDN=======================CM002
ABAP Class CX_FQDN
Method CHECK
Line 10
Long text -
Error type: Exception
Your SAP Business Server Pages TeamHi Tamil,
welcome to the SAP Community Network. You will find lots of great resources, tips, and examples here.
Of course to find them you have to look for them. You will find most people more than happy to help you with problems if you first try and help yourself by searching for the solution yourself.
So please, search the forums for the solution to your problem before you post.
Cheers
Graham Robbo -
How to approach/ handle Db triggers error messages
hi folks,
-jdev 11.1.1.5.0 - adfbc
i had a dbtable. which holds some dbtriggers
AFTER INSERT OR UPDATE ON sometable FOR EACH ROW
RAISE_APPLICATION_ERROR(-20942, 'Message id');when it vialotes the condition means this raise app error will thrown.
ok fine.
while coming to adf, At the time commiting records this trigger will fires. why it firing am vialoting the trigger. so firing..
you are vialoting the trigger :
some x,y trigger throw some raw db information.
so my need is how do i give understandable message to user.
thanks.thanks sudip.
as you said i read out. and make it out.
but..
say as eg:
RAISE_APPLICATION_ERROR(-20942, 'MyError');what we are doing never we hard code the value,
insist of that we store error number and error description in a table using function we will retrieve that.
RAISE_APPLICATION_ERROR(-20942, 'some Application module id'); says as some Application module id as HRM,CRM
RAISE_APPLICATION_ERROR(-20942, 'HRM'); i guess that,you get me where am?
as per your post i followed i extract the Ora number and Application module id
s = message.substring(0, ind);
s1 = message.substring(4, 8); it will stores s1 = 20942
s2 = message.substring(9, 14; it will stores s2 = HRM
i would like to call a function here
func_some_name( s1 , s2);
the function will return some value(error decription) it will pass to message.
return message. by the normal way. a1.jspx - a1.java. if i want to show function returned value in a1.jspx means i will call function from the bean. function will defined in AM, exposed through client interface.
Important thing is : AM function is Bounded with Jspx page with the help of Binding Layer(a1.pagedef).
ok fine.
here my scenario is:
if i define the function in AM and i exposed means. how would i call in this Errorhandler.java file ?. if am calling means it will throw NPE.
why it is throwing npe
Errorhandler.java is indepedent file it's associated Databinding.cpx
so my need : how would i call this function in Errorhandler.java. -
Ipod frozen ("Do not disconnect") Restore attempt triggers error message
The sequence of events:
1. ITunes did not recognize my Ipod this morning (My ipod icon did not appear in itunes)
2. Itunes froze. (Computer froze generally)
During attempts to restart computer, realized that computer failed to start if Ipod firewall cord is plugged in--so I unplugged the ipod. "Do not disconnect" in ipod window.
3. Read "Ipod The Missing Manual" fix for this disconnect problem, but does not work. Part of the problem is that my ipod still hasn't appeared in itunes, alhtough the computuer makes a familiar "dong" sound when the cable is plugged in.
4. Figure I will attempt "system restore" for ipod during the brief period Itunes is unfrozen (thawed) immediately after I've restarted the computer. Ipod finally appears in Itunes (which takes 10 minutes to open) It does recognize an ipod--but it doesn't have my name on it. And there's a New message, that my ipod is corrupted and I must restore it, lose songs, etc. So what. Onward.
5. Attempt to restore also unsuccessful. A new, sick-making message: "There was a problem downloading the ipod software for the ipod. The requested resource was not found."
I've tried a new cable, tried a new port...
Ipod is one year old. What does any of this mean? Where do I go to begin finding a solution? Do I throw it out and start again? Obviously my computer is botched up, too. What a mess.I have the same... and so many others and no one has a solution (up to now). It might has something to do with itunes 7th version. I have tried EVERYTHING (believe me: the 5 R's/ other Itunes versions / winamp / reboot/ reinstall/ restore/ update/ other port/ etc etc/ searched this forum)
So many people having this problem, though Apple has not reacted on this yet...
despite asking 180 euro's service costs if you want to resolve this by sending this item. Great -
Cannot post Goods receipt in MIGO Error message"Field Business Area requird
Hai
I am posting Goods Receipt ( MIGO) with Reference to Purchase Order its having 47 Line item material. When i will doing Goods Receipt with rreference to po number its triggered error message in :Message No F5808 Field business Area is a Required field for G/L account 1180 300000 . for only particular line item 47 material shown error..
i checked all the settings in MM Automatic determination And G/L element, field variants, posting keys.. but everything configured profer settings..why particulat materail it shown error? how to resolve this error?Hi Thiru,
A somewhat late aswer, but it might be helpfull for other users with the same problem. You can solve this problem by assigning the division/valuation area to the business area. Follow the path below to execute this:
SPRO - enterprise controlling - Consolidation - Integration: preparation for consolidation - Preparation in the sender system - Further settings for Business Area Consolidation - Materials Management - Assign Division/Valuation Area to Business area.
Under Enterprise structure - Assignment - Logistics General, you will find a similar function. First execute option 1 or 2 here and then execute option 3. This makes it work as well, exept that it will not be recorded in a proper transport. The first option I gave for assigning is properly transportable.
Greetings,
Sjaak van den Berg
Magnus Technology Consultants
Edited by: S. van den Berg on Aug 14, 2009 1:09 PM
Edited by: S. van den Berg on Aug 14, 2009 1:10 PM -
Display error message on the user profile modification page identity system
HI All,
I have created a workflow for chang attribute for email id. I have associated an external action to th workflow id which will check the emailid uniqueness in OID.
When an end user login to OAM user manager and clicks on update my profile, use can see a button with modify request beside email id. when user modifies email id and save the changes, we are able to display email id already exist message in the next page of user profile. but we need to display the message on the same page.
Can any one help us.
Thanks in Advance.You can do this using java script throwing an alert popup or you can check if the fields are initial in oninputprocessing and fill a variable like gv_error = 'Enter values of mandatory fields.' and display the same in layout using
<phtmlb:messageBar id = "messageBar"
type = "<%= gv_severity_str %>"
text = "error"/>
See this thread for more..
How to display error messages in bsp page
search the forum before posting a new thread.... -
Internet Sales B2C - Display error message on the basket
Hi, I am working on developments on the Internet Sales B2C scenario. I am trying to add new checks that are to be performed after the user has clicked the "Order" button on the basket.jsp page.
I have already created the action and the BO, BOM, and Backend object and I changed the action flow so after b2c/basketcheckout.do instead of calling b2c/maintaincheckout.do the system calls my own action, and if I have an error what I am doing is calling the addMessage() on the Basket object, and then sending the action flow to b2c/basketdisplay.do.
Everything is working fine except that the messages that I add to the basket are not shown when basket.jsp is displayed and I think this is because somewhere after the b2c/basketdisplay.do action is called and before the basket.jsp page is displayed the standard deletes any messages on the basket.
Should I change my program so instead of calling b2c/basketdisplay.do I call a different action to display the basket but keep my messages?
Does anyone has any better idea than what I am doing rigth now? I would gladly appreciate any help.
The config.xml that I have looks like this:
<action path="/b2c/basketcheckout" type="com.sapmarkets.isa.isacore.action.b2c.order.MaintainBasketB2CCheckoutAction">
<forward name="login" path="/b2c/login.jsp"/>
<forward name="basketEmpty" path="/b2c/order/basketEmpty.jsp"/>
<forward name="checkout" path="/b2c/basketchecktopes.do"/>
<forward name="ordersplit" path="/b2c/busy.jsp"/>
</action>
<action path="/b2c/basketchecktopes" type="com.orbitel.isa.action.CheckTopes">
<forward name="checkout" path="/b2c/maintainCheckout.do"/>
<forward name="basket" path="/b2c/basketdisplay.do"/>
</action>
And the coding in my action is:
UserSessionData userSessionData = UserSessionData.getUserSessionData(request.getSession());
BusinessObjectManager bom = (BusinessObjectManager)userSessionData. getBOM(BusinessObjectManager.ISACORE_BOM);
SalesDocument miOrden = bom.getBasket();
if(miResp.equals("A"))
return mapping.findForward("checkout");
else
miOrden.addMessage(new Message(Message.ERROR, "system.forward.info", new String[]{"Ha superado el tope de sesion"}, null));
return mapping.findForward("basket");
Thanks
JuanYou can do this using java script throwing an alert popup or you can check if the fields are initial in oninputprocessing and fill a variable like gv_error = 'Enter values of mandatory fields.' and display the same in layout using
<phtmlb:messageBar id = "messageBar"
type = "<%= gv_severity_str %>"
text = "error"/>
See this thread for more..
How to display error messages in bsp page
search the forum before posting a new thread.... -
Pixma MX850 frequent error messages
I have a Pixma MX 850. Have been seeing "The ink absorber is almost full..." error message after performing several deep cleanings. I have not replaced the ink absorbing pads and am now frequently getting "Error code 5100" and needing to turn off the printer and restart to continue. Will pad replacement solve this problem or may there be other trouble? How do I go about getting to and replacing the pads? How do I reset the printer afterwards to cancel triggering error messages? Greatly appreciate any help.
Hello toma.
For additional assistance with these errors, please contact our support group using the link below for additional assistance.
http://www.usa.canon.com/cusa/consumer/standard_display/contact_us_consumer
Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well. -
Collect Error Message from SAP program to BSP Page
Hi Experts,
I am displaying an error message in the form of pop-up Message in a Screen based on a condition using BADI on R/3 screen , but when i am calling the screen from Portal (BSP PAge) I am unable to see the Error Message which is being displayed as a pop-up in r/3..
How to catch the error and display in BSP Page.....
I have searched the forum but didnt find any suitable replies....
Plz help
Regards,
SrikarHi Srikar,
It depends.
Generally though you display a message in SAPGUI it does not display automatically in BSP.
Some times you have to manually write some code to populate and display a message in BSP.
First you need to find the BSP page and write some code to display error messages in the same..
Regards,
Sreekanth -
ME_PROCESS_PO_CUST allows save in ME21n despite error message triggered
Hello MM Experts,
We have a business requirement to prohibit the use of account assignment "A" (assets) on 2 particular document types that are used by departmental end users that should NOT be allowed to buy assets. The purchase of assets is retricted to our centralized purchasing buyers who use a different document type.
We recently upgraded to ECC 6.0 from 4.6c, so we want to try BADi ME_PROCESS_PO_CUST instead of a user exit. We applied the BADi to ME21n and the developer referenced methods 'check' and 'save', as well as 'post' and 'close'.
Our new error message is successfully triggered when a check is done in ME21n (error says "Account Assignment "A" is only valid for PO's and CSO's). But, depending on the sequence of entry steps for required fields, when I use the save icon or do another check, the box "SAVE" or "EDIT" appears. You can then save the order and by pass the error message.
Other times, depending on a different sequence of entries in the ME21n screen, for the required fields, the correct box "HOLD" or "EDIT" appears and you cannot save the order with the incorrect account assignment A/asset (you can only correct it or hold it as a faulty order and correct later).
Thanks for any advice,
SuzanneDear Suzanna ,
In that case, you need to track all of the "action" or "button" in ME21N, you need to use "sy-ucomm" in the badi code to track all the check. like when you display a PO in ME23N than you switch to change mode, then the sy-ucomm = METOGG, and so on, tell the abaper to use sy-ucomm,there'll know about it. -
ME_PROCESS_PO_CUST allows save in ME21n - error message triggered
All,
Purchase order is getting saved even though there are error messages triggered via BADI in the POST method.
I've tried both:
MMPUR_MESSAGE_FORCED 'A' 'ME' '303' TEXT-001 '' '' '' .
MMPUR_MESSAGE_FORCED 'E' 'ME' '303' TEXT-001 '' '' '' .
Still the purchase order gets saved when the save button is clicked.
Any ideas
MeghnaHi Meghana,
You can use method CHECK. I am using CHECK method and able to raise a error message.
Sample code I am using is as follows:
DATA i_items TYPE purchase_order_items.
DATA: wa_item LIKE LINE OF i_items ,
lv_if_item TYPE REF TO if_purchase_order_item_mm ,
lt_itm_data TYPE mepoitem ,
lv_table_count TYPE i .
To get Header Data
ls_header1 = im_header->get_data( ).
To get item data
CALL METHOD im_header->get_items
RECEIVING
re_items = i_items.
Get actual line item data using Hask Key for line item
READ TABLE i_items INTO wa_item INDEX 1. --- you can use LOOP as per your requirement
lv_if_item = wa_item-item.
CALL METHOD lv_if_item->get_data
RECEIVING
re_data = lt_itm_data.
IF ( v_result > 10000 ) . " If the difference between net-prices is more than 10000 then gives Error message
MESSAGE e368(00) WITH 'Tolerance is more than $10000' .
ENDIF.
Let me know if you need further help.
Thanks & Regards,
Anil Salekar -
Error occures while Sap R/3 sytem triggers XI message (using proxy class)
<b>Error occures while Sap R/3 sytem triggers XI message (using proxy class)</b>
1- I prepared message in XI side
2- I used sproxy transaction in R/3 side and generate proxy class
3- I used necessary methods in Abap program in R/3 side
4- Somethimes, message does not work and generate error like below
What must I do to solve this problem. Thanks
<u><b>Error message (Reported in SXMB_MONI in Sap R/3 side)</b></u><?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Inbound Message
-->
- <SAP:ErrorHeader xmlns:SAP="http://sap.com/exchange/MessageFormat">
<SAP:Context />
<SAP:Code p1="112" p2="HTTPIO_PLG_ICM_CONNECT_FAILED-Fehlermeldung beim Senden der Daten." p3="" p4="">HTTP.HTTP_CLIENT_SEND_FAILED</SAP:Code>
<SAP:Text language="TR">Error during http send: Error code: 112 Error text: HTTPIO_PLG_ICM_CONNECT_FAILED-Fehlermeldung beim Senden der Daten.</SAP:Text>
</SAP:ErrorHeader>Hi,
Check thiss
/people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi
Error no 2
Regards
Aashish Sinha
PS : Reward points if helpful
Maybe you are looking for
-
When a link is a file (not a web site) Firefox opens a dialog box that begins "You have chosen to open...: and defaults to Save File. When I click on the Open File.. radio button, my word processing program, Word does not appear. When I Browse for th
-
Withholding tax certificates numbers missing from Table J_1IEWT_CERTIF_N
Experts, I have followed all the process of Extended withholding tax and printed certificates in the month of Jan 2011 for the period Oct 2010 to Dec 2010. (actually for FY 2010) Now I want to repirnt one of these certificates as duplicate certificat
-
Sender SOAP and HTTP adatper setting.
Hi, I've a scenerio, where I send purchase order(PO) file to external partner via a HTTPS url. I use receiver SOAP adapter with transport protocol "HTTP", Message protocol "SOAP 1.1" and in the Target URL I use the https://url also I've the " D
-
Hi Experts, I am putting some text in the text tab of the Purchase order Transaction ME21N. When I am taking Script for that Purchase order that text is coming in the printing.But my problem is that same text I captured into Reports.Suppose if I
-
How to change the colors in Keynote 6.1 globally using the xml presentation file?
Hi , When I used keynote 5.3 in the "show package contents" I could find an Index.apxl.gz file. With that XML like file, I changed the color of a scheme globaly by replacing the color that I had with another one. However in new Keynote 6.1 there is n