plz suggest me code for the below given description.
1. Select the document condition (VBRK-KNUMV)
2. Select all records from KONV where document condition in billing document (VBRK-KNUMV) is equal to document condition (KONV-KNUMV) AND where billing document line (VBRP-POSNR) is equal to document condition line (KONV-KPOSN) AND where the condition type (KONV-KSCHA) is equal to ZPR0.
3. If the access (KONV-KOLNR) is equal to 40, then map the attribute 6 value (KNA1-KATR6) for the Sold-to (KNA1-KUNNR) that is equal to the Sold-to on the billing document (VBRK-KUNAG).
4. Else, map blank value to field.