2006 Jul 12 12:23 PM
Hi
Hi ,
I want a Function module name which will give me below details for company and Vendor
House number,
Street Name,
Supple,
city,
Region,
country,
Post Code,
Telephone
Get the ADRNR from T001 table for a company code and pass that to ADDR_GET function.
Regards,
Ravi
2006 Jul 12 12:25 PM
hi,
use fm <b>ADDR_GET_COMPLETE</b>
look that sample:
CALL FUNCTION 'ADDR_GET_COMPLETE'
EXPORTING
addrnumber = lfa1-adrnr
IMPORTING
addr1_complete = adr_kompl
EXCEPTIONS
parameter_error = 1
address_not_exist = 2
internal_error = 3
wrong_access_to_archive = 4
OTHERS = 5.
*1 Adress
READ TABLE adr_kompl-addr1_tab INTO adr1
WITH KEY data-date_to = '99991231'.
MOVE-CORRESPONDING adr1-data TO atab.
*2 Telefon
LOOP AT adr_kompl-adtel_tab INTO adtel.
MOVE-CORRESPONDING adtel-adtel TO tel_tab.
APPEND tel_tab.
ENDLOOP.
*3 Mail
LOOP AT adr_kompl-adsmtp_tab INTO admail.
MOVE admail-adsmtp-smtp_addr TO atab-mail.
ENDLOOP.
*4 fax
LOOP AT adr_kompl-adfax_tab INTO adfax.
MOVE adfax-adfax-fax_number TO atab-fax_number.
ENDLOOP.A.
Message was edited by: Andreas Mann
2006 Jul 12 12:25 PM
Get the ADRNR from T001 table for a company code and pass that to ADDR_GET function.
Regards,
Ravi
2006 Jul 12 12:25 PM
use FM <b>ADDR_GET</b>
CALL FUNCTION 'ADDR_GET'
EXPORTING
ADDRESS_SELECTION = WK_ADDR_SEL
IMPORTING
SADR = SADR
EXCEPTIONS
PARAMETER_ERROR = 1
ADDRESS_NOT_EXIST = 2
VERSION_NOT_EXIST = 3
INTERNAL_ERROR = 4
OTHERS = 5.
2006 Jul 12 12:27 PM
2006 Jul 12 12:27 PM
2006 Jul 12 12:28 PM
2006 Jul 12 1:35 PM
hi,
u can use this bapi to fineall the details of the vendor BAPI_VENDOR_GETDETAIL, and for company u can use BAPI_COMPANY_GETDETAIL.
i hope it will help u.
with regards
chetan vishnoi
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |