Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

LSMW

Former Member
0 Likes
488

hi,

customer wants india as same as india not as IN in our lsmw one option is there in field mapping what is that?but in sap r/3 it permits only IN?how it is possible?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
465

Hi

Define the field in the Source Structure as CHAR10 or so that the value 'INDIA' comes in the file

then in the Maintain Field Mapping and Conversion Rules option for that option

click on Rule ->Abap Code

In the Screen which appears

write the code

IF source_structure-fieldname = 'INDIA'.

SAP-structure-fieldname = 'IN'

ENDIF.

Hope this helps

hi,

customer wants india as same as india not as IN in our lsmw one option is there in field mapping what is that?but in sap r/3 it permits only IN?how it is possible?

3 REPLIES 3
Read only

Former Member
0 Likes
466

Hi

Define the field in the Source Structure as CHAR10 or so that the value 'INDIA' comes in the file

then in the Maintain Field Mapping and Conversion Rules option for that option

click on Rule ->Abap Code

In the Screen which appears

write the code

IF source_structure-fieldname = 'INDIA'.

SAP-structure-fieldname = 'IN'

ENDIF.

Hope this helps

Read only

Former Member
0 Likes
465

here u need to change the original transaction if u want to get like client requirement becoz in db it saves as in only if u want to make it to change it as india u have to go for enhancement for this u require one screen exit or u need to have one exit with which u can convert in into india and store it in customized fields

Read only

Former Member
0 Likes
465

define the field structure as Char 10 and pass INDIA...while updating write code as if 'INDIA' then put as IN