in report gui we are giving customer number if it is wrong
entry then how to write the code to restrict wrong entry?

Answer Posted / raju

Hi Busha,

i want to check the field kunnr from kna1, then

parameter : pa_kunnr type kunnr. (This is input field)

select single kunnr into pa_kunnr
from kna1
where kunnr eq pa_kunr.

if sy-subrc ne o.
message i000(zexp). ( zexp is message class,
i message type
000 message number)
endif.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you find if a logical database exists for your program requirements?

640


Can I execute user exits? If yes, how?

590


What is the basic difference internal tables and database tables? : abap data dictionary

564


What are the two methods for modifying sap standard tables?

730


What are the events in ABAP language?

607






How are BAPI different from normal function modules?

1720


Explain different types of attributes of function module?

544


Difference between stand alone CRM and back-end CRM

3818


What is the table & field to identify the no of items (bottles) stored in one case?

1978


Explain difference between primary key and unique key?

516


out bound process code for quotation?

1562


What is the structure of bdcmsgcoll? : abap bdc

780


What is pakey structure, pshd1 structure and what type of fields it contains? : abap hr

750


What are th control break events in abap?

602


what is field string ? & where we are using field strings?

1572