The condition exclusion with the exclusion indicator in the condition record during condition determination does not function if the condition record which contains the exclusion indicator is not determined for special pricing types again, however, the condition types to be excluded are determined again.
Cause and prerequisitesThis is not provided in the standard system .
SolutionThe exclusion does not take place during condition determination but at the time of the evaluation with condition base formulas 914 (see below) and 15. To solve the problem assign base formula 914 to the condition type which causes the exclusion and base formula 15 to the condition types to be excluded.
form frm_kond_basis_914.
if not xkomv-knumh is initial.
xkonp_key-knumh = xkomv-knumh.
xkonp_key-zaehk = xkomv-zaehk_ind.
read table xkonp with key xkonp_key binary search.
if sy-subrc ne 0.
* KONP lesen
select * from konp where knumh = xkomv-knumh
and loevm_ko = space.
xkonp_key-knumh = konp-knumh.
xkonp_key-zaehk = konp-zaehk_ind.
xkonp-key = xkonp_key.
xkonp-konp = konp.
* in interne tabelle xkonp aufnehmen
read table xkonp with key xkonp_key binary search.
if sy-subrc ne 0.
insert xkonp index sy-tabix.
endif.
endselect.
read table xkonp with key xkomv-knumh binary search.
endif.
konp = xkonp-konp.
if konp-kznep = 'X'.
komp-kznep = '$'.
endif.
endif.
endform.
No comments:
Post a Comment