Add message to MIRO messgae collector
Hello,
I am using BADI INVOICE UPDATE METHOD CHANGE_AT_SAVE. Right now the program issues warning message every time it passes through the loop.
Instead of several warning message , I want to get only one message in the message collector.
I tried to use MACRO MM_MESSAGES_MAC using mmpur_message_forced, but it doesnt work.
Is it possible to do it in MIRO ?
Regards
Yifat
Hi,
try to check the messages and update with your own logic or add your message to the below FM
Store the messages to be displayed
CALL FUNCTION 'MESSAGE_STORE'
EXPORTING
arbgb = 'ZCCH001' "Meeage type
msgty = p_msgty
msgv1 = p_msgv1
msgv2 = p_msgv2
msgv3 = p_msgv3
msgv4 = p_msgv4
txtnr = p_txtnr
EXCEPTIONS
message_type_not_valid = 1
not_active = 2
OTHERS = 3.
Display all the messages together on a pop up
CALL FUNCTION 'MESSAGES_SHOW'
EXPORTING
show_linno = ' '
IMPORTING
e_exit_command = wa_exit_command
EXCEPTIONS
inconsistent_range = 1
no_messages = 2
OTHERS = 3.
Similar Messages
-
Need to add Message variant field in BD87 selection option
Hi Friends,
We have a requirement to add "Message variant" field in BD87 selction screen. Our technical team is doing analysis from there end. Mean time we came to know that the field can be added through report variant in customiziting. If anyone know how to add the additonal field thorugh customization Please guide us also please pro.Hi Jaheer ,
If you talking Abuot heading in out put screen then use TOP-OF-PAGE
or Else you use "Write:/ " Statement in you program...So that when first line is complete it will go to next line...
What I understand from your Question....
Souman -
When to add message type to distribution model
hi
i am bit confused on when to add a custom/std message type to distribution model. what are the conditions. is that always necessary to add the message type to distribution model.
thanks[http://sap.ittoolbox.com/groups/technical-functional/sap-interfaces/add-message-type-in-ale-distribution-model-1192885]
[http://docs.sun.com/app/docs/doc/820-5014/ggcpd?a=view]
[http://publib.boulder.ibm.com/infocenter/wtxdoc/v8r2m0/index.jsp?topic=/com.ibm.websphere.dtx.packsapxi.doc/tasks/t_pack_sapxi_Create_a_Destination_Model_BD64.htm] -
How can i add message in "migo" ( good receipt ) ?
how can i add message in transction "migo" ( good receipt ) ?
i tried userexit MBCF0002
but i can't see more then one
line of the order and the user
get 3 messages ( in case of order with 3 lines )
the badi's
MB_DOCUMENT_BADI
MB_MIGO_ITEM_BADI
don't give me the option
to add message .
i tried to add message in the check or befor the save .
this is the message :
CALL FUNCTION 'POPUP_TO_DIS
PLAY_TEXT'
EXPORTING
titel = text-001
textline1 = text-001
TEXTLINE2 = ' '
start_column = 25
start_row = 6.
message s000 with text-002.
ENDIF.OK, I'm on ECC6.0 system that's why you can't find it in 4.7 version.
I'll copy and paste the sample code for you below.
Sample Method IF_EX_MB_MIGO_BADI~CHECK_HEADER
method if_ex_mb_migo_badi~check_header .
data: ls_bapiret type bapiret2.
* Refresh return table
refresh: et_bapiret2.
* Check header data (W-/E-Messages are useful)
if gs_exdata_header-badi_nummer is initial.
ls_bapiret-type = 'W'.
ls_bapiret-id = 'M7'.
ls_bapiret-number = '895'.
ls_bapiret-message_v1 = 'Enter number on external screen'(001).
append ls_bapiret to et_bapiret2.
endif.
endmethod. "IF_EX_MB_MIGO_BADI~CHECK_HEADER
Sample Method IF_EX_MB_MIGO_BADI~CHECK_ITEM
method if_ex_mb_migo_badi~check_item .
data: ls_extdata type migo_badi_example_screen_field,
ls_bapiret type bapiret2.
* Refresh return table
refresh: et_bapiret2.
* Read external data
read table gt_extdata into ls_extdata
with table key line_id = i_line_id.
* Check if all entries are done (W-/E-Messages are useful)
if ls_extdata-badi_erfmg is initial.
ls_bapiret-type = 'E'.
ls_bapiret-id = 'M7'.
ls_bapiret-number = '895'.
ls_bapiret-message_v1 = 'Enter quantity on external screen'(002).
append ls_bapiret to et_bapiret2.
endif.
if ls_extdata-badi_erfme is initial.
ls_bapiret-type = 'E'.
ls_bapiret-id = 'M7'.
ls_bapiret-number = '895'.
ls_bapiret-message_v1 =
'Enter unit of measure on external screen'(003).
append ls_bapiret to et_bapiret2.
endif.
endmethod. "IF_EX_MB_MIGO_BADI~CHECK_ITEM
Implement your according to the examples above.
Hope this solves your problem.
Cheers,
Sougata.
P.S. You need to create a brand new Z implementation via SE19 using the BADI definition MB_MIGO_BADI
Edited by: Sougata Chatterjee on Dec 31, 2007 1:05 AM -
How to set/add message to the FacesMessage?
My code looks as follow:
<h:commandButton id="submit" value="Submit" action="#{myBean.doSearch}"/>
<h:messages layout="table" showDetail="true"/>
What I want is: I will do some check in the doSearch(). If something wrong, I will add message to the FacesMessage so it will be printed out by <h:messages.../>
How shold I do in the doSearch()?Isn't this what you want in your doSearch()(???):
FacesContext facesContext = FacesContext.getCurrentInstance();
FacesMessage facesMessage = new FacesMessage(errorMsg);
facesContext.addMessage("nameOfForm", facesMessage);/Birna -
SendMail -'Add Message to action log' on as default ?
Hi
Is it possible and how, to set the 'Add Message to action log' checkbox, checked, as default in the form?
Thanks.
/PeterAlso, the Send Email source code can now be found at Codeplex for you to "play around" with if you would like to add new features or functionallity.
https://scsmsendemail.codeplex.com/
Regards
//Anders
Anders Asp | Lumagate | www.lumagate.com | Sweden | My blog: www.scsm.se -
No longer able to add messages?
I have two accounts to which I can no longer add messages via the Pay As You Go site, or through the GoPhone Support (800-) number. When I click the Features tab on the PAYG site, both say "No package is available for purchase," and have done this since I opened the accounts. That was okay as long as I could still renew and add messages via the 800-number. Now the automated system wants me to change my plan, and buy things I don't need. The accounts are for MMS cameras, not phones. I can (and do) buy "minutes" on the PAYG site, but I don't need to call Canada or Mexico or anyplace else for $30/month, when the 10¢/minute plan with 1,000 messages works (or worked) just fine. I just noticed that one account says "Smartphone 10¢/minute plan" on the PAYG site. The other says "10¢/minute" at the top of the page. The main balance for that one is now over $90, but I can't add any messages because of the "No package is available" problem. The nearest AT&T store is a sixty-mile round trip from my home. I have five accounts with AT&T, but I'm pretty tired of this.
I have a gophone and no they won't allow packages to be purchased unless you upgrade to a monthly plan. which sort of negates the idea of pay as you go. gophone users can no longer pay what they need when they need it.
-
Hello,
I have a FORM.
Based on sys.all_users table
It has simple functionality as below:
Its allow user to unlock any account.
It does work.
I want to add message to the form as below:
When I clicks on unlock button,
and its processed.
it should bring the message as "Account is unlock".
If it does not find user the message will appears as
"Account not found"
here is the code on when_button_pressed trigger of unlock button.
unlock_account(:item_name);
procedure unlock_account is as follows:
Procedure is existed on database level.
create or replace procedure unlock_account
(p_username in all_users.username%type)is
begin
execute immediate 'alter user ' || p_username || ' account unlock';
end;
DNCapture the Exception and initialize an OUT variable with the appropriate message. And display it in the form.
Or you can have the procedure in the form it self instead of database.
Some what like this :
v_ins_stm := 'alter user :username account unlock';
FORMS_DDL('BEGIN EXECUTE IMMEDIATE '
||''''
||v_ins_stm
||''''
||' USING '
||''''
||p_username
||''''
||';End;');
IF FORM_SUCCESS THEN
message('Account is unlock');
ELSE
MESSAGE('Error while unlocking the Account :'||DBMS_ERROR_TEXT);
END IF;
thanks
Pranati -
Hello Experts,
DownPayment has been made to vendor, usually while processing in MIRO we will get an message which says Fixed assets downpayment exist,but for this particular vendor the message is not displaying.
Thanks in AdvanceHi Raju,
T.code FBL1n
Enter vendor code and company code, select All items radio button.
Tick check boxes Normal items, Special G/L transactions and noted items and click execute.
After report execution change the layout add purchasing document, you can see the purchase document number.
If you cannot see PO number, that means you have not paid down payment with reference to PO.
Regards,
Raj -
Add Profit center to cost collector
Hello SAP Guru
Is it possible to add a profit center to a cost collector which is already is in use.If yes then how ?
Thanks in advance.I am geeting below warning message .Please suggest me what to do :
You need to change the profit center -> See long text
Message no. KO 372
Diagnosis
You want to change the profit center, although you already made
postings on product cost collector 700270 for the previous profit center.
Procedure
If you wish to change the profit center, you need to settle the
last period, and no more postings should be made after this.
Notes
Order values may already be updated on the assigned profit
center During reassignment, the system only updates the new order values on the
currently assigned profit center. -
Experts,
Happy New Year !!!
I have requirement, When i will go for IR in MIRO , when the User Click on Payment Tab , that time i want to display a Custom Warning / Information Message as "Check Base Line Date" for Alerting the Users... This Message should display only once when click on Payment Tab
How to do it ?? where & in which Program I have to add the Custom code for it or any Config is there ??
Pls help..
Thanks in Advance
JackDear Jack,
Happy New year to you.
Regarding your query about MIRO transaction you can use the following 2 BADIs.
PPA_CUST_BADI
FAGL_PERIOD_CHECK
These 2 BADIS are called once user clicks on payment tab. So you can write your code here to get the information messege.
Regards
Arindam -
Hi Masters of MIRO,
I have REQUIRMENT where i have to display an ERROR message.
currently IF company code, Ref NO & Inv Date alreday exists it issues an error message.
Check if invoice already entered under accounting doc. no. 5100000010 2011
Message no. M8108
now i want add another field called AMOUNT to Company code, Ref NO & Inv Date
IF 4 OF THEM exists THEN only an ERROR message should COME.
how can i achieve this...is their any USEREXIT or BADI where by we can enhance.
much appriciated in advance.
thank you,
pasala.Hi
Ok now I've understood what u need
The problem is SAP standard check the duplicated invoice for Company Code, doc. date and doc. reference so just as your actual situation; if it's not set the control for reference, then SAP will use the amount.
That means standard control doesn't use Company code, Document Date, Reference and Amount together.
In the FM MRM_FI_DOCUMENT_CHECK is called the BTE for Argentin only, that any BTE is available there
Moreover the problem is your control is more selective than SAP one, that mean u should deactive the standard control and insert a your own one.
U can try to use the BTE for invoice checking as 00001020, 00001025 or 00001060
But it could be very dangerous to deactive in standard control, so u should consider to change (or enhance) the standard function module MRM_FI_DOCUMENT_CHECK
Max -
Error message in MIRO entry: Message no M8285
During the Invoice verification entry (MIRO), for a USD invoice (Company code currency is INR), I am getting the following error message "Balance in USD Currency Type 10" Message no M8285
The document is successfully getting stimulated in USD currency but when attempted to post, this message is displayed
During invoice entry, the system is taking the exchange rate maintained in OB08 for the posting date. Any clue to the cause of the problem?HI,
search SAPNET notes using "MIRO" and "M8285" as search terms. There are some notes, check especially 1319322.
Best regards, Christian -
Customisd err message at MIRO - Business area V/s company code validation
Hi experts,
We have simple validation for company code V/S Business area check in place ,
While doing MIRO system throws error for a particular company code and Business area
combination the set error message ( customized - Business are does not match with company code)
This validation has given as a sub node (step) of another consolidation trx. types against GL validation (that was in place earlier, thats why)
But when we do through F-02 (Journal entry ),F-43(vendor invoice), F-22(customer invoce) for the same combination system passes the entry !!!
what may be the cause ?
the error message is the standard one set -251 this message is custom created at Validation (GGB0)
Business area doesnt belongs to the company code
Message no. /ASU/GENERAL251
One more thing Noticed
The Material PO is a account assigned (K) cost center and the
cost center Business area is 1003.
In PO plant is 1003 and i checked the MSEG the plant shows 1003
But in Logistics assignment the Business area 1001 is tagged to Plant 1003
not THE BUSINESS AREA 1003 !! . I mean at plant/valuation area to Business ara configuration
the valuation area 1003 is assigned to Business are 1001 not to Busienss are 1003!!!
Edited by: melgibson on Feb 15, 2012 1:42 PM
Edited by: melgibson on Feb 15, 2012 1:43 PMHi
thankx for the reply,
there is no exit/ set for validation here
I have done like this
Pre requisite
company code = xxxxx
Check
Business area = xxxx or BA = XXXXXX or BA = XXXXX ......
Message
E Message class /ASU/GENERAL
251
Business area doesnt belongs to the company code
Message variables
1 BSEG - GSBER
The t codes like F-43 AND f-02 1003 cc TO 1003 BA is perfectly working !!! our problem is at MIR7/MIRO
only there the error pops up even the combination is allowed in the above mentioned validation??
Edited by: melgibson on Feb 15, 2012 2:03 PM
Edited by: melgibson on Feb 15, 2012 2:04 PM -
Hi , I used the user exit in miro transaction, i have a requirement that in miro when anyone change the vendor and payment term and payment block , a message shows that 'vendor and payment term and payment block cannot be changed' but i want that message will show like
1. 'vendor cannot be changed' in first line
2. 'payment term cannot be changed' in second line
3. 'payment block cannot be changed' in third lineI want to validate the MIRO transaction with user exit LMR1M001. Requirement is that when user changes i.e the payment term , payment block and vendor, need to show three different error message one at atime in Message Box during save/post the invoice verification.
Message 1 : payment term cannot be changed
Message 2 : payment block cannot be changed
Message 3 : vendor cannot be changed.
Thanks & Regards
Prabhat
Edited by: prbhat on Sep 24, 2010 9:01 AM
Maybe you are looking for
-
Can you please help me write below query in efficient way
Hello- I have wrote one query and its very slow to get the data because i am counting the code at every column from the table in from clause. SELECT SUM(diag_total) diag_total, SUM(diag_complete) diag_complete, SUM(diag_remaining) diag_remaining, SUM
-
How to Set corrid using JMS adapter in ESB while inserting the data in JMS
Hello all, Can any one help me in setting the corrid using JMS adapter in ESB. I haven't been able to find any clues. We can do this in BPEL but my adapter is in ESB and i have no idea how this can be done in ESB. Your help is highly appreciated. Tha
-
...another problem with NIC's on x86: according to pcelx(7D), 3c589C is supported by this driver under pcic, but prtconf doesn't show any children under the controller. I've also tried: 1. 3c589D, it's not recognized as well. 2. pctc driver, although
-
How can I change my workspace in WSED
Hi all, When we start Websphere (below version 6.0) it gives an option to change my workspace...But if we check a check box there to make the current work space as our default workspace,the next time we dont get that option...In that situation How ca
-
Where is the oracle.jdeveloper.servlet Class?
Hi, I want to use a dbservlet in Oracle JDeveloper 3.2 or higher but I can not find dbservlet class/icon to create a dbservlet with a wizard. How I install this class and where can I download this? What is to do to use this classes in JDeveloper. Tha