SAP-Forum.ORG
   
This web site isn't affiliated with, sponsored by, or approved by SAP AG. Is only a SAP users community.

Go Back   SAP-Forum.ORG > SAP Forums > SAP ABAP

Similar Threads
Thread Thread Starter Forum Replies Last Post
Caller 09 contains an error message Mirna SAP BW/BI 2 08-22-2011 07:55 PM
Excel Macro - GuiXT error message Rampa SAPScript - Smartforms 1 08-17-2011 09:18 PM
HU items' material posting is inconsistent - Error Message HUGENERAL327 Micro SAP SD - Sales & Distribution 1 04-19-2011 09:43 PM
Error Message KI339 ERP SAP FI CO - Financials and Controlling 1 01-26-2011 09:10 PM
Please give me few URL/websites where i can find SAP HR job openings. sapen SAP Job Offered 0 07-27-2010 05:49 PM

Aprenda SAP!
Reply
 
Thread Tools Display Modes
  #1  
Old 01-19-2012, 08:36 PM
Zumba Zumba is offline
Senior Member
 
Join Date: May 2010
Location: Colorado
Posts: 240
Default Error message and it shd give a popup

Hello experts,

I have to check for venum if the venum is present then it shd come out of the program:

Code:
FORM validate_venum .

DATA : lv_venum TYPE vekp-venum.

SELECT handling_unit
UP TO 1 ROWS
INTO lv_venum
FROM zws_data
WHERE handling_unit EQ nast-objky.
ENDSELECT.
IF sy-subrc NE 0.
* MESSAGE e006 WITH lv_venum.
* WRITE:/ sy-msgty, sy-msgno NO-GAP, ':', l_msg.
Write :/ lv_venum, ' already present '.
ENDIF.

ENDFORM.
Please help me.

Thanks,
Zumba
Reply With Quote
Sponsors
  #2  
Old 01-19-2012, 08:40 PM
Portal Portal is offline
Senior Member
 
Join Date: May 2010
Location: Miami
Posts: 791
Default Re: Error message and it shd give a popup

Hi Zumba,

Code:
FORM validate_venum .
 
DATA : lv_venum TYPE vekp-venum.
 
SELECT handling_unit
UP TO 1 ROWS
INTO lv_venum
FROM zws_data
WHERE handling_unit EQ nast-objky.
ENDSELECT.
IF sy-subrc NE 0.
MESSAGE e006 WITH lv_venum display like 'I'. "<<< Check this
ENDIF.
 
ENDFORM.
Regards,
Portal
Reply With Quote
  #3  
Old 01-19-2012, 08:44 PM
Zumba Zumba is offline
Senior Member
 
Join Date: May 2010
Location: Colorado
Posts: 240
Default Re: Error message and it shd give a popup

Thanks Portal, but I am still getting an error.

A message ID has not been entered. You can specify this entry for the
whole program using the "MESSAGE-ID msgid" addition with the statment
that . or in number. - or in parentheses after the error number. -

How can I solve this?

Thanks again,
Zumba
Reply With Quote
Entre a los Links relacionados
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 09:08 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum Design By inferno