Display error messages for each material
Hi All,
I am using a BAPI which gives errors in return table.I am executing this BAPI for several materials in a LOOP.I need to display the error messages for each of these materials as shown below:
Material 1:
error1
error2
Material 2:
error 1
error 2.
What is the best way to display this?Also plz let me know how to use REUSE_ALV_HIERSEQ_LIST_DISPLAY?
Thanks,
Rakesh.
I did the same thing in the below code, go thru it and check it.
* calling the BAPI to update the Asset Master AS02
loop at it_final into is_final.
* If updating of floor area only
if p_farea = 'X'.
* passing new area value to the BAPI
is_realestate-area = is_final-grufl.
is_realestatex-area = 'X'.
call function 'BAPI_FIXEDASSET_CHANGE'
exporting
companycode = is_final-bukrs
asset = is_final-anln1
subnumber = is_final-anln2
realestate = is_realestate
realestatex = is_realestatex
importing
return = it_return.
* If Asset Master is changed with out any errors
read table it_return with key type = 'E'.
if sy-subrc = 0.
flag = ' '.
else.
flag = 'X'.
* Call the COMMIT BAPI
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.
wait up to 2 seconds.
endif.
* If the Asset Master is changed with out any errors
if flag = 'X'.
read table it_output into is_output with key
bukrs = is_final-bukrs
anln1 = is_final-anln1
anln2 = is_final-anln2
binary search.
if sy-subrc = 0.
* is_output-c_icon = c_green.
is_output-grufl_n = is_final-grufl.
is_output-message = it_return-message.
* Modify the output internal table with the changed new values
modify it_output from is_output
transporting grufl_n message
where bukrs = is_output-bukrs
and anln1 = is_output-anln1
and anln2 = is_output-anln2.
endif.
elseif flag = ' '.
read table it_output into is_output with key
bukrs = is_final-bukrs
anln1 = is_final-anln1
anln2 = is_final-anln2
binary search.
if sy-subrc = 0.
* is_output-c_icon = c_red.
is_output-grufl_n = is_realestate-area.
is_output-message = it_return-message.
* Modify the output internal table with the changed new values
modify it_output from is_output
transporting grufl_n message
where bukrs = is_output-bukrs
and anln1 = is_output-anln1
and anln2 = is_output-anln2.
endif.
endif.
endif.
* If updating of lease commencement date only
if p_ldate = 'X'.
* Passing new lease start date value to the BAPI
is_leasing-start_date = is_final-leabg.
is_leasingx-start_date = 'X'.
* Call the BAPI to change the Asset Master
call function 'BAPI_FIXEDASSET_CHANGE'
exporting
companycode = is_final-bukrs
asset = is_final-anln1
subnumber = is_final-anln2
leasing = is_leasing
leasingx = is_leasingx
importing
return = it_return.
* If Asset Master is changed with out any errors
read table it_return with key type = 'E'.
if sy-subrc = 0.
flag = ' '.
else.
flag = 'X'.
* Call the COMMIT BAPI
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.
wait up to 2 seconds.
endif.
* If the Asset Master is changed with out any errors
if flag = 'X'.
read table it_output into is_output with key
bukrs = is_final-bukrs
anln1 = is_final-anln1
anln2 = is_final-anln2
binary search.
if sy-subrc = 0.
* is_output-c_icon = c_green.
is_output-leabg_n = is_final-leabg.
is_output-message = it_return-message.
* Modify the output internal table with the changed new values
modify it_output from is_output
transporting leabg_n message
where bukrs = is_output-bukrs
and anln1 = is_output-anln1
and anln2 = is_output-anln2.
endif.
elseif flag = ' '.
read table it_output into is_output with key
bukrs = is_final-bukrs
anln1 = is_final-anln1
anln2 = is_final-anln2
binary search.
if sy-subrc = 0.
* is_output-c_icon = c_red.
is_output-leabg_n = is_leasing-start_date.
is_output-message = it_return-message.
* Modify the output internal table with the changed new values
modify it_output from is_output
transporting leabg_n message
where bukrs = is_output-bukrs
and anln1 = is_output-anln1
and anln2 = is_output-anln2.
endif.
endif.
endif.
clear : is_final, is_realestate, is_leasing,
it_return, flag , is_output.
endloop.
* Display the report out with old and new values
PERFORM output_report.
*& Form output_report
* text
* --> p1 text
* <-- p2 text
*FORM output_report.
* DATA : it_fieldcat TYPE slis_t_fieldcat_alv,
* is_layout TYPE slis_layout_alv.
** Sub routine for filling the field catalog
* IF it_fieldcat[] IS INITIAL.
* PERFORM field_fill USING it_fieldcat.
* ENDIF.
** Sub routine to set the layout
* PERFORM set_layout USING is_layout.
** Function module to display the data in ALV format
* CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
* EXPORTING
* i_callback_program = l_repid
* it_fieldcat = it_fieldcat
* is_layout = is_layout
* TABLES
* t_outtab = it_output
* EXCEPTIONS
* program_error = 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.
* ENDIF.
*ENDFORM. " output_report
*& Form field_fill
* text
* -->P_IT_FIELDCAT text
*FORM field_fill USING pt_fieldcat TYPE slis_t_fieldcat_alv.
* DATA : ls_fieldcat TYPE slis_fieldcat_alv,
* pos TYPE i VALUE 1.
* ls_fieldcat-col_pos = pos.
* ls_fieldcat-fieldname = 'C_ICON'.
* ls_fieldcat-seltext_m = 'Change Status'.
* ls_fieldcat-tabname = 'IT_OUTPUT'.
* APPEND ls_fieldcat TO pt_fieldcat.
* CLEAR ls_fieldcat.
* pos = pos + 1.
* ls_fieldcat-col_pos = pos.
* ls_fieldcat-fieldname = 'BUKRS'.
* ls_fieldcat-ref_fieldname = 'BUKRS'.
* ls_fieldcat-ref_tabname = 'ANLA'.
* APPEND ls_fieldcat TO pt_fieldcat.
* CLEAR ls_fieldcat.
* pos = pos + 1.
* ls_fieldcat-col_pos = pos.
* ls_fieldcat-fieldname = 'ANLN1'.
* ls_fieldcat-ref_fieldname = 'ANLN1'.
* ls_fieldcat-ref_tabname = 'ANLA'.
* APPEND ls_fieldcat TO pt_fieldcat.
* CLEAR ls_fieldcat.
* pos = pos + 1.
* ls_fieldcat-col_pos = pos.
* ls_fieldcat-fieldname = 'ANLN2'.
* ls_fieldcat-ref_fieldname = 'ANLN2'.
* ls_fieldcat-ref_tabname = 'ANLA'.
* APPEND ls_fieldcat TO pt_fieldcat.
* CLEAR ls_fieldcat.
* pos = pos + 1.
* IF p_farea = 'X'.
* ls_fieldcat-col_pos = pos.
* ls_fieldcat-fieldname = 'GRUFL'.
* ls_fieldcat-ref_fieldname = 'GRUFL'.
* ls_fieldcat-ref_tabname = 'ANLA'.
* APPEND ls_fieldcat TO pt_fieldcat.
* CLEAR ls_fieldcat.
* pos = pos + 1.
* ls_fieldcat-col_pos = pos.
* ls_fieldcat-fieldname = 'GRUFL_N'.
* ls_fieldcat-seltext_l = 'New Floor Area'.
* ls_fieldcat-tabname = 'IT_OUTPUT'.
* APPEND ls_fieldcat TO pt_fieldcat.
* CLEAR ls_fieldcat.
* pos = pos + 1.
* ENDIF.
* IF p_ldate = 'X'.
* ls_fieldcat-col_pos = pos.
* ls_fieldcat-fieldname = 'LEABG'.
* ls_fieldcat-ref_fieldname = 'LEABG'.
* ls_fieldcat-ref_tabname = 'ANLA'.
* APPEND ls_fieldcat TO pt_fieldcat.
* CLEAR ls_fieldcat.
* pos = pos + 1.
* ls_fieldcat-col_pos = pos.
* ls_fieldcat-fieldname = 'LEABG_N'.
* ls_fieldcat-seltext_l = 'New Lease St.Date'.
* ls_fieldcat-tabname = 'IT_OUTPUT'.
* APPEND ls_fieldcat TO pt_fieldcat.
* CLEAR ls_fieldcat.
* pos = pos + 1.
* ENDIF.
* ls_fieldcat-col_pos = pos.
* ls_fieldcat-fieldname = 'MESSAGE'.
* ls_fieldcat-seltext_l = 'Status Message'.
* ls_fieldcat-tabname = 'IT_OUTPUT'.
* APPEND ls_fieldcat TO pt_fieldcat.
* CLEAR ls_fieldcat.
* pos = pos + 1.
*ENDFORM. " field_fill
Regards
Gopi
Similar Messages
-
Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at http:// (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.
Is this a webpage that contains a link to a flv file? Please post a link to the page and tell us which link(s) are the problem flv files or else post a link to the .flv file itself.
Alternately, click on one of the sample FLV File links on this page and tell us exactly what happens:
http://www.mediacollege.com/adobe/flash/video/tutorial/example-flv.html
It might also help if you post the exact error message, including the path to the flv file.
'''Note:'''
Depending on how you have Firefox set up, clicking on a FLV File link will either save the FLV file to your computer or Firefox may open it automatically in an external application right after downloading (Firefox may ask you first). Firefox itself can't play FLV files so you need a "helper" application (or a plugin for flv files, if ther is one. You can see if Firefox is already set up to download or open FLV files by going to Firefox Preferences and looking in the Applications list. Find the FLV file type in the list and, if the action is "Open with", it should show the application that can play FLV files (e.g., VLC Media Player or Perian). See [[Managing filetypes]] for more information. -
How to extract error message for each output type.
Hi All,
Need your advice on the problem that I have.
Expected Solution:
1. Create an extra column for displaying header output error message from VF02 into a report program.
Steps that i have did:
1. Go to transaction VF02.
2. Enter a billing document number.
3. Hit enter. Click "Goto" > Header> Output
4. Click on the status that is red colour. Click on "processing log".
5. Press "F1" on the red colour message type. (Found out that it is a structure).
Need your advice on the question that I have:
1) How do we know that which "not successfully" process output type belong to which error message class?Hi Brad Bohn,
Thanks for your advice. I am so sorry about that. Thanks so much for your advice. And i have follow your advices and steps given by you. Appreciate it very much.
But for this issue about how to extract message for each output type. I have follow your steps by using SE30 to trace VF03 and I managed to found out that they are using this function module "WFMC_PROTOCOL_SHOW". Need your advice on this, how do we know each different output type with different error message is pulled from?
From my further research and in depth debugging into this function module, i manage to find this global internal table "PROTO_TAB" which stores all the text messages for each output. How does this internal table is populated?
Thanks in advance.
Regards
Shawn -
Printer stopped working. Different error messages for each application.
Hello. Recently I have been unable to print anything from any application and get different error messages from each application. For example:
Word says "Word cannot print due to a problem with the current printer. Make sure you have a printer selected in Print Canter. You may need to print again or adjust your printer settings."
Entourage says "An error occurred while printing. Not enough memory."
Excel says "Microsoft Excel could not communicate with the printer."
Preview says "Print. Error while printing."
I have tried installing new drivers, repairing the disk and permissions, and deleting and adding the printer from the System Preferences.
I am running OS X 14.4.10 on an iMac G4 1.25 GHz PowerPC with 256 MB DDR SDRAM.
Any ideas? Thanks.Try downloading the 10.4.10 Combination Updater from Apple and re-update.
If that doesn't help try the free trial of Printer Setup Repair from www.fixamac.net.
If those don't help, reinstall OS X using the Archive & Install option in the installer. -
DISPLAYING ERROR MESSAGE FOR TABLE
How can I dispaly error message for table havong input fields from message pools,so that when I clicks on that message,that should point to that particular field having error
Thanks
FahadHi Fahad,
From Message pool retrive data using text accessor
IWDTextAccessor textYesAccessor = wdComponentAPI.getTextAccessor();
String tempYes = textYesAccessor.getText(IMessageSample.<YES>);
You can report error message like.
if(tempYes !=null)
reportException(String message, boolean cancelNavigation);
See this link for Webdynpro API..
https://media.sdn.sap.com/javadocs/NW04/SPS15/wd/index.html
Regards
Suresh -
How to get rid of error message for the material?
Hi everybody,there is a material which is showing an error message whenevr try to create a sales order, i've checked the material master...there is no check in X-plant Mtrl or X-dist chan or any flag for deletion...but still the red error message comes up while creating a sales order...how to get rid of this error?
this means material is blocked for procurment
three kinds of block can be there
01 Blocked for procment/whse
02 Blocked for task list/BOM
03 Blocked for Purchasing
GOTO MM42 give material n plant data
Select BESIC VIEW
there is a field called as material block remove the blocking reason
Hope this will help
Edited by: WISH on Mar 24, 2008 6:33 AM -
Display Error message for items in ME21N
Hi everybody,
i made some controls for items order using the User-Exit EXIT_SAPMM06E_006.
If the control don't pass, i display an error message using MESSAGE instruction.
The probleme is when i'm doing it, the Error message is display in the task bar, as a general message and not just for the item controlled (statut field).
So how can i do to display my message with the message list for the item ?
Thanks in advance.Hi,
You have to use function module ME_LOG_SAVE for including your messages in the application log.
Please check the below similar code. You may have to use OOPs concepts to add messages to the application log.
FORM mepo_save_aplg_messages.
DATA: l_log_handles TYPE bal_t_logh.
FIELD-SYMBOLS: <l_hdl> LIKE LINE OF l_log_handles.
CHECK fc_vorga EQ cva_en.
CHECK NOT gf_id IS INITIAL.
CHECK ekko-memory NE space OR
*ekko-memory NE space.
IF NOT gf_log_handle_read[] IS INITIAL.
INSERT LINES OF gf_log_handle_read[] INTO TABLE l_log_handles.
prepare old logs for deletion
LOOP AT gf_log_handle_read ASSIGNING <l_hdl>.
CALL FUNCTION 'ME_LOG_DELETE'
EXPORTING
im_log_handle = <l_hdl>
EXCEPTIONS
error_message = 1
OTHERS = 2.
ENDLOOP.
ENDIF.
IF NOT gf_log_handle_save IS INITIAL.
INSERT gf_log_handle_save INTO TABLE l_log_handles.
ENDIF.
CHECK NOT l_log_handles[] IS INITIAL.
save deleted and new logs
CALL FUNCTION 'ME_LOG_SAVE'
EXPORTING
im_log_handles = l_log_handles
im_update_task = 'X'
EXCEPTIONS
OTHERS = 1.
ENDFORM.
Thanks,
ramakrishna -
How to display error messages for Standard validators
I am designing a simple login application.I have two input text-fields,say,email and password.
In my JSF page i have following,
<h:inputText id="email" value="#{User.email}" >
<f:validateLength minimum="1" maximum="6"/>
</h:inputText>
<P><BR>
<B>Password: </B>
<h:inputSecret id="password" value="#{User.password}" required="true">
<f:validateLength minimum="1" maximum="5"/>
</h:inputSecret></P>
Now if the user does not enter anything in one or both of the text boxes i.e if null value is transfered to the server,
I want the JSF to display some error message to the user that he has not filled up all the fields correctly.
Even i tried with something like,
<B><h:message for="email"/></B>
but still it does not work.
I am using JSF1.0 Final.
Well this problem was dam simple with JSF1.0 beta beacause of the existence of <h:output_errors>.
Is there any such facility with JSF1.0 final?Your h:inputText does not contain required="true". I guess, it should. Otherwize, validateLength will not work.
-
In Ztable creation, How can we display error message for a 'To date' field.
Hi all,
I have a requirement like this.
There r two fields in ztable. From date and To date.
The field 'To date' in table ZKM007 is taking before date than From date field.
To date should always be greater than from date i need to throw an error or don't allow to enter date if date is less than From date.
How can we do this?
Can any one help on this?
Rewards to all.
Thanks & Regards,
Anu.I have written below code at event "Creating a new entry" (05) in table maintainance generator.But it is not working. If we give the to date < From date ,
it is saving.
Can any one help on this code? Pls Give me code And which event i have to put this?
***INCLUDE LZEXE3F01 .
FORM AT_entry.
IF ZEXE3-TODATE LT ZEXE3-FROMDATE.
MESSAGE I001(0) WITH 'ENTER TO DATE GREATER THAN FROM DATE'.
ENDIF.
ENDFORM.
Rewards to all.
thanks
Anu. -
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[]. -
Dear Experts,
I have a requirement for making material description as non mandetory in change request view of mdg material screen.
I have done that using field usage in get data method of feeder classes, but still message is displaying.
This message 'Material description is mandatory is displaying with check action only, but not with save or submit after i anhance field property as not mandetory.
How to prevent error message for material description in MDG material detail screen, when user click on check action.
Thanks
SukumarHello Sukumar
In IMG activity "Configure Properties of Change Request Step", you can completely deactivate the reuse area checks (but will then loose all other checks of the backend business logic as well).
You can also set the error severity of the checks from Error to Warning (per CR type, not per check).
Or you provide a default value for the material description, e.g. by implementing the BAdI USMD_RULE_SERVICE.
Regards, Ingo Bruß -
How can I display different error bars for each point on a scatter graph?
I have a scatter chart in Numbers and I need to add error bars to the points along both the x and y axes, however, the size of the error bars for each point need to be of different sizes. Is there a way to accomplish this or is there some kind of work around to acheieve a similar result? So far the only way I can find to add error bars only allows a standard amount for each point.
I found the answer here https://discussions.apple.com/message/16440653#16441393
-
I have been using CS6 for two years without incident. Suddenly the Media Encoder stops working, showing APPCRASH and displaying error message about WatchFolder.dll - I tried uninstalling and re-installing to no avail - can anyone help?
Hi Mylenium,
Thanks for your response.
Here is the error information showing up:
Problem signature:
Problem Event Name: APPCRASH
Application Name: Adobe Media Encoder.exe
Application Version: 6.0.0.382
Application Timestamp: 4f62fcf1
Fault Module Name: WatchFolder.dll
Fault Module Version: 6.0.0.382
Fault Module Timestamp: 4f62f37f
Exception Code: c0000005
Exception Offset: 0000000000007899
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 4105
Additional Information 1: 9a62
Additional Information 2: 9a620826d8ae4a2fa8b984b39290a503
Additional Information 3: 1fb3
Additional Information 4: 1fb304eee594288faeefbf1271b70d37
I am using a PC Windows 7 -
Display error message in user-exits for ME21n
Hi,
I want to give error message in exit EXIT_SAPMM06E_013
but it is getting displayed as information and gets roll back .
Can anyone help to display error message and stop there itself so that to give corret data and save.
the code in this exit is as below.
IF I_EKKO-BUKRS = '0800'.
CLEAR:V_FLAG.
READ TABLE TEKPA WITH KEY PARVW = 'ZN'.
IF SY-SUBRC NE 0.
MESSAGE E000(ZD)."'XXX' TYPE 'E'.
ENDIF.
ENDIF.
Thanks,
Sureshcheck this
EXIT_SAPMM06E_012 to display error message
especially look at the last post , adding the log. -
How to display error message with some variable
Hi
I want to display errror message along with material number which is thr in d LOOP .
Basically i want some variable to display along with error message .
Can anybody suggest me how can i go about it?
Edited by: sonal musale on Apr 14, 2009 12:06 PMHi,
In the message class, suppose you use 001 for invalid material message.
So keep it like:-
Invalid Material : &1
in the message class for 001.
Now in loop use as:-
loop at itab into wa.
"perform validations
"if validation fails for current material
MESSAGE e001 WITH wa-matnr.
endloop.
Similary you can use more variables:-
Invalid Material : &1 &2 &3
MESSAGE e001 WITH <variable1> <variable2> <variable3>.
Hope this helps you.
Regards,
Tarun
Maybe you are looking for
-
Want to access RFC in new server instead of old server
we got a request to move RFC function module from P12 to other system, now the RFC is moved and need to understand what should be done to access new system RFC instead of old RFC. Thanks & Regards Ramkumar Amgoth
-
Where are the templates located in CS5.5 for Mac OS Lion?
I'm trying to start a new InDesign project from a template and I can't find the way...
-
Spotify Charing me Full Price - Where did my student discount go?
I'd been having the student discount price since last year and suddenly, with no warning (which I think is poor business practice but whatever) it's reverted to full price. I went to the student discount page to see if I need to sign up for it again
-
Dear experts We are using Handling Unit management for our raw material store. All raw materials are active for Inspection via UD. The usual GR process is > Create Inbound Delivery > Complete Packing in Delivery > Post GR > Putaway. The inspection lo
-
HT201210 .I have tried support options they are not working.
I updated my i pod touch to latest ios..Now it wont install,Its stuck in restore mode.I keep getting error code 1604 have tried apple support options to fix nothing seems to work.Please Help!