Skip to Content

How to do message mapping in IDoc or RFC to file transfer ?

Hello guys. I have a doubt. I know how to do an IDoc to file or RFC to file scenario. But how to do mapping in an Idoc to file or RFC to file scenario ? As I understand mapping is done in the sender. But IDoc or RFhas no interface as its used for SAP. So where do we need to perform mapping ?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Aug 22, 2007 at 11:11 AM

    Hi Hari,

    In Message mepping,Select your RFC or IDOC form Imported objects and place them either in Source side or in target side,where evrr you want depending on scenario.

    put file Message Type on other side and procede with mapping.

    Award points if found usefull.....

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 22, 2007 at 11:12 AM

    Hi,

    You dont need the Data type and message type for IDOC's, RFC's and for external definitions. so u just create one DT,MT for your File structure and you need 2 message interfaces, one for file and one for the Idoc/RFC. You can use them in your mapping program.

    Regards,

    Kumar.

    P.S: Reward Points if Helpful!!!!!!!!!

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 22, 2007 at 11:16 AM

    hi

    For rfc or Idoc there will be inbuild structure u don't required it again and coming to mapping part create datatype and message type for the file and then in the source side get the structure from the imported objects and the receiver side is your file and again in that map it required fields only.

    Reward if useful.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Harish Babu

      you have to create Interface.

      you have to select Message type as IDOC or RFC,From Imported objects.

      But there is no need Creating Datatype or message type.

  • author's profile photo
    Former Member
    Posted on Aug 22, 2007 at 11:13 AM

    Hi,

    You can directly use the IDOC or RFC from the Imported objetcs in your mapping program.

    Regards,

    Kumar

    P.S: Reward Points if Helpful!!!!!!!!

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 22, 2007 at 12:00 PM

    u need to give the SAP server detyails from which u are importing the idoc.

    Use the imported pbjects option to import Idoc/RFc

    every idoc has a structure..

    there are certain mandatory fields which u need to specify constants for every idoc and apart from that u can match the other fields based on ur file structure

    Add comment
    10|10000 characters needed characters exceeded