Skip to Content
avatar image
Former Member

Enhancement for 0Customer_attr

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,

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.
l_biw_kna1_s-zz1payer = l_biw_kna1_s-kunnr.


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



Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

0 Answers