cancel
Showing results for 
Search instead for 
Did you mean: 

how to pass smtp_addr

Former Member
0 Kudos

Hi All,

i am creating the vendors by IDOC by using CREMAS basic type CREMAS05.

There is no email field in any of the idoc segments,as i need to pass the email address being mandatory,

i created the Z segment and added the email field into it and then created the z extension and added this zsegment into the extension.

Now how do i and where do i map this field so that email data is also passed while creating the vendor master.

i have debugged the cremas Function Module IDOC_INPUT_CREDITOR and the data is getting passed segment wise,and for customer segement i.e for the zsegment there is a enhancement section where i need to pass this field,but i do not know how do i map this field and with what structure.

Please let me know how do i handel this/or is there in other way to do it.

Thanks.

RJP.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Use the below link.

/thread/809019 [original link is broken]

or

Data from custom tables (created in customer namespace) is to be formatted into an IDoc and sent from one SAP R/3 system to another using ALE service. We need to have two instances of SAP R/3 systems or we can simulate this on two clients of the same SAP R/3 system.

Creating Custom IDoc type and Message type

All the objects created should be present on both source as well as target system(s).

1. Create segments u2013 Transaction WE31

Create a segment ZRZSEG1

Add all fields of table ZCUSTOMERS to it

Save the segment

Release it using the menu path Edit -> Set Release

Similarly create two more segments given below

Seg. ZRZSEG2 u2013 to hold all fields of table ZSOHEADERS

Seg. ZRZSEG3 u2013 to hold all fields of table ZSOITEMS

2. Create Basic IDoc type u2013 Transaction WE30

Create a Basic type ZRZORDER

Add the created segments in the hierarchy shown

Maintain attributes for each of the segments

Save the object and go back

Release the object using the menu path Edit -> Set Release

Regards

Former Member
0 Kudos

Hi,

extending the CREMAS idoc or DEBMAS idoc is the worst option to choose.

the email is part of the address data. It is therefore not belonging to the customer/vendor master data. So it is also not part of the DEBMAS/CREMAS idoctype.

To distribute via ALE accurate customer address data, you need to distribute ADRMASidoctypes too.

See [note 384462|https://service.sap.com/sap/support/notes/384462] and [note 306275|https://service.sap.com/sap/support/notes/306275]

BR

Alain

Answers (0)