I am developing a SAP program to obtain information about a reference from the material table (MARA
).
First I take certain references and then using a loop I need to make other query for every iteration:
SELECT
MARA~BISMT
FROM mara
WHERE mara~matnr = @ref
INTO @var.
I know that the problem is that the types conflict (mara~matnr
is characters and ref
is string), how can I convert both to the same type and see the results?