Displaying the message in output of BDC program.
Hi,
I have developed the BDC program for running the MMPV and MMRV transaction code in that in output want to display the message that for which company code posting is done or some error is occurring. Below shown message is populate in when standard transaction code MP is execute.
AL O G
Mode: Check and close period
Client: 140
Period entered (month/year): 11 2007
Incorrect period in control recd. of CoCd 1306; no conversion The current period (month/year) of the control record is 11 2007
Period closing complete; log issued.
E N D
I want like this message to be display in output of the program, currently I am using the function module FORMAT_MESSAGE. It is displaying the message which is appearing on status bar only. I am not able to capture the message which is shown above.
In this problem can any body can guide me
I am using the Call transaction method.I use the internal table of 'bdcmsgcoll' in the program but I am not able to get the message in internal table other than the message which is appearing on the on the status bar, the message which I shown in mail it's an log message which is coming after running the standard MMPV transaction code.
below shown is the code which I written.
DATA: BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
messages of call transaction
DATA: MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
chetan
W_MESSTAB LIKE BDCMSGCOLL .
error session opened (' ' or 'X')
DATA: E_GROUP_OPENED.
message texts
DATA: session LIKE apqi-groupid VALUE 'X', " VALUE 'GAN'.
GROUP TYPE APQI-GROUPID,
USER TYPE APQI-USERID value 'SY-UNAME',
KEEP TYPE APQI-QERASE,
HOLDDATE TYPE APQI-STARTDATE,
SMALLLOG(1) TYPE C VALUE ' ',
CTUMODE LIKE CTU_PARAMS-DISMODE VALUE 'N',
CUPDATE LIKE CTU_PARAMS-UPDMODE VALUE 'L', "'L'
E_GROUP(12) TYPE C,
E_USER TYPE SY-UNAME,
E_KEEP(12) TYPE C,
E_HDATE TYPE SY-DATUM.
FORM BDC_TRANSACTION USING TCODE.
DATA: L_MSTRING(480).
DATA: L_SUBRC LIKE SY-SUBRC.
DATA: L_Message(255) TYPE C .
REFRESH MESSTAB.
CALL TRANSACTION TCODE USING BDCDATA
MODE CTUMODE
UPDATE CUPDATE
MESSAGES INTO MESSTAB.
L_SUBRC = SY-SUBRC.
IF SMALLLOG <> 'X'.
LOOP AT MESSTAB.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = MESSTAB-MSGID
LANG = sy-langu
NO = MESSTAB-MSGNR
V1 = MESSTAB-MSGV1
V2 = MESSTAB-MSGV2
V3 = MESSTAB-MSGV3
V4 = MESSTAB-MSGV4
IMPORTING
MSG = L_MESSAGE
EXCEPTIONS
NOT_FOUND = 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. "'-D'
ENDIF.
wa_tab-v_message = l_message.
ENDLOOP.
ENDIF.
REFRESH BDCDATA.
ENDFORM. "BDC_TRANSACTION
FORM mmpv_tcode .
SELECT bukrs lfgja lfmon
INTO table t_tab
FROM marv
WHERE bukrs IN s_bukrs AND
lfgja IN s_lfgja AND
lfmon IN s_lfmon.
IF SY-SUBRC <> 0.
MESSAGE 'NO TABLE ENTRY FOUND FOR MMPV' TYPE 'I'.
Leave list-processing.
v_check = '1'.
ENDIF.
MMPV Program execution of all the company codes using loop.
LOOP AT t_tab INTO wa_tab.
perform bdc_dynpro using 'RMMMPERI' '1000'.
perform bdc_field using 'BDC_CURSOR'
'I_LFGJA'.
perform bdc_field using 'BDC_OKCODE'
'=ONLI'.
perform bdc_field using 'I_VBUKR'
wa_tab-bukrs.
perform bdc_field using 'I_LFMON'
wa_tab-lfmon.
perform bdc_field using 'I_LFGJA'
wa_tab-lfgja.
IF R_XCOMP = 'X'.
perform bdc_field using 'I_XCOMP'
'X'.
ENDIF.
IF R_XINCO ='X'.
perform bdc_field using 'I_XINCO'
'X'.
ENDIF.
IF R_XMOVE = 'X'.
perform bdc_field using 'I_XMOVE'
'X'.
ENDIF.
IF R_XNEGQ = 'X'.
perform bdc_field using 'I_XNEGQ'
'X'.
ENDIF.
IF R_XNEGV = 'X'.
perform bdc_field using 'I_XNEGV'
'X'.
ENDIF.
perform bdc_dynpro using 'SAPMSSY0' '0120'.
perform bdc_field using 'BDC_OKCODE'
'=BABA'.
perform bdc_dynpro using 'RMMMPERI' '1000'.
perform bdc_field using 'BDC_OKCODE'
'/EE'.
perform bdc_field using 'BDC_CURSOR'
'I_VBUKR'.
perform bdc_transaction using 'MMPV'.
wa_tab2-v_code = wa_tab-bukrs.
wa_tab2-v_fyear = wa_tab-lfgja.
wa_tab2-v_period = wa_tab-lfmon + 1.
wa_tab2-v_message1 = wa_tab-v_message.
APPEND wa_tab2 to t_tab2.
clear wa_tab2.
ENDLOOP.
ENDFORM. " mmpv_tcode
I want that log message is to be displayed in the output.
Currently I am getting the output like this.
Report for posting MM period
Company Code Financial year Period open for posting Message
I want the message should e display under 'message' coloum.
1306 2007 12
Similar Messages
-
The Problem/s
1. I am unable to sync my iPhone 4S with my Mac Book Pro, either by cable, wifi or bluetooth
2. iTunes will initiall open and briefly identifies the iPhone in the Device section in iTunes.
3. When iTunes starts to read the iPhone (displaying the spinning wheel), it immediately then quits and
4. Opens a 'dialogue box' which displays the message "iTunes Quit Unexpectedly"
5 The dialoge box offers the following button options to:-
'Show Details'
The 'Show Details' button will open and display a list of the 'Problem Details and System Configeration'. To the average user the information is useless, as one doesn't know what to look for to solve the problem. This is a long and detailed report (too long to include in this message), which includes information such as:-
Crashed Thread: 20
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000006f0
'OK'
The 'Ok' button simply quits and closes the dialogue box
'Reopen'
The 'Reopen' button will again reopen iTunes, briefly showing that it is trying to read the iPhone in the Devices section, but then returns again to display the same dialogue box.
Other Information
1. iTunes will still start normally once the USB cable is removed from the Mac book Pro, but crashes again once the USB cable is reattached to the computer
Any advice or help offered would be greatly appreciated.
Sincerely
Rob
Message was edited by: RobmanricoHi there anaqeed,
I would recommend taking a look at the troubleshooting steps found in the article below.
Issues installing iTunes or QuickTime for Windows
http://support.apple.com/kb/ht1926
-Griff W. -
What is the use of CTU_PRAMS in bdc programming?
what is the use of CTU_PRAMS in bdc programming?
can any explain wit a sample code.Hi,
Hi,
If u write table control bdc program in 14'' monitor screen, then if the same program u run at different monitor size, then the screen resolution problem comes in to the picture,
like, u get 5 records in table control in one screen, and some other records in other screen, to avoid this screen resolution problem we use CTU-PARAMS Structure.
In ur program u have to set
defsize type ctu_params-defsize value 'X',
Then u will be free of screen resolution problem.
Fill the str CTU_PARAMS-defsize = 'X' and pass in CTU stmnt as
call transaction 'XXX' options using t_bdcdata ctu_params.
Analysing :
1. If nothing works, then we have to
some ifs & buts.
2. There shall be normally
2-4 different kinds of resolution
on various users comptuers.
3. Based on this,
we have to know beforehand,
what will be the number of rows
in the table control.
4. The user can be given
a selection/paraemter
for resolution
eg. 800x600
1024x100
axb
etc.
5. Based on this, we will hardcode
in the program (based upon our knowledge/recording
which we have seen and done)
we will hardcode
the number of lines
in the VARIBLE.
6. Then we can simply use this variable
for our LOOP and logic purpose.
7. It will be the responsibiltiy of the
use to CHOOSE THE CORRECT resolution,
on the selection-screen.
For screen resolution use ctu_params, with default size
Data : f_option type ctu_params,
f_option-updmode = 'S'.
f_option-defsize = 'X'.
f_option-dismode = 'N'.
call transaction 'VA01' using bdcdata options from f_option messages into bdcerror.
CALL TRANSACTION tcode... OPTIONS FROM opt
... OPTIONS FROM opt
Effect
Allows you to control processing using the values of the componetns of the structure opt, which must have the ABAP Dictionary type CTU_PARAMS. The components have the following meanings:
DISMODE
Display mode (like the MODE addition)
UPDMODE
Update mode (like the UPDATE addition)
CATTMODE
CATT mode (controls a CATT)
CATT mode can have the following values:
' ' No CATT active
'N' CATT without single-screen control
'A' CATT with single-screen control
DEFSIZE
Use default window size
RACOMMIT
Do not end transaction at COMMIT WORK
NOBINPT
No batch input mode (that is, SY-BINPT = SPACE)
NOBIEND
No batch input mode after the end of BDC data.
The components DEFSIZE , RACOMMIT, NOBINPT, and NOBIEND always take the following values:
'X' Yes
' ' No
If you do not use the OPTIONS FROM addition, the following control parameter settings apply:
DISMODE
From addition MODE
UPDMODE
From addition UPDATE
CATTMODE
No CATT active
DEFSIZE
Do not use default window size
RACOMMIT
Successful end on COMMIT WORK
NOBINPT
Batch input mode active ( SY-BINPT = X
NOBIEND
Batch input mode remains active after the BDC data -
How sxmb_moni is displaying the messages
Hi,
I want to know how sxmb_moni is displaying the error information.
when messages are listed and we select one error message.If we click error_information button it displays a pop up with detailed errors.
Can some one please tell me from where it retrieves the messages. is it from any data base table.
I have debugged standard program with out any clueHi samir,
you are right as i am calling the cl_proxy_fault and passing the exception class name.
But my requirement is can i know where this error messgae will get stored.
I feel tht unless it stores in database table it will not display the message in sxmb_moni.
( Here i am talking about additional error information )
Please correct if i am wrong
Edited by: ch_ravi_sap on Feb 17, 2012 12:43 PM -
I've just installed Firefox on my laptop and keep getting the message, "Windows cannot find 'c:\Program Files (x86)\Mozilla Firefox\firefox.exe'. Make sure you typed the name correctly, and then try again." I get this message whenever I either try to open it from the Start menu or from the desktop icon. I've never gotten it to work and even uninstalled it and then redownloaded it and still cannot get it to open. Any help would be greatly appreciated!!!!
Are you installing from the official site? http://www.mozilla.com/firefox
If you use Windows Explorer (My Computer) to check that path, is the Mozilla Firefox folder there? That is the normal installation location, but I think it's worth checking.
If the folder isn't there or firefox.exe is not in it, I wonder whether some other software might be interfering. You might want to run some supplemental security scans. These two tools are highly regarded:
Malwarebytes Anti-malware : http://www.malwarebytes.org/products/malwarebytes_free
SUPERAntiSpyware : http://www.superantispyware.com/ -
public class Userdefined extends Exception {
Userdefined(String sparam){
System.out.println(sparam);
Userdefined(){
private static int acno[]={100,105};
private static double bal[]={100.00,200.00};
public static void main(String args[]) {
try{
for(int i=0;i<2;i++)
System.out.println("ACCCCNO------>"+acno[i]+"BAl------>"+bal);
if(bal[i]<150.00)
Userdefined udexp=new Userdefined("bal less");
throw udexp;
catch(Userdefined e){
System.out.println("--->"+e);
How can i display the message "less amt" using my parmeterized constructor.VinayTK wrote:
How can i display the message "less amt" using my parmeterized constructor.Erm ... what? You can't --- at least not with the stuff you've got there.
A properly formed question, with some idea of what you're trying to accomplish would be a huuuuge help.
Winston
BTW: Congratulations. At my age, 'first's in computing are rare; but it's definitely the first time I've seen an Exception class with a main() method.
Edited by: YoungWinston on Sep 1, 2009 9:46 AM -
Need to display the messages in a view which has the pop up on it
Hello all,
I have a view(View 1) in which if i click a button a pop up is being displayed.
Now on the pop up(which has view 2 of window 2) i have a button(Ok) and if i click it then based on a condition i need to close the pop up and then display the message in the message area of View 1.
Now if i click the button on the Pop up then it is being closed and the message is not being displayed on view 2.
I think the message is being displayed on the pop up and is being closed after that.
How can i display my message on View 1.
Any ideas...Please help
Thanks in advance,
ShravanHi Shravan,
Create Message area in view1.
and also give VIEW name wile displaying error message and try.
* report message
CALL METHOD lo_message_manager->REPORT_ERROR_MESSAGE
EXPORTING
MESSAGE_TEXT =
* PARAMS =
* MSG_USER_DATA =
* IS_PERMANENT = ABAP_FALSE
* SCOPE_PERMANENT_MSG = CO_MSG_SCOPE_CONTROLLER
VIEW = VIEW1 .
Cheers,
Kris. -
Adding logo to the standard PO Output for communication program
Hello All.
I need to add company logo to the Standard PO Output for Communication program. Can someone please tell me a way to do this. I went into applications and see its a Java Concurrent program. I even went into these forums and I saw there is a way to uncomment out the line in the XSL file and add the logo there , but how do I upload back to the template. The Upload Button is disabled for this template.
Can we use the Standard Purchase Order Stylesheet for this?
If so how to make changes and how can I upload it back?
Should I do an RTF temnplate?
Can someone pl help me here. We are on R12 and I am not much familiar with exposting RTF to XSF FO.
Thanks
VidhyaWe took the standard PO document XSL-FO template and enhanced for our own needs. The first of those is to utilize the company's logo. Search for 'external-graphic' in the xsl-fo template. The first hit will be the section for the logo. The comments in the template provide some guidance on what to change. For our company, I changed the URL to point to a .gif file on the Apps server ($OA_MEDIA/company_logo.gif) .
The one downside that I have found so far, is that I am have to hard-code the entire document path. This path will change between instances. So I once our production instance is defined, I will set it to that path.
- Scott -
Error: No authorization to display the message
Hello
Users are getting error : No authorization to display the message,
when they are trying to view the content of the message.
When checked in the error logs, I see teh below log:
Message: Failed (javax.management.MBeanPermission,*,DISPLAY)java.lang.reflect.InvocationTargetException
Category: com.sap.security.core.role.PermissionData
Location: com.sap.security.core.role.PermissionData.get(ClassLoader)
Application: sap.com/tclmitsamcouinwalocalnavigation~wd
Can you please advice , as what actions has to be added to user.Where do you get this error? Basically user is not having proper credentials to view the message. Talk to Basis team.
-
How to display the message along with a value using BBP_CHECK_BADI
Hi Gurus,
I need to display a message dynamically when the user create's a shopping cart. I am using Check_badi for this. i.e., I need to display the buyer number and amount left for him dynamically. I am storing both of them in variables and don't know how to display the messages laong with some message " the amount left for <XXXXXX> is <$$$$$$$$>". Can you help me out.
Thanks,
NeelimaHi,
you can use the function module 'BBP_PD_MSG_ADD'. This is the function module normally used for the displaying the error messages in SRM.
See wether you can use already available error messages , use the transaction SE91 , and the message class being BBP_PD -
How to display the Message Pool Messages in CE 7.2
Hi Experts,
Please let me know how to display the Message Pool Messages in CE 7.2.
I have tried with reportContextAttributeMessage, but it is deprecated in CE 7.2.
Please do the needful.Its Urgent.
Thanks & Regards,
SatheshKumar RHi Sathesh,
Do the following steps:
1.) After creating a component, under it you will see Message Pools. Double click and open it.
2).Click "Add Message" and add a new message. (Give a message key, type of message (either warning, error etc ) and message text).
3). Save the metadata.
4). Raise this message where all you want by using following code(For example, on click of a button) :
IWDMessageManager msgnr = wdThis.wdGetAPI().getComponent().getMessageManager();
msgnr.reportMessage(IMessage<component name>.<message>,null,true);
For example, I have a component name TestAppComp and under message pool I have message called message1, then use lik this:
IWDMessageManager msgnr = wdThis.wdGetAPI().getComponent().getMessageManager();
msgnr.reportMessage(IMessageTestAppComp.MESSAGE1,null,true);
Reply me if you any doubt.
Regards,
Jithin -
When trying to update an app, it partially downloads and then displays the message "unable to download item" Please try again later. This happens on any app I try. I have tried deleting the app and reinstalling with same results. What can I do?
I have the same thing happening on my iPod Touch 5th gen. Been happening for at least a month. I have updated to the most recent version of iOS which hasn't solved the issue. Must be a bug that they didn't get around to resolving yet, a year later. Really annoying to have it pop up when you are in the middle of a game though.
-
Display the message which is in it_tab
Hi Experts,
i want to display the message which is in it_tab .can you tell me which method is applicable for this.
READ TABLE it_tab INTO ls_tab WITH KEY usertype = 'PRIV'.
IF ls_tab-usertype = 'REG'.
lo_api_controller ?= wd_This->wd_get_api( ).
CALL METHOD lo_api_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager.
ENDIF.
Thanks in Advance,HI,
You can use REPORT_ERROR_MESSAGE to display the message.
If you want to highlight the filed use REPORT_ATTRIBUTE_ERROR_MESSAGE.
These methods are part of IF_WD_MESSAGE_MANAGER and can be used like this.
* 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
* report message
CALL METHOD lo_message_manager->report_error_message
EXPORTING
message_text = 'MESSAGE TEXT'
* params =
* msg_user_data =
* is_permanent = ABAP_FALSE
* scope_permanent_msg = CO_MSG_SCOPE_CONTROLLER
* view =
* show_as_popup =
* controller_permanent_msg =
* msg_index =
* cancel_navigation =
If tou have the message class name,message number use can use REPORT_T100_MESSAGE
CALL METHOD lo_message_manager->report_t100_message
EXPORTING
msgid = '/MESSAGE CLASS NAME'
msgno = 237
msgty = 'E'. -
My Ipod classic stopped suddenly while playing on the dock. On checking it said connect to iTunes to restore and the battery had also exhausted itself. On connecting to iTunes it kept displaying the message Do Not Disconnect but showed the battery getting charged. Sometime later it said OK TO DISCONNECT. It never worked after that. Please help /guide to restore...
Hello Harrywahi,
Sorry to hear about the trouble you are having with your unresponsive iPod classic. I found a resource that I think would help in a situation like this.
I recommend following the steps in this troubleshooting assistant:
iPod classic Troubleshooting Assistant
http://www.apple.com/support/ipod/five_rs/classic/
Thank you for posting in the Apple Support Communities.
Best,
Sheila M. -
I have the ipad 4g and it is displaying the message "resource limit reached" only had it for two days
Are restrictions turned on? I suspect the "resource limit" is something that is set there.
Settings > General > Restrictions
Maybe you are looking for
-
Can't get texts from one person
Does anyone know of anything I could try to help me receive texts from someone that I previously received texts from just fine? About 2 weeks ago a friend of mine and I noticed that neither of our texts were being received by the other. He uses an i
-
How to install AdobeFnt07.lst and use it with Illustrator
Hello, I received font files to make a work, in this pack there are some files called with the name and type of font (like DIN Short, DINBla, DINBlaIta, DINBol, ... ) and one file called AdobeFnt07.lst. Could you tell me how I can install this font's
-
Nokia N82 , problem with contacts
I have a nokia N82 , but the problem is ,suppose i have a contact saved as michael and no. is suppose 8768655435. When Michael calls it displays both the name and the number ,it exposes the contact no. which i dont like ? I want to set it as only nam
-
Hi I have created a video to put on my websites home page. However, when I try to insert it using Dreamweaver it doesn't play. In dreamweaver which is the best option to insert a video?:- Insert flash, flash video - progressive download video or stre
-
AE hooked to stereo - very high volume! adjustable?
I have been using an Airport Express plugged with analog headphone plug into a fairly high-end Yamaha RX-V2500 receiver. Works great. I just bought a 2nd Airport Express and plugged it into a much smaller, far lower end Tivoli Radio Works system. I h