cancel
Showing results for 
Search instead for 
Did you mean: 

test data for web services

Former Member
0 Kudos

Hello ,

I want to build prototype scenarios using SAP web services and NetWeaver.

Following Web Services are of interest to me. Could you please tell me where can I get some sample values to test WebServices?

A) create Purhase Order: ECC_PURCHASEORDERCRTRC

B) Query Order and Items: ECC_PURCHASEORDER002QR

C) Material Basic Data By ID: ECC_MaterialBasicDataByID000QR

D) Supplier: ECC_SupplierSNAQR

I am using FU2 system.

Thanks,

Apurv.

Accepted Solutions (0)

Answers (1)

Answers (1)

gregorw
Active Contributor
0 Kudos

Hello Apurv,

you can use transaction ME23N to get a list of PO's. I've tried to test ECC_PURCHASEORDER002QR with PO-Number 4500004823 but the result was this error message:

XML Serialization Error. Object content does not correspond to Schema restrictions of type [http://sap.com/xi/APPL/SE/Global][PurchaseOrderItemID].

I allso tried to call ECC_PURCHASEORDER002QR in a ABAP and PHP Client but still have problems. I hope I can find a solution.

Regards

Gregor

Former Member
0 Kudos

Hello,

On the Fu2 system:

For web service: ECC_PURCHASEORDER002QR

I entered: 4500017118 as purchase order id in the field "string"

I verified that this PO ID exists in the FU2 system with transaction ME23N, still its throwing this error:

"XML Deserialization Error. XML is not valid. Node child of not described in Schema"

Please let me know if you have any info on this WS.

Thanks,

Apurv.

gregorw
Active Contributor
0 Kudos

Hello Apurv,

please have a look at Topic: where I've posted test data for a working Web Service.

Regards

Gregor

Former Member
0 Kudos

Hello,

The web services are working fine. There is a problem with the SAP Web Services Test page though. I tested the services using groovy on grails by generating proxies in NWDS and they worked fine. With the same data I tested on the SAP test page and it threw the same XML decentralization error.

Here is the test data I used:

A) create Purhase Order: ECC_PURCHASEORDERCRTRC

Takes:

PurchaseOrderInner:

Processing Type: NB (This is the Standard PO)

Organization Party: 1000

Group Party: 008

SellerID: 0000001003

ItemInner:

ID: 10, 20, and so on.. (for each item it increments by 10)

MaterialID: 100-110

ItemQuantity: 10

Plant: 1000

Returns: Purchase order. These 8 things are mandatory.

B) Query Purchase Order and Items: ECC_PURCHASEORDER002QR

Takes: Purchase Order Number: 4500004823 or 4500017933 any of the PO# in transaction ME23N

Returns: Purchase Order

C) Query Material Basic Data By ID: ECC_MaterialBasicDataByID000QR

Takes: Material # > MaterialBasicDataSelectionByID > ProductInternalID > setSimpleContent

Returns: Material

Hope this will be helpful for someone.

Regards,

Apurv.