Skip to Content
avatar image
Former Member

IDoc for Creating Vendor and its address

Hello,

MY scenario, i'll be getting vendor details from a third party system (ESP), via PI.

ESP will send an SOAP Message and SAP PI will convert it into IDoc for SAP R/3 System.

The ESP system will send Vendor Details along with its address, i know CREMAS is for Vendor and ADRMAS is for address, but this is split in PI, when the sending system is sending an IDoc CREMDM, correct me if i am wrong.

So my question is there any Idoc which will help me create Vendor along with its Address detail, or do i have create a custom Idoc for this.

Second Question, I need to send a mail if the Idoc fails in the system and if successfully updated, a mail triggered saying vendor created. any help would be appreciated

Regards,

Abhishek

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Jan 06, 2012 at 11:40 AM

    In all CREMAS01 to CREMAS05 IDoc types the main segment E1LFA1M has all address fields. You need not use separate IDoc for address.

    You can use IDoc with workflow to send automatic emails when IDoc fails. Search for these.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      i found another missing information.

      You need to have the field "MSGFN" filled !

      This is needed to identify "is it a change or deltetion or full-load ..."

      Try to fill this field E1LF**M-MSGFN = 018

      give it a try 😉

  • avatar image
    Former Member
    Jan 06, 2012 at 11:16 AM

    Hi Abhishek,

    I think there is no existing idoc with both these segments.

    You will have to extend the CREMAS idoc to add the address segment in it.

    And for mail you can read the status of the idoc in the inbound Function Module

    and send that status message in text of mail using the FM -

    SO_DOCUMENT_SEND_API1

    Regards,

    Harsh Bansal

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 06, 2012 at 11:29 AM

    No it is not difficult to extend the idoc. Just search how to extend the idoc..you will get many answers...

    And regarding mail..just search with the FM i provided..you will get many sample codes..just replace data in them and you are done..Otherwise let me know i will help you..

    Regards,

    Harsh Bansal

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 06, 2012 at 11:20 AM

    Another idea can be..you can post second idoc from first idoc function module if it runs sucessfully...but easy way will be to extend your idoc. You can write code to send emial in your FM

    Nabheet

    Add comment
    10|10000 characters needed characters exceeded