Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Creating XML File

Hi friends,

I have one txt file which has following data:

:20:2000001305

:32A:001031SAR9101,90

:50: Corporate Name

BOX 12345

Riyadh

Saudi Company XYZ

:52A:SAMBSARI

:53B:/106202529

:57A:AAALSARI

:59:/01313078585009

Corporate Name

BOX 12345

Riyad

Corporate Name

:70:INV/0000000899

Now I want to convert in following form and send to partner :

<?xml version="1.0"?>

<PaymentMessage>

<PaymentTransaction>

<CompanyCode>Corporate code</CompanyCode>

<SequenceNum>0000000000107007</SequenceNum>

<TransactionData>:20:2000001305

:32A:001031SAR9101,90

:50: Corporate Name

BOX 12345

Riyadh

Saudi Company XYZ

:52A:SAMBSARI

:53B:/106202529

:57A:AAALSARI

:59:/01313078585009

Corporate Name

BOX 12345

Riyad

Corporate Name

:70:INV/0000000899

</TransactionData>

<TransactionComment>Testing</TransactionComment>

</PaymentTransaction>

</PaymentMessage>

How can I do using PI?

Former Member
Not what you were looking for? View more on this topic or Ask a question