Skip to main content
Question

How to get Supplier related fields

  • August 27, 2025
  • 3 replies
  • 91 views

Forum|alt.badge.img+1
  • Do Gooder (Customer)
  • 3 replies

I need to get a list of suppliers and their related fields, for example: Payterm

I can get a list of suppliers using SuppliersHandling (plural):

SuppliersHandling.svc/SupplierInfoGeneralSet

But that will give me a list with just a set of basic fields not including Payterm

I can get the related Payterm by going into each supplier individually with SupplierHandling.svc (singular) and expanding on PayTermIdRef 

SupplierHandling.svc/SupplierInfoGeneralSet(SupplierId='11252')/SupplierInvoiceCompanies?$expand=PayTermIdRef($select=Description,Objgrants,luname,keyref)

But I can’t do that individually for each supplier

Is there a way to get a list of suppliers including the related Payterm field?
 

3 replies

Forum|alt.badge.img+1
  • Do Gooder (Customer)
  • 3 replies
  • August 28, 2025

Hi

The user sees the information in this view 

 Hopefully this will help you can find the data you need 

Ruth 


Forum|alt.badge.img+13
  • Hero (Partner)
  • 161 replies
  • August 28, 2025

Hi ​@ralryoung,

You can create a read-only custom field in the “SupplierInfoGeneral” entity to retrieve the value of ‘PayTermIdRef’ (and thus see its value appear in the projection + EntitySet “SuppliersHandling.svc/SupplierInfoGeneralSet”).

Alternatively, you can also create a query using Query Designer.
The tool allows you to perform queries by applying a where clause, join, etc. Once the query is published, a projection is generated automatically. You can then use the query with the generated API. 

Another solution: you can use the REST API used in the “Suppliers - Purchase Specific Information” screen.

Best Regards

 


Michael Kaiser
Sidekick (Customer)
Forum|alt.badge.img+9
  • Sidekick (Customer)
  • 117 replies
  • September 10, 2025

Just to give you an idea what is possible:

------------------------------------------------------------------------------------------------------------------------
-- Dim_Supplier.sql
-- used objects:
/*
1 SUPPLIER_INFO_TAB                    as SI
2 SUPPLIER_INFO_ADDRESS_TAB            as S
3 SUPPLIER_ADDRESS_TAB                as SADR -- DeliveryTerms, ShipVia
4 IDENTITY_INVOICE_INFO_TAB            as IINV    -- SupplierGrp
5 PAYMENT_TERM_TAB                    as PAY 
6 INVOICE_PARTY_TYPE_GROUP_TAB        as IPTG


3 CUSTOMER_INFO_ADDRESS_TYPE_TAB    as CIAT
4 CUST_ORD_CUSTOMER_ADDRESS_TAB        as COCAT
5 MPCCOM_SHIP_VIA_TAB                as MSVT
6 sql_hlp_TransportMode                as TM        -> 9 Union Selects

9 COMPANY_TAB                        as CT
0 CUST_ORD_CUSTOMER_ENT_CFV            as COCT
1 PERSON_INFO_TAB                    as PIT

3 ISO_COUNTRY_TAB                    as ICT
4 ORDER_DELIVERY_TERM_TAB            as ODT
5 SALES_REGION_TAB                    as SR
6 SALES_MARKET_TAB                    as SM
7 ISO_CURRENCY_TAB                    as ICuT
8 CUST_HIERARCHY_STRUCT_TAB            as HIE
9 CUSTOMER_CREDIT_INFO_TAB            as CIT
0 COMM_METHOD                        as Tel
1 COMM_METHOD                        as Fax
2 sql_ifs_customer_agreement_assortment_deal as AAD -> CUSTOMER_AGREEMENT + AGREEMENT_ASSORTMENT_DEAL Gruppen.
3 CUSTOMER_INFO_CONTACT                as CICSec
4 PERSON_INFO_TAB                    as PITSec
5 CUSTOMER_INFO_CONTACT                as CICArea
6 PERSON_INFO_TAB                    as PITArea
7 CRM_CUST_INFO_CFV                    as CRM
8 CUSTOMER_GROUP_TAB                as CG
9 SUPPLIER_TAG                        as S
*/

--------------------------------------------------------------
SELECT

 'A'                                                                                     as AAADummy

,isnull(SI.B2B_SUPPLIER,'?')                                                            as B2BSupplier
,SI.CREATION_DATE                                                                        as CreatedDateSupplier

,SI.ONE_TIME                                                                            as OneTimeSupplier

--,isnull(IINV.[COMPANY],'?')        + '_' + isnull(SIA.ADDRESS1,'?')                        as SuppAddress1
,isnull(SIA.ADDRESS1,'?')                                                                as SuppAddress1
--,isnull(IINV.[COMPANY],'?')        + '_' + isnull(SIA.ADDRESS2,'?')                        as SuppAddress2
,isnull(SIA.ADDRESS2,'?')                                                                as SuppAddress2
--,isnull(IINV.[COMPANY],'?')        + '_' + isnull(SIA.ADDRESS_ID,'?')                        as SuppAddressID
,isnull(SIA.ADDRESS_ID,'?')                                                                as SuppAddressID
,isnull(SIA.ADDRESS,'?')                                                                as SuppAddressString        -- StreetZipCityCountry    

,isnull(SIA.COUNTRY,'?') + '_' +         
 isnull(replace(SIA.CITY,char(9), ''),'?')                                                as SuppCityCode                -- 01.03.24 Replace Tab
,isnull(replace(SIA.CITY,char(9), ''),'?')                                                as SuppCity

,isnull(IINV.[COMPANY],'?')                                                                as SuppCompany                    -- company in Fact_xx -> DIM_Company
,isnull(CT.NAME,'?')                                                                    as SuppCompanyName                -- hier für Einzellisten vorbereitet.

,isnull(IINV.[COMPANY],'?')        + '_' + 
 isnull(SI.COUNTRY,'?')            + '_' +                                                                                -- 22.05.24 Key erweitert.
 isnull(SI.CORPORATE_FORM,'?')                                                            as SuppCorporateForm        -- 2 Limited und GmbH    
,isnull(IINV.[COMPANY],'?')        + '_' + isnull(CF.CORPORATE_FORM_DESC,'?')                as SuppCorporateFormDesc
,isnull(SIA.COUNTRY,'?')                                                                as SuppCountryCode
,isnull(ICT.[DESCRIPTION],'?')                                                            as SuppCountryDescription
,isnull(ICT.[FULL_NAME],'?')                                                            as SuppCountryFullName
,isnull(ICT.[EU_MEMBER],'?')                                                            as SuppCountryEuMember

,isnull(SIA.COUNTY,'?')                                                                    as SuppCountyCode
    

,SI.DEFAULT_LANGUAGE                                                                    as SuppDefaultLanguage
,isnull(SADR.DELIVERY_TERMS,'?')                                                        as SuppDeliveryTerms

,isnull(ODT.DESCRIPTION,'?')                                                            as SuppDeliveryTermsDesc
,isnull(ODT.DESCRIPTION,'?')+ ' (' +    
 isnull(SADR.DELIVERY_TERMS,'?')    + ')'                                                as SuppDeliveryTermsDescLong        -- 'C003 CPT'

,IINV.EXPIRE_DATE                                                                        as SuppInactiveDate

,isnull(SI.SUPPLIER_CATEGORY,'?')                                                        as SupplierCategory

, isnull(IINV.[COMPANY],'?')        + '_' + 
  isnull(IINV.[GROUP_ID],'?')                                                            as SupplierGrp                    -- 08.03.23 Company-Präfix, weil neue 150 und 500 Lieferanten.
,isnull(IPTG.[DESCRIPTION],'?')                                                            as SupplierGrpDesc

,cast(
 isnull(IINV.[COMPANY],'?')        + '_' + 
 SI.[SUPPLIER_ID]                + '_' + 
 isnull(cast(SIA.ADDRESS_ID as nvarchar),'?')    
 as nvarchar(100))                                                                        as SupplierKey

,SI.[SUPPLIER_ID]                                                                        as SupplierNo
,left(SI.[SUPPLIER_ID],2)                                                                as SupplierNo_2st
,left(SI.[SUPPLIER_ID],4)                                                                as SupplierNo_4st

,SI.NAME                                                                                as SupplierNameShort

,SI.[SUPPLIER_ID] + ' ' +  
 SI.NAME    
 + ' (' + isnull(IINV.[COMPANY],'?') + ')'                                                as SupplierName

,isnull(SI.SUPPLIERS_OWN_ID,'?')                                                        as SupplierOwnID
,isnull(SI.PARTY,'?')                                                                    as SupplierParty

,isnull(IINV.IDENTITY_TYPE,'?')                                                            as SupplierType


,isnull(IINV.[COMPANY],'?')        + '_' + isnull(IINV.[PAY_TERM_ID],'?')                    as SuppPaymentTermCode
,isnull(PAY.DESCRIPTION,'?') + ' (' +
 isnull(IINV.[PAY_TERM_ID],'?')    +')'                                                    as SuppPaymentTerm

,isnull(SADR.SHIP_VIA_CODE,'?')                                                            as SuppShipViaCode

,isnull(SIA.STATE,'?')                                                                    as SuppState

,isnull(S.SUPP_GRP,'?')                                                                    as SuppStatGrp                        -- 07.08.25
,isnull(SIA.COUNTRY,'?') + '_' +         
 isnull(SIA.ZIP_CODE,'?')                                                                as SuppZipCode
,isnull(SIA.ZIP_CODE,'?')                                                                as SuppZIP

,isnull(SIA.COUNTRY,'?') + '_' +         
 isnull(left(SIA.ZIP_CODE,1),'?')                                                        as SuppZipCode_1st
,isnull(left(SIA.ZIP_CODE,1),'?')                                                        as SuppZip_1st

,isnull(SIA.COUNTRY,'?') + '_' +         
 isnull(left(SIA.ZIP_CODE,2),'?')                                                        as SuppZipCode_2st
,isnull(left(SIA.ZIP_CODE,2),'?')                                                        as SuppZip_2st

-------------------------------
,cast(
 isnull(IINV.[COMPANY],'?')        + '_' + 
 SI.[SUPPLIER_ID]                + '_' + 
 isnull(cast(SIA.ADDRESS_ID as nvarchar),'?')    
 as nvarchar(100))                                                                        as UniqueKey_Dim_Supplier


into DIM_Supplier

FROM 
  [extr_IFS_SUPPLIER_INFO_TAB]                    as SI

….

BR
Michael