Company code address

Is there a way to extract all the company code address information to an excel file

hi,
here's a work-around.
pls copy abap , change layout and export to excel,
company code is in the 1st field adr-number.
REPORT z0000009 .
TABLES: t001, adrc.
SELECT-OPTIONS bukrs FOR t001-bukrs.
DATA text(72).
DATA: x_save,                     "for Parameter I_SAVE
      gs_variant TYPE disvariant. "for parameter IS_VARIANT
TYPE-POOLS:  slis.
DATA lay TYPE slis_layout_alv.
DATA itab TYPE TABLE OF adrc.
DATA wa TYPE adrc.
START-OF-SELECTION.
  PERFORM sel_usr_join.
  PERFORM ausgabe.
*&      Form  AUSGABE
FORM ausgabe.
  x_save = 'X'.
  gs_variant-report     = sy-repid.
  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
            i_structure_name = 'ADRC'
            is_variant       = gs_variant
            i_save           = x_save
       TABLES
            t_outtab         = itab
       EXCEPTIONS
            OTHERS           = 1.
ENDFORM.                               " AUSGABE
*&      Form  SEL_USR_JOIN
FORM sel_usr_join.
  SELECT        * FROM  t001
         WHERE  bukrs  IN bukrs.
    SELECT SINGLE * FROM  adrc
           WHERE  addrnumber  = t001-adrnr.
    CHECK sy-subrc = 0.
    MOVE-CORRESPONDING adrc TO wa.
    MOVE t001-bukrs TO wa-addrnumber.
    APPEND wa TO itab.
  ENDSELECT.
ENDFORM.                               " SEL_USR_JOIN
Andreas
pls reward useful answers

Similar Messages

  • Settings in program RFF0GB_T for printing the company code address?

    Hi All,
    I want to print the company code address in the header window of the sapscript. I copied the F110_IN_AVIS to Z .
    in the Program RFF0GB_T, the structure SADR whose fields are being used gets filled up if the finaa-nacha = 2 means of Fax type.
    How do I change the settings or change in the program to change it to make it to print?
    Please help
    Rgds,
    Madhuri
    Edited by: madhuri sonawane on Dec 24, 2008 10:06 AM

    Hello Chandra,
    FYI, plz check the code. As per your stmt the config will populate the structure SADR. Plz see the code & clarify how & where the config comes into play.
    INCLUDE RFFORI06.
    PERFORM avis_schreiben.
    FORM avis_schreiben.
      IF finaa-nacha EQ '2' AND finaa-formc NE space.
        PERFORM adresse_lesen USING t001-adrnr.   
      ENDIF.
    ENDFORM.
    INCLUDE RFFORI99.
    * FORM ADRESSE_LESEN                                                   *
    * Lesen einer Customizingadresse (z.B. Buchungskreisadresse)           *
    * Read customizing address (e.g. address of company code)              *
    * ADRNR - address number                                               *
    FORM adresse_lesen USING value(adrnr).
      PERFORM addr_get USING 'CA01' adrnr.
    ENDFORM.  
    * FORM GET_ADDR                                                        *
    * Lesen einer Adresse                                                  *
    * Read address                                                         *
    * ADRGR - address group                                                *
    * ADRNR - address number                                               *
    FORM addr_get USING adrgr adrnr.
      CHECK adrnr NE sadr-adrnr.
      CLEAR addr1_sel.
      addr1_sel-addrnumber = adrnr.
      CALL FUNCTION 'ADDR_GET'
        EXPORTING
          address_selection = addr1_sel
          address_group     = adrgr
        IMPORTING
          address_value     = addr1_val
          sadr              = sadr
        EXCEPTIONS
          OTHERS            = 4.                                "SADR40A
      IF sy-subrc NE 0.
        CLEAR sadr.
      ENDIF.
    ENDFORM.                               " GET_ADDR
    If you still think that SADR is populated through config, can you tell where exactly in FBZP do you config this ?
    BR,
    Suhas

  • How to change company code address in Print form used

    Hi.
    I have maintained the company address under the gobal data in config. However when I used the print form to print out the invoice from AP (FBL1N -> correspondence -> Request), the address of the sender / company code is different.
    How do I change the address from the form / invoice ? How to find out where the form pulls the data from ? I tried SE71 but couldn't trace out anytime.
    Please help.
    Thanks.
    Angel

    Check your configuration.
    Please follow the following steps:
    IMG ==> Financial Accounting ==> Accounts Receivables and Accounts Payables ==> Customer Accounts ==> Line Items ==> Correspondence ==> Make and Check Settings for Correspondence
    Define Correspondence Types
    Create Report Variants for Correspondence
    Assign Programs for Correspondence Types
    Define Form Names for Correspondence Print (even you assign your form to blank company code also)
    If you complete these steps you will get the spool request get generated.
    Please ask your ABAPer to change the company code address and logo etc. on the form.
    You go to FB12 - request for the statement
    then go to F.61
    Then go to SP02 - Take print out.
    Regards,
    Ravi

  • Transport changes made to company code address (ox02)

    Hello All,
    We are making the changes to the company code address in OX02 in development online client and transporting the request generated while saving to the quality client in the same system.
    However, after importing the request successfully, we don't see any changes made in target client.
    Kindly suggest what could be the mistake here.
    Regards,
    Satish

    Hello Swapna,
    Thanks for the reply.
    Once we come to the main screen and click on Save button, it automatically asks for a transport request. I don't understand why we need to include in request mannually. Becuase, this is may not be acceptable to my customer until we show some wirtten procedure on this from SAP. Can you give me where I can find this so that I can proceed further?
    Thanks in advance.
    Regards,
    Satish

  • FBZP -- Changing Paying company code address

    Hi Folks,
    I have changed the Company code address in FBZP (paying company code) in the Sender details tab and saved it to the same Text name. Then I created a transport and moved it to the other DEV client for checking the transport, no changes have occured. Can you please help me. Is there any other way that I should be following to fix this issue.
    thanks.

    Please use Transaction code scc1 and copy the transport in the same environment. Incase you are doing this please make sure the transport request you have generated has the changes included in the request.
    Eg: Please go to the screen which you want to transport and add them into your transport request. you should some times see a tab saying include request. please select this though you have assigened this to a transport request and then save it and exit out the screen.
    The go back to se10 and chekc the unreleased transport requests and check the customizing node. double click it and see if the item you are trying to transport with chnages has been included or if the tranport customizing is just empty.

  • Two address for one company code

    Hi SAPians,
    I have a doubt in maintaining company address for Invoice output!
    Is it possible to maintain two Address for one company code?
    Like if XYZ company code and say it has has two customers AB and CD.
    Then if i want to maintain Company address on print layout for invoice Different to each. how can i achieve it.
    If yes, please through light on it.
    Regards,
    Romesh

    Hi ,
    As far i know it is not possible to have two different address for the same company code.As table can hold only single unique data.
    As far as the above answer is concerned, we use International version fo Customers not for Company Codes.
    Hope it helps.
    Thanks and Regards
    Rohit.

  • Internal Addresses  - BP Address for Org Unit representing a Company Code

    Dear All
    We are on SRM Server 5.5 and are experiencing an annoying issue. It might be standard, but I do not recall having the problem earlier on, at other customers.
    The internal address of BP ## representing a company code, automatically gets Name1 filled out with the Object Name in the Org structure (Typically Company name).
    This is ok, but what we see is that Name 2 is also filled out with this name. This gives us an issue when printing the PO in the backend system (classic scenario) as the  PO will have both Name1 and Name2 printed as delivery address.
    We have tried to change the address in BP, which works ok - until someone makes a change in the org structure, then the BP address is updated again!
    Can anyone enlighten me whether this is standard functionality or what? And if is there anyway of mitigating this behavior?
    Best Regards, and thanks in advance
    ;O)
    Maria

    Dear all,
    five years later, but we have currently the same problem as Maria described.
    In my company, we are filling the fields SHORT and STEXT of the structure P1000 (transaction PPOMA_BBP) with more or less technical names or terms.
    So far, that was working very well.
    But in the future, we need to use the fields NAME_ORG1 and NAME_ORG2 of the transparent table BUT000 as the first two fields of the delivery address.
    That leads to the situation that technical term/names are used in the delivery address, which is not realy beautiful.
    We cannot enter the correct delivery data into the fields SHORT and STEXT in the PPOMA_BBP, because the fields have not enough spaces.
    Do you have any ideas how we can solve this issue?
    Kind regards
    Ignatius

  • Email invoice to different addresses based on company code

    Running 4.7 and want to send invoice via email to different customer email addresses depending on the company code of the billing document.  Currently, configured to send invoice to bill-to party in header of billing doc.  Still using modified version of RVADIN01 & Sapscript.
    Has anyone done this?  Can I overide the email address in the abap and if so, how?

    Hi,
    you have to have call of FM OPEN_FORM in your modified version of RVADIN01. This FM has input parameter MAIL_RECIPIENT. So you just need to find correct spot where you can change value of this field to correct email address.
    Cheers

  • Shopping cart default delivery address based on company code

    Hi All,
    As a standard behaviour of SRM, currently delivery address in shopping cart is defaulted from attribute (ADDR_SHIPT). But in our case we use cross company purchasing where requisitioners buy for different company codes.
    Some times, they forgot to change the default dlivery address and shopping carts are getting created with wrong delivery address.
    Is there any way, the we can default the delivery address based on company code selected by the user instead of defaulting from user attribute?
    Suggestions would be greatly appreciated.
    Regards,
    Krish

    Hi Krish,
    Am looking for a same solution but instead of delivery address, we are looking for change in invoice recipient address
    ADDR_BILLT. For this i have identifed a FM: BBP_GET_BILL_TO_PARTY from which system pulls the defaulted attribute of user profile. Now we are in a change of pulling the attribute defaulted to the company code entered in SC rather than the user's defaulted ADDR_BILLT.
    Similarly i guess for your issue you can use the FM: BBP_GET_ORG_SHIPTO_ADDR implementing a enhancement in DOC CHANGE BADI
    Regards,
    Nihar

  • Error while entering address details in company code master data.

    Hi Experts,
    I am getting error while i am entering address details in company code master data that is while i am creating new company code.
    ERROR: message No. AM216
                  Incomplete Address : Enter Country.
    Here eventhough i am entering country as "IN" then still i am getting error.
    Thanx,

    Yes that is right what is mentioned above, first you give the company code and name then give the currency then select address (Shift+F5) and in that if you select country as IN then it will automatically come to master data.
    Edited by: venkata986 on Aug 31, 2010 12:31 PM

  • T.code for change company email address

    Hi experts,
    How can i change email address of billling invoices of XXXX company code.
    old: [email protected]
    new : [email protected]
    Any T.code for change email address of particular company code.
    Thanks in advance for answer.

    Hi,
    if I correctly understand your Q- a company code is your customer.
    In general data of the customer master record there is an option to enter the e mail address of the Customer.
    Regards
    A

  • Entry Channel setup for multiple company codes

    Hello,
    I have a question regarding the entry channel setup (for external requirements in the Plan-Driven Procurement scenario)
    In previous implementations, I 've created an entry channel below each company code (as the documentation says it should be). Now, for each entry channel, there was a EBP user assigned, which corresponded to an RFC entry in the backend system (I was connecting EBP to multiple backend systems)
    Now, what should I do in the following scenario?:
    1. SRM is only connected to one backend system
    2. There are 50 company codes
    Does that mean I have to create 50 users (for each channel) plus 50 RFC connections in the R/3 system (each with a different user in the backend system), pointing to the same SRM system?
    I was thinking of creating an Org iD in the SRM structure at the top (which would be the entry channel), assign only ONE user to it and then fill attribute BUK with all the company codes. However, I don't know if this will work, because the external requirement process might need the company code defined in the "Function" tab... =/
    Any help would be greatly appreciated.
    Regards,
    Gilberto.

    Hi Proyecto Genesis,
    I am also configuring the Entry channel (org unit) for multiple company codes.
    I tried your logic of defining the entry channel outside company code level. Assigned the BUK attribute and extended attribute for plants and storage locations.
    Also in my case the local Pur org and Pur group is defined outside the company code. Is it correct?
    However the system fails to transfer the external requisition to SRM.
    SLG1 displays following error message.
    "No address found for partner function type Ship-To Address"
    So if I move the Entry channel (org unit) under any one company code level then the external requisitions are transferred correctly to SRM.
    But then the issue is the requirements are not transferred with the backend Pur Org and Pur grp. Instead they are transferred to the Pur Org and Pur grp of the company code under which the entry channel is defined.
    Can you please share how do we need to define the entry channel, local pur org and pur grp for multiple company codes scenario, so that the ECC requisitions are transferred with the correct company code, pur org and pur grp to SRM?
    Or do we need to define Entry channel for each company code and RFC user actually mapping the same backend system?
    Please guide.
    Regards,
    Sandeep

  • New company code configuaration is added for the existing company

    Hi Guru's
    New Company Code is to configure for the existing company. Already we 20 company codes.
    Now Business users want new code for the country australia.
    Please let me know what are the steps to configure the new company code.
    I appreciate your help and coperation.
    Regards
    Jenny

    Hi jenneyc,
    1.1 Define and Assign Company Code     
    1.1.3 Assign Company Code to Controlling Area
    1.1.4 Create new plant     
    1.1.5 Define and Assign Sales Organization     
    1.1.5.1 Copy Sales Organization     
    1.1.5.2 Change name and address of Sales Organization
    1.1.5.3 Assign Sales Organization to Company Code
    1.1.5.4 Assign Sales Organization ‑ Distribution Channel ‑ to Plant
    1.1.6 Delete Purchasing Organization assignment to Company Code
    1.1.7 Define Variants for Open Posting Periods
    1.1.8 Open and Close Posting Periods
    1.1.9 Assign Posting Period Variants to Company Code
    1.1.10 Create Number Ranges for document posting for company code
    1.1.11 Asset Accounting - Specify Number Assignment Across Company Codes      
    1.1.12 Creation of House Bank and Bank accounts
    1.1.12.1 Define House Banks
    1.1.12.2 Define Lockboxes for House Banks     
    1.1.12.3 Define Posting Data
    1.1.12.4 Set Up Payment Methods per Company Code for Payment Transactions
    1.1.12.5 Set Up Bank Determination for Payment Transactions
    1.1.12.6 Create Check Lots
    1.1.12.7 Create Program Variants for RFFOUS_C     
    Along with above we need to do LSMW for GL a/c company code data have to upload, and foreign currency Configuration require...!
    I hope this info will helpful to you..!
    Rds,
    ANil

  • Vendor payment and customer recipts across company codes

    Hi all,
    We are having 4 company codes in US.The vendors and customers are spread across company codes.
    1st scenario:
    Vendor "abc" has a debit balance os 5000 in company code A. In company code B, the same vendor has credit balance of 10000.
    How can we net the balances in both compnay codes and pay the difference to the vendor. The client has separate house banks for each company code.
    2 nd scenario:
    A customer sends a check for 2500. which needs to be applied against company code A (500) and Company code B (2000)
    How does the payment and receipts needs to be applied across company codes. Kindly suggest.
    Regards,
    Amulya.
    Edited by: amulya chowdary on May 21, 2010 4:31 PM

    Hi,
    You need to configure cross company clearing thru OBYA.
    Your queries can be addressed either treating other company code as the vendor/customer or clearing to a inter company GL.
    Best Regards,
    Madhu

  • One customer / vendor used to share by two company codes

    Hi experts,
    is there any possibility to share same vendor or customer in two different company codes?
    my client have two company codes 8000 and 9000 and that two company codes sharing the same customer /vendor  XXXXX.
    now they want to post the two company codes transactions to one customer/vendor.
    means when we open the customer /vendor line items  we should able to see two comapny codes transactions of that customer/vendor.
    plz advice.
    Thnaq,
    sandhya.

    yes it is the same way the SAP suggests- provided address is same.
    SAP vendor / customer has got two segments -
    General data - which is common for all company codes and is at client level data and stored in table KNA1 (customer) and LFA1 (vendor)
    Co code data- which is specific to company code - create as many views for each co code which are specific to co code decisions and accounting - and is stored in KNB1 (customer) & LFB1 (Vendor)
    In the same way Sales organisation and Purchase Organisation also stored separately.
    For creating Co code data, enter existing customer/vendor code and type co code and it will allow u to create both data.
    Hope this is of help to u

Maybe you are looking for