on 11-05-2016 9:31 AM - last edited on 02-03-2024 5:10 PM by postmig_api_4
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
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.