adesso orange🍊Stellenangebote:
Software Engineer Trainee · Senior | (Senior) Cloud Software Engineer BTP
(Senior) Consultant Technologie
Werkstudent Softwareentwicklung · Fiori / UI5 · Consulting

API PURCHASING SOURCE SRV: Unterschied zwischen den Versionen

Aus SAP Wiki ツ
M1ch3lde (Diskussion | Beiträge)
M1ch3lde (Diskussion | Beiträge)
Zeile 26: Zeile 26:
=== Orderbuch bekommen ===
=== Orderbuch bekommen ===
* HTTP-Methode: GET
* HTTP-Methode: GET
* /sap/opu/odata/sap/API_CV_ATTACHMENT_SRV/A_PurchasingSource(Material='{Material}',Plant='{Plant}',SourceListRecord='{SourceListRecord}')
* Einzelnen Orderbuch:
** /sap/opu/odata/sap/API_CV_ATTACHMENT_SRV/A_PurchasingSource(Material='{Material}',Plant='{Plant}',SourceListRecord='{SourceListRecord}')
* Allgemein:
** /sap/opu/odata/sap/API_CV_ATTACHMENT_SRV/A_PurchasingSource


=== Orderbuch ändern ===
=== Orderbuch ändern ===

Version vom 7. Dezember 2024, 11:38 Uhr

Dieser Wiki-Eintrag wurde zum Zeitpunkt der Version 1.00 / letzte Änderung am 17.10.2024 geschrieben.

Orderbuch erstellen

  • HTTP-Methode: POST
  • /sap/opu/odata/sap/API_PURCHASING_SOURCE_SRV/A_PurchasingSource
  • HTTP-Request(Body)
    CONCATENATE
                  '{'
                    '"d":{'
                        '"Material": "' iv_product '",'
                        '"Plant": "' iv_plant '",'
                        '"ValidityStartDate": "' lv_startdate_year '-' lv_startdate_month '-' lv_startdate_day 'T11:00:00",'
                        '"ValidityEndDate": "' lv_enddate_year '-' lv_enddate_month '-' lv_enddate_day 'T11:00:00",'
                        '"Supplier": "' iv_supplier '",'
                        '"PurchasingOrganization": "' iv_purorg '",'
                        '"MRPSourcingControl": "' iv_mrpsourcecontrol '"'
                    '}'
                  '}'
    INTO lv_json_string.

Orderbuch bekommen

  • HTTP-Methode: GET
  • Einzelnen Orderbuch:
    • /sap/opu/odata/sap/API_CV_ATTACHMENT_SRV/A_PurchasingSource(Material='{Material}',Plant='{Plant}',SourceListRecord='{SourceListRecord}')
  • Allgemein:
    • /sap/opu/odata/sap/API_CV_ATTACHMENT_SRV/A_PurchasingSource

Orderbuch ändern

Orderbuch löschen

  • HTTP-Methode: POST
  • /sap/opu/odata/sap/API_PURCHASING_SOURCE_SRV/A_PurchasingSource(Material='{Material}',Plant='{Plant}',SourceListRecord='{SourceListRecord}')
CONSTANTS cv_quot VALUE `'`. 
CONCATENATE '/sap/opu/odata/sap/API_PURCHASING_SOURCE_SRV/A_PurchasingSource(Material=' cv_quot ls_sourcelist-matnr cv_quot ',Plant=' cv_quot ls_sourcelist-werks cv_quot',SourceListRecord=' cv_quot ls_sourcelist-zeord cv_quot')' INTO lv_url.