Hi All,
Currently I am facing the problem in Production. Somebody has written the below ABAP code in Field routine.
While loading transaction data, they was a lookup in the field routine to get data from Master data.
Select /BIC/YOTLT_TYP INTO RESULT
FROM /BIC/PZCUSTSLS
WHERE /BIC/ZCUSTSLS = SOURCE_FIELDS-KUNAG
and distr_chan =
SOURCE_FIELDS-VTWEG
and division = SOURCE_FIELDS-SPART and salesorg =
SOURCE_FIELDS-VKORG.
ENDSELECT.
But data is not picking properly with the above ABAP Code. Even though the data in the field KUNAG and Info object ZCUSTSLS is same, it is not picking the correct data.
Can you please help why the info object /BIC/YOTLT_TYP is not getting correct data?
Please suggest.
Thanks.