How to derive Company Code and Vendor Number from CDHDR / CDPOS ?

Hi everyone,
This is my first post and my apologies if this is a wrong forum to ask this.
I'm creating an analytic that will track changes to the vendor master.  I know that I have to look into CDHDR and CDPOS tables and that CDHDR.OBJECTCLAS = KRED.
However, part of the requirements is to be able to filter the results by Company Code and Vendor Number as well.  How do I do this? How can I link CDHDR to LFA1/LFB1 to get the company code and vendor code?
Any information will be highly appreciated
Thanks!

I think you would have gotten answers sooner in the abap forum :P. Anyways the change pointer tables are kept in a different format, not in the normal flatly structured tables. What this means is that the data which comes through the pointer tables are somewhat encrypted. The object class and id present you records; Each change in master data (where the option is set) is recorded in these pointer tables.
I believe there is a function module for converting the data into a readable format; that data should have your company code/vendor number in it.  You cannot link the chdr and lfa tables directly- you will need to first convert the data from the pointer tables

Similar Messages

  • Company Code and Vendor Account

    Hi all,
    i have a simple question. we defined Vendor numbers as followed: external starting with 1 internal with 3. i.e. below:
    At time we have one vendor 107701 and a customer attached to it 100653 in 9100 company code. This vendor was an external.
    After some time the vendor has changed and now it bellongs to internal. with number 300035 in same comp.code.
    Now when we generate a Bank Statement throught F110 and import it, it assigns the imported ammount to 100653 customer.
    The question is :
    are there any assign problems, concerning comp.code and vendor number.
    or
    those old vendor and customer accounts must be blocked to loose the connection.
    as far as i understand the when you generate the F110 document it puts the vendor and comp.code data in it and thereafter import it to same place.
    Points as always for a helpful answer
    Laurynas Prickockis

    whenever  you change the linkage between teh customer and vendor,  you need to make sure that the balance in one of the account is Zero. Then delink the relation ship in Vendor and customer master data.
    After this again you create the link between teh customer and vendor.

  • How to process AT END OF command for company code and transaction number.

    Hi,
      I  have report with selection screen with company code and key date.  Based ON key date given I should calculate Accrued interest for all transaction with in each company code.
        When I run report with one company code it works fine. But when I run with multiple company codes the amounts are messed up.
    I am getting all company codes with transaction details in to ITAB1 like this below, and PERFORM get_processdata. has my calculation for interest rate.
      SORT itab1 BY company_code  transaction.
      LOOP AT itab1 INTO wa_tab1.
        itab2 = wa_tab1.
        APPEND itab2.
        AT END OF transaction.
           PERFORM get_processdata.
        ENDAT.
      ENDLOOP.
    Thank you.

    Hello,
    You need to use AT New event to clear your total variables.
    AT New - this will go for first time also but we want to clear variables from second time. it requires flag to stop going it first time
    Pseudo code:
    clear: flag.
    Loop at itab1 to itab2.
    At New.
    if flag eq c_x.
    clear: <total variables>, intenal tables.
    move c_x to flag.
    endif.
    tab2 = wa_tab1.
    APPEND itab2.
    AT END OF transaction.
    PERFORM get_processdata.
    ENDAT.
    ENDLOOP.

  • How to get company code using material number

    Dear all,
              I have material number & plant on selection screen, but how do I get the company code details using MARA-MATNR ?

    HI,
    You can use a cmobination of T001K and MARC Table.
    T001K table is assignment of Plants to a company code and MARC is a table with combination of Material and Plant.
    Regds,
    Anil
    Edited by: Anil Katoch on Jul 23, 2009 6:24 AM

  • How to find company code and its org unit?

    Hi All,
    For a given company code, i need to find its org unit. Please let me know the info type table or any FM.
    Thanks,
    SKJ

    Hi Ravi,
    Yes, i just came to know about that. I clicked on account assignment features button in PPOS_OLD and specified pers area, pers sub area and company code and found that an entry was created in HRP1008 for the company code with org unit.
    Thank you very much.
    SKJ

  • Position to inherit company code and cost centre from Org Unit

    Hi Team,
    I have entered the company code and controlling area in my root Org. Unit.  All the sub-ordinate org units that I've created have inherited this company code and controlling area, however none of the positions I've created have inherited them.  What do I have to do to get my positions to inherit this information from their org unit.
    Regards,
    Jeanette

    Hi,
    Check table T7SS0, there are three switches
    PPOM     INHIC     X     'X': PPOM: Obligatory Inheritance of Company Code
    PPOM      INHIH     X     'X': PPOM: Obligatory Inheritance of Contr. Area
    PPOM     INHS     X     Inheritance of acc. ***. features by positions
    So just check these switches that they are set in this table, and I hope your problem should resolve
    Regards,
    guds

  • How to get Storage unit and Warehouse number from Handling Unit.

    hello all,
    I have Handling unit and Material in my program as an input, using these two fields i have to get corresponding storage unit and ware house number, to pick up transfer order.
    Can anybody explain me who can we get Storage Unit and Warehouse Number from Handling Unit.
    I know we can pull transfer order from table LTAK & LTAP using warehouse number.
    But i dont understand how to get warehouse number from handling unit.
    There is table LSUTO which has warehouse and Handling unit relation, but in our system there is not data maintained in that table. So, i was just wondering how can i get warehouse number from the given handling unit number.
    please guide me
    thanks
    Edited by: Mr A on May 12, 2008 1:23 AM

    Hi ,
        Check out the handling unit item table VEPO. You got storage location(LGORT) in it.
    Reward points if it was useful.
    Regards,
    Abhishek

  • How to change company code in vendor master data?

    Hi everyone,
        I  have a problem, a vendor master data was created without assign a company code,how to assign a company code for the vendor after the recode was saved?
    Thank you.

    You can do this again with FD01 or XD01.
    Fill-in the vendor number you created and the company code where you want to create it for.
    Paul

  • Derive 'company code' and 'currency'??

    Hi there,
    I have <b>company cody, chart of account, and currency</b> in my planning level. <b>How can I derive 'chart of account' & 'currency' from 'company code'</b> if I don't like to 'manually' enter 'chart of account' and 'currency' everytime when I enter planning data?
    I know that I can use '<b>exit</b>' to do that. Can someone let me know how to use 'exit' to make it work???
    Thank you.
    J.

    Hi John,
    You don't have to use any exits for your requirement.
    Since <b>Chart of Account (0CHRT_ACCT)</b> and <b>Currency (0CURRENCY)</b> are attributes of the Characteristics <b>Company Code (0COMP_CODE)</b>, it would suffice you to apply the derivation of type "<i>Attribute</i>", provided the master data of the characteristic Company Code is properly maintained.
    But, <i>you would take out the characteristics 0CHRT_ACCT and 0CURRENCY out of your planning level, where you want to  automatize the derviation</i> (where you have your planning layout). <i>This is the requirement of characteristics derivation</i>.
    <b>The characteristic from which another characteristic has to be derived <u>must be taken in</u> the planning level and the derived one <u>would stay out</u> from the planning level.</b>
    <b>You would proceed as follows:</b>
    1) Go to change Planning area
    2) Select the tab "Characteristic Relations"
    3) Choose "type" as Attribute, and use the push button "Detail view"
    3) Select there, "derviation, combination check and combination proposal".
    4) Choose the baisc Cha. as Company code (0COMP_CODE) and Attribute as Chart of account (0CHRT_ACCT).
    5) Go back to previous screen (Characteristic relations)
    6) Use the next line and repeat the steps 1-5.
    7) Here you would choose the baisc Cha. as Company code (0COMP_CODE) and Attribute as Currency (0CURRENCY).
    8) Save the settings.
    9) Regenerate your planning layout settings.
    And thats it!
    Many Regards!

  • How to insert company logo and page number on every page except the first page?

    Hi, I am creating a newspaper and I've inserted the page number and company name on every page using the master page (you know the basic method).
    Problem is I don't want the page number or the logo to appear on the first page, how can I do this?
    Or will I have to copy and paste it on each page instead...? I'd rather not.
    I'd appreciate any help I can get.
    P.S. I'm using CS5 and obviously I'm talking about InDesign.

    Make another master and apply it to the first page.
    Take care, Mike

  • How can i retrive nid and sid number from the phone??

    I am trying to find the nis and sid from the iphone can someone advise how it can be done?

    iTunes will only store a back up of the iPhone and you find this by following the steps below:
    Windows
    Edit>Preferences>Devices
    Mac
    iTunes>Preferences>Devices
    The link below can show you what is stored in an iTunes back up:
    iTunes: About iOS backups

  • FV60 - validate duplicate invoices by reference and vendor number

    Hi,
    How to configure the system to validate duplicated invoice by REFERENCE AND VENDOR NUMBER irrespective of dates? This validation need in FV60.

    Hi Paul,
    if you want a duplicate invoice check from the FI side, then you may have to activate BTE 1110 by creating your own Z function module (by copying FM SAMPLE_PROCESS_00001110).
    In  FI,when checking for duplicated invoices, the system compares the following : Vendor, currency, company code, gross amount of the invoice,reference document number and Invoice document date.
    Also refer to SAP Note 305201. It clarifies this in more details.The following fields must be identical for Duplicate invoice check
    Company code (BUKRS)
    Vendor number (LIFNR)
    Currency (WAERS)
    Reference number (XBLNR)
    Amount in document currency (WRBTR)
    Document date (BLDAT)
    If the document is having any one of the above filed different then the system does not consider it as a duplicate invoice.
    In OB41, also check whether the Posting Key is defined as Sales-related. You have to flag this field if the duplicate invoice check is to work.
    Regards,
    SAPFICO

  • Deriving 'company code' &'currency' with function module ????????

    Hi all,
    I created a function module to derive 'company code' and 'currency'and use a user EXIT variable for the CURRENCY. And it works.
    My issue is : <b>is there any solution that I can avoid to enter CURRENCY (system will pop up a screen and ask for it) when I enter planning data?????</b> I think that this is because CURRENCY (in the selection)is a dependence with my KF-amount. However, I still want to try if I can make it not show up. Thank you.
    J.

    John,
    Try putting the currency in the header of the layout and then hide it in the header characteristics screen.
    Thanks and regards.
    Rajendra Tewani

  • Steps to define company code and its dependent entries for mm,pm

    Hi Experts,
    kindly share that how to define company code and its dependent assignments for PM & MM module

    Dear Hitendra
    Company code, Contolling area, Profit Center are Financials related fields and are mapped under FI Enterprise structure as its Org unit. Plant (Logistics Plant) is defined in MM. Related modules like PP, PM, SD extend this logistics plant in their repsective modules as Production Planning Plant, Production Plant, Maintenance Planning Plant, Maintenance Plant, Sales Plant etc.
    Company code is never defined in any logistics moudle , its in Financials where it is defined. It is then assigned to the Plant in logistics thru which the company code gets populated easily in respective modules.In contolling end, its controlling area that talks.
    IMG-->SAP Customizing Implementation Guide->Enterprise Structure-->Definition-->Financial Accounting-->Edit, Copy, Delete, Check Company Code
    This is a very broad upper level details for your query. Please search the SCN in relevant spaces for more information.
    Award points if the above explanation was useful...
    KR
    Murad Ahmed.

  • To get the company code and country grouping attached to a position

    Hi everyone,
    I have a position and I need to get the company code and the country grouping that this position is attached to. Could you kindly suggest an FM or a class which would fetch the above data keeping in mind the inheritance tree. That is, if the company code is not maintained in HRP1008, then it should look for the same in the Org Unit that this position belongs to and so on..
    Any help will be greatly appreciated.
    Regards,
    Alpana.

    Hi
    Check the A011 relationship of the position and get the cost center, from cost center you can get the company code and country grouping from Cost Center Master CSKS.
    ~~~Ganesh Kumar K.

Maybe you are looking for

  • No video on explorer 11

    I have video on firefox but choose to use explorer as my default.   I can't get the video track to work, I can hear the sound track but thats all. What am I doing wrong? I have used the self help to manage add-ons. That didn't fix my problem either. 

  • Report needed to identify shipments having volume less than 1cbm in a month

    Hi, I need to know which tcode we can use to get a report showing the total shipments in a month having volume of each less than 1 cbm. Thanks & Regards, Ameya Khanwalkar.

  • From date and to date in report

    Hello, I am working in Objective Setting and Assessments , I am using Infoset 0PAH_IS01, I have added 0PAH_DS01 in that. In Reports I have created Variable for VALID FROM DATE and VALID TO DATE (BEGDA &ENDDA) form appraisal Document ID In that select

  • How to find changes through transport request

    Hi all, I want to know whcih table and has been changed for that perticular transport request. Regards, Ramprasad

  • Website needs Microsoft Data Access - Active X Data Objects

    I have a number of websites for work that are seem to be built around Internet Explorer. When I try to open them on my Mac at home with Safari, I get message that I pasted below. I'm thinking this might be related to the fact that when I open them on