cancel
Showing results for 
Search instead for 
Did you mean: 

Enhancement for 0Customer_attr

Former Member
0 Kudos

Hi Experts,

I am new to this field and don't have much knowledge in ABAP. Please help me out with this code.

DATA : l_biw_knvv_s LIKE biw_kna1_s.
DATA : zz1payer LIKE knvp-kunn2,

when '0CUSTOMER_ATTR'.
clear i_counter.
loop at i_t_data into l_biw_kna1_s.

select * from knvp
where kunnr = l_biw_kna1_s-kunnr
and VKORG = l_biw_kna1_s-vkorg
and VTWEG = l_biw_ kna1_s-vtweg
and SPART = l_biw_kna1_s-spart
and parvw = 'RG'

if sy-subrc eq 0.
l_biw_kna1_s-zz1payer = knvp-kunn2.
Else
l_biw_kna1_s-zz1payer = l_biw_kna1_s-kunnr.
Endif

----------------------------------------------------------------------------------------------------------

My questions are:

1. biw_kna1_s is the standard structure of 0customer_attr which does not contain fields vkorg,vtweg and spart. Then how the lookup is done from biw_kna1_s after the select command in this code.

2. What does the line DATA : l_biw_knvv_s LIKE biw_kna1_s means in this code.

Thanks in Advance

Regards

Jai

Accepted Solutions (0)

Answers (0)