Displaying error message on XRPM Portal on changing the status of Project
Hi All,
I want to display an error message on the Portal when user tries to change the status of the Project from 'CREATED' to 'RELEASE' and clicks on SAVE.
I have checked the following BADI's but i am not able to retrieve the newly selected status.
DPR_ATTRIBUTES -> Methods 1) CHECK 2) CHANGE_CHECK
RPM_PROJ_CUST_FIELDS
Any help will be highly appreciated!
Thanks.
Runal.
Hi Runal,
I think, the reason is that the status is not attribute of the project, rather a linked object. That is why the Badi method is not get called.
Please check with the Badi DRP_EVENTS, this Badi is typically called, if the status of object is changed.
Kind regards,
Zhenbo
Similar Messages
-
Dear support Apple! A week ago I moved to Spain and bought 2 Gift Card for 15euro. When I entered the code App Store displays a message that you need to change the country but I was left with 10 cents in the account that not possible to spendt. Please delete this 10 cents from my account
Please be aware that you are not communicating with Apple when you post in these forums. The only people who will reply to your posts are your fellow users. You need to go here:
iTunes Support
and follow the instructions to report the issue to the iTunes Store.
Regards. -
Prb display error message while creating PR at ME51n in ME_PROCESS_REQ_CUST
Hi All,
I have this requirement to check the cost center availability in PR screen (ME51n).
If cost center in the Account assignment tab is not empty, display error message and not able to create the PR.
With my code below, it doesn't triggered the error message and PR created.
Could anyone help?
METHOD if_ex_me_process_req_cust~process_account.
DATA: w_account_ref TYPE exkn.
w_account_ref = im_account_ref->get_data( )
IF w_account_ref-kostl IS NOT INITIAL.
MESSAGE e303(ME) WITH text-001 w_account_ref-kostl text-002.
ENDIF.
ENDMETHOD.
Thank you.
SWHi,
You have to use definition MMPUR_MESSAGE 'E' ME 303 text-001 w_account_ref-kostl text-002.
This will throw the error during check and save instead of message e303(me) .
Hope it helps.
Sujay
Edited by: Sujay Venkateswaran Krishnakumar on Oct 5, 2010 2:54 PM -
How to display error message in Shopping Cart?
How to display error message in Shopping Cart and stop the shopping cart for further processing? I try MESSAGE w001(zshop) or MESSAGE e001(zshop). But it is causing run-time error.
Hi Paul,
In the DOC_CHECK or DOC_SAVE BADI, you have a global internal table named et_messages. The structure of this table is 'bbp_smessages_badi'. You can append your error message here by inputting the message type, ID and number. The message type is either 'E' for error or 'W' for warning and the number would depend on your message class(ID). You will be able to see the error message on top of the screen, can be a red or yellow highlight depending on your appended message. I don't think creating the error message via the MESSAGE syntax will be successful, maybe this is why you are getting a runtime error.
Regards,
Noel -
How to display error message ??
Hi,
I have a BDC program to upload data from an excel sheet. I could see that some records of data fail to pass and hence after my bdc run i would like to display error message for the failed records as follows:
costcenter:
cost element:
fiscal year:
etc etc
is it possible ?? how to do that ? please explain in detail.
for ur reference my program is pasted below.
thanks
*& Report ZBDC_BUDGET_UPLOAD
REPORT ZBDC_BUDGET_UPLOAD.
types: begin of tdata,
rec(150) type c,
end of tdata,
begin of tmtgp,
costcent LIKE CCSS-KOSTL,
costelem LIKE CCSS-KSTAR,
fisyear LIKE CCSS-GJAHR,
jan(10),
feb(10),
mar(10),
apr(10),
may(10),
jun(10),
jul(10),
aug(10),
sep(10),
oct(10),
nov(10),
dec(10),
end of tmtgp.
data: idata type table of tdata with header line.
data: imtgp type table of tmtgp with header line.
Data : fieldval(10) type c.
selection-screen begin of block b1 with frame title text-001.
parameters: p_file type localfile default 'C:\budget_data_csv.csv'.
selection-screen end of block b1.
include zbdcrecx1.
at selection-screen on value-request for p_file.
call function 'KD_GET_FILENAME_ON_F4'
exporting static = 'X'
changing file_name = p_file.
start-of-selection.
perform upload_data.
loop at imtgp.
Write imtgp-fisyear to fieldval.
perform open_group.
perform bdc_dynpro using 'SAPLKPP0' '1000'.
perform bdc_field using 'BDC_CURSOR'
'KPP0B-VALUE(04)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'KPP0B-VALUE(04)'
fieldval.
Write imtgp-costcent to fieldval.
perform bdc_dynpro using 'SAPLKPP0' '1000'.
perform bdc_field using 'BDC_CURSOR'
'KPP0B-VALUE(06)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'KPP0B-VALUE(06)'
fieldval.
perform bdc_dynpro using 'SAPLKPP0' '1000'.
perform bdc_field using 'BDC_CURSOR'
'KPP0B-VALUE(09)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-costelem to fieldval.
perform bdc_field using 'KPP0B-VALUE(09)'
fieldval.
perform bdc_dynpro using 'SAPLKPP0' '1000'.
perform bdc_field using 'BDC_CURSOR'
'KPP0B-VALUE(04)'.
perform bdc_field using 'BDC_OKCODE'
'=CSPB'.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(01)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-jan to fieldval.
perform bdc_field using 'Z-BDC03(01)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(02)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-feb to fieldval.
perform bdc_field using 'Z-BDC03(02)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(03)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-mar to fieldval.
perform bdc_field using 'Z-BDC03(03)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(04)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-apr to fieldval.
perform bdc_field using 'Z-BDC03(04)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(05)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-may to fieldval.
perform bdc_field using 'Z-BDC03(05)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(06)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-jun to fieldval.
perform bdc_field using 'Z-BDC03(06)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(07)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-jul to fieldval.
perform bdc_field using 'Z-BDC03(07)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(08)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-aug to fieldval.
perform bdc_field using 'Z-BDC03(08)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(09)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-sep to fieldval.
perform bdc_field using 'Z-BDC03(09)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(10)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-oct to fieldval.
perform bdc_field using 'Z-BDC03(10)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(11)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-nov to fieldval.
perform bdc_field using 'Z-BDC03(11)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(12)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-dec to fieldval.
perform bdc_field using 'Z-BDC03(12)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(12)'.
perform bdc_field using 'BDC_OKCODE'
'=CBUC'.
perform bdc_transaction using 'KP06'.
perform close_group.
endloop.
form upload_data.
data: filename type string.
clear idata.
refresh idata.
filename = p_file.
call function 'GUI_UPLOAD'
exporting filename = filename
filetype = 'ASC'
tables data_tab = idata
exceptions file_open_error = 1
file_read_error = 2
no_authority = 6
others = 17.
check sy-subrc = 0.
loop at idata.
clear imtgp.
split idata at ',' into imtgp-costcent imtgp-costelem imtgp-fisyear
imtgp-jan imtgp-feb imtgp-mar imtgp-apr imtgp-may imtgp-jun imtgp-jul
imtgp-aug imtgp-sep imtgp-oct imtgp-nov imtgp-dec.
append imtgp.
endloop.
endform.check the below code,.,
DATA : t_bdcmsgcoll TYPE STANDARD TABLE OF bdcmsgcoll WITH HEADER LINE.
CALL TRANSACTION '<DELIVERYTRANSACTION>' USING t_bdctab
mode 'N'
MESSAGES INTO t_bdcmsgcoll.
DESCRIBE TABLE t_bdcmsgcoll LINES g_lines.
READ TABLE t_bdcmsgcoll INDEX g_lines.
IF t_bdcmsgcoll-msgtyp = 'S' AND
t_bdcmsgcoll-msgid = <Msg id> AND
t_bdcmsgcoll-msgnr = <Msg number>.
* Trap your Call Transaction messages
t_success-deliverynumber = t_bdcmsgcoll-msgv1.
* You can format the message returned by call transaction using function 'FORMAT_MESSAGE' which will return g_mesg
t_success-message = g_mesg.
APPEND t_success.
CLEAR t_success.
ELSE.
* If there an Error-Do this..
READ TABLE t_bdcmsgcoll WITH KEY msgtyp = 'E'.
IF sy-subrc = 0.
* Format your message using FORMAT_MESSAGE "FM
CLEAR g_mesg.
t_error-msg = g_mesg_incl.
APPEND t_error.
CLEAR t_error.
ENDIF.
ENDIF.
* Clear for next run
CLEAR: t_bdcmsgcoll,
t_bdctab.
REFRESH: t_bdcmsgcoll[],
t_bdctab[]. -
Error message while accessing portal's desktop in wlp10, thanks
Dear All,
I created a portal based on WLP10.
I use the Weblogic Portal Administration Console for setting up the
navigation on different roles.
After I added a portal called "portal", and a desktop called,
"portalDesktop", I got an error message when I accessed to view the desktop.
The message is:
Resource /portal/mydesktop could not be resolved for locale null.
Please let me know if I overlook any configuration part.
Thanks,
It often seems that I have only typical and common things to say, in which case I join my voice or my vote to that of others. -- Jacques Derridayeah, i felt weird too.
I tried to connect
http://localhost:7001/WARportal/appmanager/portal/portal
but still the same error msg pops up again and again
"Resource /portal/portal could not be resolved for locale null."
And the thing is, when I first time deployed the portal desktop, it works fine. But when I've done some changes on the portal code, and published it, I found the changes are not working for the desktop accessed through appmanager, but works fine with if you launch it in workshop.
So, I delete the previous node, and resetting and deploying it again, then the error make me stucked there.
I was wondering, is it possible clean the portal and desktop information in any xml file or file folder.
Please advice, thanks
It often seems that I have only typical and common things to say, in which case I join my voice or my vote to that of others. -- Jacques Derrida -
How to display error message in abap
How to dispaly error message in report?
i have to check the range bewteen two days and if it is not in range have to display error message only once.
next time if i press the execute button report will get executed without showing the warning message.
i am calculating the days between two dates, i am displaying the error message but if i press the execute button i will not allow me to execute the report.it again shows me the error message.i have to skip this in 2nd time.
can any one suggest what to do with this?hello suman,
i am using select-option in my report. And i have to check the difference between two dates in select option input box( low-value and high-value). if it is greater then suppose 10 then i have to display warning message at once and then if click on execute button , the report should get executed without showing any warning messages in report.
here i am attaching my source code.please take a close look and tell me where should i have to make change.
SELECT-OPTIONS :s_bedat FOR ekko-bedat.
AT SELECTION-SCREEN ON s_bedat.
IF NOT s_bedat IS INITIAL.
PERFORM bedat_validate. " Perform for Purchasing Document Date Validation
ENDIF.
FORM bedat_validate . " Form for Purchasing Document Date Validation
DATA : diffr TYPE i.
CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
EXPORTING
i_datum_bis = s_bedat-high
i_datum_von = s_bedat-low
I_KZ_EXCL_VON = '0'
I_KZ_INCL_BIS = '0'
I_KZ_ULT_BIS = ' '
I_KZ_ULT_VON = ' '
I_STGMETH = '0'
I_SZBMETH = '1'
IMPORTING
e_tage = diffr
EXCEPTIONS
DAYS_METHOD_NOT_DEFINED = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
IF diffr GT 31.
MESSAGE s009(zerrormsg) WITH text-000 DISPLAY LIKE 'W'.
LEAVE TO LIST-PROCESSING.
ENDIF.
ENDIF.
ENDFORM. " BEDAT_VALIDATE -
Display error message in user-exit EXIT_SAPMP56T_002
Hi,
I'm doing a validation in user-exit EXIT_SAPMP56T_002 (include ZXTRVU03), and I want to display a error message. So, I'm using the instructions:
continue_with_update = 'N'.
MESSAGE ID xxx TYPE 'E' NUMBER yyy.
What happens is that in SAP GUI it works fine, but in SAP Portal it gives a lot of java exceptions.
Is there other way to display the error message that it works fine in the portal?
Thanks.
SóniaHi,
I tried with that but it doesn't work.
With the instruction "Message ID..." the portal shows an RFC ERROR SYSTEM FAILURE with all that java exceptions.
With your suggestion it does not retrieve my message, and instead it retrieves a customized message "Trip cannot be saved in this status, check mileage start and end location", that refers to the expense report and does not make any sense when I'm only creating the trip.
Any idea for this?
Thanks.
Sónia -
Dear all,
I have a requirement in WEB DynPro, Our ESS system using WEB DynPro.
In ESS leave system need to display error message.ie
once leave approved, employees are not allowed to change the leave.
Any idea to write code to display error message.
Thanks.
Shruthi.Error messages can be displayed in two ways:
1. In the message area
2. As a popup
Below are the code snippets for it.
1.
* get message manager
DATA lo_api_controller TYPE REF TO if_wd_controller.
DATA lo_message_manager TYPE REF TO if_wd_message_manager.
lo_api_controller ?= wd_this->wd_get_api( ).
CALL METHOD lo_api_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager.
CALL METHOD lo_message_manager->report_error_message
EXPORTING
message_text = 'Error message'.
2.
"Display Popup
DATA: l_popup TYPE REF TO if_wd_window,
l_text TYPE string_table.
APPEND `Error Message` TO l_text.
l_popup = wd_comp_controller->wd_get_api( )->get_window_manager( )->create_popup_to_confirm(
text = l_text
close_button = abap_false
button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>co_msg_type_error
window_title = 'Error'
window_position = if_wd_window=>co_center ).
l_popup->open( ).
Hope this helps! -
Display error message in Campaigns - Planning profile templates
Hi experts,
I am facing an issue while trying to display error message in plannign profile template for campaigns.
Issue is that even though i am able to add the error message to the parent campaign message container, it is not being displayed on the UI screen message area(refresh is not happening) until the next screen refresh happens through another event like change of planning profile drop down / f2 pop up being closed on the message area etc.
I need to display the error message as soon as it gets added in the global message container.Is there any way that i can refresh the UI from this method which would display my error message? I think round trip might work here
I am tryign to add the message in the method IF_FLEX_DATA_PROVIDER~MODIFY_DATA of component KFPED_LAYOUT .
But it doesn't get reflected in the message area.
Appreciate a lot if anybody can help me out here.
Thanks
Swapna.Closing the thread. Resolved myself .
Thanks.
Swapna V. -
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.... -
Batch management "Display errors" Message no. M3530
Hi Experts,
we want to activate batch management in material master data for more than 1000 items.
1. Which most of the items having stock without batch in current period and in previous period and few items stock are 0.
2. Few of items have the PR, open PO and it included BOM
I am trying to activate the batch management which the material stock are 0, the system allowing for few items to change and most of items system showing below error.
Batch management requirement cannot be changed; choose "Display errors"
Message no. M3530
please suggest, what are procedure need to follow to activate the batch management in material master.
Thanks & Regards,
SivanandanHi,
refer below treads -
Batch management requirement cannot be changed; choose "Display errors
Activate batch in material master data
Batch management is not activating in material master -
While trying to import photos from my Canon 5D markIII, iPhoto displays an error message which says unreadable format and the following files could not be imported. Please advise???
the screen shot does not display (a Forum bug ) and if it did it does not answer the questions
Seriously we can not see you and if you refuse to answer simple questions we can not help
Need information to help
what version of iPhoto? Is OS X 10.8 as you state correct for the OS? Has it ever worked? What has changed since it worked? Will Image Capture ( in your applications folder) import the photos? How are you importing - USB to the camera? USB card reader? built in card reader?
Any other clues that would help a total stranger who can not see you or your computer assist you?
LN -
Display error message in batch job log
Hello
I have a batch job running and I have an error coming during some validation logic.
The problem is I need to continue the batch job when this error message comes and it should not cancel the batch job as it is doing currently but display that error message in batch job log, there are more similar error messages coming in job log and job gets finished, but when my error message comes job gets cancelled.
I cannot give it as info message as it will give wrong idea about message type.
Is there any FM by which we can add message in job log?Sanjeev I have done that but problem is I do not want to give that as Information message but Error message only and continue processing.
If you see in screenshot 3rd message is given by me as information and you can see error messages also 6th and 7th and job continued till it is finished
Basically I want that 'I' to be displayed as 'E'.
Display error message in batch job log
Maybe you are looking for
-
I have updated my Mountain Lion (10.8.3) yesterday .. which includes the latest Bootcamp update which allows the user to install Windows8. Am unable to install Windows8 .. "Windows 8 is not supported on this Mac" .. My MacBook Pro is ..13-inch, Mid 2
-
Length of clip expands when sending from Final Cut to Motion
Hi everybody. I'm a motion beginner, so pardon me if this is a boneheaded question. I have a clip whose speed has been slowed in an FC timeline. I sent it to motion in order to switch the method of speed alteration to 'optical flow'. The clip in the
-
Hi experts, please help me. XI/PI 7.0 i have 3 dbf files. 1.dbf 2.dbf 3.dbf and i use 3 communication chanels to select data from each file and use it in my BP: jdbcChanel1 jdbcChanel2 jdbcChanel3. So, i do it consistently: Select data from the first
-
Hi Experts, I have a requirement to design xcelsius dash board to display data analysis.when a value is selected from the combo box i need to display a pie chart and a map.when a pie chart is clicked a table with details need to be displayed.wh
-
How do i transfer all my pics from Picasa 3 to Photoshop Elements 13
I'm sure their all saves in My Pics on my HDD so perhaps just pull them all into 13. I just want to make sure I have all my pics and videos off of Picasa 3. Side note, does PE 13 allows me to get rid of of multiple copies of the same pics. Thanks