Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function Module Name

Former Member
0 Likes
929

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

7 REPLIES 7
Read only

andreas_mann3
Active Contributor
0 Likes
799

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

Read only

Former Member
0 Likes
799

Get the ADRNR from T001 table for a company code and pass that to ADDR_GET function.

Regards,

Ravi

Read only

0 Likes
799

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.

Read only

Former Member
0 Likes
799

Hi

Use ADDR_GET

Read only

Former Member
0 Likes
799

hi,

u can use this fm BAPI_CUSTOMER_GETDETAIL2

regards

Guru

Read only

Former Member
0 Likes
799

BAPI: BAPI_VENDOR_GETDETAIL

Read only

Former Member
0 Likes
799

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