Hello all!
I need to create a routine to extract Account group from Vendor Master Data table.
In the transfer rule I have 0VENDOR but not Account Group (vendor), but I want go to Vendor Master Data in the routine in order to extract the Account Group, I only need the Account Group = 0006.
This is the code done until the moment:
DATA: h_ACCNT_GRPV TYPE /BI0/PVENDOR-ACCNT_GRPV.
CLEAR h_ACCNT_GRPV.
SELECT ACCNT_GRPV
INTO h_ACCNT_GRPV
FROM /BI0/PVENDOR
WHERE VENDOR = SOURCE_PACKAGE-VENDOR.
IF SY-SUBRC = 0.
DELETE SOURCE_PACKAGE WHERE h_ACCNT_GRPV <> '0006'.
ENDIF.
But I have this error: E:"SOURCE_PACKAGE" is a table without a header line and therefore has no component called "VENDOR".
Do you know how can I solve it?
Thanks in advance