********Internal to CitiXsys Support Team.***********
Environment :
iVend 6.6 7989 with SAPB1
Problem statement :
When user opened the warehouse in SAPb1, it didn't display the Retail Tenders and unable to map it
Symptoms :
Retail Tenders were created in iVend but it got synced with SAPB1 but it didn't display the default tenders and iVend Tenders
Workaround :
Step 1 : Execute the query on SAP database
CREATE SEQUENCE seq START WITH 1;
Step 2 : Replace the T4 with actual whscode in beloew query and execute
DO BEGIN
DECLARE RecordCount int;
DECLARE WhsCode nvarchar(100);
WhsCode:= 'T4';
SELECT COUNT(1) into RecordCount From "@CXS_RETEND" Where "U_CXS_WHCD" = :WhsCode;
IF(:RecordCount <= 0) THEN
DECLARE NewCode int;
Select IFNULL(MAX(TO_INT("Code")),0) into NewCode From "@CXS_RETEND";
insert into "@CXS_RETEND"("Code", "Name", "U_CTX_SORT", "U_CXS_RETD", "U_CXS_MPTN", "U_CXS_MPTC", "U_CXS_WHCD","U_CXS_GLAC","U_CXS_GLFC","U_CXS_CUCD")
select seq.NEXTVAL + NewCode, seq.NEXTVAL + NewCode, seq.NEXTVAL + NewCode, "U_CXS_RETD", "U_CXS_MPTN", "U_CXS_MPTC",
:WhsCode, "U_CXS_GLAC","U_CXS_GLFC","U_CXS_CUCD"
from "@CXS_RETEND"
where IFNULL("U_CXS_WHCD",'') = '' and "U_CXS_TETP" <> '3';
END IF;
END;

Note : Suggested to map the retail tenders in SAPB1 When it gets integrated with SAPB1.