ABAP Contract and contract type fields

Hi gurus,
my customer would like to see the contract nr. and the contract type populated in PO and possibly RFQ.
What fields (and tables) can I use, any clues or suggestions?
Thx
RM

Hi,
Contract number is sotred in the table EKKO with the filed EBELN .
contract type is EBTYP = "K' ( for contracts...)
select EBELN
         FROM EKKO,
         WHERE EBTYP = 'K'  " contracts
hope it helps you.
Thanks!

Similar Messages

  • Function mudule to remove leading zeros of curreny and decimal type field

    Hi Expers,
    can any body suggest me the function mudule to remove leading zeros of curreny and decimal type  fields.
    plz do reply as early as possible.
    Thanks .....
    sunil.

    Hi,
    Use this FM CNIF_CONVERT_CURRENCY2EXT
    Import parameters               Value
    I_CURRENCY                      USD
    I_AMOUNT                        00000001233
    I_DECIMALS                      2
    Export parameters               Value
    E_AMOUNT                                           1.233,0000
    Regards
    Shiva

  • Contracts and condition type

    hi,
    would anyone know what the link is between contract number and condition type?
    thanks a lot.

    hi
    good
    contract number->
    http://help.sap.com/saphelp_srm30/helpdata/en/75/c65d3a0eb60365e10000000a11402f/content.htm
    CONDITION TYPE->
    V/05 - Condition Table for V/07
    e.g. a business may no longer wants to have a sales discount based on the sales organization, customer group, and material, but decided that the discount should be based on the sales organization, customer group and material group.
    V/06 - Create new condition types by copying a similar conditions type and changing it according to your needs.
    Double click on the condition type to change the control options
    V/07 - Access Sequences for condition type
    V/08 - Pricing Procedures for condition types.
    The pricing procedure is also used in the account determination.  This determines the general ledger accounts to which prices, discounts and taxes must be posted.
    Click on the Pricing Procedures e.g.  PR0000 - Condition Supplements for PR00
    Click Control - e.g. Tick Mdt if you want the condition type to be mandatory
    OV34 - Define account key
    OV35 - Assign account key
    Actky - Revenue account
    Accrls - Accruals account
    OVKK - Determine which Pricing Procedures to use for which Condition Type.
    THANKS
    MRUTYUN^

  • Using SRM for very large contracts and contract management

    We are doing an SRM 7.01 implementation project. SRM will be used primarily for outsourced contract management. The contracts are all services associated with facilitites (plant) maintenance and also support services like cleaning or catering.
    They have very large numbers of items priced individually (e.g. 10,000) per contract. The items price depends on the location the work is expected to be performed. The location is represented in SAP RE-FX architectual object. The price can be priced at any level of the hierarchy e.g. service A is priced the same across the whole state but service B is priced per campus.
    q1. SAP advises that there are performance limitations on SRM contracts >2000 lines. Has anyone experience in a solution to provide very large contracts in SRM? How did you do it please?
    q2. SAP advises to use the plant to represent the location for pricing purposes, but this would result in a very large number of plants. Has any one experience in alternative solutions to for variable location pricing in SRM contracts please? I.e. like integrating the RE-FX architectural object or similar into contract and PO line items.
    thanks very much

    Hi Prakash,
    SRM does provide the facility of contract management with the help of Purchase Contracts and Global Outline Agreements but it is used as part of the sourcing for materials and services. The materials or services have contracts against some given target value against which PO is released. The contract is based on a material number ( eithe material or a service) which will be used as a source of supply during the creation of the Shopping Cart. It might not really fit in the scenario of carrier and freight forwarders but still can be customized for this kind of use.
    The contract management functionalities in the R/3 space can also be looked on for this purpose.
    Reg
    Sachin

  • Parsing the data from and xml type field

    Hi - I have registered a schema and inserted arecord into the table with the xml type column. Now I want to parse the data from the xmltype field into a relational table. I have been using the following select statement to accomplish this - and it does work if there is data in all the selected fields but when the filed is null then the whole select statement fails and brings back 'no rows returned'.If the value is null I want the select statment to return null. please give any ideas.
    SELECT version,frmd_transaction_date,extractValue(value(b), 'event_update/location')"location",
    extractValue(value(b), 'event_update/sending_system')"sending_system",
    extractValue(value(b), 'event_update/event_identifier')"event_identifier",
    extractValue(value(b), 'event_update/event_link')"event_link",
    extractValue(value(b), 'event_update/organization_code')"organization_code",
    nvl(extractValue(value(c), '/schedule/event_duration_minutes'),'000')"event_minutes"
    FROM fraamed_user.frmd_event_update , TABLE(xmlsequence(extract(xml_event_update, '/event_update')))b,
    TABLE(xmlsequence(extract(xml_event_update, '/event_update/schedule')))c

    ...then I guess you have to rewrite the query.
    Is schedule another xml sequence inside of event_update sequence ?
    If it is not you can try this :
    SELECT version,frmd_transaction_date,extractValue(value(b), '/event_update/location/text()')"location",
    extractValue(value(b), '/event_update/sending_system/text()')"sending_system",
    extractValue(value(b), '/event_update/event_identifier/text()')"event_identifier",
    extractValue(value(b), '/event_update/event_link/text()')"event_link",
    extractValue(value(b), '/event_update/organization_code/text()')"organization_code",
    extractValue(value(b), '/event_update/schedule/event_duration_minutes/text()')"event_minutes"
    FROM fraamed_user.frmd_event_update , TABLE(xmlsequence(extract(xml_event_update, '/event_update')))b
    ...if yes, did you try nvl function (I don't think this would be a solution of a problem):
    SELECT version,frmd_transaction_date,nvl(extractValue(value(b), '/event_update/location/text()')"location", 'NULL VALUE'),
    nvl(extractValue(value(b), '/event_update/sending_system/text()')"sending_system",'NULL VALUE'),
    nvl(extractValue(value(b), '/event_update/event_identifier/text()')"event_identifier",'NULL VALUE'),
    nvl(extractValue(value(b), '/event_update/event_link/text()')"event_link",'NULL VALUE'),
    nvl(extractValue(value(b), '/event_update/organization_code/text()')"organization_code",'NULL VALUE'),
    nvl(extractValue(value(c), '/schedule/event_duration_minutes/text()')"event_minutes",'NULL VALUE')
    FROM fraamed_user.frmd_event_update , TABLE(xmlsequence(extract(xml_event_update, '/event_update')))b,
    TABLE(xmlsequence(extract(xml_event_update, '/event_update/schedule')))c
    If none of this works post your xml schema.

  • Abap Objects and table type

    Hi,
    The following is a public attribute in the class CL_MEREP_SYNCBO_META
    data FIELD_GROUPS type MEREP_TSYNCBO_FIELD_GROUP read-only .
    MEREP_TSYNCBO_FIELD_GROUP  is a table type having ref type CL_MEREP_SYNCBO_FIELD_GROUP (which is a class)
    What is the meaning of such table type?
    Regards,
    Ravi

    Hi Ravi,
    It simply means that any data object that is declared using this table type will be able to hold the objects (actually object-references) of that class.
    You can think of it as an array of pointers (to objects).
    Regards,
    Anand Mandalika.

  • Abap MDM API - get table fields and types

    Hi gurus,
    dealing with a simple task for my development... I need to retrieve, for a given MDM table name, a list of field's names with their data types in Value_pair format.
    Basically, this is what RETRIEVE method does; but:
    - I don't need any value; I just need to know which fields build up the table (in order to create entries for that)... Let's say that I'm interested in the CODE and the TYPE  fields of an MDM_NAME_VALUE_PAIR structure describing each field of my MDM table.
    - I can't workaround extracting a certain index (say, the first) from the table using a RETRIEVE, as the target table could also be empty.
    How to do that?
    Thanks in advance

    Hello Binori,
    Thanks a lot for the immediate reply!
    I have connected MS SQL server mgmt studio to MAP tool, as you have already mentioned!
    How do I get access to MAP's db, since I need data from MAP's db in our application db, and our application is purely java based.
    For ex: I need data of all Operating Systems, Performance metrics, Server name, Hardware Configurations etc.
    Thanks in advance,
    Sheetal 

  • BP and Contract based on MR Reason

    Hi All,
       I need to find out Business partner and contract based on MR reason for specific instalation(anlage) and document number (ablbelnr).Please let me know if there is any FM which provide the same data or any other way to figure it out.
    Thanks,
    Ruchi

    using three tables you can fetch this data ( I m not sure abt FM)
    1. table EABLG -> input - MR reason for specific instalation(anlage) and document number (ablbelnr)
                                  output- take shedule meter reading date date... adatsoll (to identify the correct contract
    2. table EVER -> input - installation where movein date <= adatsoll <= move out date
                               output -  contract and contract account
    3. table FKKVKP-> input - contract account
                                  output - BP
    Regards,
    Sanjoy

  • How to get internal order and activity type other than from BSEG

    We want the Internal order and activity type fields. From BSEG, it is taking a long time, and it hangs.
    Is there any other table we can get these values from?
    Our query is this:
    select bukrs "Company code
    gjahr "Fiscal year
    belnr "Document no.
    buzei "Document Item no.
    aufnr "Internal order
    lstar "Activity type
    from bseg
    into table gt_add_info
    for all entries in gt_gl_detail
    where bukrs = gt_gl_detail-rbukrs"Comcode from G/L acct detail
    and buzei = gt_gl_detail-buzei "Doc item no. from G/L acct detail
    and belnr = gt_gl_detail-belnr "Doc no. G/L acct detail
    and gjahr = gt_gl_detail-gjahr."Fiscal yea
    Can advise please how to make it faster. My internal table (GT_GL_DETAIL) has over 100000 records. ? thanks.

    I did a SQL trace, and saw that tables CSLA, CSSL, COKL and COKA are being hit with the values I entered inthe Activity type in transaction FB50.
    Still not clear but where it gets stored. If in any of these tables, how do I get the object key?

  • PM Order Confirmation using Personnel's Cost Center and Activity Type

    Hi All,
    Is it possible to have PM Order confirmation (IW41) using Cost Center and Activity type from Personnel instead of default from Work Center?  If it is, can it be done with some configuration or user exit?  Please advise.  Thank you.
    Dai

    Hi friend,
    Order confirmation will be done for order operations.While doing confirmation we post the actual work done by the repective work center and respective activity type assigned to the same workcenter.
    But these activity types are assigned to cost center for cost calculation.confirming the respective operation in maintenance order through workcenters gives the report of planned work and actual work done by the respective workcenter.
    We cannot confirm the operation using costcenter and activity type directly through transaction IW41.
    If you want to develop new confirmation screen and making confirmation of the respective order operation with only costcenter and activity type fields, you can do it .
    Regards,
    Pardhreddyc
    Edited by: Pardhreddyc on May 17, 2011 12:45 PM

  • How do you append to a "string" type field?

    ABAPers,
    I am trying to understand how to append values to a "string" data type in an efficient way. One way to append to a string is using "concatenate" feature.
    data: myRetVal type string.
    DO
      CONCATENATE myRetVal ',' myNewData INTO myRetVal.
    ENDDO.
    However, CONCATENMATE is not efficient in this scenario. Each time you call it, myRetVal gets copied into myRetVal all over. As the string grows, this statement will execute slower and slower.
    The other option I thought is to use offset mechanism.
    MOVE myNewData to myRetVal+myRetValLen.
    However, it appears "string" and "xstring" type fields do not support offset and length operations.
    Is there a third choice that I am missing?
    Thank you in advance for your help.
    Pradeep

    There is no such operator.
    But if just using literals, you can use the &, like this.
    data: string type string.
    string = 'This is the first part ' & 'This is the second part'.
    Again, this will not work with variables.
    Regards,
    Rich Heilman

  • Defaulting batch and valuation type for a specific division for tcode me21n

    Hi
    I would like to default the valuation type and batch for a specific division while creating the PO.
    Kindly let me know if there is any user exit for this.
    Thanks & Regards
    Bhagya

    Hi .
    Actually my requirement is while you are creating PO, the value say 'ABC' must be defaulted both in Batch and valuation type  but when change that to 'DEF' it should allow you.. means you should be able to modify the batch and valuation type fields. I can be kept empty also.
    I tried using field exit to default Batch and valuation type, but it does not work if the batch is empty.
    If I use the BADI you mentioned what are import and export parameters and how do I code to meet my requirement.
    Kindly let me know.
    I will definitely reward points if it works.
    Thanks in advance
    Bhagya

  • String type field in datasouce from db connect system

    i have create a datasouce from db connect witch connect to a oracle database.
    and there is a field with type string.
    when i active transfer rule between infosouce and datasouce
    it return a error:
    more than 3 sting type in rule
    so i hide some field with sting type.
    active again,it return a error
    filed must be a flat structure.
    so i have to delete all string type field
    so my question is
    is there any way to transfer string type field to my BI system?

    when you create the view can use to_char to format date and time type field to sap types eg:YYYYMMDD
    but i also dont know how to convert string to char

  • Workflow to update Account and Contact Type based on Closed/Won Opportunity

    Hi,
    I’d like to create a workflow that updates the Account Type and Contact Type fields on the respective records from “Prospect” to “Customer” whenever a related opportunity is closed as Won. I've looked into using the JoinFieldValue function but I don't think that will work. Is there a way to do this?
    Thanks.

    Currently we do not have cross object workflows. I do not think this is possible. I understand its part of R17 roadmap. Bobb can you let us know if thats correct and what is the expected timeline on R17

  • Business Place and Section type are not available in Substitution-OBBH

    Hi,
    We are going to make substitution for business palce and section type at line item level.But after defining prequisite , when we go for insertion of substitution field then we not finding field for business place & section type respectively.
    Pl tell me how we can link these substituion field or may be some different step for linking field which we can get at the time of substitution.
    Thanks,
    Dharmveer
    Edited by: Dharmveer Vishwakarma on Mar 2, 2009 8:08 AM

    Hi Dharma,
    If you want get those business palce and section type fields as substitutions .You have check this Program VWTYGB01  in SM30.
    In that select  Maintain button  and Remove the  Exculde  Flags in which you want selected fields like BSEG-BUPLA,BSEG-SECCO( business palce and section type )
    May be this information is useful to you
    If you have any doubt feel free to ask
    Regards
    Surya

Maybe you are looking for

  • Why can't i view my photos in iPhoto after a time machine restore?

    Hi, I've just had to restore my entire system after a hard drive replacement. Returned all my music, photos, documents etc back into the computer but none of my photos are in iphoto. Why is this and how do i correct it? Thanks.

  • Free Good Should not be Modified

    Dear All, We are facing below issue. While punching the order in VA01, depot (Plant) can change the qty of the free stock which has been mapped as TO stock, say e.g in Livon 50 ml there is TO of 8+1, while punching the order for 8 pcs & 1 pcs comes a

  • Remote TC access via port forwarding

    I have been trying to setup my network for remote TC access via port forwarding. Here's my setup: Verizon FiOS router (main router, dhcp & nat) -> connected to TC set in bridge mode with a static IP I can remotely access the TC using Back to my Mac w

  • Restrict Creation of an IB record when Quantity is created for item

    Hii, When we create quantity for a Serailized and install base trackable item , an Install base record (Item instance) is automatically created . Is there any way to restrict the creation of Install base record. Thanks in Advance Pavani

  • Business cycles

    Which EBS modules are involved in following business cycles: demand to build click to order order to cash forecast to plan procure to pay campaign to order contract to renewal project to profit Thanks