SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

BAPI_ADDRESSORG_CHANGE



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Interfaces | Интерфейсы -> BAPI
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1640

PostPosted: Sat Apr 12, 2008 5:40 pm    Post subject: BAPI_ADDRESSORG_CHANGE Reply with quote

BAPI_ADDRESSORG_CHANGE - BAPI to change organization addresses

Code:
WA_SMTP-E_MAIL = '[email protected]'.
APPEND WA_SMTP TO LT_SMTP.
wa_smtp-e_mail = '[email protected]'.
APPEND WA_SMTP TO LT_SMTP.

WA_COMREM-COMM_TYPE = 'INT'.
WA_COMREM-LANGU = 'EN'.
WA_COMREM-COMM_NOTES = 'TEST'.
WA_COMREM-CONSNUMBER = '001'.

APPEND WA_COMREM TO LT_COMREM.

WA_COMREM-COMM_TYPE = 'INT'.
WA_COMREM-LANGU = 'EN'.
WA_COMREM-COMM_NOTES = 'TEST'.
WA_COMREM-CONSNUMBER = '001'.

APPEND WA_COMREM TO LT_COMREM.

WA_ADSMT-E_MAIL = 'X'.
WA_ADSMT-CONSNUMBER = 'X'.
WA_ADSMT-UPDATEFLAG = 'I'.
WA_ADSMT-E_MAIL = 'X'.
WA_ADSMT-CONSNUMBER = 'X'.
WA_ADSMT-UPDATEFLAG = 'I'.
APPEND WA_ADSMT TO LT_ADSMT.

WA_ADSMT-E_MAIL = 'X'.
WA_ADSMT-CONSNUMBER = 'X'.
WA_ADSMT-UPDATEFLAG = 'I'.
WA_ADSMT-E_MAIL = 'X'.
WA_ADSMT-CONSNUMBER = 'X'.
WA_ADSMT-UPDATEFLAG = 'I'.
APPEND WA_ADSMT TO LT_ADSMT.

WA_COMRE-COMM_TYPE = 'X'.
WA_COMRE-LANGU = 'X'.
WA_COMRE-COMM_NOTES = 'X'.
WA_COMRE-CONSNUMBER = 'X'.
WA_COMRE-UPDATEFLAG = 'I'.
APPEND WA_COMRE TO LT_COMRE.

WA_COMRE-COMM_TYPE = 'X'.
WA_COMRE-LANGU = 'X'.
WA_COMRE-COMM_NOTES = 'X'.
WA_COMRE-CONSNUMBER = 'X'.
WA_COMRE-UPDATEFLAG = 'I'.
APPEND WA_COMRE TO LT_COMRE.

**************************************************
WA_ADREM-ADR_NOTES = ''.
APPEND WA_ADREM TO LT_ADREM.
WA_ADREX-ADR_NOTES = 'X'.
WA_ADREX-UPDATEFLAG = 'I'.
APPEND WA_ADREX TO LT_ADREX.
WA_ADREM-ADR_NOTES = 'R'.
APPEND WA_ADREM TO LT_ADREM.
WA_ADREX-ADR_NOTES = 'X'.
WA_ADREX-UPDATEFLAG = 'I'.
APPEND WA_ADREX TO LT_ADREX.
*****************************************************

CALL FUNCTION 'BAPI_ADDRESSORG_CHANGE'
EXPORTING
OBJ_TYPE = GC_LFA1
OBJ_ID = lv_VENDOR
CONTEXT = GC_0001
SAVE_ADDRESS = 'X'
IV_CHECK_ADDRESS = 'X'
IMPORTING
ADDRESS_NUMBER = LV_ADRNR
TABLES
BAPIADSMTP = LT_SMTP
BAPIAD_REM = LT_ADREM
BAPIADSMT_X = LT_ADSMT
BAPICOMRE_X = LT_COMRE
BAPIAD_RE_X = LT_ADREX
RETURN = LT_RETURN
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Interfaces | Интерфейсы -> BAPI All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.