Sales Org Table

Hi,
I've a requirement to create an ABAP report to determine Address Details (PO Office, Region etc.) of an Employee assigned under a particular node in Sales Org.
Could anyone suggest me how can I extract this information? Any FM, BAPI or Table etc. which I can use?
Regards,
Vikrant.

CALL FUNCTION 'RH_STRUC_GET'
    EXPORTING
      act_otype       = 'S'            "For Position IDs in Org unit
      act_objid       = objid          "Position ID number
      act_wegid       = 'DISPO_BP' 
    TABLES
      result_tab      = i_result_tab
    EXCEPTIONS
      no_plvar_found  = 1
      no_entry_found  = 2
      OTHERS          = 3.
  IF sy-subrc = 0.
    LOOP AT i_result_tab where otype = 'BP'.
        bpartner = i_result_tab-objid.
        CALL FUNCTION 'BAPI_BUPA_ADDRESS_GETDETAIL'
          EXPORTING
            businesspartner = bpartner
          TABLES
            bapiadsmtp      = i_bapiadsmtp.
        READ TABLE i_bapiadsmtp INDEX 1.
        email_tab-email_id = i_bapiadsmtp-e_mail.
        APPEND email_tab.
        CLEAR i_bapiadsmtp.
    ENDLOOP.
  ENDIF.
Regards,
Amit

Similar Messages

  • Sales Org Tables

    Hello,
    I've created a new Sales Org. in Dev machine. It's number is O XXXXXXXXX in Dev. Now i've passed the customization to Quality, where it is going to have a different number. Wich tables do i have to update or mantain, with the new Sales Org. number?
    Thanks

    Hello Srini,
    I've transported the Sales Org., but i had to maintain manually at least two tables, that are not updated automaticly.
    One was: Img:Customer Relationship Management -> Basic Functions -> Pricing -> Pricing in the Business Transaction -> Determine Pricing Procedures where i have to manually enter the new Sales Org.
    I was wandering if there are more that need manual adjustments.
    Thanks

  • Need to know the table for sales org and sales area of role Sold-to  in CRM

    Dear Sir,
    Our server is CRM 5.0, I would like to download the data from CRM , however, I would like to know the table name which keep the sales org and sales area of role Sold-to  in T-code : BP . However, we can't find the actualty table.
    Please kindly advise.
    Thank you
    Lek

    Hi Vimol,
    You can get Org details in various tables like Sales Org, Division, Distribution Channel in following tables with help of PARTNER_GUID.
    Sales :
    CRMM_BUT_LNK0010
    CRMM_BUT_LNK0011
    Shipping:
    CRMM_BUT_LNK0020
    CRMM_BUT_LNK0021
    Billing :
    CRMM_BUT_LNK0030
    CRMM_BUT_LNK0031
    Organization :
    CRMM_BUT_LNK0140
    CRMM_BUT_LNK0141
    I think, for you Organization related table CRMM_BUT_LNK0141 would be useful.
    From this table you will get Sales Org, Division, Distribution Channel.
    And in order to get Sales Office of BP, you will get it from table CRMM_BUT_SET0140 where you can put set_guid fetched from CRMM_BUT_LNK0141
    Hope this helps....Please reward points if useful.
    Regards,
    Shailesh Jadhav

  • Which table contain the sales org/distribution channel details for an PO

    Hi Experts,
    Do you know from which table could i get the sales org/distribution channel details for an Purchase order.
    The Purchase order is an UB document type. STO
    Then there will be delivery order created for this STO.
    I heard there are 2 kinds of Sales org/distribution channel in one Purchase order? One is Vendor, another is local...?Is this correct understanding?
    Please let me know which table field could i find those info from an Purchase order document?
    Or the questions could be:
    Assumed we have replenishment delivery#, then how to get corresponding Purchase order#(UB, STO), and further how to get the sales org info?
    Please kindly advise from table fields points of view...
    How to get the PFrom an replenishment delivery#
    Thanks.

    Dear Hoo Laa,
    You may find the Sales Organisation/Distribution Channel details in PO itself (Shipping Tab). Table where you can get Sales Organisation/Disribution Channel is EKPV.
    Regards
    Samier Danish

  • Table to link Sales Org , mat, Plant, storagr loc,distribution channel

    Hi Frnds,
        Can any one suggest table which is having all the fields Sales Org , mat, Plant, storagr loc,distribution channel.
    thanks,
    Y.Ravi Kumar

    Hi,
      Check these tables  
             vbak,                              "Sales Document: Header Data
             tfacs,                             "Factory calendar (display)
             vbpa,                              "Sales Document: Partner
             lips,                              "SD doc: Delivery: Item data
             mkpf,                              "Header: Material Document
             mseg,                              "Document Segment: Material
             konv.                              "Conditions (Trans Data)
    Regards,
    Prashant

  • Table for sales org and plant assignment

    Dear Experts
    I want to have the table name where a particular sales org is assigned to a plant.i have seen T001W and TVKO but its not there.
    Kindly help out.
    Thanks
    Sanjeev

    Hi,
    please find the correct table name is :V_TVKWZ_ASSIGN
    note:whenever you want to see the table name and Feild name , go to the the particular path or configuration -cliclk F1-TECHNICAL INFORMATION.
    please let me know ,if it helps
    Thanks,
    Rajendraprasad vasam

  • CRM security - is look up table possible for Sales org value

    I have a requirement in CRM role where the sales organization value has to taken from a table. Since this value is different between development, Quality and production.
    Please advice if I can set the field to all the three values or is there way make the field value in role point to a table where the sales organization value will be maintained.

    Hi ,
    Did you mean to say you will have one sales org value in DEV?
    another in Quality? third variation in Production?
    If this is the case , its not a good practice
    Answer:
    If you have tried all standard options and still insist that table is the method you want to follow:
    creating a custom authority object, custom field name  with the option to have one of the three values from the table under the field name is possible (ABAP DEVELOPER should work with you on this ).
    Regards

  • How to extend Sales org for a material being Changed

    Hi Experts,
    i need to extend sales org , distribution Channel for a material .
    my table look like this and having 6 fields shown below
      1             2         3               4            5                     6
    Sales org | Des | Distn Chnl | desc |  Copy from So | Copy from Dstn Chnl
    If the user enters the existing value in Copy From SO and Copy Fron Distn Chnl  .  Then i need to copy all the values corresponding to the Existing SO and Distrn Chnl to the Newly entered Sales Org . 
    the table im displaying in ALV , if user perss F4 in copy From SO and Copy From Distn  , i need to show the existing values for the material being changed , this is working fine and i am able to get the existing values.
    After user selects one of the existing value for SO and Distrn channel  , i need to copy all the values to newly created So and distrn Chnl  .
    i dont know how to proceed . Please help me to solve this problem.
    Thanks,
    Shrikanth

    You can use AET to extend the sales area data of BP.  However, it wont add the fields automatically in GUI, But the generated fields are available in the relevant DB tables.
    BP GUI transaction is no more supported . Im not sure why you want to work on GUI.
    Regards,
    Shaik

  • Free Goods determination -acess sequence sales org/ plant/material

    Hi
    I am trying to determine the free goods by choosing the key combination as Sales org/plant/material.
    The system is not determineing the free qty ,instead when i maintain the condition record with customer/Material key combination ,then the system is determineing the free qty.
    I also tried to put acess Sequence Sales org/plant/material above the Acess sequence customer/Material,but still the system not detrmineing the free qty in the order.
    can any one pl gide me how to solve this issue.
    regards
    shashi

    Hi
    Go to the access sequence where Sales org/Plant/Material are maintained as condition table.
    Now select the condition table and then click the node "Fields" on the left hand side of the screen.
    It may give a warning message that "Fields are not yet generated". Just ignore this and Enter once again.
    Do this until it takes you to a screen where you can see fields like KOMK-VKORG, KOMK-WERKS and KOMP-MATNR
    Now create the condition records and check in transaction by creating sales order. It shoudl work.
    Hope this helps.
    You can reward if it helps you

  • Sales org 2 view in material master

    hi gurus,
    Iam not able to see all fields in sales org 2 view in material master and i would like to know how to configure to restrict end users not to change it . thank you in advance.
    regards,
    Gopio

    Hi naga gopathi
    go to Spro->logistics general ->materials management->  there you select the options of material feilds and select the material type and click on till you reach the sales orgn 2  view , .
    In MMR settigs you can see table  wise so i think it should me MARA table. for sales orgn 2 view
    There you check the feilds wat you want is in display or supress mode 
    Regards
    Srinath

  • No local currency found for plant and sales org.

    Hi Guru's,
    I am face to a problem that i don't understand.
    I load the standard master data 0PLANT and i have the basic issues : No local currency found for plant and sales org.
    I already saw this error so i check the basics to solve it.
    I respect the comp_code, sales_org and than plant sequence.
    i checkek the routines, no problem.
    for some plants it works. i extract 8 plants 2 works the rest not. the reason is that there is no sales org affected in my PSA table for those plants.
    But (and this is the problem) when i check the SAP source table T001W i can see that plants are corectly affecte to sales organization
    So do you have any idea of my problem ?
    do you know the transaction on ECC to maintain division and sales org affectation
    Thannks
    Cyril

    Hi,
    Pls have a look at this similar post:
    [No Local Currency found in Plant |How can I view the code for a routine in an update rule;
    Hope it helps...
    Regards,
    Ashish

  • Creating Custom fields which are sales org dependent in Accounts Master

    Hello Experts,
    I want to create new custom fields in Accounts Master for sales and shipping.The component being used is BP_SALES.However when I try to create custom fields through AET, the new fields are added in the BUILHEADER context node.The problem with this is, its making the fields Sales Org independent.
    I want to add the fields which are sales org dependent( i.e. want to add the fields for the context nodes BUILSHIPPINGTERMS and BUILSALESARRANGEMENT).
    Please help me in this regards,
    Thanks and Regards,
    Rahim
    Edited by: Abdul Rahim on Dec 27, 2010 9:55 AM

    Hi Rahim,
    in general extension fields for Business Partner are only supported for the header fields (Table BUT000). Therefore the AET does not offer this.
    Table extension for BP sales data is supported by the AET beginning from CRM 7.0 eHP1. If you have this you can just create a 1:1 table enhancements and should be happy. If not I'm afraid that you would have to implement this manually.
    Using the Easy Enhancement Workbench (EEW) it would only be possible to create table extensions for the header and for relation ship but not for sales data.
    Regards Matthias

  • Determination of country based on Sales Org

    Hi Friends,
    I have sales Organization , I need to determine the country (Land1 field )
    , which table I need to check to that,
    Is there any direct relationship to get this or please provide the path forward to get this.
    Cheers
    Prashant

    parameters : p_vkorg like tvko-vkorg.
    data : v_vkorg like vbak-vkorg.
    data:  v_bukrs like ekpo-bukrs.
    data:  v_land1 like kna1-land1.
           select single vkorg bukrs into (v_vkorg , v_bukrs)
                   from tvko where
                        vkorg = p_vkorg.
                        if sy-subrc eq 0.
                        write:/ v_vkorg, v_bukrs.
                        else.
                        write:/ 'Invalid sales org'.
                        endif.
           select single land1 into v_land1 from t001 where bukrs = v_bukrs.
           write:/ 'Country', v_land1.
    check this ..
    regards,
    vijay.

  • Sales org roll out doubt

    Dear Peers,
    My scenario:  CRM roll out for DE.
    first CRM was implmented in US and the rollout is for DE. In R3 customer no:10 has assigned to 4 diff sales org included US and DE. Now i started the Initial load for the DE customers from R3 to CRM and the error i got is SYSFAIL and the detail is "Customer 10 is already assigned to a Business partner" and BUPA_MW_EXCHANGE103.
    in filter settings R3AC1 i am maintinaing KNVV and KNVP tables.
    my question is if do initial load for roll out , only aditional information i.e. Sales org details can be updated for the already existing customer in CRM?
    i.e.in my scenario the customer 10 is already in CRM now only the DE sales org has to update for the customer 10. in future if we go for rollout of another country that sales org details has to be updated to the existing CRM customer will it be possible?
    Thanks,
    K
    Edited by: kesava9 on Dec 13, 2010 2:52 PM

    Hi,
    Normally we only do Initial download once when we set up the system for the first time. after that all changes should be downloaded automatically needless of the sales org.
    Now I would recommend to do a request download instead of an initial download, since updates for that customer will be updated automatically for each rollout scenario if the customer is already there. if the customer is not there it would create a customer and updates the sales org details as well.
    Don't know if i answer your question correctly.
    Hopeit helps.
    Regards
    Sidd

  • BAPI to get customers filtered by sales org and distribution channel

    Hi there,
    I'm writing a little portal web-app on an MS platform to allow externals to place orders directly.  I have a problem that I need to get a list of customers (for ship-to) that is filtered by the same sales org and dist chan as my sold-to company and BAPI_CUSTOMER_GETLIST doesn't return this info for filtering.  What options do I have?
    Many thanks,
    Ashley

    Hello,
    Create custom RFC function module.
    Use table KNVV to get your customer list based on sales org. & distribution channel.
    Regards,
    Sameer

Maybe you are looking for

  • From Final Cut Pro to Final Cut Express

    I shot something in HD on a P2 card and captured it into a computer with Final Cut Pro. I want to edit it on my laptop at home, on which I have Final Cut Express. If I export the FCP file and make it a quicktime file to use on my FCE, will the video

  • Disk Utility: Creating a new blank image receiving "file too large" error.

    Hello All! I'm trying to create a 10GB non-encrypted, non-compressed RW blank image via the disk utility. The DU runs for a few minutes then barfs out "file too large" error. I have over 30GB free on my HDD. I tried with a smaller size of 6GB to no a

  • For Migration: Staffing of existing Roles with Distribution

    Hi, As a part of Migration, we are trying to use a Report for Uploading Staffing data. The roles are having Distribution. We are trying to use BUS2177staffingadd BAPI which works only if Start and End dates are same as that of Role. We are planning t

  • Folder links not displaying

    Hello everyone, We have EP SP9 and if I navigate to Content Management -> Explorer -> Documents. I do not see the folder names as a hyper link - only the little black triangle and check box icons appear. If I place the cursor at an icon I get the hel

  • No password field (FileVault 2 pre-boot screen)

    I'm unable to enable FileVault 2. Whenever it reboots to start encrypting, the pre-boot screen that comes up has no password field, and when I press "alt" then the area below my account picture becomes blurry. Pictures attached. Can somebody help ple