Application Development and Automation 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: 
Read only

XML file with header

0 Likes
789

Hello,
I have to create an XML output file with multiple header lines in ABAP. Below is the detailed requirement.

Standard header generated in XSLT transformation is giving this line- <?xml version="1.0" encoding="ISO-8859-1" standalone="yes" ?>

But I have to add an additional header line like below along with the standard header

<wm1:PayStubLoad xmlns:wm1="XXXXXXXXXX" wm1:numberRecords="000000182" wm1:fileDateTime="2021-06-04T00:37:12.900Z" wm1:fileToken="XXXXXXXXX" wm1:employerCode="XXXX" xmlns:xsi="XXXXXXX" xsi:schemaLocation="XXXXXXXXXXXXXXXXXX"> <PayStub wm1:forgotPINPostalCode="XXXX" wm1:employeeDefaultPIN="XXXX" wm1:payPeriodEndDate="XXXXX" wm1:payPeriodStartDate="XXXXX" wm1:payStubAccessibleDate="XXXXX" wm1:payDate="XXXXX" wm1:adviceNumber="XXXXX" wm1:employeeCode="XXXXXX">

Could you please help how can we achieve this.Thank You.

Regards,

Srilekha

1 REPLY 1
Read only

former_member751591
Participant
0 Likes
635

Welcome to the SAP Community! We wanted to give you the opportunity to take the tutorial to get started in SAP Community, as it provides tips for preparing questions that draw responses from our members.

Additionally, by adding a picture to your profile you encourage readers to respond to your question. Learn more about your profile using Profile Tutorial

Thank you!