Project Contract BOQ Printing in Tree format

Hello,
I am having issue in making BOQ Printing report in Tree format in Project Contracts
I found the option to print contract (Tools-Print ) but it doesn’t show the data in tree form,
I tried using PARENT_LINE_ID, LSE_ID but it didn’t work
Please  give me a clue.
Thanks.
i want to print like this parent then sub, then baseline.

Hi
There are APIs for loading Project Contracts.
You may want to review the white paper published on Metalink - Oracle Project Contracts API Import Procedures - Doc ID: 234864.1
I don't think Web ADI has been integrated with Project Contracts.
Dina

Similar Messages

  • How can I include merged projects in the printed documentation?

    I have a master project with several merged projects. This works splendid with online documentation, but when I am asked to provide a printed version, it seems I have to create separate documents for each merged project.
    Is there any setting or fix that enables print also of merged projects and topics when I create printed documentation?
    Pretty please with sugar on top :-)

    Hm - there is a contract with the customer, saying that he wants documentation both as word and pdf, and as we now aim at only writing online documentation, these tasks create extra work, as we are delivering updates each month
    But yes - two beasts, where only chm is actually needed we think.
    -Tone
    Date: Tue, 3 May 2011 06:53:04 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I include merged projects in the printed documentation?
    Hi there
    I'm a bit curious as to the reasoning behind your "persuation process for using chm-files only".
    CHM files and printed documentation are two entirely different beasts.
    Cheers... Rick
    | http://www.robowizard.com/pc.gif | Helpful and Handy Links
    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
    http://www.gooberguides.com/ProductPages/RoboHelp/RoboHelp82Day.htm
    http://www.ShowMeSolutions.biz
    http://sorcererstone.wordpress.com/
    http://www.gooberguides.com |
    >

  • Oracle Project Contracts

    Is there anyone who has used Oracle Project Contracts for a construction company?
    If yes, can you kindly let me know if you are able to put all your BOQ items into the Oracle Project Contracts.
    What other functions can be done in the Oracle Project Contracts as regards to the business processes of a construction company.
    Regards

    Hi
    The Project contract is the commercial agreement between you and your customer. When you enter a new contract you need to link it to an existing project, which you have eralier set up in Oracle Projects. You would see that on the main page of the contract header. Note, system allows you to enter multiple different contracts for the same project. Therefore, it is nto always on to one relationship between a contract and a project.
    The left side region allow you to search for contracts you have already entered into the system. You may view contracts by groups, organization, product and program. The system is adding any new contract to the appropriate grouping based on the program, owning organization and program you have assigned to the contract, on the main page of the contract header. Groups are set in a separate form, where you could assign individual contracts to groups based on your won business logic. Personal shortcuts allow the individual user to enter his own search criteria and save it, so in the futute he will find the contracts that meet that logic.
    Item Master Org is the name of an inventory organization which is considered as the master of your company. The item master organization is the inventory organization where you can setup items, and enter their attributes, which will be shared by all other inventory organizations in the company. In that organization you can set up the list of purchable items, items that can be inventorized or items taht you build in your company. Later when you go on and author the contract lines, you could enter the item that needs to be delivered to the customer, or purchased from a vendor.
    In Oracle Projects contracts you can link attachments to a contract. You could setup various categories of attachments. Each pdf file which was scanned can be loaded as an attachment. You can assign the name of the documnet and its category.
    Dina

  • Project Contracts Deliverables : Unable to Ship Confirm

    Sub : Project Contracts Deliverables : Unable to Ship Confirm
    Hi,
    When trying to " Ship Confirm " for deliveries initiated from Project Contracts, Error Msg appears :
    Error : Some deliveries selected for ship confirm have errors or warnings.
    On clicking DETAIL buttton :
    Error:Delivery Details xxxyy in this delivery do not satisfy inventory controls.
    Warning:The Ship Confirm Option selected will unassign all the lines from delivery yyyxx.
    Regards
    adi

    Hi,
    Please check the metalink note: 227843.1 for this issue.
    Hope this helps!
    Thanks,
    Sathish Raju
    www.projectsaccounting.com

  • How to display a report in tree format

    hai can any one send me the code to display the report in a tree format
    if i take example of customer numbers as tree branches and if i click each customer number the tree should expand showing all sales orders for a customer
    ragrds
    afzal

    use FM HR_ALV_HIERSEQ_LIST_DISPLAY
    there are 2 internal table , one for header and one for detail
    below is code for reference
    REPORT  zinsd_quot_cont.
    TYPES : BEGIN OF ty_vbak,
             vbeln TYPE      vbeln_va,
             vkorg TYPE      vkorg,
             vtweg TYPE      vtweg,
             spart TYPE      spart,
             vkbur TYPE     vkbur,
             vkgrp TYPE     vkgrp,
             angdt  TYPE angdt_v,
             bnddt  TYPE bnddt,
             kunnr  TYPE kunnr,
             kwmeng TYPE kwmeng,
             meins  TYPE meins,
             kunwe  TYPE kunnr,
             name1  TYPE  name1_gp  ,
             name2  TYPE  name1_gp  ,
             sel(1),
             expand(1),
             salesdocument TYPE bapivbeln-vbeln,
             message TYPE bapi_msg,
            END   OF ty_vbak.
    DATA :  w_vbak TYPE ty_vbak,
            t_vbak TYPE TABLE OF ty_vbak.
    DATA :  w_update TYPE ty_vbak,
            t_update TYPE TABLE OF ty_vbak.
    TYPES : BEGIN OF ty_kna1,
             kunnr  TYPE      kunnr,
             name1  TYPE  name1_gp  ,
            END   OF ty_kna1.
    DATA :  w_kna1 TYPE ty_kna1,
            t_kna1 TYPE TABLE OF ty_kna1.
    TYPES : BEGIN OF ty_vbap,
            vbeln      TYPE vbeln_va,
            posnr      TYPE posnr_va,
            matnr      TYPE matnr,
            matkl      TYPE matkl,
            werks      TYPE werks_ext,
            kwmeng TYPE kwmeng,
            meins      TYPE meins,
            mvgr5  TYPE     mvgr5,
            maktx  TYPE     maktx,
            END   OF ty_vbap.
    DATA :  w_vbap TYPE ty_vbap,
            t_vbap TYPE TABLE OF ty_vbap.
    TYPES : BEGIN OF ty_makt,
             matnr TYPE     matnr,
             maktx TYPE     maktx,
            END   OF ty_makt.
    DATA :  w_makt TYPE ty_makt,
            t_makt TYPE TABLE OF ty_makt.
    TYPES : BEGIN OF ty_sum,
            vbeln      TYPE vbeln_va,
            kwmeng TYPE kwmeng,
            END   OF ty_sum.
    DATA :  w_sum TYPE ty_sum,
            t_sum TYPE TABLE OF ty_sum.
    TYPES : BEGIN OF ty_vbpa,
            vbeln     TYPE vbeln,
            posnr     TYPE posnr,
            parvw     TYPE parvw,
            kunnr     TYPE kunnr,
            END   OF ty_vbpa.
    DATA :  w_vbpa TYPE ty_vbpa,
            t_vbpa TYPE TABLE OF ty_vbpa.
    TYPES : BEGIN OF ty_vbup,
            vbeln      TYPE vbeln,
            posnr  TYPE posnr ,
            gbsta      TYPE gbsta  ,
            END   OF ty_vbup.
    DATA :  w_vbup TYPE ty_vbup,
            t_vbup TYPE TABLE OF ty_vbup.
    TYPE-POOLS slis.
    DATA: t_fieldcatalog  TYPE slis_t_fieldcat_alv,
          w_fieldcatalog TYPE slis_fieldcat_alv,
          w_layout    TYPE slis_layout_alv,
          gs_keyinfo  TYPE slis_keyinfo_alv.
    DATA: g_tabname_header TYPE slis_tabname,
          g_tabname_item   TYPE slis_tabname.
      data definition
          Batchinputdata of single transaction
    DATA:   bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE.
          messages of call transaction
    DATA:   messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
    DATA : g_lines TYPE i.
    *Selection Screen
    TABLES : vbak,vbap.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.
    SELECT-OPTIONS s_vkorg FOR vbak-vkorg. " Sales Org
    SELECT-OPTIONS s_vtweg FOR vbak-vtweg. " Dist Channel
    SELECT-OPTIONS s_spart FOR vbak-spart. " Division
    SELECT-OPTIONS s_vkbur FOR vbak-vkbur. " Sales Off
    SELECT-OPTIONS s_vkgrp FOR vbak-vkgrp. " Sales Grp
    SELECT-OPTIONS s_matkl FOR vbap-matkl. " Mat Grp
    SELECT-OPTIONS s_werks FOR vbap-werks. " Plant
    SELECT-OPTIONS s_period FOR vbak-angdt. " Sales Off
    SELECTION-SCREEN END OF BLOCK b1.
    START-OF-SELECTION.
      PERFORM f_getdata.
      PERFORM f_initdata.
    END-OF-SELECTION.
      PERFORM f_createalv.
      PERFORM f_dispalv.
    *&      Form  f_getdata
          text
    -->  p1        text
    <--  p2        text
    FORM f_getdata .
    *Sales Header
      SELECT
        vbeln
        vkorg
        vtweg
        spart
        vkbur
        vkgrp
        angdt     
        bnddt
        kunnr
      INTO TABLE t_vbak
      FROM vbak
      WHERE
        vkorg IN s_vkorg      " Sales Org
        AND vtweg IN s_vtweg  " Dist Channel
        AND spart IN s_spart  " Division
        AND vkbur IN s_vkbur  " Sales Off
        AND vkgrp IN s_vkgrp  " Sales Grp
        AND angdt IN s_period
        AND bnddt IN s_period
        AND auart = 'ZQMO'
        AND vbtyp = 'B'.
    *CUST NAME
      SELECT
         kunnr
         name1
      INTO TABLE t_kna1
      FROM kna1
      FOR ALL ENTRIES IN t_vbak
      WHERE
       kunnr = t_vbak-kunnr
    *Sales Item
      SELECT
        vbeln     
        posnr     
        matnr     
        matkl     
        werks     
        kwmeng
        meins
        mvgr5
      INTO TABLE t_vbap
      FROM vbap
      FOR ALL ENTRIES IN t_vbak
      WHERE
       vbeln = t_vbak-vbeln
       AND matkl IN  s_matkl  " Mat Grp
       AND werks IN  s_werks  " Plant
    *Partners
      SELECT
       vbeln     
       posnr     
       parvw     
       kunnr     
      INTO TABLE t_vbpa
      FROM vbpa
      FOR ALL ENTRIES IN t_vbak
      WHERE
        vbeln = t_vbak-vbeln.
      IF t_vbpa[] IS NOT INITIAL.
        SELECT
            kunnr
            name1
         APPENDING TABLE t_kna1
         FROM kna1
         FOR ALL ENTRIES IN t_vbpa
         WHERE
          kunnr = t_vbpa-kunnr
      ENDIF.
    *Status - Sales Doc
      SELECT
        vbeln     
        posnr
        gbsta
      INTO TABLE t_vbup
      FROM vbup
      FOR ALL ENTRIES IN t_vbap
      WHERE
       vbeln = t_vbap-vbeln
       AND posnr = t_vbap-posnr
       AND gbsta NE 'C'.
      SELECT
          matnr
          maktx
      INTO TABLE t_makt
      FROM makt
      FOR ALL ENTRIES IN t_vbap
      WHERE
       matnr = t_vbap-matnr
       AND spras = 'E'.
    ENDFORM.                    " f_getdata
    *&      Form  f_initdata
          text
    -->  p1        text
    <--  p2        text
    FORM f_initdata .
      SORT t_vbap BY vbeln DESCENDING.
    *delete all closed stat items
      LOOP AT t_vbap INTO w_vbap.
        READ TABLE t_vbup INTO w_vbup
        WITH KEY
         vbeln = w_vbap-vbeln
         posnr = w_vbap-posnr.
        IF sy-subrc <> 0.
          DELETE t_vbap.
          CONTINUE.
        ELSE.
          READ TABLE t_makt INTO w_makt
          WITH
          KEY matnr = w_vbap-matnr.
          IF sy-subrc = 0.
            w_vbap-maktx = w_makt-maktx.
            MODIFY t_vbap FROM w_vbap.
          ENDIF.
        ENDIF.
      ENDLOOP.
    *find the total quantity
      LOOP AT t_vbap INTO w_vbap.
        w_sum-vbeln = w_vbap-vbeln.
        w_sum-kwmeng = w_vbap-kwmeng.
        COLLECT w_sum INTO t_sum.
        CLEAR w_sum.
      ENDLOOP.
    *populate header
      LOOP AT t_vbak INTO w_vbak.
      Quantity - Total
        READ TABLE t_sum INTO w_sum
        WITH KEY
         vbeln = w_vbak-vbeln.
        IF sy-subrc = 0.
          w_vbak-kwmeng = w_sum-kwmeng.
        ELSE.
          CLEAR w_vbak-kwmeng.
        ENDIF.
      UoM
        READ TABLE t_vbap INTO w_vbap
        WITH KEY
         vbeln = w_vbak-vbeln.
        IF sy-subrc = 0.
          w_vbak-meins = w_vbap-meins.
        ELSE.
          CLEAR w_vbak-meins.
        ENDIF.
      Partner
        READ TABLE t_vbpa INTO w_vbpa
        WITH KEY
         vbeln = w_vbak-vbeln
         parvw = 'WE'.
        IF sy-subrc = 0.
          w_vbak-kunwe = w_vbpa-kunnr.
        ELSE.
          CLEAR w_vbak-kunwe.
        ENDIF.
      SHIP TO PARTY NAME
        READ TABLE t_kna1 INTO w_kna1
        WITH KEY
         kunnr = w_vbak-kunwe.
        IF sy-subrc = 0.
          w_vbak-name2 = w_kna1-name1.
        ENDIF.
      CUST NAM - SOLD TO PARTY
        READ TABLE t_kna1 INTO w_kna1
        WITH KEY
         kunnr = w_vbak-kunnr.
        IF sy-subrc = 0.
          w_vbak-name1 = w_kna1-name1.
        ENDIF.
        MODIFY t_vbak FROM w_vbak.
      ENDLOOP.
      DELETE t_vbak WHERE kwmeng IS INITIAL.
      SORT t_vbak BY vbeln DESCENDING.
      SORT t_vbap BY vbeln  DESCENDING posnr ASCENDING.
    ENDFORM.                    " f_initdata
    *&      Form  f_createalv
          Create Field Cat.
    -->  p1        text
    <--  p2        text
    FORM f_createalv .
      g_tabname_header = 't_vbak'.
      g_tabname_item   = 't_vbap' .
      CLEAR gs_keyinfo.
      gs_keyinfo-header01 = 'VBELN'.
      gs_keyinfo-item01   = 'VBELN'.
    *VBAK
      w_fieldcatalog-fieldname = 'VBELN'.
      w_fieldcatalog-tabname   = 't_vbak'.
      w_fieldcatalog-seltext_l = 'Sales Document'.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'VKORG'.
      w_fieldcatalog-tabname   = 't_vbak'.
      w_fieldcatalog-seltext_l = 'Sales Org'.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'VTWEG'.
      w_fieldcatalog-tabname   = 't_vbak'.
      w_fieldcatalog-seltext_l = 'Dist Channel'.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'SPART'.
      w_fieldcatalog-tabname   = 't_vbak'.
      w_fieldcatalog-seltext_l = 'Division'.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'VKBUR'.
      w_fieldcatalog-tabname   = 't_vbak'.
      w_fieldcatalog-seltext_l = 'Sales Office'.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'VKGRP'.
      w_fieldcatalog-tabname   = 't_vbak'.
      w_fieldcatalog-seltext_l = 'Sales GRP'.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'KUNNR'.
      w_fieldcatalog-tabname   = 't_vbak'.
      w_fieldcatalog-seltext_l = 'Sold to Party'.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'NAME1'.
      w_fieldcatalog-tabname   = 't_vbak'.
      w_fieldcatalog-outputlen    = 35.
      w_fieldcatalog-seltext_l = 'Sold to Party Code - Name'.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'KUNWE'.
      w_fieldcatalog-tabname   = 't_vbak'.
      w_fieldcatalog-seltext_l = 'Ship to Party'.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'NAME2'.
      w_fieldcatalog-tabname   = 't_vbak'.
      w_fieldcatalog-seltext_l = 'Ship Party Code - Name'.
      w_fieldcatalog-outputlen    = 35.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'KWMENG'.
      w_fieldcatalog-tabname   = 't_vbak'.
      w_fieldcatalog-seltext_l = 'Quantity'.
      w_fieldcatalog-outputlen    = 25.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'MEINS'.
      w_fieldcatalog-tabname   = 't_vbak'.
      w_fieldcatalog-seltext_l = 'UoM'.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'SALESDOCUMENT'.
      w_fieldcatalog-tabname   = 't_vbak'.
      w_fieldcatalog-seltext_l = 'Document'.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'MESSAGE'.
      w_fieldcatalog-tabname   = 't_vbak'.
      w_fieldcatalog-seltext_l = 'Log'.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
    *VBAP
      w_fieldcatalog-fieldname = 'POSNR'.
      w_fieldcatalog-tabname   = 't_vbap'.
      w_fieldcatalog-seltext_l = 'POS'.
      w_fieldcatalog-outputlen    = 6.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'MATNR'.
      w_fieldcatalog-tabname   = 't_vbap'.
      w_fieldcatalog-seltext_l = 'Material'.
      w_fieldcatalog-outputlen    = 18.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'MAKTX'.
      w_fieldcatalog-tabname   = 't_vbap'.
      w_fieldcatalog-seltext_l = 'Material Desc'.
      w_fieldcatalog-outputlen    = 40.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'MATKL'.
      w_fieldcatalog-tabname   = 't_vbap'.
      w_fieldcatalog-seltext_l = 'Material Grp'.
      w_fieldcatalog-outputlen    = 9.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'MVGR5'.
      w_fieldcatalog-tabname   = 't_vbap'.
      w_fieldcatalog-seltext_l = 'MCNO'.
      w_fieldcatalog-outputlen    = 4.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'WERKS'.
      w_fieldcatalog-tabname   = 't_vbap'.
      w_fieldcatalog-seltext_l = 'Plant'.
      w_fieldcatalog-outputlen    = 91.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'KWMENG'.
      w_fieldcatalog-tabname   = 't_vbap'.
      w_fieldcatalog-seltext_l = 'Quantity'.
      w_fieldcatalog-outputlen    = 25.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
      w_fieldcatalog-fieldname = 'MEINS'.
      w_fieldcatalog-tabname   = 't_vbap'.
      w_fieldcatalog-seltext_l = 'UoM'.
      APPEND w_fieldcatalog TO t_fieldcatalog.
      CLEAR: w_fieldcatalog.
    LAYOUT
    w_layout-colwidth_optimize  = 'X'.
      w_layout-zebra  = 'X'.
      w_layout-expand_fieldname = 'EXPAND'.
      w_layout-box_fieldname  = 'SEL'.
      w_layout-box_tabname  = 't_vbak'.
    ENDFORM.                    " f_createalv
    *&      Form  f_dispalv
          Call ALV
    -->  p1        text
    <--  p2        text
    FORM f_dispalv .
      CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
         EXPORTING
          i_callback_program             = sy-repid
          i_callback_pf_status_set       = 'SET_PF_STATUS'
          i_callback_user_command        = 'USER_COMMAND'
          is_layout                      = w_layout
          it_fieldcat                    = t_fieldcatalog
        IT_EXCLUDING                   =
        IT_SPECIAL_GROUPS              =
        IT_SORT                        =
        IT_FILTER                      =
        IS_SEL_HIDE                    =
        I_SCREEN_START_COLUMN          = 0
        I_SCREEN_START_LINE            = 0
        I_SCREEN_END_COLUMN            = 0
        I_SCREEN_END_LINE              = 0
        I_DEFAULT                      = 'X'
        I_SAVE                         = ' '
        IS_VARIANT                     =
        IT_EVENTS                      =
        IT_EVENT_EXIT                  =
           i_tabname_header               = g_tabname_header
           i_tabname_item                 = g_tabname_item
           is_keyinfo                     = gs_keyinfo
         TABLES
           t_outtab_header                = t_vbak
           t_outtab_item                  = t_vbap
        EXCEPTIONS
          program_error                  = 1
          OTHERS                         = 2
      IF sy-subrc <> 0.
      ENDIF.
    ENDFORM.                    " f_dispalv
    *&      Form  set_pf_status
          PF stat
         -->RT_EXTAB   text
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'ZINSD_QUOT_CONT_ST'.
    ENDFORM.                    "set_pf_status
    *&      Form  user_command
          Process List UCOMM
         -->R_UCOMM      text
         -->RS_SELFIELD  text
    FORM user_command  USING r_ucomm LIKE sy-ucomm
                               rs_selfield TYPE slis_selfield.
      REFRESH t_update.
      IF r_ucomm = 'EXIT'.
        LEAVE PROGRAM.
      ENDIF.
      IF r_ucomm = 'EXECUTE'.
        LOOP AT t_vbak INTO w_update
        WHERE
         sel = 'X'
         AND salesdocument = ' '.
          APPEND w_update TO t_update.
        ENDLOOP.
        IF t_update[] IS NOT INITIAL.
          LOOP AT t_update INTO w_update.
           PERFORM f_bapi_contract_createfromdata USING w_update.
            PERFORM f_bdc_contract_from_quotation.
            MODIFY t_update FROM w_update.
          ENDLOOP.
        ELSE.
        ENDIF.
        PERFORM f_dispalv.
      ENDIF.
      IF r_ucomm  = '&IC1'.
        IF rs_selfield-sel_tab_field = 't_vbak-VBELN'.
          SET PARAMETER ID 'AGN' FIELD rs_selfield-value.
          CALL TRANSACTION 'VA23' AND SKIP FIRST SCREEN.
        ENDIF.
        IF rs_selfield-sel_tab_field = 't_vbak-SALESDOCUMENT' AND
           rs_selfield-value NE ' '.
          SET PARAMETER ID 'KTN' FIELD rs_selfield-value.
          CALL TRANSACTION 'VA43' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDIF.
    ENDFORM.                    "user_command
    *&      Form  F_BAPI_CONTRACT_CREATEFROMDATA
          BAPI CALL
         -->P_W_UPDATE  text
    FORM f_bapi_contract_createfromdata  USING  p_w_update  STRUCTURE w_update .
      DATA : w_contract_header_in  TYPE bapisdhd1  ,
             w_contract_header_inx TYPE bapisdhd1x ,
             t_contract_items_in   TYPE TABLE OF  bapisditm   WITH HEADER LINE,
             t_contract_items_inx  TYPE TABLE OF  bapisditmx  WITH HEADER LINE,
             t_contract_partners   TYPE TABLE OF  bapiparnr   WITH HEADER LINE,
             t_return              TYPE TABLE OF  bapiret2    WITH HEADER LINE.
      CLEAR : w_contract_header_in,
              w_contract_header_inx.
      REFRESH : t_contract_items_in,
                t_contract_items_inx,
                t_contract_partners,
                t_return.
      w_contract_header_in-doc_type   = 'ZCNT'.
      w_contract_header_in-sales_org  = p_w_update-vkorg.
      w_contract_header_in-distr_chan = p_w_update-vtweg.
      w_contract_header_in-division   = p_w_update-spart.
      w_contract_header_in-ct_valid_f = p_w_update-angdt.
      w_contract_header_in-ct_valid_t = p_w_update-bnddt.
      w_contract_header_inx-doc_type  = 'X'.
      w_contract_header_inx-sales_org = 'X'.
      w_contract_header_inx-distr_chan = 'X'.
      w_contract_header_inx-division  = 'X'.
      w_contract_header_inx-ct_valid_f = 'X'.
      w_contract_header_inx-ct_valid_t = 'X'.
      LOOP AT t_vbap INTO w_vbap
      WHERE
        vbeln = p_w_update-vbeln.
        t_contract_items_in-material = w_vbap-matnr.
        t_contract_items_in-plant    = w_vbap-werks.
        t_contract_items_in-target_qty = w_vbap-kwmeng.
        t_contract_items_in-target_qu  = w_vbap-meins.
        t_contract_items_in-ref_doc    = w_vbap-vbeln.
        t_contract_items_in-ref_doc_it = w_vbap-posnr.
        t_contract_items_in-ref_doc_ca = 'B'.
        t_contract_items_in-prc_group5 = w_vbap-mvgr5.
        t_contract_items_inx-material = 'X'.
        t_contract_items_inx-plant    = 'X'.
        t_contract_items_inx-target_qty = 'X'.
        t_contract_items_inx-target_qu  = 'X'.
        t_contract_items_inx-ref_doc    = 'X'.
        t_contract_items_inx-ref_doc_it = 'X'.
        t_contract_items_inx-ref_doc_ca = 'X'.
        t_contract_items_inx-prc_group5 = 'X'.
        APPEND t_contract_items_in.
        APPEND t_contract_items_inx.
      ENDLOOP.
      LOOP AT t_vbpa INTO w_vbpa
       WHERE
        vbeln =  p_w_update-vbeln.
         AND posnr = w_vbap-posnr.
        t_contract_partners-partn_role = w_vbpa-parvw.
        t_contract_partners-partn_numb = w_vbpa-kunnr.
        t_contract_partners-itm_number = w_vbpa-posnr.
        APPEND t_contract_partners.
      ENDLOOP.
      CALL FUNCTION 'BAPI_CONTRACT_CREATEFROMDATA'
        EXPORTING
      SALESDOCUMENTIN               =
        contract_header_in            = w_contract_header_in
        contract_header_inx           = w_contract_header_inx
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       = ' '
      INT_NUMBER_ASSIGNMENT         = ' '
      BEHAVE_WHEN_ERROR             = ' '
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
    IMPORTING
        salesdocument                 = p_w_update-salesdocument
    TABLES
        return                        = t_return
        contract_items_in             = t_contract_items_in
        contract_items_inx            = t_contract_items_inx
        contract_partners             = t_contract_partners
      CONTRACT_CONDITIONS_IN        =
      CONTRACT_CONDITIONS_INX       =
      CONTRACT_CFGS_REF             =
      CONTRACT_CFGS_INST            =
      CONTRACT_CFGS_PART_OF         =
      CONTRACT_CFGS_VALUE           =
      CONTRACT_CFGS_BLOB            =
      CONTRACT_CFGS_VK              =
      CONTRACT_CFGS_REFINST         =
      CONTRACT_DATA_IN              =
      CONTRACT_DATA_INX             =
      CONTRACT_TEXT                 =
      CONTRACT_KEYS                 =
      EXTENSIONIN                   =
      PARTNERADDRESSES              =
      IF p_w_update-salesdocument NE '   ' .
        p_w_update-message = 'SUCCESS'.
      ELSE.
        READ TABLE t_return INDEX 1.
        p_w_update-message =  t_return-message.
      ENDIF.
      READ TABLE t_vbak INTO w_vbak
      WITH KEY
      vbeln  = p_w_update-vbeln.
      IF sy-subrc = 0.
        MODIFY  t_vbak INDEX sy-tabix FROM p_w_update .
      ENDIF.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = 'X'.
    ENDFORM.                    " F_BAPI_CONTRACT_CREATEFROMDATA
    *&      Form  f_bdc_contract_from_Quotation
          BAPI CALL
         -->P_W_UPDATE  text
    FORM f_bdc_contract_from_quotation.
      DATA : l_date TYPE char10.
      REFRESH : messtab, bdcdata.
      CLEAR : messtab, bdcdata.
      PERFORM bdc_dynpro      USING 'SAPMV45A' '0101'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=COPY'.
      PERFORM bdc_field       USING 'VBAK-AUART'
                                   'ZCNT'.
      PERFORM bdc_dynpro      USING 'SAPLV45C' '0100'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=RANG'.
      PERFORM bdc_dynpro      USING 'SAPLV45C' '0100'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=UEBR'.
      PERFORM bdc_field       USING 'LV45C-VBELN'
                                     w_update-vbeln.
      PERFORM bdc_dynpro      USING 'SAPMV45A' '4001'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=SICH'.
      IF NOT w_update-angdt IS INITIAL.
        CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
          EXPORTING
            date_internal            = w_update-angdt
          IMPORTING
            date_external            = l_date
          EXCEPTIONS
            date_internal_is_invalid = 1
            OTHERS                   = 2.
        PERFORM bdc_field       USING 'VBAK-GUEBG'
                                       l_date.
      ENDIF.
      IF NOT w_update-bnddt IS INITIAL.
        CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
          EXPORTING
            date_internal            = w_update-bnddt
          IMPORTING
            date_external            = l_date
          EXCEPTIONS
            date_internal_is_invalid = 1
            OTHERS                   = 2.
        PERFORM bdc_field       USING 'VBAK-GUEEN'
                                       l_date.
      ENDIF.
      CALL TRANSACTION 'VA41' USING bdcdata
                       MODE   'E'
                       UPDATE 'S'
                       MESSAGES INTO messtab.
      break abap.
      READ TABLE messtab WITH KEY msgid = 'V1'
                                  msgnr = '311'.
      IF sy-subrc EQ 0.
        w_update-message = 'SUCCESS'.
        w_update-salesdocument = messtab-msgv2.
      ELSE.
        READ TABLE messtab WITH KEY msgtyp = 'E'.
        IF sy-subrc EQ 0.
          DATA : l_info TYPE einfo.
          CLEAR l_info.
          l_info-msgid = messtab-msgid.
          l_info-msgty = messtab-msgtyp.
          l_info-msgno = messtab-msgnr.
          l_info-msgv1 = messtab-msgv1.
          l_info-msgv2 = messtab-msgv2.
          l_info-msgv3 = messtab-msgv3.
          l_info-msgv4 = messtab-msgv4.
          CALL FUNCTION 'MESSAGE_GET_TEXT'
            EXPORTING
              ieinfo        = l_info
              ilangu        = sy-langu
            IMPORTING
              etext         = w_update-message
            EXCEPTIONS
              no_t100_found = 1
              OTHERS        = 2.
        ENDIF.
      ENDIF.
      READ TABLE t_vbak INTO w_vbak WITH KEY vbeln  = w_update-vbeln.
      IF sy-subrc = 0.
        MODIFY  t_vbak INDEX sy-tabix FROM w_update transporting message
                                                                 salesdocument.
      ENDIF.
    ENDFORM.                    " f_bdc_contract_from_Quotation
           Start new screen                                              *
    FORM bdc_dynpro USING program dynpro.
      CLEAR bdcdata.
      bdcdata-program  = program.
      bdcdata-dynpro   = dynpro.
      bdcdata-dynbegin = 'X'.
      APPEND bdcdata.
    ENDFORM.                    "bdc_dynpro
           Insert field                                                  *
    FORM bdc_field USING fnam fval.
      CLEAR bdcdata.
      bdcdata-fnam = fnam.
      bdcdata-fval = fval.
      APPEND bdcdata.
    ENDFORM.                    "bdc_field

  • Saving a Photoshop CC project from a Mac (in .PSD format) to a thumb drive and trying to transfer it to a Dell laptop with Photoshop CS6.  Will not open...Error message: could not complete your request because it is not a valid photoshop document.

    Saving a Photoshop CC project from a Mac (in .PSD format) to a thumb drive and trying to transfer it to a Dell laptop with Photoshop CS6.  Will not open...Error message: could not complete your request because it is not a valid photoshop document.

    The file was corrupted somewhere along the way (assuming it was still readable on the Macintosh).
    The platforms don't matter, but you still need file transfer that doesn't corrupt files...

  • Error while approving the project contract

    Hi,
    While submitting the project contract for approval it's doesn't get approved and give below error in workflow
    Error Message 1 ORA-06508: PL/SQL: could not find program unit being called in Package OKC_K_STS_CHG_ASMBLR_PVT Procedure acn_assemble
    Error Message 2 Database operation Sign Contract failed.
    Thanks,
    Haresh

    Haresh;
    Similar issue mention at:
    1441104.1 << not avaliable you need to log SR doc seems unavaliable
    Insert procedure failed with error CSI_COUNTER_TEMPLATE_PUB.AUTOINSTANTIATE_COUNTERS API failed Could not associate a counter for this instance [ID 762533.1]
    I suggest Rise SR
    Regard
    Helios

  • Error message when I try to print: unsupported document-format"application/vnd.cups-command. I recently had my hard drive replaced in my early 2010 21" iMac. Can anyone help?

    Error message when I try to print: unsupported document-format"application/vnd.cups-command". I recently had my hard drive replaced in  my early 2010 21" iMac. Anyone know anything about this? Thanks in advance.

    What system are you running?  Have you tried going to the Canon website to download and install the latest drivers for that model?
    Are you running Time Machine?

  • InDesign CC no longer packages fonts when I need to send a project to the printer

      Hey Adobe team: Long-time user from when Photoshop was but a sprout. I recently upgraded from Creative Suite 6 to Creative Cloud and have run into a troubling problem. InDesign CC no longer packages fonts when I need to send a project to the printer. This meant that I had to completely redo a project on deadline for a problem that I’ve never had before. How is this possibly helping your users? And is there a solution in the works or do I need to cancel Creative Cloud and go back to CS6?

    @OurPlace
    First of all, you are not addressing any Adobe team. These forums are primarily supported by volunteers who are not Adobe employees and don't officially represent Adobe Technical Support.
    That having been said ...
    There was nothing done specifically with InDesign 9 or 10 (the CC and CC 2014) versions of InDesign to change or disable packaging of fonts when packaging a document. It should be absolutely no different from InDesign 8 (the CS6 version).
    Troubleshooting hints:
    (1)     Make sure you check the Copy Fonts (Except CJK and TypeKit) option in the package dialog.
    (2)     Make sure that you are not using any CJK (Chinese, Japanese, and Korean) complex fonts that we specifically will never put into a package.
    (3)     TypeKit fonts won't package.
    (4)     Make sure that your file system permissions are such that InDesign can create all the necessary directories and subdirectories for the packaging operation.
    (5)     If on MacOS, exit InDesign and try forcing a clearing of your system font cache and then reboot.
    (6)     Exit InDesign and then find and delete all files on your system with filenames of the form AdobeFnt##.lst where ## is a two digit number; don't delete any other files that start with AdobeFnt. Then reboot and restart InDesign.
    (7)     Reset InDesign's preferences that may have become corrupted. For Windows, start InDesign, and then press Shift+Ctrl+Alt. Click Yes when asked if you want to delete preference files. For MacOS, while pressing Shift+Option+Command+Control, start InDesign. Click Yes when asked if you want to delete preference files.
    One of these should either address or resolve your problem. Again, we at Adobe are not aware of any generic issue with packing fonts with InDesign.
              - Dov

  • Steps and setup for Creation of Project Contract from Scratch

    Dear All,
    Steps and setup how to create contract from oracle project contracts?
    Thanks
    HNP
    Edited by: user12197222 on Aug 1, 2012 1:30 AM

    Please refer Ch 2 Creating New Contract Documents on below link from user guide:
    http://docs.oracle.com/cd/B11454_01/11.5.9/acrobat/115okeug.pdf
    thanks

  • Unable to print in excel format

    Hi,
    I develop report in xml publisher and my apps version is 11.5.10.2
    But my report is not printing in excel format.
    Any idea on this....
    Regards
    Zaheer

    Hi Zaheer;
    Please check Hussein Sawwan greatest previous post:
    Re: Unable to View Excel Output File Created by XML Publisher
    Regard
    Helios

  • Not Able to Print in PDF Format Apex

    we are not able to print in pdf format with using a template, if we use default layout we are getting a pdf output,
    Can any one please help me on this issue....
    Thanks
    Malleswar

    Hello Malleswar,
    we are not able to print in pdf format with using a template, if we use default layout we are getting a pdf output,If your scenario with APEX Listener is generally capable of producing a PDF when using a working template, than the error is very likely to be in your template, not in APEX Listener.
    If that's the case, you'll probably find more people with experiences on how to build custom xsl-templates into your APEX application in the APEX forum: {forum:id=137}.
    If you decide to post there (or even if you think it's better to continue here), please provide information on your APEX and APEX Listener version and whether you see some error information in APEX Listeners log when trying your own template or not. If you don't see anything there right now, enabling debug mode will make the log more verbose and probably provide a hint on which part of your template can't be processed properly by the FOP built into APEX Listener.
    -Udo

  • Unable to Create Project Contract  from back end (R12)

    Hello,
    I am trying to create project contract using following code:
    DECLARE
    lv_return_status VARCHAR2 ( 1000 );
    ln_msg_count NUMBER;
    lv_msg_data VARCHAR2 ( 1000 );
    l1 oke_import_contract_pub.chr_rec_type;
    l2 oke_import_contract_pub.chr_rec_type;
    error_message VARCHAR2 ( 3000 );
    v_msg_index_out NUMBER;
    BEGIN
    l1.project_id := 3188;
    l1.prime_k_number := 'PRJ-CNV-10016';
    l1.owning_organization_id := 365;
    l1.start_date := SYSDATE;
    l1.inv_organization_id := 364;
    l1.authoring_org_id := 82;
    l1.k_type_code := 'MIPR';
    l1.sts_code :='E';
    l1.template_yn:='N';
    l1.currency_code:='USD';
    oke_import_contract_pub.create_contract_header (
    p_api_version => '1.0'
    , p_init_msg_list => oke_api.g_false
    , p_ignore_oke_validation => 'N'
    , x_return_status => lv_return_status
    , x_msg_count => ln_msg_count
    , x_msg_data => lv_msg_data
    , p_chr_rec => l1
    , x_chr_rec => l2
    IF ln_msg_count > 0 THEN
    FOR v_index IN 1 .. ln_msg_count
    LOOP
    fnd_msg_pub.get (
    p_msg_index => v_index
    , p_encoded => 'F'
    , p_data => error_message
    , p_msg_index_out => v_msg_index_out
    DBMS_OUTPUT.put_line ('ERROR:' || error_message );
    END LOOP;
    END IF;
    END;
    The output results in following error: ERROR:You cannot save this entry before saving the header entry. (COL_NAME=sts_code) (CHILD_TABLE=OKC_K_HEADERS_V) (PARENT_TABLE=OKC_STATUSES_V)
    Anybody has used this API or knows other method of creating oracle contract please help.
    Thanks in advance.

    Hi,
    How are you. I am currently working on the Project contracts conversion, as in the process of understanding the API's, i have provided some static data to create contract headers, lines and Billing method API's.
    When i execute it, i could able to create the contract header but at line level i get the following errors .  I don't understand this error "OKE_NO_PARENT_RECORD (COL_NAME=billing_method_code) (CHILD_TABLE=OKE_K_LINES_V) (PARENT_TABLE=OKE_K_BILLING_METHODS)"
    Could you please help me in sending your script.
    thanks
    Ravi.
    The original contract number:4100401462_9886546
    Contract header id:875449
    Contract header number:4100401462_9886546
    Return Status  S
    l_msg_count    0
    l_msg_data    
    Return Status  S
    l_msg_count    0
    l_msg_data    
    Inventory_item_id for 5498563-79  is -->1285587
    1. Value for INVENTORY_ITEM_ID is invalid.
    2. OKE_NO_PARENT_RECORD (COL_NAME=billing_method_code) (CHILD_TABLE=OKE_K_LINES_V) (PARENT_TABLE=OKE_K_BILLING_METHODS)
    Return Status  E
    l_msg_count    2
    l_msg_data    
    Inventory_item_id for 5498563-9  is -->1285589
    1. Value for INVENTORY_ITEM_ID is invalid.
    2. OKE_NO_PARENT_RECORD (COL_NAME=billing_method_code) (CHILD_TABLE=OKE_K_LINES_V) (PARENT_TABLE=OKE_K_BILLING_METHODS)
    Return Status  E
    l_msg_count    2
    l_msg_data    
    Inventory_item_id for 7104853-1  is -->1306099
    1. Value for INVENTORY_ITEM_ID is invalid.
    2. OKE_NO_PARENT_RECORD (COL_NAME=billing_method_code) (CHILD_TABLE=OKE_K_LINES_V) (PARENT_TABLE=OKE_K_BILLING_METHODS)
    Return Status  E
    l_msg_count    2
    l_msg_data    
    PL/SQL procedure successfully completed.
    The following is the test script
    ========================================================
    declare
    gr_xxoke_l_chr_rec            xxoke_header%ROWTYPE;
    type gt_xxoke_header          is table of xxoke_header%rowtype              index by binary_integer;
    l_api_version                 number        := 1.0;
    l_init_msg_list               varchar2(20)  := oke_api.g_true;
    l_ignore_oke_validation       varchar2(1)   := xx_common.gc_yes;
    l_return_status               varchar2(20)  := xx_common.g_null;
    l_msg_count                   number        := xx_common.gn_zero;
    l_msg_data                    varchar2(500) := xx_common.g_null;
    --l_chr_rec                     xxoke_header%ROWTYPE;
    l_chr_rec                     oke_import_contract_pub.chr_rec_type;
    r_chr_rec                     oke_import_contract_pub.chr_rec_type;
    --r_chr_rec                     xxoke_header%ROWTYPE;
    l_cle_rec                     oke_import_contract_pub.cle_rec_type;  --xxoke_lines%ROWTYPE;
    r_cle_rec                     oke_import_contract_pub.cle_rec_type;  --xxoke_lines%ROWTYPE;
    bill_tbl                      OKE_IMPORT_CONTRACT_PUB.bill_tbl_type;
    l_inventory_item_id           number;
    cursor c_head is
    select
      k_header_id
    , contract_number_modifier
    , k_number
    , buy_or_sell
    , currency_code
    , status
    , status_code
    , scs_code
    , start_date
    , end_date
    , owning_organization
    , owning_organization_id
    , authoring_org
    --, esitmated_amount
    , date_approved
    , short_description
    , comments
    , description
    --, cognomen
    , template_yn
    --, archived_yn
    --, deleted_yn
    , customer_po_number
    , program_id
    , program_number
    , project_id
    , project_description
    , project_name
    , project_number
    , project_organization
    , boa_id
    , boa_number
    , k_type_code
    , priority_code
    , prime_k_alias
    , prime_k_number
    , authorize_date
    , authorizing_reason
    , award_cancel_date
    , date_definitized
    , date_issued
    , date_negotiated
    , date_received
    , date_sign_by_contractor
    , date_sign_by_customer
    , faa_approve_date
    , faa_reject_date
    , booked_flag
    , open_flag
    , cfe_flag
    , vat_code
    , country_of_origin_code
    , export_flag
    , human_subject_flag
    , cqa_flag
    , interim_rpt_req_flag
    , no_competition_authorize
    , penalty_clause_flag
    , product_line_code
    , reporting_flag
    , sb_plan_req_flag
    , sb_report_flag
    , nte_amount
    , nte_warning_flag
    , bill_without_def_flag
    , cas_flag
    , classified_flag
    , client_approve_req_flag
    , cost_of_money
    , dcaa_audit_req_flag
    , cost_share_flag
    , oh_rates_final_flag
    , prop_delivery_location
    , prop_due_date_time
    , prop_expire_date
    , copies_required
    , sic_code
    , tech_data_wh_rate
    , progress_payment_flag
    , progress_payment_liq_rate
    , progress_payment_rate
    , alternate_liquidation_rate
    , definitized_flag
    , financial_ctrl_verified_flag
    , prop_due_time
    , line_value_total
    , undef_line_value_total
    --, sfwt_flag
    --,chr_id_response   
    --,chr_id_award 
    --,chr_id_renewed 
    --, contract_number
    , chr_type
    , trn_code
    , authoring_org_id
    , issue_or_receive
    from oke_k_headers_full_v@testlink
    WHERE k_header_id = 608283;
    cursor c_line (l_header_id in number) is
    select
    k_line_id
    ,parent_line_id
    ,project_id
    ,project_name
    ,project_number
    ,project_organization
    ,task_id
    ,task_number
    ,task_name
    ,task_description
    ,billing_method_code
    ,inventory_item_id
    ,item_number
    ,item_description
    ,delivery_order_flag
    ,splited_flag
    ,priority_code
    ,customer_item_id
    ,customer_item_number
    ,line_quantity
    ,delivery_date
    ,unit_price
    ,uom_code
    ,billable_flag
    ,shippable_flag
    ,subcontracted_flag
    ,completed_flag
    ,nsp_flag
    ,app_code
    ,as_of_date
    ,authority
    ,country_of_origin_code
    ,drop_shipped_flag
    ,customer_approval_req_flag
    ,date_material_req
    ,inspection_req_flag
    ,interim_rpt_req_flag
    ,subj_a133_flag
    ,export_flag
    ,cfe_flag
    ,cop_required_flag
    ,export_license_num
    ,export_license_res
    ,copies_required
    ,cdrl_category
    ,data_item_name
    ,data_item_subtitle
    ,date_of_first_submission
    ,frequency
    ,requiring_office
    ,dcaa_audit_req_flag
    ,definitized_flag
    ,cost_of_money
    ,bill_undefinitized_flag
    ,nsn_number
    ,nte_warning_flag
    ,discount_for_payment
    ,financial_ctrl_flag
    ,c_scs_flag
    ,c_ssr_flag
    ,prepayment_amount
    ,prepayment_percentage
    ,progress_payment_flag
    ,progress_payment_liq_rate
    ,progress_payment_rate
    ,award_fee
    ,award_fee_pool_amount
    ,base_fee
    ,ceiling_cost
    ,ceiling_price
    ,labor_cost_index
    ,material_cost_index
    ,customer_percent_in_order
    ,cost_overrun_share_ratio
    ,cost_underrun_share_ratio
    ,date_of_price_redetermin
    ,estimated_total_quantity
    ,fee_ajt_formula
    ,final_fee
    ,fixed_quantity
    ,initial_fee
    ,initial_price
    ,level_of_effort_hours
    ,line_liquidation_rate
    ,maximum_fee
    ,maximum_quantity
    ,minimum_fee
    ,minimum_quantity
    ,number_of_options
    ,revised_price
    ,target_cost
    ,target_date_definitize
    ,target_fee
    ,target_price
    ,total_estimated_cost
    ,proposal_due_date
    ,cost_of_sale_rate
    ,line_value
    ,line_value_total
    ,undef_line_value
    ,undef_unit_price
    ,undef_line_value_total
    ,object_version_number
    ,sfwt_flag
    --,chr_id 
    --,cle_id 
    --,cle_id_renewed
    --,cle_id_renewed_to
    ,lse_id
    ,line_number
    ,display_sequence
    ,trn_code
    --,dnz_chr_id
    ,comments
    ,boe_description
    --,hidden_ind
    --,price_unit_percent
    --,price_negotiated
    --,price_negotiated_renewed
    --,price_level_ind
    --,invoice_line_level_ind
    --,dpas_rating
    --,block23text
    --,exception_yn
    --,template_used
    --,date_terminated
    --,name
    ,start_date
    ,end_date
    --,upg_orig_system_ref
    --,upg_orig_system_ref_id
    ,attribute_category
    ,attribute1 
    ,attribute2
    ,attribute3 
    ,attribute4
    ,attribute5
    ,attribute6
    ,attribute7  
    ,attribute8 
    ,attribute9 
    ,attribute10
    ,attribute11
    ,attribute12
    ,attribute13 
    ,attribute14
    ,attribute15
    --,price_type
    --,currency_code
    --,currency_code_renewed
    ,created_by   
    ,creation_date
    ,last_updated_by
    ,last_update_login
    ,last_update_date
    from  oke_k_lines_full_v@testlink
    where header_id = l_header_id
    order by line_number;
    l_seq_num                    number;
    begin
    for r_head in c_head loop
    select xxtest_conversion_s.nextval
    into l_seq_num
    from dual;
    l_chr_rec.contract_number:= r_head.k_number||'_'||l_seq_num;
    dbms_output.put_line('The original contract number:' || l_chr_rec.contract_number );
    l_chr_rec.buy_or_sell                   := r_head.buy_or_sell;
    l_chr_rec.currency_code                 := r_head.currency_code;
    l_chr_rec.sts_code                      := upper(r_head.status_code);
    l_chr_rec.scs_code                      := r_head.scs_code;
    l_chr_rec.start_date                    := r_head.start_date;
    l_chr_rec.end_date                      := r_head.end_date;
    l_chr_rec.inv_organization_id           := 91;  --r_head.owning_organization_id;
    l_chr_rec.authoring_org_id              := 82;  --r_head.authoring_org_id;
    --l_chr_rec.estimated_amount              := r_head. 5000000;
    l_chr_rec.date_approved                 := r_head.date_approved;
    l_chr_rec.short_description             := r_head.short_description;
    l_chr_rec.comments                      := r_head.comments;
    l_chr_rec.description                   := r_head.description;
    --l_chr_rec.cognomen                      := r_head. 'Test Contract Alias';
    l_chr_rec.template_yn                   := r_head.template_yn;
    --l_chr_rec.archived_yn                   := r_head. 'N';
    --l_chr_rec.deleted_yn                    := r_head. 'N';
    l_chr_rec.cust_po_number                := r_head.customer_po_number;
    l_chr_rec.program_id                    := 1035; --r_head.program_id;
    l_chr_rec.project_id                    := 158017; --r_head.project_id;
    l_chr_rec.boa_id                        := r_head.boa_id;
    l_chr_rec.k_type_code                   := 'Award'; ---r_head.k_type_code;
    l_chr_rec.priority_code                 := r_head.priority_code;
    l_chr_rec.prime_k_alias                 := r_head.prime_k_alias;
    l_chr_rec.prime_k_number                := r_head.prime_k_number;
    l_chr_rec.authorize_date                := r_head.authorize_date;
    l_chr_rec.authorizing_reason            := r_head.authorizing_reason;
    l_chr_rec.award_cancel_date             := r_head.award_cancel_date;
    --l_chr_rec.award_date                    := r_head.  sysdate - 16;
    l_chr_rec.date_definitized              := r_head.date_definitized;
    l_chr_rec.date_issued                   := r_head.date_issued;
    l_chr_rec.date_negotiated               := r_head.date_negotiated;
    l_chr_rec.date_received                 := r_head.date_received;
    l_chr_rec.date_sign_by_contractor       := r_head.date_sign_by_contractor;
    l_chr_rec.date_sign_by_customer         := r_head.date_sign_by_customer;
    l_chr_rec.faa_approve_date              := r_head.faa_approve_date;
    l_chr_rec.faa_reject_date               := r_head.faa_reject_date;
    -- l_chr_rec.booked_flag                := gr_xxoke_l_chr_rec NULL;
    -- l_chr_rec.open_flag                  := gr_xxoke_l_chr_rec NULL;
    l_chr_rec.cfe_flag                      := r_head.cfe_flag;
    l_chr_rec.vat_code                      := r_head.vat_code;
    l_chr_rec.country_of_origin_code        := r_head.country_of_origin_code;
    l_chr_rec.export_flag                   := r_head.export_flag;
    l_chr_rec.human_subject_flag            := r_head.human_subject_flag;
    l_chr_rec.cqa_flag                      := r_head.cqa_flag;
    l_chr_rec.interim_rpt_req_flag          := r_head.interim_rpt_req_flag;
    l_chr_rec.no_competition_authorize      := r_head.no_competition_authorize;
    l_chr_rec.penalty_clause_flag           := r_head.penalty_clause_flag;
    l_chr_rec.product_line_code             := 'CONTRACT MFG'; --r_head.product_line_code;
    l_chr_rec.reporting_flag                := r_head.reporting_flag;
    l_chr_rec.sb_plan_req_flag              := r_head.sb_plan_req_flag;
    l_chr_rec.sb_report_flag                := r_head.sb_report_flag;
    l_chr_rec.nte_amount                    := r_head.nte_amount;
    l_chr_rec.nte_warning_flag              := r_head.nte_warning_flag;
    l_chr_rec.bill_without_def_flag         := r_head.bill_without_def_flag;
    l_chr_rec.cas_flag                      := r_head.cas_flag;
    l_chr_rec.classified_flag               := r_head.classified_flag;
    l_chr_rec.client_approve_req_flag       := r_head.client_approve_req_flag;
    l_chr_rec.cost_of_money                 := r_head.cost_of_money;
    l_chr_rec.dcaa_audit_req_flag           := r_head.dcaa_audit_req_flag;
    l_chr_rec.cost_share_flag               := r_head.cost_share_flag;
    l_chr_rec.oh_rates_final_flag           := r_head.oh_rates_final_flag;
    l_chr_rec.prop_delivery_location        := r_head.prop_delivery_location;
    l_chr_rec.prop_due_date_time            := r_head.prop_due_date_time;
    l_chr_rec.prop_expire_date              := r_head.prop_expire_date;
    l_chr_rec.copies_required               := r_head.copies_required;
    l_chr_rec.sic_code                      := r_head.sic_code;
    l_chr_rec.tech_data_wh_rate             := r_head.tech_data_wh_rate;
    l_chr_rec.progress_payment_flag         := r_head.progress_payment_flag;
    l_chr_rec.progress_payment_liq_rate     := r_head.progress_payment_liq_rate;
    l_chr_rec.progress_payment_rate         := r_head.progress_payment_rate;
    l_chr_rec.alternate_liquidation_rate    := r_head.alternate_liquidation_rate;
    -- l_chr_rec.prop_due_time              := r_head. NULL;
    l_chr_rec.definitized_flag              := r_head.definitized_flag;
    l_chr_rec.financial_ctrl_verified_flag  := r_head.financial_ctrl_verified_flag;
    --l_chr_rec.cost_of_sale_rate             := r_head. 0.1;
    oke_import_contract_pub.create_contract_header(  p_api_version                  => l_api_version
                                                   , p_init_msg_list                => l_init_msg_list
                                                   , p_ignore_oke_validation        => l_ignore_oke_validation
                                                   , x_return_status                => l_return_status
                                                   , x_msg_count                    => l_msg_count
                                                   , x_msg_data                     => l_msg_data
                                                   , p_chr_rec                            => l_chr_rec
                                                   , x_chr_rec                            => r_chr_rec
    FOR I IN 1..l_msg_count
    LOOP
      dbms_output.put_line ( I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded => FND_API.G_FALSE ), 1, 255));
    END LOOP;
    dbms_output.put_line('Contract header id:'|| r_chr_rec.k_header_id);
    dbms_output.put_line('Contract header number:'|| r_chr_rec.contract_number);
    dbms_output.put_line('Return Status  '||l_return_status);
    dbms_output.put_line('l_msg_count    '||l_msg_count);
    dbms_output.put_line('l_msg_data     '||l_msg_data);
    bill_tbl(1).k_header_id           := r_chr_rec.k_header_id;
    bill_tbl(1).billing_method_code   := 'Mixed';
    --bill_tbl(2).k_header_id           := r_chr_rec.k_header_id;
    --bill_tbl(2).billing_method_code   := 'Cost Plus';
    OKE_IMPORT_CONTRACT_PUB.define_billing_methods(p_api_version      => l_api_version
                                                  ,p_init_msg_list    => l_init_msg_list
                                                  ,x_return_status    => l_return_status
                                                  ,x_msg_count        => l_msg_count
                                                  ,x_msg_data         => l_msg_data
                                                  ,p_bill_tbl         => bill_tbl
    FOR I IN 1..l_msg_count
    LOOP
      dbms_output.put_line ( I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded => FND_API.G_FALSE ), 1, 255));
    END LOOP;
    dbms_output.put_line('Return Status  '||l_return_status);
    dbms_output.put_line('l_msg_count    '||l_msg_count);
    dbms_output.put_line('l_msg_data     '||l_msg_data);
    for r_line in c_line (r_head.k_header_id) loop
    --------CREATE A TOP LINE -----------------
        -- validate inventory item
      begin
        select inventory_item_id
        into l_inventory_item_id
        from mtl_system_items_b
        where segment1 = r_line.item_number
        and organization_id = 91;
      exception
       when others then
       dbms_output.put_line('Error in deriving the inventory_item_id:'|| substr(sqlerrm,1,500));
      end;
      dbms_output.put_line('Inventory_item_id for '||r_line.item_number|| '  is -->' ||l_inventory_item_id);
    l_cle_rec.k_line_id                          := null;
    l_cle_rec.parent_line_id                    :=  null;
    l_cle_rec.project_id                          := 158017; --r_line.project_id;
    l_cle_rec.task_id                            := null; --r_line.task_id;
    l_cle_rec.billing_method_code              := 'Mixed';
    l_cle_rec.inventory_item_id                := l_inventory_item_id;
    l_cle_rec.delivery_order_flag              := r_line.delivery_order_flag;
    l_cle_rec.splited_flag                        := r_line.splited_flag;
    l_cle_rec.priority_code                      := r_line.priority_code;
    l_cle_rec.customer_item_id                  :=  r_line.customer_item_id;
    l_cle_rec.customer_item_number           := r_line.customer_item_number;
    l_cle_rec.line_quantity                      := r_line.line_quantity;
    l_cle_rec.delivery_date                      := r_line.delivery_date;
    l_cle_rec.unit_price                          := r_line.unit_price;
    l_cle_rec.uom_code                            := r_line.uom_code;
    l_cle_rec.billable_flag                      := r_line.billable_flag;
    l_cle_rec.shippable_flag                    := r_line.shippable_flag;
    l_cle_rec.subcontracted_flag             := r_line.subcontracted_flag;
    l_cle_rec.completed_flag                    := r_line.completed_flag;
    l_cle_rec.nsp_flag                            := r_line.nsp_flag;
    l_cle_rec.app_code                            := r_line.app_code;
    l_cle_rec.as_of_date                          := r_line.as_of_date;
    l_cle_rec.authority                          := r_line.authority;
    l_cle_rec.country_of_origin_code         := r_line.country_of_origin_code;
    l_cle_rec.drop_shipped_flag                := r_line.drop_shipped_flag;
    l_cle_rec.customer_approval_req_flag     := r_line.customer_approval_req_flag;
    l_cle_rec.date_material_req                := r_line.date_material_req;
    l_cle_rec.inspection_req_flag              := r_line.inspection_req_flag;
    l_cle_rec.interim_rpt_req_flag              := r_line.interim_rpt_req_flag;
    l_cle_rec.subj_a133_flag                    := r_line.subj_a133_flag;
    l_cle_rec.export_flag                        := r_line.export_flag;
    l_cle_rec.cfe_req_flag                        := r_line.cfe_flag;
    l_cle_rec.cop_required_flag                := r_line.cop_required_flag;
    l_cle_rec.export_license_num                := r_line.export_license_num;
    l_cle_rec.export_license_res             := r_line.export_license_res;
    l_cle_rec.copies_required                  := r_line.copies_required;
    l_cle_rec.cdrl_category                      := r_line.cdrl_category;
    l_cle_rec.data_item_name                    := r_line.data_item_name;
    l_cle_rec.data_item_subtitle                := r_line.data_item_subtitle;
    l_cle_rec.date_of_first_submission       := r_line.date_of_first_submission;
    l_cle_rec.frequency                          := r_line.frequency;
    l_cle_rec.requiring_office                  := r_line.requiring_office;
    l_cle_rec.dcaa_audit_req_flag              := r_line.dcaa_audit_req_flag;
    l_cle_rec.definitized_flag                  := r_line.definitized_flag;
    l_cle_rec.cost_of_money                      := r_line.cost_of_money;
    l_cle_rec.bill_undefinitized_flag        := r_line.bill_undefinitized_flag;
    l_cle_rec.nsn_number                          := r_line.nsn_number;
    l_cle_rec.nte_warning_flag                  := r_line.nte_warning_flag;
    l_cle_rec.discount_for_payment              := r_line.discount_for_payment;
    l_cle_rec.financial_ctrl_flag              := r_line.financial_ctrl_flag;
    l_cle_rec.c_scs_flag                          := r_line.c_scs_flag;
    l_cle_rec.c_ssr_flag                          := r_line.c_ssr_flag;
    l_cle_rec.prepayment_amount                := r_line.prepayment_amount;
    l_cle_rec.prepayment_percentage          := r_line.prepayment_percentage;
    l_cle_rec.progress_payment_flag          := r_line.progress_payment_flag;
    l_cle_rec.progress_payment_liq_rate      := r_line.progress_payment_liq_rate;
    l_cle_rec.progress_payment_rate          := r_line.progress_payment_rate;
    l_cle_rec.award_fee                          := r_line.award_fee;
    l_cle_rec.award_fee_pool_amount          := r_line.award_fee_pool_amount;
    l_cle_rec.base_fee                            := r_line.base_fee;
    l_cle_rec.ceiling_cost                        := r_line.ceiling_cost;
    l_cle_rec.ceiling_price                      := r_line.ceiling_price;
    l_cle_rec.labor_cost_index                  := r_line.labor_cost_index;
    l_cle_rec.material_cost_index              := r_line.material_cost_index;
    l_cle_rec.customers_percent_in_order     := r_line.cost_underrun_share_ratio;
    l_cle_rec.cost_overrun_share_ratio          := r_line.date_of_price_redetermin;
    l_cle_rec.cost_underrun_share_ratio        := r_line.cost_underrun_share_ratio;
    l_cle_rec.date_of_price_redetermin       := r_line.date_of_price_redetermin;
    l_cle_rec.estimated_total_quantity       := r_line.estimated_total_quantity;
    l_cle_rec.fee_ajt_formula                  := r_line.fee_ajt_formula;
    l_cle_rec.final_fee                          := r_line.final_fee;
    --l_cle_rec.final_pft_ajt_formula          := r_line.final_pft_ajt_formula;
    --l_cle_rec.fixed_fee                          := r_line.fixed_fee;
    l_cle_rec.fixed_quantity                    := r_line.fixed_quantity;
    l_cle_rec.initial_fee                        := r_line.initial_fee;
    l_cle_rec.initial_price                      := r_line.initial_price;
    l_cle_rec.level_of_effort_hours          := r_line.level_of_effort_hours;
    l_cle_rec.line_liquidation_rate          := r_line.line_liquidation_rate;
    l_cle_rec.maximum_fee                        := r_line.maximum_fee;
    l_cle_rec.maximum_quantity                  := r_line.maximum_quantity;
    l_cle_rec.minimum_fee                        := r_line.minimum_fee;
    l_cle_rec.minimum_quantity                  := r_line.minimum_quantity;
    l_cle_rec.number_of_options                := r_line.number_of_options;
    l_cle_rec.revised_price                      := r_line.revised_price;
    l_cle_rec.target_cost                        := r_line.target_cost;
    l_cle_rec.target_date_definitize         := r_line.target_date_definitize;
    l_cle_rec.target_fee                        := r_line.target_fee;
    l_cle_rec.target_price                        := r_line.target_price;
    l_cle_rec.total_estimated_cost           := r_line.total_estimated_cost;
    l_cle_rec.proposal_due_date                := r_line.proposal_due_date;
    l_cle_rec.cost_of_sale_rate                := r_line.cost_of_sale_rate;
    l_cle_rec.line_value                          := r_line.line_value;
    l_cle_rec.line_value_total                  := r_line.line_value_total;
    l_cle_rec.UNDEF_UNIT_PRICE                  := r_line.UNDEF_UNIT_PRICE;
    l_cle_rec.UNDEF_LINE_VALUE                  := r_line.UNDEF_LINE_VALUE;
    l_cle_rec.UNDEF_LINE_VALUE_TOTAL         := r_line.UNDEF_LINE_VALUE_TOTAL;
    l_cle_rec.object_version_number          := r_line.object_version_number;
    l_cle_rec.sfwt_flag                      := r_line.sfwt_flag;
    l_cle_rec.chr_id                         := r_chr_rec.k_header_id;
    --l_cle_rec.cle_id                         := r_line.cle_id;
    --l_cle_rec.cle_id_renewed                 := r_line.cle_id_renewed;
    --l_cle_rec.cle_id_renewed_to                  := r_line.cle_id_renewed_to;
    l_cle_rec.lse_id                         := r_line.lse_id;
    l_cle_rec.line_number                    := r_line.line_number;
    l_cle_rec.sts_code                       := r_head.status_code;  --r_line.sts_code;
    l_cle_rec.display_sequence               := r_line.display_sequence;
    l_cle_rec.trn_code                       := r_line.trn_code;
    l_cle_rec.dnz_chr_id                     := r_chr_rec.k_header_id;
    l_cle_rec.comments                       := r_line.comments;
    l_cle_rec.item_description               := r_line.item_description;
    l_cle_rec.oke_boe_description            := r_line.boe_description;
    --l_cle_rec.hidden_ind                     := r_line.hidden_ind;
    --l_cle_rec.price_unit                            := r_line.price_unit;
    --l_cle_rec.price_unit_percent                  := r_line.price_unit_percent;
    --l_cle_rec.price_negotiated               := r_line.price_negotiated;
    --l_cle_rec.price_negotiated_renewed       := r_line.price_negotiated_renewed;
    --l_cle_rec.price_level_ind                := r_line.price_level_ind;
    --l_cle_rec.invoice_line_level_ind         := r_line.invoice_line_level_ind;
    --l_cle_rec.dpas_rating                    := r_line.dpas_rating;
    --l_cle_rec.block23text                    := r_line.block23text;
    l_cle_rec.exception_yn                   := 'N'; --r_line.exception_yn;
    --l_cle_rec.template_used                  := r_line.template_used;
    --l_cle_rec.date_terminated                := r_line.date_terminated;
    --l_cle_rec.name                           := r_line.name;
    l_cle_rec.start_date                     := r_line.start_date;
    l_cle_rec.end_date                       := r_line.end_date;
    --l_cle_rec.upg_orig_system_ref            := r_line.upg_orig_system_ref;
    --l_cle_rec.upg_orig_system_ref_id         := r_line.upg_orig_system_ref_id;
    l_cle_rec.attribute_category             := r_line.attribute_category;
    l_cle_rec.attribute1                     := r_line.attribute1;
    l_cle_rec.attribute2                     := r_line.attribute2;
    l_cle_rec.attribute3                     := r_line.attribute3;
    l_cle_rec.attribute4                     := r_line.attribute4;
    l_cle_rec.attribute5                     := r_line.attribute5;
    l_cle_rec.attribute6                     := r_line.attribute6;
    l_cle_rec.attribute7                     := r_line.attribute7;
    l_cle_rec.attribute8                     := r_line.attribute8;
    l_cle_rec.attribute9                     := r_line.attribute9;
    l_cle_rec.attribute10                    := r_line.attribute10;
    l_cle_rec.attribute11                    := r_line.attribute11;
    l_cle_rec.attribute12                    := r_line.attribute12;
    l_cle_rec.attribute13                    := r_line.attribute13;
    l_cle_rec.attribute14                    := r_line.attribute14;
    l_cle_rec.attribute15                    := r_line.attribute15;
    --l_cle_rec.price_type                     := r_line.price_type;
    --l_cle_rec.currency_code                  := r_line.currency_code;
    --l_cle_rec.currency_code_renewed             := r_line.currency_code_renewed;
    l_cle_rec.created_by                       := r_line.created_by;
    l_cle_rec.creation_date                       := r_line.creation_date;
    l_cle_rec.last_updated_by                   := r_line.last_updated_by;
    l_cle_rec.last_update_login                 := r_line.last_update_login;
    l_cle_rec.last_update_date               := r_line.last_update_date;
    oke_import_contract_pub.create_contract_line(  p_api_version                  => l_api_version
                                                  ,p_init_msg_list                => l_init_msg_list
                                                  ,x_return_status                => l_return_status
                                                  ,x_msg_count                    => l_msg_count
                                                  ,x_msg_data                     => l_msg_data
                                                  ,p_cle_rec                            => l_cle_rec
                                                  ,x_cle_rec                            => r_cle_rec
                FOR I IN 1..l_msg_count
                LOOP
                  dbms_output.put_line ( I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded => FND_API.G_FALSE ), 1, 255));
                END LOOP;
                dbms_output.put_line('Return Status  '||l_return_status);
                dbms_output.put_line('l_msg_count    '||l_msg_count);
                dbms_output.put_line('l_msg_data     '||l_msg_data);   
    end loop;
    end loop;
    end;
    =============================================================================================

  • Unable to Create Project Contract (R12)

    Hello,
    I am trying to create project contract using following code:
    DECLARE
    lv_return_status VARCHAR2 ( 1000 );
    ln_msg_count NUMBER;
    lv_msg_data VARCHAR2 ( 1000 );
    l1 oke_import_contract_pub.chr_rec_type;
    l2 oke_import_contract_pub.chr_rec_type;
    error_message VARCHAR2 ( 3000 );
    v_msg_index_out NUMBER;
    BEGIN
    l1.project_id := 3188;
    l1.prime_k_number := 'PRJ-CNV-10016';
    l1.owning_organization_id := 365;
    l1.start_date := SYSDATE;
    l1.inv_organization_id := 364;
    l1.authoring_org_id := 82;
    l1.k_type_code := 'MIPR';
    l1.sts_code :='E';
    l1.template_yn:='N';
    l1.currency_code:='USD';
    oke_import_contract_pub.create_contract_header (
    p_api_version => '1.0'
    , p_init_msg_list => oke_api.g_false
    , p_ignore_oke_validation => 'N'
    , x_return_status => lv_return_status
    , x_msg_count => ln_msg_count
    , x_msg_data => lv_msg_data
    , p_chr_rec => l1
    , x_chr_rec => l2
    IF ln_msg_count > 0 THEN
    FOR v_index IN 1 .. ln_msg_count
    LOOP
    fnd_msg_pub.get (
    p_msg_index => v_index
    , p_encoded => 'F'
    , p_data => error_message
    , p_msg_index_out => v_msg_index_out
    DBMS_OUTPUT.put_line ('ERROR:' || error_message );
    END LOOP;
    END IF;
    END;
    The output results in following error: ERROR:You cannot save this entry before saving the header entry. (COL_NAME=sts_code) (CHILD_TABLE=OKC_K_HEADERS_V) (PARENT_TABLE=OKC_STATUSES_V)
    Anybody has used this API or knows other method of creating oracle contract please help.
    Thanks in advance.

    Hello,
    I am trying to create project contract using following code:
    DECLARE
    lv_return_status VARCHAR2 ( 1000 );
    ln_msg_count NUMBER;
    lv_msg_data VARCHAR2 ( 1000 );
    l1 oke_import_contract_pub.chr_rec_type;
    l2 oke_import_contract_pub.chr_rec_type;
    error_message VARCHAR2 ( 3000 );
    v_msg_index_out NUMBER;
    BEGIN
    l1.project_id := 3188;
    l1.prime_k_number := 'PRJ-CNV-10016';
    l1.owning_organization_id := 365;
    l1.start_date := SYSDATE;
    l1.inv_organization_id := 364;
    l1.authoring_org_id := 82;
    l1.k_type_code := 'MIPR';
    l1.sts_code :='E';
    l1.template_yn:='N';
    l1.currency_code:='USD';
    oke_import_contract_pub.create_contract_header (
    p_api_version => '1.0'
    , p_init_msg_list => oke_api.g_false
    , p_ignore_oke_validation => 'N'
    , x_return_status => lv_return_status
    , x_msg_count => ln_msg_count
    , x_msg_data => lv_msg_data
    , p_chr_rec => l1
    , x_chr_rec => l2
    IF ln_msg_count > 0 THEN
    FOR v_index IN 1 .. ln_msg_count
    LOOP
    fnd_msg_pub.get (
    p_msg_index => v_index
    , p_encoded => 'F'
    , p_data => error_message
    , p_msg_index_out => v_msg_index_out
    DBMS_OUTPUT.put_line ('ERROR:' || error_message );
    END LOOP;
    END IF;
    END;
    The output results in following error: ERROR:You cannot save this entry before saving the header entry. (COL_NAME=sts_code) (CHILD_TABLE=OKC_K_HEADERS_V) (PARENT_TABLE=OKC_STATUSES_V)
    Anybody has used this API or knows other method of creating oracle contract please help.
    Thanks in advance.

  • How to create Tree format in Table Rn in one Column having data?

    Hi Gurus,
    i got the new requirement it's very interesting pl z help me...
    My Requirement is i have one Table Rn in Table Rn having 5 columns There here one column name is 'Competencies ' That Competencies column having the more rows liki
    FUNC.ADMIN.Achievement Orientation
    FUNC.ADMIN.Administrative Assistance and Support
    FUNC.ADMIN.Administrative(ADMIN)
    This is one column data my Requirement is now
    FUNC
    +ADMIN
    +Achievement Orientation
    like clients are expecting pl z tell me how to approach in this requirement and what are prerequisites are needed ...plz help me it's urgent requirement.
    Regards,
    Srini

    Hi Gyan,
    Thank's for valuable suggestions
    My Requirement is This ...
    "Competencies" Table Layout: (InstTableLayout)
    COMPETENCIES (COLUMN NAME)
    BEHV.Generic.Communication(BEHV)
    BEHV.Generic.Planning, Organizing & Time Management
    BEHV.Generic.Problem Solving Ability
    BEHV.Generic.Productivity
    BEHV.Generic.Punctuality
    like number of rows are there now Tree format is row data
    like each column divided each one
    ex:
    + BEHV
    *|*
    +Generic
    *|*
    +Communication(BEHV)
    like he expected client in tree format pl z tell me how to approach in this requirement and what are the prerequisites are required .....
    Regards,
    Srini
    Edited by: 876628 on Dec 1, 2011 8:37 PM
    Edited by: 876628 on Dec 1, 2011 8:37 PM

Maybe you are looking for