Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

File Format in E-Invoicing

former_member390368
Discoverer
0 Kudos

Hi,

We have requirement where we need to implement e-invoicing for the below file format:

UBL
CII
Factur-X

Could be please suggest me if the above file formats in available in SAP ECC6-EHP8 system.

Suggestions would be highly appreciated.

Thanks & Regards,

Pooja Ranjhani

1 ACCEPTED SOLUTION

Ulrich_Schmidt
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Poja,

I'm not sure, whether the ECC system contains functionality for this, but this looks like a scenario, where the SAP Business Connector can be used to easily implement this:

  1. Get an XML Schema, e.g. for the UBL format and import it into SAP BC to generate a "Record Definition".
  2. For outbound communication:
    a) send the necessary data to SAP BC via RFC (e.g. a function module or INVOIC IDoc?)
    b) use a graphical mapping to map the data from the RFC/IDoc records to the above Record Definition
    c) run the resulting record through the XML Renderer and send the XML document to the receiver via HTTP
  3. For inbound communication:
    a) POST XML document to SAP BC's HTTP port
    b) run the data through the XML Parser and then map it from the resulting record to the required RFC/IDoc records
    (Similar mapping as in 2b) above, only in the "opposite direction".)
    c) finally send the RFC/IDoc data to the SAP system via SAP BC's RFC outbound channel

There is a little bit of development effort necessary on the SAP BC, but I would expect that all of this can be done with simple graphical mapping steps, no Java coding required, because SAP BC already provides many tools for XML processing as well as RFC and IDoc processing out-of-the-box.

Similar Flows could then be implemented for the other two formats, CII and Factur-X.

For download and documentation of the SAP BC tool, see https://support.sap.com/sbc-download and https://support.sap.com/en/product/connectors/bc/details.html

2 REPLIES 2

Ulrich_Schmidt
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Poja,

I'm not sure, whether the ECC system contains functionality for this, but this looks like a scenario, where the SAP Business Connector can be used to easily implement this:

  1. Get an XML Schema, e.g. for the UBL format and import it into SAP BC to generate a "Record Definition".
  2. For outbound communication:
    a) send the necessary data to SAP BC via RFC (e.g. a function module or INVOIC IDoc?)
    b) use a graphical mapping to map the data from the RFC/IDoc records to the above Record Definition
    c) run the resulting record through the XML Renderer and send the XML document to the receiver via HTTP
  3. For inbound communication:
    a) POST XML document to SAP BC's HTTP port
    b) run the data through the XML Parser and then map it from the resulting record to the required RFC/IDoc records
    (Similar mapping as in 2b) above, only in the "opposite direction".)
    c) finally send the RFC/IDoc data to the SAP system via SAP BC's RFC outbound channel

There is a little bit of development effort necessary on the SAP BC, but I would expect that all of this can be done with simple graphical mapping steps, no Java coding required, because SAP BC already provides many tools for XML processing as well as RFC and IDoc processing out-of-the-box.

Similar Flows could then be implemented for the other two formats, CII and Factur-X.

For download and documentation of the SAP BC tool, see https://support.sap.com/sbc-download and https://support.sap.com/en/product/connectors/bc/details.html

matt
Active Contributor
0 Kudos

I think SAP have an add-in for this. (ZUGFeRD in German).

I wrote my own.