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

issue with OPEN DATASET BINARY MODE

Former Member
0 Likes
618

Hi All,

I am working on an interface which writes the XML data into the Application Server. So, I am opening file in BINARY MODE.

The data is been transfered successfully. But, all the data is coming in a single line.

Each time the record is transfered, it should get in a new line.

This is the code we have used.

OPEN DATASET lv_value IN BINARY MODE FOR APPENDING.

IF sy-subrc EQ 0.

LOOP AT l_xml_table INTO wa_xml.

TRANSFER wa_xml TO lv_value.

CLEAR wa_xml.

ENDLOOP.

ENDIF.

CLOSE DATASET lv_value.

Could you please help me on this..? Thanks in advance.

Thanks & Regards,

Paddu.

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
521

How your xml_table looks like? Is it a binary table? What do you mean new line?

Also please refer

Regards

Marcin

3 REPLIES 3
Read only

MarcinPciak
Active Contributor
0 Likes
522

How your xml_table looks like? Is it a binary table? What do you mean new line?

Also please refer

Regards

Marcin

Read only

Former Member
0 Likes
521

Hi Paddu,

I am facing the same issue ,while i try to send the attachment through email it just sends the data in one line.Can you please let me know how you were able to solve the issue.

Regards,

Zarina

Read only

Former Member
0 Likes
521

Hi

Before transfer data to application server,you need to do transformationa and convert into table.

1.CALL TRANSFORMATION

2.CALL FUNCTION HR_EFI_CONVERT_STRING_TO_TABLE

then use open data set

Suresh Nag