09-18-2008 12:28 PM
Hi All,
I am working on ECC 6.0.
I want to know where can we write any code or any field validations while working with LSMW. At which step we can write our own code.
Will LSMW will generate any ABAP code when we are work with LSMW?? where can i find this code?
09-18-2008 12:32 PM
i
in FIELD MAPPING step we can write code to do validations..etc.
after mapping any particular field you can check the data content there and do validations.
LSMW will generate ABAP code based on the steps we perform. you can check the program in lSMW transaction.
go to LSMW --> enter project details --> press F8 --> click on USER MENU --> select radio button "Display Conversion Program"
now by clicking that radio button in LSMW you can view the generation program.
for more details you can check the below site also:
http://saptechnical.com/Tutorials/LSMW/Validations/page1.htm
09-18-2008 12:49 PM
Hi
saptechnical.com
U go this site and study lsmw..Its Very useful for u..
regards:
Prabu
09-18-2008 4:55 PM
in field mapping and conversion rules u can write any code for individual field or else there is some thing like this
begin_processing
begin_transaction
begin_record.
end_processing.
end_transaction.
end_record.
in this u can write the validation logic for whole fields.
After giving project, subproject, object -->press F8 .
in this there is a icon like variant press that one u come across pop up screen in that u have generate conversion program and display conversion program select the checbox and press enter, after that go for generate conversion program and F8 and
display conversion program F8 (it will show the ABAP code for ur LSMW.
09-18-2008 7:15 PM
Hi,
Its pretty straight forward go to field mapping and conversion rules you will find your source and target fileds. Write a code with Source field and finally assign it back to Target thts it .