How do I save an email address via the ORDERS05 IDoc? Thema ist als GELÖST markiert

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 / 27 / 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

Über diesen Beitrag



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

Aktuelle Forenbeiträge

Feldroutine ADSO Transformation
vor einer Woche von codemaster1 2 / 81196
Stücklisten
vor einer Woche von Selma.schwarz 1 / 82816

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.

Vergleichbare Themen

IDOC Orders05
von Tuete001 » 15.02.2007 16:16
ORDERS05 und UMVKZ
von Martin3110 » 26.05.2008 13:29
BAS Business Address Service
von Meex » 26.09.2007 08:00

Aktuelle Forenbeiträge

Feldroutine ADSO Transformation
vor einer Woche von codemaster1 2 / 81196
Stücklisten
vor einer Woche von Selma.schwarz 1 / 82816

Unbeantwortete Forenbeiträge

Stücklisten
vor einer Woche von Selma.schwarz 1 / 82816
Belege
vor einer Woche von Selma.schwarz 1 / 80631