How do I save an email address via the ORDERS05 IDoc?

Die Frage ist als "gelöst" markiert. Den entsprechend Beitrag findest du hier.

Getting started ... Alles für einen gelungenen Start.
2 Beiträge • Seite 1 von 1
2 Beiträge Seite 1 von 1

How do I save an email address via the ORDERS05 IDoc?

Beitrag von ABAPLover (ForumUser / 23 / 0 / 1 ) »
I am creating sales orders via the ORDERS05 Idoc. I am using the E1EDKA1 structure to add the "WE" Ship-To address to the order. There is no field in E1EDKA1 named SMTP_ADDR. I could put it in the ILNNR field, which we're not using, but ultimately would like the email address to show up correctly in the ADR6 table in SAP.

gesponsert
Stellenangebote auf ABAPforum.com schalten
kostenfrei für Ausbildungsberufe und Werksstudenten


Re: How do I save an email address via the ORDERS05 IDoc?

Beitrag von CodeCraft (ForumUser / 7 / 1 / 1 ) »
Create a custom Z-segment that extends the ORDERS05 IDoc to include a field for the SMTP_ADDR (email address).
In your ABAP code that processes the IDoc, extract the email address from your custom Z-segment and update the ADR6 table accordingly.

if you are a dev you can do this:

Code: Alles auswählen.

DATA: ls_z_segment TYPE z_idoc_segment_extension.

" Assume that the email address is passed in a custom Z-segment field
ls_z_segment-smtp_addr = 'email@example.com'.

" Code to update the ADR6 table
" This is a simplified example; actual implementation may vary
" and should handle exceptions and provide proper validation
IF ls_z_segment-smtp_addr IS NOT INITIAL.
  UPDATE adr6 SET smtp_addr = ls_z_segment-smtp_addr WHERE addrnumber = <relevant_address_number>.
  IF sy-subrc <> 0.
    " Handle the error accordingly
  ENDIF.
ENDIF.

Seite 1 von 1

Vergleichbare Themen

0
Antw.
1376
Views
IDOC Orders05
von Tuete001 » 15.02.2007 16:16 • Verfasst in ABAP® Core
0
Antw.
2917
Views
ORDERS05 und UMVKZ
von Martin3110 » 26.05.2008 13:29 • Verfasst in Exchange Infrastructure
0
Antw.
1050
Views
BAS Business Address Service
von Meex » 26.09.2007 08:00 • Verfasst in ABAP® Core
0
Antw.
1382
Views
3
Antw.
1808
Views
SAP Script Probleme im ADDRESS-Feld
von nanna » 02.03.2005 16:29 • Verfasst in SAP - Allgemeines

Über diesen Beitrag



Die Frage ist als "gelöst" markiert. Den entsprechend Beitrag findest du hier.

Unterstütze die Community und teile den Beitrag für mehr Leser und Austausch

Aktuelle Forenbeiträge

Artikel automatisch in va01
vor 2 Tagen von wreichelt 2 / 49
langtexte beim Fertigungsauftrag
vor 2 Tagen von ByteMeBaby 7 / 6415
Updates der Daten, Fehlermeldung
vor 3 Tagen von Egzon gelöst 1 / 67

Newsletter Anmeldung

Keine Beiträge verpassen! Wöchentlich versenden wir lesenwerte Beiträge aus unserer Community.
Die letzte Ausgabe findest du hier.
Details zum Versandverfahren und zu Ihren Widerrufsmöglichkeiten findest du in unserer Datenschutzerklärung.

Aktuelle Forenbeiträge

Artikel automatisch in va01
vor 2 Tagen von wreichelt 2 / 49
langtexte beim Fertigungsauftrag
vor 2 Tagen von ByteMeBaby 7 / 6415
Updates der Daten, Fehlermeldung
vor 3 Tagen von Egzon gelöst 1 / 67

Unbeantwortete Forenbeiträge

Updates der Daten, Fehlermeldung
vor 3 Tagen von Egzon 1 / 67
Zwischensumme Adobe Forms
letzen Monat von Lucyalison 1 / 277