cancel
Showing results for 
Search instead for 
Did you mean: 

Add data to XML file segment & convert to IDOC with SAP Business Connector

Former Member
0 Kudos

Hallo,

I am working with SAP Business Connector 4.7. The szenario is to get XML files from a 3rd party through https, the Business Connector gets the file, should add some mandatory data to special segments in the XML file and then convert it to SAP IDOC format, then send it to a connected SAP R/3 System.

It works so far, but without the adding of the mandatory data (which is everytime the same) to the elements of the segment. The type is QALITY02 and the segment I am trying to add the data to is EDI_DC40 (it's the control segment of the file). I need to do this with the Business Connector, because the segment EDI_DC40 of the IDOC type QALITY02 is not reachable in the SALE in the R/3 system.

Does anybody has some input on adding data to XML file segments with the Business Connector? Which service can I use? Can I add the data during the direct conversion from XML to IDOC (service: decode)?

Thanks in advance for your help!

Kai

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kai,

In XI 3.0, the IDoc receiver adapter configuration has an option: "Apply Control Record Values from Payload".

The allows you to map values to the DC40 segment and send it to the R/3 backend system.

Regards,

Bill

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks for your help!

I went the way of converting the xml to a record and was able to add the mandatory data! It works!

But there seems to be a difference between the test function with "send XML file" in the menu "Test" and a invoke call in the browser..

Can you help me there also?

Thanks, Kai

Former Member
0 Kudos

Kai,

You must convert the data to a record structure in SAP BC, then you can use a Map step and add any data you like.

There are a couple of sap service you can use or webmethod services. Try pub.web:documentToRecord.

You will need may need to use a decode/encode before sending the data to SAP.

Regards,

Simon