02-26-2007 1:42 PM
02-27-2007 5:03 AM
Prashanth,
Am not sure this would be th forums for this question , redirecting you to the ABAP forums so that you can get more relevant answers...
Arun
02-27-2007 5:14 AM
Yes you can validate the input data. This can be done in the "Maintain Field Mapping and Conversion Rules" step of LSMW.
~Kiran
02-27-2007 5:16 AM
02-27-2007 5:18 AM
hi,
check out step 6..
In this step you can process the reusable rules of a project:
Fixed value: Here you can specify length, type, flag for lowercase/uppercase and value in addition to the description.
Translation: Here you can enter information on the source field and the target field:
If you are creating a new translation you have to save data before you can change to Control information.
Control information: Here you can define the translation type. You can specify which of the two translation tables will be searched for a value first and which alternative will be selected, if no suitable entry is found:
1:1 translation values: Here you specify the value table to be used during translation. You may also upload the values from a PC file (text separated by tabs). In addition, F4 help is available in column "New value".
important
During translation, only values for which the OK flag was set are included.
Interval translation values: Here you specify the value table to be used during translation by intervals. You may also upload the values from a PC file (text separated by tabs). In addition, F4 help is available in column "New value".
important
During translation, only values for which the OK flag was set are included.
http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
regards,
pankaj singh
<b>**** reward if helpful</b>
02-27-2007 5:25 AM
hi,,
Yes we can do validation in LSMW
You can validate the input fields in the step - "Maintain Field Mapping and Conversion Rules". Here you can write normal ABAP code like.. select queries, If .. endifs..in a script like editor.
Here are the links that might help:
http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
http://www.erpgenie.com/saptech/lsmw.htm
check these threads..
In 5 th step i.e "Maintain Field Mapping and Conversion Rules" , do the validations for the data which u r going to upload thru flat file..
Click Tab "Rule" . in that use ABAP code , and do the validations...
Award if useful
Sri
02-27-2007 5:25 AM
hi prashanth,
go to field mapping and conversion rules :
there you will have "__BEGIN_OF_RECORD_"
there double click on this , you will come up with an editor.
here write your validation code.....
You can fallow the procedure for all the fields
~~Guduri