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

idoc sdata

Former Member
0 Likes
552

Using function module 'idoc_read_completely' we can get sdata in the output of report

how can we extract output of sdata in an excel file in a specified format or in a proper field.

thanks in advance.

regards,

neha

2 REPLIES 2
Read only

prasoon_sahay
Participant
0 Likes
425

In IDoc, for each segment type, the field will vary.

So you cannot put in proper field for each segment of an Idoc.

Though you can define workarea of type IDOC-SEGMENT.

pass sdata into idoc-segment.

now Segment will contain data in proper field

Regards,

Prasoon Sahay

Edited by: Prasoon Sahay on Feb 18, 2011 5:47 PM

Read only

Former Member
0 Likes
425

you can define a structure based upon the segment name. That structure is then populted by structurename = the sdata field in the idoc record. You will note that IDOC SDATA is alwys passed as characters....therefore in a second step you can do any data conversions (such as character to currency), putting the data in the structure matching your segment name into another structure that has the desired data formats, field by field.