Skip to Content
author's profile photo Former Member
Former Member

Saving e-mail address - Urgent :(

Hi gurus,

See this scenario:

I created a sales order in VA01, then I needed to update the address from the ship-to-party by using the Tab- Partners-select ship-toparty line and click on the button to show the pop-up that allow me to change this information.

I have a Zprogram that is simulating a sales order creation, I have the same functionality that we have in VA01 to change the partner dependent address by using Function Module 'SD_PARTNER_ADDRESS_DIALOG'. ---> This function allows me to show the same pop-up we have in VA01.

I am able to change everything by using this function module and another one: SD_PARTNER_ADDRESSES_TO_DB. But I am not able to save the e-mail address... I know that this works in a different way and we need to update table ADR6.. But when I enter in debugging mode in this function SD_PARTNER_ADDRESSES_TO_DB (in VA01) I can see that in ADDR_SINGLE_SAVE ---> if i search for table adr6 i can see that this table is filled with the e-mail address... but in my case i am not able to get this..

Do you have any idea of this?

Please help,

Best regards

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 03:20 PM

    Hi!

    It seems for me, email is not part of this function module, you mentioned.

    Have you tried this one: SD_PARTNER_BAPI_ADDRESS_CREATE ?

    Regards

    Tamá

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Is not working this function... or i am not able to put it working..

      I don't get the e-mail saved...see my example bellow.

      Please how can i save e-mail partner address to a sales order?

      Thanks

      PT_VBPA2KOM-VBELN = '5020001620'.

      PT_VBPA2KOM-POSNR = '0000'.

      PT_VBPA2KOM-BPARVW_OLD = 'WE'.

      PT_VBPA2KOM-BPARNR_OLD = '0004001294'.

      PT_VBPA2KOM-BPARVW = 'WE'.

      PT_VBPA2KOM-BPARNR = '0004001294'.

      PT_VBPA2KOM-ADRNR = '9000004476'.

      PT_VBPA2KOM-ADDR_LINK = '9000004476'.

      PT_VBPA2KOM-ADDRESS_ORIGIN = 'E'.

      APPEND PT_VBPA2KOM.

      PT_PARTNERADDRESS-ADDR_NO = '9000004476'.

      PT_PARTNERADDRESS-NAME = 'MESTERGRUPPEN AS - testname'.

      PT_PARTNERADDRESS-STREET = 'street test test'.

      PT_PARTNERADDRESS-E_MAIL = 'teste@teste.com'.

      APPEND PT_PARTNERADDRESS.

      CALL FUNCTION 'SD_PARTNER_BAPI_ADDRESS_CREATE'

      EXPORTING

      FIF_ADDRESS_CHECK = 'X'

      TABLES

      FRT_VBPA2KOM = PT_VBPA2KOM

      FRT_TYPE_1_ADDRESSES = PT_PARTNERADDRESS

      FET_VBADR = LT_VBADR

      EXCEPTIONS

      BROKEN_ADRNR_LINK = 1

      NO_HANDLE_AVAILABLE = 2

      ADDRESS_INSERT_ERROR = 3

      OTHERS = 4.

      COMMIT WORK AND WAIT.

      Message was edited by:

      yukimai Maio

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.