Converting info message into error message hardcoded in a standard program.
Hi all,
Due to some Good Manufacturing Practices in the Pharmaceutical Industry, users are demanding that message i102(40) (SAPLCOSD / LCOSDF2D / FORM OrderTables_Fill line 478) a hardcoded info message be converted into an error message.
I have struggled all day long on the PPCO exits, but it was not possible to find one that comes prior to this message, so I could prevent the error.
I then tried to create a field exit on field CAUFVD-GSTRP, but it was not possible to create a field exit for this field (it was not present at PRFB).
Is there any other way of changing it without changing the standard code (even though it's just one caracter from i102(40) to e102(40).
Many thanks in advance,
Alberto
Hello.
There is a solution which we used in one of our requirement.
To replace standard sap code, in ECC 6 SAP provided Enhancement Sections.
Step 1: Give program name and from and to line numbers in which you need to create a Enhancement section. Give this details to BASIS. They will provide you access key.
Step 2: Create a Enhancement Section for this portion of code.
Step 3: Create implementation for this enhancement section.
You can't create multiple implementations for enhancement section.
Activate it and now your new code will be executed.
[Click here |http://help.sap.com/saphelp_nw70/helpdata/en/a0/47e94086087e7fe10000000a1550b0/content.htm]to read the same in help.sap.com.
all the very best to you.
Similar Messages
-
How to batch convert bmp files into jpg by dos command or c# program language?
How to batch convert bmp files into jpg by dos command or c# program language?
Many thanks for replying.Try
GraphicsMagick. -
I need to get the info Message generated by the Called Program
Hi All,
I am calling an standard SAP program from my own program as follows:
SUBMIT RFBIBL00 WITH DS_NAME = V_FILE
WITH CALLMODE = 'C'
with max_comm = '1000'
with xinf = 'X'
AND RETURN.
As soon as the called program parks invoice and finish execution, it generates an info message at the status bar but I can't capture this message which contains the newly created invoice No.
I have tried to call the above program with xlog = 'X' option which prints the info messages as a log report after the programs finishes, but I am still not able to capture that log as well, although I have tried with the EXPORTING LIST TO MEMORY option while submitting the program but it just prints the log as report without sending it to memory.
Please let me know if there is some way to do it.
Regards,Hi Athar,
1. MESSAGES cannot be CAPTURED
using submit
2. For that CALL Transaction
MESSAGES Into Itab
is required.
3. For your requirement,
make a new TCODE for this program
eg. ZR0 (ZR zero)
4. Fill the bdc table
5. use this code (just copy paste)
make modifiction as per ur requirement.
6.
REPORT abc.
DATA
DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
DATA: messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
DATA: l_mstring(480).
TABLES : t100.
FILL DATA
PERFORM bdcfill USING :
'X' 'RFBIBL00' '1000'
, '' 'CALLMODE' 'C'
, '' 'XLOG' 'X'
, '' 'BDC_OKCODE' '=ONLI'
TRANSACTION
CALL TRANSACTION 'ZR0'
USING bdcdata
MODE 'N'
MESSAGES INTO messtab.
PERFORM showmsg.
BDC FORM
FORM showmsg.
MESSAGES
LOOP AT messtab.
SELECT SINGLE * FROM t100 WHERE sprsl = messtab-msgspra
AND arbgb = messtab-msgid
AND msgnr = messtab-msgnr.
IF sy-subrc = 0.
l_mstring = t100-text.
IF l_mstring CS '&1'.
REPLACE '&1' WITH messtab-msgv1 INTO l_mstring.
REPLACE '&2' WITH messtab-msgv2 INTO l_mstring.
REPLACE '&3' WITH messtab-msgv3 INTO l_mstring.
REPLACE '&4' WITH messtab-msgv4 INTO l_mstring.
ELSE.
REPLACE '&' WITH messtab-msgv1 INTO l_mstring.
REPLACE '&' WITH messtab-msgv2 INTO l_mstring.
REPLACE '&' WITH messtab-msgv3 INTO l_mstring.
REPLACE '&' WITH messtab-msgv4 INTO l_mstring.
ENDIF.
CONDENSE l_mstring.
WRITE: / messtab-msgtyp, l_mstring.
ENDIF.
ENDLOOP.
ENDFORM. "SHOWMSG
BDC FORM
FORM bdcfill USING a b c.
CLEAR bdcdata.
IF a = 'X'.
bdcdata-program = b.
bdcdata-dynpro = c.
bdcdata-dynbegin = 'X'.
ELSE.
bdcdata-fnam = b.
bdcdata-fval = c.
ENDIF.
APPEND bdcdata.
ENDFORM. "bdcfill
I hope it helps.
regards,
amit m. -
Exporting An message Internal table to Standard program Internal Table
Hi,
In T-code VOFM, We have Goods issue routine 113, Now in Custmizing 913 is Configured. we are Checking the status of each handling unit of the Delivery. So I am getting the status Incomeplete Message for Multipe HU's. hence AM storing into One internal Table and Now I want To Export That Internal Table to Standard Program Internal Table 'WAT'.
If I raiseElaborate your questions Please.
-
Suppress Information message during submit a standard program
Hi experts,
I am calling standard program RCATSCO from a report using following code:
SUBMIT rcatstco WITH p_pernr IN s_pernr
WITH p_date IN lt_r_date
WITH p_belnr IN s_belnr
WITH s_rkdauf IN s_rkdauf
WITH p_budat EQ sy-datum
WITH p_warn EQ gc_x
EXPORTING LIST TO MEMORY
AND RETURN.
When all data are already transferred to controlling this standard program displays a popup information message 'No data for transfer'. I need to suppress this popup and continue execution of the report. Please help.
Thanks,
ArnabOne option is to do that check yourself and bypass submitting the program if there is no data to transfer. Another option is to submit the program via job. That way the the message will go to the job log. I see that you are using the option exporting list to memory, which means you want to read the spool after the program is executed. With the "via job" option, you may need to monitor the status of the job for completion and then read its spool.
-
Enhancement Error at Selection Screen of standard program
Hi, can implicit enhancement be added to selection screen? When I tried to add a parameter after first selection-screen block or inside the block, always get error message during activation. The standard program i try to enhance is report LSO_RHXBUCH0 (Bookings per Participant). I am sure there is no syntax error on the codes I wrote. The error message is "Between "DATA BEGIN OF' name" and "DATA END OF name" only data statements are allowed.
Here the code, see enhancement: ZIMP_BOOKING_PARTICIPANT
-v-Block 1-----v-
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
PARAMETERS pchplvar LIKE pchdy-plvar NO-DISPLAY. "Planvariante
PARAMETERS pchotype LIKE pchdy-otype NO-DISPLAY. "Objekttyp
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS ptyp1 LIKE hrvpv-ptyp1 RADIOBUTTON GROUP xxx. "Objekttyp1
SELECTION-SCREEN COMMENT 4(22) ptxt1 FOR FIELD ptyp1.
SELECTION-SCREEN POSITION 27.
PARAMETERS ptyp2 LIKE hrvpv-ptyp2 RADIOBUTTON GROUP xxx. "Objekttyp2
SELECTION-SCREEN COMMENT 30(22) ptxt2 FOR FIELD ptyp2.
SELECTION-SCREEN POSITION 53.
PARAMETERS ptyp3 LIKE hrvpv-ptyp3 RADIOBUTTON GROUP xxx. "Objekttyp3
SELECTION-SCREEN COMMENT 56(22) ptxt3 FOR FIELD ptyp3.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS ptyp4 LIKE hrvpv-ptyp4 RADIOBUTTON GROUP xxx. "Objekttyp4
SELECTION-SCREEN COMMENT 4(22) ptxt4 FOR FIELD ptyp4.
SELECTION-SCREEN POSITION 27.
PARAMETERS ptyp5 LIKE hrvpv-ptyp5 RADIOBUTTON GROUP xxx. "Objekttyp5
SELECTION-SCREEN COMMENT 30(22) ptxt5 FOR FIELD ptyp5.
SELECTION-SCREEN POSITION 53.
PARAMETERS ptyp6 LIKE hrvpv-ptyp6 RADIOBUTTON GROUP xxx. "Objekttyp6
SELECTION-SCREEN COMMENT 56(20) ptxt6 FOR FIELD ptyp6.
SELECTION-SCREEN PUSHBUTTON 76(4) morepart USER-COMMAND more.
SELECTION-SCREEN END OF LINE.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(3 ) Struct. %F4_MACO_TAB, End S
rhx-f4-objid-data.
SELECT-OPTIONS pchobjid FOR objec-realo NO INTERVALS. "Teilnehmer
PARAMETERS pchseark LIKE pchdy-seark. "Suchbegriff
PARAMETERS pchostat LIKE pchdy-ostat NO-DISPLAY. "Objektstatus
PARAMETERS pchistat LIKE pchdy-istat NO-DISPLAY. "Datenstatus
Strukturparameter
PARAMETERS pchwegid LIKE pchdy-wegid NO-DISPLAY.
PARAMETERS pchsvect LIKE pchdy-svect NO-DISPLAY.
PARAMETERS pchactiv LIKE pchdy-activ NO-DISPLAY.
PARAMETERS pchdepth LIKE pchdy-depth NO-DISPLAY.
PARAMETERS pchdymod LIKE t77s3-dymod NO-DISPLAY. "Dynp.variation
SELECTION-SCREEN END OF BLOCK b1.
--Block 1------
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1 ) Struct. $PCH_TEXTPOOL_KEY, End S
$$-Start: (1 )----
$$
ENHANCEMENT 1 ZIMP_BOOKING_PARTICIPANT. "active version
*SELECTION-SCREEN BEGIN OF BLOCK bb2.
PARAMETERS tpchdepth LIKE pchdy-depth NO-DISPLAY.
*SELECTION-SCREEN END OF BLOCK bb2.
ENDENHANCEMENT.
$$-End: (1 )----
$$
rhx-obeg-radios-define.
-Block 2 (Aufbereitungsoption)-----
*SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-RB3.
PARAMETER : tc LIKE pp0j-tc_disp NO-DISPLAY.
*SELECTION-SCREEN END OF BLOCK B3.Hi, can implicit enhancement be added to selection screen? When I tried to add a parameter after first selection-screen block or inside the block, always get error message during activation. The standard program i try to enhance is report LSO_RHXBUCH0 (Bookings per Participant). I am sure there is no syntax error on the codes I wrote. The error message is "Between "DATA BEGIN OF' name" and "DATA END OF name" only data statements are allowed.
Here the code, see enhancement: ZIMP_BOOKING_PARTICIPANT
-v-Block 1-----v-
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
PARAMETERS pchplvar LIKE pchdy-plvar NO-DISPLAY. "Planvariante
PARAMETERS pchotype LIKE pchdy-otype NO-DISPLAY. "Objekttyp
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS ptyp1 LIKE hrvpv-ptyp1 RADIOBUTTON GROUP xxx. "Objekttyp1
SELECTION-SCREEN COMMENT 4(22) ptxt1 FOR FIELD ptyp1.
SELECTION-SCREEN POSITION 27.
PARAMETERS ptyp2 LIKE hrvpv-ptyp2 RADIOBUTTON GROUP xxx. "Objekttyp2
SELECTION-SCREEN COMMENT 30(22) ptxt2 FOR FIELD ptyp2.
SELECTION-SCREEN POSITION 53.
PARAMETERS ptyp3 LIKE hrvpv-ptyp3 RADIOBUTTON GROUP xxx. "Objekttyp3
SELECTION-SCREEN COMMENT 56(22) ptxt3 FOR FIELD ptyp3.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS ptyp4 LIKE hrvpv-ptyp4 RADIOBUTTON GROUP xxx. "Objekttyp4
SELECTION-SCREEN COMMENT 4(22) ptxt4 FOR FIELD ptyp4.
SELECTION-SCREEN POSITION 27.
PARAMETERS ptyp5 LIKE hrvpv-ptyp5 RADIOBUTTON GROUP xxx. "Objekttyp5
SELECTION-SCREEN COMMENT 30(22) ptxt5 FOR FIELD ptyp5.
SELECTION-SCREEN POSITION 53.
PARAMETERS ptyp6 LIKE hrvpv-ptyp6 RADIOBUTTON GROUP xxx. "Objekttyp6
SELECTION-SCREEN COMMENT 56(20) ptxt6 FOR FIELD ptyp6.
SELECTION-SCREEN PUSHBUTTON 76(4) morepart USER-COMMAND more.
SELECTION-SCREEN END OF LINE.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(3 ) Struct. %F4_MACO_TAB, End S
rhx-f4-objid-data.
SELECT-OPTIONS pchobjid FOR objec-realo NO INTERVALS. "Teilnehmer
PARAMETERS pchseark LIKE pchdy-seark. "Suchbegriff
PARAMETERS pchostat LIKE pchdy-ostat NO-DISPLAY. "Objektstatus
PARAMETERS pchistat LIKE pchdy-istat NO-DISPLAY. "Datenstatus
Strukturparameter
PARAMETERS pchwegid LIKE pchdy-wegid NO-DISPLAY.
PARAMETERS pchsvect LIKE pchdy-svect NO-DISPLAY.
PARAMETERS pchactiv LIKE pchdy-activ NO-DISPLAY.
PARAMETERS pchdepth LIKE pchdy-depth NO-DISPLAY.
PARAMETERS pchdymod LIKE t77s3-dymod NO-DISPLAY. "Dynp.variation
SELECTION-SCREEN END OF BLOCK b1.
--Block 1------
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1 ) Struct. $PCH_TEXTPOOL_KEY, End S
$$-Start: (1 )----
$$
ENHANCEMENT 1 ZIMP_BOOKING_PARTICIPANT. "active version
*SELECTION-SCREEN BEGIN OF BLOCK bb2.
PARAMETERS tpchdepth LIKE pchdy-depth NO-DISPLAY.
*SELECTION-SCREEN END OF BLOCK bb2.
ENDENHANCEMENT.
$$-End: (1 )----
$$
rhx-obeg-radios-define.
-Block 2 (Aufbereitungsoption)-----
*SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-RB3.
PARAMETER : tc LIKE pp0j-tc_disp NO-DISPLAY.
*SELECTION-SCREEN END OF BLOCK B3. -
Runtime Error In copy Of SAP Standard Program
How do people,
I have copied a SAP standard program H99CWTR0 because I need to add an extra
column output in the report. I have made a few chnages regarding the INCLUDES
When I run the program I am getting the following runtime error:
" The structure of the COMMON PART "DRIVER_DATA_EXCHANGE"
in program "%_T01050" is different from the calling program .....
My question is that it says the error in program "%_T01050" !!
But when I enter this in SE38 it says it doesn't exist !
Any ideas???
AndyThanks mate for replying.
I'll have a look at what you suggest
Andy -
Im trying to convert a PDF into an excel document and I keep getting an error message that reads "An error has occurred while trying to access the service". WHat am I doing wrong?
it seems my subscription had expired so I signed up again.. It was still having trouble so I repeated the sign up process again.. Then it worked perfectly.. Unfortunately, I think I just subscribed twice and need to cancel one of them. Ugh. Such a pain when I'm trying to get this project completed. I'll be canceling at least one of the subscriptions in the morning. Adobe is not my favorite company right now. None of this was intuitive. And trying to get help was an absolute waste of an hour.
Regards,
Nathaniel
[removed by moderator] -
Warning Message Converted into Error Message
Hi,
I have converted warning message into error and I am checking the results of the same...it is giving me the desired result, but the in the dialog box instead of 'E' (error), it is showing 'I' (information) and the instead of Red signal, it is showing Yellow signal, why it is so? And how to correct it?
-Saleel KulkarniHi,
Message No. 06152
Material Master > Purchasing > Enviorment Data > Define Attributes of System Messages , here I added one entry which I found by executing transaction code (Message Maintenance) SE91.
I was searching in forum... Jurgen has replied to same query....he suggesting SAP Note (521174), what you suggest?
-Saleel Kulkarni -
How to convert Warning message Appl.Area V1 mess.No 428 to Error Message
Hi,
Can any one please tell me how to make a warning message to error message in Scheduling Agreement, message no is 428 and application area is V1, this message comes when the user exceeds the target Qty in Schedule line.If a message is a custom message, then by changing the message type from W
(warning) to E(Error) we can convert the message type into error message. This is done with the help of development guy. A change in the code is needed.
If it is a standard message, then it depends on w hether we have teh access to change the message type. If access is there, then it is possible to change the message from Warning to Error. i.e. If we are capturing std SAP message in our code and displaying then we can change it, else if SAP message is displayed directly, we cant change it.
So, to change it, capture the error message from SAP in some Zcode and then convert that message into a custom message of message type E.
The whole change needs ABAP support.
Reward if it helps. -
Customized Error/Info Messages in ADF FACES Pages
hi every one...
I need to display customized eerror/info messages in a ADF Faces application.
How can i use adf:message componenet to do this...Hi,
af:messages show all messages added to the JSF message stack
FacesContext fctx = FacesContext.getCurrenInstance();
fctx.addMessage("Some Name Strinng here", new FacesMessage(FacesMessage.SEVERITY_ERROR, "Your error message here",null));
If <"Some Name Strinng here"> is the id of a component then the error message is also shown below this component
For customizing error messages - e.g. translating Exceptions into useful user information, see SRDemo, which can be downloaded and installed through JDeveloper Help-->Check for Updates.
Frank -
How to convert Warning Message ME495 to Error Message?
Hi,
Can someone please tell how can the Warning (W) Message no. ME495 i.e. "New release strategy determined due to changes in requisition" can be converted to Error (E) Message. This message no. does not appear in SPRO -> MM -> Purchasing -> Environment Data -> Define Attributes of System Messages and also it does not make any difference if it is added here manually as Warning message.
Just FYI - this message "New release strategy determined due to changes in requisition", appears when changes are made in the existing PR having Release Strategy in effect.
Thanks.Hi Mauro,
Thanks for your reply. However, I checked that earlier and I think since this an SAP standard program and therefore, changes could not be made to change it to an Error message. Is not there any setting or way of to convert this Warning message into an Error message?
Regards. -
How to convert alert message to error message?
Please tell me.
Thanks
samirDear Samir
You cannot convert all alert messages to error messges. if you are refering to QM then not at all possible. For all other moduled in config in system modification you can maintain messages and you can also convert alert into error. But here also not all messages can be maintained .
Regards
Gajesh -
I just purchased the new Canon SX60 camera. Despite downloading and installing the latest version of Adobe DNG converter, I receive an error message saying that Photoshop CS4 can't open up/convert raw files (.CR2). This is the same file format as used by the SX50, with which I never had any problem. Does anyone have a suggestion on how to fix this problem? Thanks.
Camera Raw plug-in | Supported cameras I do not see that SX60 as supported. Just how new is the SX60 when was it announces. Its support is not even listed in ACR 8.7 RC
-
Converting Warning Message to Error Message in Benefits Enrollment Screen
Hello SAP,
How to convert Warning Message to Error Message in Benefits Enrollment Annual Enrollment Screen.
Warning Message: No beneficiaries selected for plan XXXX.
As per my requriement, there is one warning message which is popping up when all the plans total donot count to 100 %. At that time we need to show a Error message instead of Warning Message. Now warning message is displayed.
Reason: Insurance plans require error message when beneficiaries donot total to 100%
My question is in which message class or in which Table these messages are maintained and how to modify it.
Thanks,
Sankar Narayanawhich badi you are using?
You cant use all methods to raise a error message
for example
Error_table of the method CHECK_DEPENDENTS of user exit PBEN0032 should
olny be used to raise configuration errors. Please use
CONSISTENCY_ERRORS to display any error message[move the content of
error_table to consistency_errors and clear the error_table inside the
method CHECK_DEPENDENTS].
Maybe you are looking for
-
Premiere Pro 1.5 won't initialize
I am trying to run Premiere Pro 1.5 upgrade (I previously installed Adobe Premiere 5.1). I have a 32-bit, Windows XP system. I opted to activate my product later (for some reason couldn't activate online, yes my copy is legitamite, I have the origina
-
XSd-validation isn't performed when invoking file Adapter
I've configured an ESB where data needs to be transformed using a file adapter and a db adapter. The deleimted files first need to be validated using xsd (native transformation) and if validation was performed correctly they can be transformed and lo
-
Dynamically passing the source table name to OWB mapping
I am building a mapping wherein one of the source tables is a view. The view name varies with the time parameter I pass in. I am looking at ways to pass in the time parameter to the mapping procedure such that it first gets the view name from a table
-
RAC interconnect switch?
Hi, We are in the process of migrating from a 10g single instance database to 2 node RAC (Windows Server 2008 OS, EMC storage with 2 SAN swithes,-) and we have some doubts about interconnect. We are having difficulty in selecting the correct intercon
-
Updates fail to save says "connection reset by peer"
Trying to download software updates. Dowload works fine but the says updates can;t be saved because connection reset by peer. What does this mean and how can I rectifiy it?