Application Development 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: 

Code in LSMW

former_member1326872
Participant
0 Kudos

Hi,

In one of the existing LSMW object, in the step -"Field Mapping and conversion rule", they have written some code for one field's mapping and conversion. The code is calling a subroutine and has few parameter values. Where should I look for this code to look into the subroutine and parameter?

Thanks!

Uma

3 REPLIES 3

Former Member
0 Kudos

0 Kudos

For the field 'kunnr', I see the below code (part of the code..)

Source: CUST_KNA1-KUNNR (CUSTOMER MASTER)

Code: clear: l_error_flag .

data: l_kunnr like kna1-kunnr.

if not cust_kna1-kunnr is initial.

  • E1KNA1M-KUNNR = CUST_KNA1-KUNNR.

e1kna1m-kunnr = '/' .

else.

l_error_flag = 'X'.

recordid = 'Customer Number is blank'.

perform process_error using c_interface

recordid

c_data_erro

'/GMEU/ZE'

'Customer N

cust_kna1-

space

space.

endif.

Please let me know, where should I go look for the code to look inside the sub-routine "process_error"?

Thanks..

0 Kudos

Uma,

double click on the process_error control should lead to the corresponding routine......