Method to get contract document type in prephase

Hi All,
Which method can be used to get contract document type in prephase change script?
How to find these methods?
Regards,
Prabhat

Hi
getDocTypeReference() will get you the reference type of contract doc. Use this reference ID to locate the Home API and find the contract type using findUniqueReferenceByName()
Regards
Mudit Saini

Similar Messages

  • How to get the document type, name and revision from the search page cv04n

    Hello,
    After performing cv04n and getting a list of documents satisfying the search criteria, how can I then get the document type, name and revision of the selected document using ABAP?
    Thanks

    HI,
    IN table DRAW... u have Document type, Version and document number.
    In Table DRAT also u get Document Type, Version, Number and Description of Doucment.
    Regards
    SAB

  • You cannot view this document (Contract Document Type)

    Hello!
    I have a problem a with a Workflow Definition because I appear the following Error in the log (Setup > System Administration > System Management > System Information > Logs)
    u201CYou cannot view this document (Contract Document Type) because you do not have the appropriate permission. Contact the system administrator and request permission.u201D
    This happens when I change the status of a Draft to Draft Review. specifically, within the prescript code occurs when you run the line of code:
    typeBean = typeHome.find(doc.getDocTypeReference());
    The Prescript code within XPDL it is the next:
    import com.frictionless.api.common.exception.*;          
    import com.frictionless.api.common.log.Logger;
    import com.frictionless.api.common.platform.*;
    import com.frictionless.api.common.types.*;
    import com.frictionless.api.doc.collaboration.*;
    import com.frictionless.api.doccommon.masterdata.*;
    import com.frictionless.api.ibean.*;
    import com.frictionless.api.util.*;
    import com.frictionless.api.workflow.*;
    import com.frictionless.api.projects.*;
    import com.frictionless.api.common.log.*;
    import com.frictionless.api.ibean.*;
    import com.frictionless.api.usermgmt.masterdata.*;
    import com.frictionless.api.doc.collaboration.*;
    import com.frictionless.api.doccommon.doc.contract.*;logMsg = Logger.createLogMessage(session);
    logMsg.setLogMessage("KCSM ENG Signal Material - Draft Review");
    Logger.info(logMsg);
    typeHome = IBeanHomeLocator.lookup(session, doc.getDocTypeReference());
    typeBean = typeHome.find(doc.getDocTypeReference()); // here appear the error.
    u2026
    Can you help because this error and above all how to solve
    thanks

    Hello!
    I have a problem a with a Workflow Definition because I appear the following Error in the log (Setup > System Administration > System Management > System Information > Logs)
    u201CYou cannot view this document (Contract Document Type) because you do not have the appropriate permission. Contact the system administrator and request permission.u201D
    This happens when I change the status of a Draft to Draft Review. specifically, within the prescript code occurs when you run the line of code:
    typeBean = typeHome.find(doc.getDocTypeReference());
    The Prescript code within XPDL it is the next:
    import com.frictionless.api.common.exception.*;          
    import com.frictionless.api.common.log.Logger;
    import com.frictionless.api.common.platform.*;
    import com.frictionless.api.common.types.*;
    import com.frictionless.api.doc.collaboration.*;
    import com.frictionless.api.doccommon.masterdata.*;
    import com.frictionless.api.ibean.*;
    import com.frictionless.api.util.*;
    import com.frictionless.api.workflow.*;
    import com.frictionless.api.projects.*;
    import com.frictionless.api.common.log.*;
    import com.frictionless.api.ibean.*;
    import com.frictionless.api.usermgmt.masterdata.*;
    import com.frictionless.api.doc.collaboration.*;
    import com.frictionless.api.doccommon.doc.contract.*;logMsg = Logger.createLogMessage(session);
    logMsg.setLogMessage("KCSM ENG Signal Material - Draft Review");
    Logger.info(logMsg);
    typeHome = IBeanHomeLocator.lookup(session, doc.getDocTypeReference());
    typeBean = typeHome.find(doc.getDocTypeReference()); // here appear the error.
    u2026
    Can you help because this error and above all how to solve
    thanks

  • Billing Request in Value Contract Document Type

    Dear Friends
    In Value Contract Document Type WK1 in [VOV8] Billing Request is IRC:- Debit Memo Request for Contract
    What is the use of it how i will see it is effect in standard business process
    Regards
    Arun

    The billing request is your call off sales document for the value contract e.g. USD 2,000 contract for which initially only USD 500 is billed, thus the debit memo request. The process applies to a situtaion where there is/are partial or staggered releases of contracted goods or services.

  • Service contracts & document types

    Can anyone provide insight on how to setup document types using P40040 for service contracts. For amortization of fixed price contracts, are you using service contracts

    Hi
    please check this in path
    Spro-Financial accounting-Financial accounting globe setting-tax on sales or on purchase-Basic Setting-Check calculation procedure-Define Procedure
    Here check taxinn procedure you have define use stander TAXINN or create ZTAXINN
    and check which condition has define there, analysis that which goes to g/l account and which goes to inventory
    Regards
    Kailas Ugale

  • Deep DDIC-Structure - Method to get the Comp.Type of a sub-structure

    Dear colleagues,
    thought the subsequent piece of coding might be helpful for the following problem:
    In DDIC you have created a deep/nested Structure e.g. a complete Business Document representation like
    s_doc_header type struct_doc_header
         (incl.) item  type tab_item
            (incl) party type tab_party etc.
    Now for some purpose you need to access somewhere a sub-part of this structure, e.g. the party-part. You only know (dynamically) the component name "party", but need for dynamic access also the Component Type ("tab_party") (in order to make use of  a "CREATE DATA lr_reftodata TYPE (determined_comp_type)." )
    The following piece of coding should help to query any start component type (here "struct_doc_header") for its embedded components.
    Its a recursive use of features provided by the very nice class(set) of cl_abap_structdescr.
    I implemented it as a static method.
    When doing so, you need to ensure, that the TYPE-GROUP "ABAP" is linked to the class (class properties --> forward declarations),
    Let me know if you find it useful.
    And apologies in advance, if the same problem was already posted in the forum. I did only a rough search before due to a lag of ideas for appropriate search-strings ...
    Best regards,
    Rudy
    Signature:
    Importing:
    IV_COMPNAME     TYPE ABAP_COMPNAME
    IV_START_STRUCTR     TYPE KOMP_TYPE
    Exporting/returning
    EV_DDIC_STRUCT     TYPE KOMP_TYPE
    METHOD search_deep_ddic_by_comp.
    * Description      -------------------------------------------
    *  Methods looks into a deep DDIC-Structure and returns the
    *  corresponding TYPE
    *  Prerequsite for usage: Structures component names are unique.
    * Local Data Defintions --------------------------------------
    * Locals -----------------------------------------------------
    * TYPES:
      DATA: lv_compname                 TYPE abap_compname.
      DATA: lt_componenttable           TYPE abap_component_tab.
      DATA: lv_relative_name            TYPE string.
      DATA: lv_ddic_header                  TYPE x030l.
      DATA: lv_ddic_struct              TYPE komp_type.
      DATA: lv_start_struct             TYPE komp_type.
    * supporting
      DATA: lv_lines                    TYPE i.
      DATA: lv_message                  TYPE string.
      DATA: lt_selopt                   TYPE sesf_selection_parameters_tab.
      DATA: ls_selopt                   TYPE sesf_selection_parameter.
    * References -------------------------------------------------
      DATA: lo_struct_descr             TYPE REF TO cl_abap_structdescr.
      DATA: lo_type_descr               TYPE REF TO cl_abap_typedescr.
    * Field-Symbols ----------------------------------------------
      FIELD-SYMBOLS:
            <fs_struct_descr_component> TYPE abap_componentdescr.
      lo_struct_descr ?= cl_abap_structdescr=>describe_by_name( p_name = iv_start_structr ).
      IF lo_struct_descr IS BOUND.
    *   get all sub-structures/components of iv_start_structr
        CALL METHOD lo_struct_descr->get_components
          RECEIVING
            p_result = lt_componenttable.
        lv_compname = iv_compname.
        READ TABLE lt_componenttable ASSIGNING <fs_struct_descr_component>
                                               WITH KEY  name = lv_compname.
        IF sy-subrc = 0.
    *     matching component found - search for DDIC structure
          CALL METHOD <fs_struct_descr_component>-type->get_relative_name
            RECEIVING
              p_relative_name = lv_relative_name.
          ASSERT lv_relative_name IS NOT INITIAL.
          CASE <fs_struct_descr_component>-type->type_kind.
            WHEN 'u' OR 'v'. "structure
              ev_ddic_struct = lv_relative_name.
              RETURN.
            WHEN 'h'. "table type - derive the line type
              lo_type_descr ?= cl_abap_datadescr=>describe_by_name( p_name = lv_relative_name ).
              CALL METHOD lo_type_descr->get_ddic_header
                RECEIVING
                  p_header = lv_ddic_header.
              IF sy-subrc = 0.
                ev_ddic_struct   = lv_ddic_header-refname.
                RETURN.
              ELSE.
                "error
              ENDIF.
            WHEN OTHERS.
              "error
          ENDCASE.
        ELSE.
    *     go deeper into structure and look into each sub-structure via recursion
          LOOP AT lt_componenttable ASSIGNING <fs_struct_descr_component>.
            CALL METHOD <fs_struct_descr_component>-type->get_relative_name
              RECEIVING
                p_relative_name = lv_relative_name.
            ASSERT lv_relative_name IS NOT INITIAL.
            CASE <fs_struct_descr_component>-type->type_kind.
              WHEN 'u' OR 'v'. "structure
              WHEN 'h'. "table type - derive the line type
                lo_type_descr ?= cl_abap_datadescr=>describe_by_name( p_name = lv_relative_name ).
                CALL METHOD lo_type_descr->get_ddic_header
                  RECEIVING
                    p_header = lv_ddic_header.
                IF sy-subrc = 0.
                  lv_relative_name = lv_ddic_header-refname.
                ELSE.
                  "error
                ENDIF.
              WHEN OTHERS.
                EXIT. "next loop, investigate only struct and table
            ENDCASE.
    *        lv_compname     = <fs_struct_descr_component>-name.
            lv_start_struct = lv_relative_name.
            CALL METHOD /scmtms/cl_ddic_utility=>search_deep_ddic_by_comp
              EXPORTING
                iv_compname      = iv_compname
                iv_start_structr = lv_start_struct
              IMPORTING
                ev_ddic_struct   = lv_ddic_struct.
            IF lv_ddic_struct IS NOT INITIAL.
              ev_ddic_struct = lv_ddic_struct.
              EXIT.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDIF.
    ENDMETHOD.

    Using command:
    ASSIGN COMPONENT idx OF STRUCTURE struc TO <fs>.
    For example:
    DESCRIBE FIELD pi_output TYPE pi_output COMPONENTS lv_columns. "For number of columns
    DO lv_columns TIMES.
    ASSIGN COMPONENT SY-INDEX OF
    STRUCTURE (name of structure) TO <l_fs_output>. "<l_fs_output> - field of structure
    DESCRIBE FIELD <l_fs_output>... "with other options.
    ENDDO.

  • Purchase condition based on Contract document type

    Dear Gurus,
    We have created a seperate documents for Domestic and Import Contracts. We want to trigger Domestic Pricing condition in Domestic Contract, and vise verse... We want only the domestic condition to apprear in the dropdown when the purchase team is creating a domestic contract. Does Condition sequencing provide any means to achive this?
    Waiting for a reply.
    Regards
    VPV

    >
    VIKAT verlekar wrote:
    > Dear Gurus,
    >
    > We have created a seperate documents for Domestic and Import Contracts. We want to trigger Domestic Pricing condition in Domestic Contract, and vise verse... We want only the domestic condition to apprear in the dropdown when the purchase team is creating a domestic contract. Does Condition sequencing provide any means to achive this?
    >
    > Waiting for a reply.
    >
    > Regards
    >
    > VPV
    Separate calculation schema are created for both domestic and import and they are attached to vendor. When  vendor is inputted in the contract, vendor is the determining factor of which calculation schema it should bring as attached in the vendor. So only conditions attached with vendor will be bought once vendor is entered in contract. It can be either local or import.

  • Can I use Adobe CS4 with Mavericks? I get message: Document Types Not Found

    Not able to open CS4 after moving from 2006 MacBook to newer MacBookPro with Mavericks already installed.

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • How to get Document type , number , part and version from mm01

    Hi ,
    Can you help me out so that i can able to get the document type , number , part ,version from mm01. Iam using exit EXIT_SAPLMGMU_001 but i was not able to get those details inside the parameters . I not able to get any values inside wmara parameter. ?
    Regards,
    Sivaganesh

    Hello Siva,
    Try with the below 2 BADI's
    BADI_MM_MATNR
    BADI_MATERIAL_CHECK
    Regards,
    TP

  • PO and MIGO document type

    Hi,
    When user creating PO and goods receipt ,he doesnot getting po document type description(in MIGO also) ,only he is getting po document type in header as NB (it shoulb be NB Stadards po). I have checked in options and expert tab also ,still issue not yet resolved.plz advise soon.
    Thanks,
    Sunny

    Hi,
    Follow the steps to have value like NB Standard PO:
    Go to ME21N screen, in Standard toolbar click
    Customize Local layout (Alt + F12) - >Option- >Expert--- > (select check box) of Show Keys in All Dropdown lists --- > apply --- > Ok
    Now go to ME21N screen, you will have NB Standard PO instead of NB
    Regards,
    Biju K

  • In PO document type ??

    hii
    In PO document type creating  , what is significance and use of below tick boxes .
    Indicator:No Account assignment.?
    Indicator: Contract release order/SA delivery schedule.?
    Indicator: Contract release order/SA delivery schedule.?
    Explain me with some example .
    Thanks

    Hi
    I think you are asking fields which are linkage requisition
    1) Specifies that a purchase order item must not contain an account
    assignment. It means when that PR is converted to PO with this document type it should not have account assignment. Or it will give error.
    2)  Indicates whether release orders/releases or delivery schedules are  possible in purchasing documents such as contracts or scheduling  agreements. Normally there are used in Scheduling agreement document type or contract document type. In PO it does not make any difference
    Regards
    Antony

  • APP - F110 - Payment of multiple invoices with different document type

    Hi
    Vendor X has been assigned with payment method same with two document types. One document type got 4 invoices and other document type got 1 invoice.
    During payment run (F110) for each document type, the system picked up both the document type but listed them as two separate lines in the proposal list. When we process the payment the system also created two payment documents.
    Is there a way for these two document types to be processed as a single proposal and payment.
    Any suggestion how can we process these invoices together in a single proposal/payment document?
    Thanks & Regards,
    Sam

    Thanks

  • Struggling to have two document type attributes in the same notification

    Hi All,
    I need some help. I am working with Oracle Time and Labor, and am trying to get two document type attributes to play nice in the same notification message body.
    One documentation type attribute is made available to me. Here is its attribute value:
    JSP:/OA_HTML/OA.jsp?&OAFunc=HXC_TIMECARD&akRegionApplicationId=809&retainAM=Y&Action=ApprovalDetail&Timecard_id=-&APP_BB_ID-&ResourceId=-&RESOURCE_ID-&TimecardMode=TIMECARD-REVIEW&Review=Y&FromAppPage=YES&NtfId=-&#NID-&StartTime=-&FORMATTED_APP_START_DATE-
    The second one I created as a PLSQL document. This one I have simplified to just a 'Hello World'.
    When both are in the message body at the same time, the notification message body looks like this (the name of one of the document type attributes is 'TIMECARD'):
    hello world Attribute TIMECARD refers to Framework Region JSP:/OA_HTML/OA.jsp?&OAFunc=HXC_TIMECARD&akRegionApplicationId=809&retainAM=Y&Action=ApprovalDetail&Timecard_id=-&APP_BB_ID-&ResourceId=-&RESOURCE_ID-&TimecardMode=TIMECARD-REVIEW&Review=Y&FromAppPage=YES&NtfId=-3614187-&StartTime=-&FORMATTED_APP_START_DATE-.
    When either document type attribute exists by itself in the message, everything works as planned.
    Any suggestions?

    I think the problem here is caused when you token - substitute an attribute which appears in another attribute.
    Suppose that you have two document type attributes as shown below:
    1. CONTENT whose value is:
    plsqlclob:PA_PWP_NOTIFICATION.SHOW_PWP_NOTIFY_PREVIEW/&CONTENT_ID
    and
    2. CONTENT_ID whose value is: 11629
    Now, what happens is, while token substituting &CONTENT_ID in the first attribute, &CONTENT_ID is possibly being broken into
    &CONTENT and replaced with a null value and then ID is left as is. The problem seems to be because CONTENTID is used
    inside another attribute CONTENT.
    The workaround here is to change the name of attribute CONTENT to some other name or change the attribute name CONTENT_ID
    to something different.
    In your case I suppose that the names of attributes you are having may be similar or one being subset of other. You can avoid the
    problem by having different names (or name which is not part of another attribute's name).
    If this does not solve the problem you can generate output of $FND_TOP/sql/wfmlrdbg.sql output for this notification id.
    Hope that helps !!
    Thanks,
    Dilbagh

  • Document Editor X12 Document Type 5030

    Hi All
    One of our Customer requested X12 Document Type 5030.
    But in Oracle B2B Document Editor i can see only up to 5020.
    So can any one Please guide me how can i get X12 Document Type 5030 in to Document Editor.
    Do i need to install any patches to get this ??
    thanks
    Ravi
    Edited by: user598717 on Sep 21, 2009 1:37 PM

    No with that patch we didn't get the 5030.
    this is the message we got from the oracle support
    I have Document Editor version 6.0.0.1476, and I still do not find EDI X12 version 5030.
    I have contacted product management to get the EDI X12 update you need. In the meantime, I suggest you apply patch 5550097
    to get you to 6.0.0.1476, which is required for the very latest B2B Server patches.
    thanks
    Ravi

  • Document types in FB50

    Hi Sap Gurus
    When i am doing a transaction in FB50, I am unable to know the document types and it is not available in the screen. We are using sap EcC 6.0 version. How to get the document types in enjoy transaction like FB50.
    thanks & regards.
    Sk

    Hi,
    In transaction FB50 goto editing options and next to "doc. type option" you have a dropdown list where many options are available.You can select document type display, doc type ready for input.
    Tell me if its helpful.
    Regards,
    Jyothi.

Maybe you are looking for