|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Validations in LSMW
By Rajinikanth Gangishetty, Yash Technologies
Validation in LSMW. Here we are taking a simple example to change the customer
telephone number. Do the validation
in LSMW to check whether the provided customer is valid or not. We will handle
the Validations in 5th step (Maintain field mapping and conversion rules) of
LSMW. If the customer is invalid collect the record to the error internal table
and skip the further processing of the record. Download all the error customers
into an excel file once the conversion of the all the customers is done. This
example mainly will help you to write the custom code in LSMW.
Create the Project, Subproject and Object in the
Maintain Object Attributes
Do the recording to change the customer telephone number.
Maintain Source Structures
the source structure - CUST_DETAILS
Maintain Source Fields
Maintain the source fields as per the input file.
Here we are taking only Customer and Telephone number as our flat file contains
only those two fields shown blow.
Maintain Structure Relations
Maintain Field Mapping and Conversion Rules
will do the validation in this step. Execute
this step. Go to the change mode.
on the button
(layout) and select all the check boxes.
click on Global Data (this block is like Global data in normal ABAP programs),
will get an ABAP editor. Declare
the required fields and Internal tables here as shown below.
click on BEGIN_OF_TRANSACTION block (this block will trigger for every new
transaction), and write the validation code as shown below.
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards