0% found this document useful (0 votes)
30 views4 pages

API Quick Documentation v3

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views4 pages

API Quick Documentation v3

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

API Quick Documentation

A. Get SAP Data


1. Get Data all Purchase Order with GR
Link http://fiori.pasarjaya.co.id:8081/sap/bc/zspmu?sap-client=500
Action GET
Headers sap_data → po
Authorization Basic Auth , using username password SAP
Params sap-client → 500 ( DEV )
Payload {
"vendor" : "",
Sample "purchaseorders" : [
{
"purchaseorder" : "4110004015"
}
]
}
Payload Field Data Type Length Decimal
vendor Char 10
Structure purchaseorder Char 10
Return [
{
Payload "mandt": "500",
Format "purchaseorder": "4110004015",
"item": 10,
"extrow": 0,
"doctype": "ZSTK",
"docdescription": "PO Stock",
"vendor": "L100010",
"vendorname": "LULU ATUL AVIFAH ST (MACHILI)",
"purchasinggroup": "M76",
"purchasingdesc": "Ops Retail 1",
"material": "110006161",
"materialdesc": "MACHILI KERUPUK IKAN SALMON ORI",
"plant": "1004",
"plantdesc": "JAKMART PS. PRAMUKA",
"poqty": 2.000,
"totalqty": 2.000,
"availqty": 2.000,
"uom": "PC",
"currency": "IDR",
"netprice": 21900.00,
"netvalue": 43800.00
},
{
"mandt": "500",
"purchaseorder": "4110004015",
"item": 20,
"extrow": 0,
"doctype": "ZSTK",
"docdescription": "PO Stock",
"vendor": "L100010",
"vendorname": "LULU ATUL AVIFAH ST (MACHILI)",
"purchasinggroup": "M76",
"purchasingdesc": "Ops Retail 1",
"material": "110006163",
"materialdesc": "MACHILI KERUPUK IKAN SALMON SPICY",
"plant": "1004",
"plantdesc": "JAKMART PS. PRAMUKA",
"poqty": 1.000,
"totalqty": 1.000,
"availqty": 1.000,
"uom": "PC",
"currency": "IDR",
"netprice": 23400.00,
"netvalue": 23400.00
}
]
Return Field Data Type Length Decimal
mandt Char 10
Payload Purchaseorder Char 10
Structure Item Numc 5
Doctype Char 4
Docdescription Char 20
Vendor Char 10
Vendorname Char 35
Purchasinggroup Char 3
Purchasingdesc Char 18
Material Char 40
Materialdesc Char 40
Plant Char 4
Plantdesc Char 30
Poqty Quan 13 3
Totalgrqty Quan 13 3
Availqty Quan 13 3
Uom Unit 3
Netprice Curr 11 2
Netvalue Curr 11 2
Currency Cuky 5

2. Get Data from Z Table PO


Link http://fiori.pasarjaya.co.id:8081/sap/bc/zspmu?sap-client=500
Action GET
Headers sap_data → spmu
Authorization Basic Auth , using username password SAP
Params sap-client → 500 ( DEV )
{
Payload "requestno" : "9000001",
Sample "vendor" : "",
"purchaseorders" : [
{
"purchaseorder" : ""
}
],
"invoices" : [
{
"invoice" : ""
}
]
}
Payload Field Data Type Length Decimal
Requestno Char 10
Structure vendor Char 10
purchaseorder Char 10
Invoice Char 10
[
Return {
Payload "requestno": 9000001,
"purchaseorder": "4150004616",
Format ( PO ) "reference": "",
"item": 10,
"vendor": "G100015",
"vendorname": "GLOBAL MEDIK PERSADA, PT",
"material": "110004111",
"materialdesc": "FACE SHIELD",
"qty": 10.000,
"uom": "PC",
"status": "X",
"invoice": "",
"invoiceyear": 0,
"invstat": "",
"createddate": "0000-00-00",
"createdat": "00:00:00",
"createdby": "",
"changeddate": "2024-09-18",
"changedat": "14:02:58",
"changedby": "100000-IT1"
}
]
Return [
{
Payload "requestno": 9000015,
"purchaseorder": "",
Format ( "reference": "INV001",
"item": 10,
Without PO ) "vendor": "R100018",
"vendorname": "RAMASURYA PERKASA DISTRINDO, PT",
"material": "110005914",
"materialdesc": "TEST DESCCCC",
"qty": 7.000,
"uom": "CAR",
"status": "X",
"invoice": "",
"invoiceyear": 0,
"invstat": "",
"createddate": "2024-11-04",
"createdat": "10:09:33",
"createdby": "100000-IT1",
"changeddate": "2024-11-04",
"changedat": "10:16:04",
"changedby": "100000-IT1"
}
]

Return Field Data Type Length Decimal


mandt Char 10
Payload Requestno Char 10
Structure Purchaseorder Char 10
Reference Char 16
Item Numc 5
Vendor Char 10
Vendorname Char 35
Material Char 40
Materialdesc Char 40
Qty Quan 13 3
Uom Unit 3
Status Char 1
Invoice Char 10
Invoiceyear Char 4
Invstat Char 1
Createddate Char 10
Createdat Char 10
Createdby Char 12
Changeddate Char 10
Changedat Char 10
Changedby Char 12

B. Post SAP Data


1. Post Data to Z Table ( PO )
Link http://fiori.pasarjaya.co.id:8081/sap/bc/zspmu?sap-client=500
Action POST
Headers sap_data → po
Authorization Basic Auth , using username password SAP
Params sap-client → 500 ( DEV )
Payload {
"data" : [
Sample {
"requestno" : "9000004",
"purchaseorder" : "4110004015",
"reference" : "TB4015",
"vendor" : "L100010",
"vendorname" : "LULU ATUL AVIFAH ST (MACHILI)",
"item" : "10",
"material" : "110006161",
"qty" : "1",
"uom" : "PC",
"status" : "O"
}
]
}
Payload Field Data Type Length Decimal
Requestno Char 10
Structure purchaseorder Char 10
Reference Char 16
Vendor Char 10
Vendorname Char 35
Item Numc 5
Material Char 40
Qty Quan 13 3
Uom Char 3
Status Char 1
Return [
{
Payload "requestno": 9000004,
Format "purchaseorder": "4110004015",
"type": "S",
"message": "Request Number 9000004 save success"
}
]
Return Field Data Type Length Decimal
requestno Char 10
Payload purchaseorder Char 10
Structure Type Char 1
Message Char 220
2. Post Data to Z Table ( Without PO )
Link http://fiori.pasarjaya.co.id:8081/sap/bc/zspmu?sap-client=500
Action POST
Headers sap_data → IN
Authorization Basic Auth , using username password SAP
Params sap-client → 500 ( DEV )
Payload {
"data" : [
Sample {
"requestno" : "9000015",
"reference" : "INV001",
"vendor" : "R100018",
"vendorname" : "RAMASURYA PERKASA DISTRINDO, PT",
"item" : "10",
"material" : "110005914",
"materialdesc" : "TEST DESCCCC",
"qty" : "7",
"uom" : "CAR",
"status" : "Y"
}
]
}
Payload Field Data Type Length Decimal
Requestno Char 10
Structure Reference Char 16
Vendor Char 10
Vendorname Char 35
Item Numc 5
Material Char 40
MaterialDesc Char 40
Qty Quan 13 3
Uom Char 3
Status Char 1
Return [
{
Payload "requestno": 9000015,
Format "reference": "INV001",
"type": "S",
"message": "Request Number 9000015 save success"
}
]

Return Field Data Type Length Decimal


requestno Char 10
Payload reference Char 16
Structure Type Char 1
Message Char 220

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy