How can I read VAKCR table data (Sales Index: Orders in Credit Management) which does not exist on S/4HANA using SQLScript?
I have to convert an ABAP code block where data is queried from VAKCR table. Since this table is removed on S4, I cannot read it directly from VAKCR index table.
When I check SAP Note 2217124 as @Gert pointed, I see a ABAP report named VAKCR_REBUILD and note that there is a view named v_vmvah which can be used instead of vakcr table
Or following code could be used
SELECT * FROM vbak
WHERE vbeln IN s_vbeln AND
"vbobj EQ 'A' AND
gbstk IN ('A', 'B') AND
cmgst IN ('B', 'D').