cancel
Showing results for 
Search instead for 
Did you mean: 

how to create create sales order and display?

Former Member
0 Kudos

Hi All,

      

         I am new to netweare gateway, can you please guide me, how to create sales order using RFC and how to display the created sales order.

Thanks & Regards,

Hemanth Reddy.

Accepted Solutions (1)

Accepted Solutions (1)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Hemanth,

please check out our SCN Wiki.

There you find several how to guides that are showing how to handle the RFC generator in SEGW.


Best Regards,

Andre

SAP NetWeaver Gateway Self-Paced Learning - Technologies - SCN Wiki

Former Member
0 Kudos

Hi Fischer,

  

              Based on above documents I have created odata services successfully.

The problem is while posting the inputs its throughs an error in rest Client.

method - post

url -/sap/opu/odata/sap/zso_create_srv/$batch

Request Header:

name                                        value

X-CSRF-Token                         HQi19ViUQUDiCbKQ5v__OA==

Content-Type                          multipart/mixed; boundary=batch

Body

--batch

Content-Type: application/http

Content-Transfer-Encoding: binary

GET SO_CREATE?$filter=IMDocumenttype%20eq%20'TA'%20and%20IMSalesorg%20eq%20'5000'%20and%20IMDistchannel%20eq%20'C1'%20and%20IMDivision%20eq%20'D1'%20and%20IMCustomer%20eq%20'0002000040'%20and%20IMCreatedBy%20eq%20'ashokj'%20and%20(IMItem%20eq%20'000010'%20and%20IMMaterialNo%20eq%20'000000000000000024'%20and%20IMPlant%20eq%20'5000'%20and%20IMOrdrerQuantity%20eq%20'0000000000003')HTTP/1.1

--batch--

The response header is

  1. Status Code: 202 Accepted
  2. Content-Length: 0
  3. Content-Type: multipart/mixed
  4. dataserviceversion: 2.0

Thanks & Regards,

Hemanth Reddy.

former_member184867
Active Contributor
0 Kudos

Hi,

What you are trying to do here is create via batch, which is little different compared to to normal create. What response are you getting in the response body ?

Regards,

Atanu

Former Member
0 Kudos

Hi Mallik,

         

Response body is empty.

Thanks&Regards,

Hemanth Reddy.

former_member184867
Active Contributor
0 Kudos

Hi Hemanth,

Chageset is not available in teh request payload of your batch request.this can  be the issue

Atanu

Former Member
0 Kudos

Hi Mallik,

            I am not able to understood your post.

Thanks And Regards,

Hemanth Reddy.

former_member184867
Active Contributor
0 Kudos

What I meant here is 'Changeset' (sorry for the typo). In $batch create requests you also need to pass the changeset which I did not see in the request body that you have shared. Refer to page no 15 of the document http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40546820-3ea7-2f10-dfab-be373c0da...

Answers (1)

Answers (1)

SyambabuAllu
Contributor
0 Kudos

Hi Hemanth,

Can you please check below links for Multiple request call.

http://scn.sap.com/docs/DOC-45504

http://scn.sap.com/thread/3403864

Thanks,

Syam