Skip to Content
author's profile photo Former Member
Former Member

fie to idoc content conversion

I am working on file to idic scenario.

file has four types of lines :

Begin of file.(0..1)

header.(0...unbounded)

items.(0....unbounded)

end of file.(0..1)

each line has a element Record type and some other elements.for header record type is A , for item its B , for Begin of file its C and for end of file its D.

we have to check for every line that it should have record type as one of these four and if not so we have to send a mail through alert functionality.we have to send a mail which has all errors by checking the whole file for record types.we have to ignore these lines in the file and proceed with the rest.

is it possible with content conversion to convert falt file to xml structure and check this validation...???

if no can u pls give tell me hoiw to develop module for doint his and if u can pls give some sample code for that...

regards,

rohit

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 17, 2008 at 11:08 AM

    Hi,

    Please find the below links

    FIle Content Conversion Problem in IDOC-XI-File Scenario

    Problems in File Content Conversion

    Reward points if needful.

    Thanks,

    RamuV

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 17, 2008 at 11:15 AM

    Hi Rohit,

    while doing content conversion you have to mention the field names in header of data type.fieldNames. hence if the key field is not present it will throw an error in adapter monitoring, FIELD NOT FOUND.

    Then about the other query mapping cannot be performed with a flat file as XI understands only XML.hence content conversion required.

    The official help is at http://help.sap.com/saphelp_erp2005/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm

    The parameters: NameA.fieldFixedLengths

    , NameA.fieldFixedType

    , NameA.fieldNames

    , NameA.keyFieldValue

    , etc should be useful to you.

    Check this weblog, I found it very useful:

    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file

    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30

    Reward points if this helps

    Regards

    Vani.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 17, 2008 at 06:09 PM

    Hi,

    By using file content parameters its possible follow this links

    /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping

    /people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.