‎2011 Feb 18 11:31 AM
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
‎2011 Feb 18 12:16 PM
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
‎2011 Feb 18 12:50 PM
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.