Posted: Sat Apr 26, 2008 5:03 pm Post subject: BAPI_BUPA_CREATE_FROM_DATA
BAPI_BUPA_CREATE_FROM_DATA - Create a Business Partner
Code:
DATA:
gs_centraldata TYPE bapibus1006_central,
gs_centraldataorganization TYPE bapibus1006_central_organ,
gs_addressdata TYPE bapibus1006_address.
it_return TYPE TABLE OF bapiret2.
lv_customer TYPE bu_partner.
MOVE:
'Siva B Kumar' TO gs_centraldataorganization-name1,
'XYZ' TO gs_centraldataorganization-name2,
'X' TO gs_addressdata-standardaddress,
'3000' TO gs_addressdata-postl_cod1,
'Melbourne' TO gs_addressdata-city,
'Street' TO gs_addressdata-street,
'246' TO gs_addressdata-house_no,
'GB' TO gs_addressdata-country,
'VIC' TO gs_addressdata-region,
'EN' TO gs_addressdata-langu.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
WRITE:/ lv_customer.
Code:
DATA : PARTNER_CATEGORY TYPE BAPIBUS1006_HEAD-PARTN_CAT,
CENTRALDATA TYPE BAPIBUS1006_CENTRAL,
PERSON_DATA TYPE BAPIBUS1006_CENTRAL_PERSON,
ADDRESS_DATA TYPE BAPIBUS1006_ADDRESS,
TELEFONDATA TYPE TABLE OF BAPIADTEL WITH HEADER LINE,
FAXDATA TYPE TABLE OF BAPIADFAX WITH HEADER LINE,
E_MAILDATA TYPE TABLE OF BAPIADSMTP WITH HEADER LINE,
WA_RETURN TYPE BAPIRET2,
PARTNER_GRP TYPE BAPIBUS1006_HEAD-PARTN_GRP,
TITLE_KEY TYPE AD_TITLE.
TRANSLATE TITLE TO UPPER CASE.
IF TITLE = 'MR.'.
TITLE_KEY = '0002'.
ELSEIF TITLE = 'MS.'.
TITLE_KEY = '0001'.
ENDIF.
CENTRALDATA-TITLE_KEY = TITLE_KEY.
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.