cancel
Showing results for 
Search instead for 
Did you mean: 

Feeding new line in EDI string

helloanikolkata
Explorer
0 Kudos

Hi Experts,

I am creating EDI file in receiver side but it is coming in a single string with \n as end segment indicator. Eg.

ISA~00~      ~00~      ~ZZ~61870BBG   ~ZZ~BNYMELLON  ~130627~0728~U~00501~100000009~0~T~:\nGS~RA~61870BBG~

I need this like

ISA~00~      ~00~      ~ZZ~61870BBG   ~ZZ~BNYMELLON  ~130625~1715~U~00501~100000029~0~T~:

GS~RA~61870BBG~BNYMELLONPAY~20130625~1706~000000029~X~005010

PI version is 7.31 (single stack).

Please suggest.

Thanks,

Anirban

Accepted Solutions (1)

Accepted Solutions (1)

Dimitri
Active Contributor
0 Kudos

Hi Anirban,

What do you use to generate the EDI file? The B2B add-on or a third-party adapter like Seeburger?

Kind regards,

Dimitri

helloanikolkata
Explorer
0 Kudos

Hi Dimitri,

I am using standard module provided by SAP in SAP PI 7.31, not the Seeburger.

Thanks,

Anirban

Dimitri
Active Contributor
0 Kudos

Hi Anirban,

There are no standard modules available out-of-the-box to convert from and to EDI. I guess you have the B2B add-on installed. Please check URL http://<host>:<port>/b2bic . Do you see the B2B Integration Cockpit?

Also, you need to use the module like this localejbs/X12ConverterModule in your adapter


Kind regards,

Dimitri

helloanikolkata
Explorer
0 Kudos

Hi Dimitri,

We are already using the specified module. Please check the screen shot in my last reply. Also the link which we are already checked, this is the new feature added in PI 7.31. But my issue is that after creating the EDI xsd from this link when I am giving D_SEGMENTTERMINATOR=\n in message mapping, it is not taking as net line feed but treating it as a normal string. I need to know what is the value for new line feed so that in communication channel when converter module will work, the java engine (adapter ingine) feed a new line in the output file, so that the final output file will have the new line character but not \n as a normal string.

Thanks,

Anirban

Dimitri
Active Contributor
0 Kudos

Hi Anirban,

Please have a look at the SAP help

I guess parameter x12.indent could be useful.

Kind regards,

Dimitri

helloanikolkata
Explorer
0 Kudos

Hi Dimitri,

x12.indent is not working. See also the link http://scn.sap.com/message/14169939.

Thanks,

AD

Dimitri
Active Contributor
0 Kudos

Hi Anirban,

Maybe open a call to SAP and try other possibilities. In that way, you have 2 tracks to get the problem solved.

In case you open a call and get response, please put it here to have the solution available.

Kind regards,

Dimitri

helloanikolkata
Explorer
0 Kudos

The 3rd party will read the end line separator and they will read the file accordingly.

Thanks

AD

Answers (0)