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

Similar Messages

  • How to find company code using sales doc. No

    Hi,
         I need to print company code, how to find company code using sales doc no. I don't find it VBAK.
    Cheers
    Senthil

    Dear Senthil
    You can find in table VBAK itself - Field BUKRS_VF
    thanks
    G. Lakshmipathi

  • 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

  • How to get company code from Shipment

    Hi,
    I am working on a user exit on shipment (VT01N). I have shipment data. I have to get the value of KVERMfield from LFB1 table. There are multiple entries in LFB1 table with same Vendor with different company codes. How should i find the correct "Company Code" from shipment?
    Please help.
    Thanks,
    Mohammed Ibrahim

    Hello,
      in table VTTK  you have field "TransportPlanningPt" VTTK-TPLST. Get this value then enter in the customizing table TTDS, where the TransportPlanningP is assigned to the Company code.
    Hope to be useful.
    Best regards,
    Andrea

  • How to get Class Type form Material Number

    Hi All,
    Based on the Material Number I have to get the Class Type and Class Number.
    I tried with FM -- QMSP_MATERIAL_BATCH_CLASS_READ
    but it always shows   Class type = 023 
                            and   database table for object = MCH1 for any given material number.
    Please help me out.
    Thanks & Regards,
    Moni

    HI Moni,
    Please check these FM.
    CLAF_CLASSIFICATION_OF_OBJECTS
    CUD0_GET_VAL_FROM_INSTANCE
    CE_I_GET_CONFIGURATION
    VC_I_GET_CONFIGURATION
    VC_I_GET_CONFIGURATION_IBASE
    look for the characteristics and charactertic values in tables
    ALLOCVALUESNUM
    ALLOCVALUESCHAR
    ALLOCVALUESCURR
    if this is not working
    you can also get these information directly from the tables.
    KSSK - object class assignment
    and KSML - class characteristic assignment
    and for char values use table AUSP
    Thanks!

  • GTS How to get commodity code from material master ? function/ table

    Hello,
    I have to write a "simple" program in GTS system.    (In SD   Commodity code is field MARC-STAWN  )
    The customer wants to enter material numbers ( from x  to y )
    and the program should display:
    Material--Material text--Commodity codevalidity from--
    validity to
    4711--Maschine_A--12345678905.08.2006--
    31.12.2008
    124587444--01.01.2009--
    31.12.9999
    4712--Maschine_B--5656568901.12.2007--
    31.12.2009
    (The customer wants to have a look if all Commodity codes in GTS are maintained)
    Can someone give me the name of the tables where it is stored in GTS?
    Or are there any function calls to get material data?
    best regards and many thanks
    Norbert
    Edited by: Norbert Zanders on Jan 1, 2009 5:08 PM

    You have to consider the following tables:
    /SAPSLL/PNTPR --> product number and GUID
    /SAPSLL/PRCTS --> product GUID and GUID of commodity code
    /SAPSLL/CTSNUM or /SAPSLL/CTSNUMC--> commodity code (general or country specific)
    /SAPSLL/CTSNUMT --> commodity code description
    /SAPSLL/PRT --> material description

  • Cross-company code posting BAPI_ACC_DOCUMENT_POST number range

    When I use BAPI_ACC_DOCUMENT_POST for cross-company code - I put the first company code in the header and first line item and the second company code in the second line item.
    This posts - however there is a BIG problem with the document numbers it posts:
    1. It posts <b>both</b> company codes using the number range of the second company code.
    2. It updates NRIV for only the second company code.
    How do I get this to work properly and post with the correct number range for the first company code.

    Not sure if this applies to you or not - check Note OSS 419588 - Distributing cash discount base amounts in tax calculation.

  • How to setup a company code for material management

    Hi,
    While creating material in MM01, in sales org tab, when I gave plant XXXX, it is giving an error "Company code YYYY is not setup for material management".
    So can you help me , how to setup a company code for material management
    Help is appreciated
    thanks
    DIL

    Hello Sendil,
    You can maintain it with trns code OMSY or MMPI/MMPV.
    Hope this helps
    Regards
    Arif Mansuri

  • Is there any function module to get vc characteristics and its value using material number?

    Hi Experts,
    I am using BAPI_CLASS_GET_CHARACTERISTICS, BAPI_OBJCL_GETCLASSES to get characteristics description and its values.
    Is there any other Function module to pull this values using material number?
    Thanks in Advance.
    Ramkumar

    Have you tried this BAPI_OBJCL_GETDETAIL
    Import parameters
    MATNR value in the OBJECTKEY
    MARA in OBJECTTABLE
    Class name in CLASSNUM
    '001' in CLASSTYPE
    You will get the Class Characteristics data into these tables:
    ALLOCVALUESNUM
    ALLOCVALUESCHAR
    Jogeswara Rao K

  • Which table stores VAT number entered for a company code using T Code oby6?

    Hi
    Which table stores VAT number entered for a company code using T Code oby6?
    please advice.
    Thanks,
    Vaishnavi

    T001

  • How to get Listener Information using PL/SQL code

    How to get Listener Information using PL/SQL code

    user2075318 wrote:
    How to get Listener Information using PL/SQL codeThis approach (somewhat of a hack) can be used - but it does not really provide meaningful data at application layer.
    SQL> create or replace function TnsPing( ipAddress varchar2, port number default 1521 ) return varchar2 is
      2          type THexArray is table of varchar2(2);
      3          --// tnsping packet (should be 10g and 11g listener compatible)
      4          TNS_PING_PACKET constant THexArray := new THexArray(
      5                  '00', '57', '00', '00', '01', '00', '00', '00',
      6                  '01', '39', '01', '2C', '00', '00', '08', '00',
      7                  '7F', 'FF', '7F', '08', '00', '00', '01', '00',
      8                  '00', '1D', '00', '3A', '00', '00', '00', '00',
      9                  '00', '00', '00', '00', '00', '00', '00', '00',
    10                  '00', '00', '00', '00', '00', '00', '00', '00',
    11                  '00', '00', '00', '00', '00', '00', '00', '00',
    12                  '00', '00', '28', '43', '4F', '4E', '4E', '45',
    13                  '43', '54', '5F', '44', '41', '54', '41', '3D',
    14                  '28', '43', '4F', '4D', '4D', '41', '4E', '44',
    15                  '3D', '70', '69', '6E', '67', '29', '29'
    16          );
    17 
    18          socket  UTL_TCP.connection;
    19          txBytes number;
    20          rxBytes number;
    21          rawBuf  raw(1024);
    22          resp    varchar2(1024);
    23  begin
    24          socket := UTL_TCP.open_connection(
    25                          remote_host => ipAddress,
    26                          remote_port => port,
    27                          tx_timeout => 10
    28                  );
    29 
    30          --// convert hex array into a raw buffer
    31          for i in 1..TNS_PING_PACKET.Count loop
    32                  rawBuf := rawBuf || HexToRaw( TNS_PING_PACKET(i) );
    33          end loop;
    34 
    35          --// send packet
    36          txBytes := UTL_TCP.write_raw( socket, rawBuf, TNS_PING_PACKET.Count  );
    37 
    38          --// read response
    39          rxBytes := UTL_TCP.read_raw( socket, rawBuf, 1024 );
    40 
    41          UTL_TCP.close_connection( socket );
    42 
    43          --// convert response to varchar2
    44          resp := UTL_RAW.Cast_To_Varchar2( rawBuf );
    45 
    46          --// strip the header from the response and return the text only
    47          return( substr(resp,13) );
    48  end;
    49  /
    Function created.
    SQL>
    SQL> select tnsping( '10.251.93.30' ) as TNSPING from dual;
    TNSPING
    (DESCRIPTION=(TMP=)(VSNNUM=169869568)(ERR=0)(ALIAS=LISTENER))
    SQL> select tnsping( '10.251.95.69' ) as TNSPING from dual;
    TNSPING
    (DESCRIPTION=(TMP=)(VSNNUM=0)(ERR=0)(ALIAS=LISTENER))
    SQL>

  • Creation of New company code using EC01

    Hi
    While creating a new company code using EC01, I am getting several messages relating to Number ranges. All the message relate to number range object type 5 & 6. After all these messages, the final message says that 86 number ranges have not been copied. Can some one throw some light on this?
    Regards
    Ravi

    Hi,
    You can ignore these messages; if you use EC01 the system copies all possible tables that are registered as company-dependent. Some of these tables might be not in use at all.
    Regards,
    Eli

  • How to remove leading zero from Material Number

    Hello Everyone,
    I need to figure it out how to remove leading zero from material number. Cureently extractor is sending material number as 100663. But when comes into BI i am getting as "000000000000100663" and similariy in report it is appearing as "000000000000100663". Now my client wants me to exclude preceeding zero for a material in all the reports.
    Is there any setting in query desinger to handle this issure or in the backend.
    Need your inputs.
    Thanks,
    Lasya.

    Hi
    you can use the function Module
    CONVERSION_EXIT_ALPHA_OUTPUT in the start routine
    to test this go to SE37  --- give the CONVERSION_EXIT_ALPHA_OUTPUT -
    >display -
    > F8
    in the input give 000000456
    and execute
    the out put will be 456
    for getting Zeros you can use
    CONVERSION_EXIT_ALPHA_INPUT--- to remove leading zeros
    Santosh
    Edited by: Santhosh Nagaraj on Oct 29, 2009 10:52 PM
    Edited by: Santhosh Nagaraj on Oct 29, 2009 10:54 PM

  • How to upload company code data related to Company Code BP01?

    How to upload company code data related to Company Code BP01 FOR CIN?

    Hi,
    First check whether all the pre-requisites are completed.
    I'm assuming you have installed the Best Practices Baseline package (for country IN). If you have succeeded in actvating the buildig blocks (as per your scope) using Solution Builder, you would have populated all the company code data related to Co. code BP01. Looks like some steps are missing.
    Please refer to the OSS note 1408706 in this regard. From there, you also can refer to the "Quick Guide to Implementing the SAP Best Practices Baseline Package V1.604 (DE), which is self-explanatory. 
    Let me know if this helps.

  • How to display COMPANY CODE DESCRIPTION ON THE TOP LEFT OF PAGE

    How to display COMPANY CODE DESCRIPTION(Field BUTXT) ON THE TOP LEFT OF EVERY PAGE OF THE REPORT GENERATED.
       Actually I have collected BUTXT using
    'select butxt into table itab from t001 where bukrs = p_bukrs'
    where p_bukrs is the selection screen field.
    REQUIREMENT: Depending on what company code we give on the selection screen, corresponding company code description(butxt) should be displayed at the top left of every page. how would i display it in TOP-OF-PAGE EVENT.

    Hi
    It's very simple, but what is the need to use <b>into table itab</b> in your select query.
    Rather, define a variable
    data: v_butxt type t001-butxt.
    Select butxt into v_butxt from t001 where bukrs = pbukrs.
    TOP-OF-PAGE.
    write :/ v_butxt.
    Regards
    Surya.

Maybe you are looking for

  • How to keep the input field from PDF Form to RTF

    Hi, I'm looking to keep the input fields from my pdf form document to Rtf so I can use them in my Rtf document. Regards, Alan

  • How can i use the ipad in uruguay wifi

    i can,t use my ipad in uruguay i bougth unlock in apple store in wayne but i cant use it why?

  • App Store on my iPad 2 has stopped working,

    Hi Yesterday "Featured" and "Top Charts" in the App Store on my iPad 2 has stopped working just a blank screen, the rest are fine ???, ATB HiPad2

  • Need Adobe Reader help

    I can't find a reliable adobe reader pdf download. After spending hours screwing with bogus "free" downloads that put tons of cookies and unwanted programs on, I'm happy to buy something but am even having a hard time getting that done. Need help. Th

  • Cannot speed clips up without it ruining edit points

    Hi I am having real nightmares with Premiere. It just never seems to do even the most basic tasks properly. I am simply trying to create a benny hill style spoof. I have cut the sequence at NORMAL speed. Then I selected all video clips in the sequenc