Determining procedure location programmatically?

I have a 10g form that has a library attached. In the library there is a procedure that is defined both in the library and locally in the form with the same name. This worked ok in previous versions of Forms but according to Oracle Support there is a bug in 10g that causes Forms to get a 92101 error and the work around is to rename the procedure since there is no fix for the bug at the moment. However, for this application both procedures are needed since some of the forms have the procedure locally defined and others do not.
Is there any way to determine programmatically within a library whether a procedure exists locally? If so then I could rename the local procedure but call it from the library if it exists.

I don't think you can do this, but even if you can - it won't help you. You will still need procedure with the same name to be present in library for compilation.
You can try to use execute_trigger. Although, personally, I don't like this method.
In the form create user defined trigger instead of procedure.
In the library try something like this:
BEGIN
  copy('25','System.Message_Level');
  execute_trigger('form_user_def_trigg');  
  IF NOT FORM_SUCCESS then   
    library_procedure;
  END IF;   
  copy('0','System.Message_Level');      
END;

Similar Messages

  • Account determination procedure

    What is account determination procedure KOFI00.

    It is used in FI and SD integration.
    When you post an invoice, for example, the system uses account determination types to locate the G/L accounts to which amounts should be posted. You can define G/L accounts in account determination tables in SD Customizing through Acct determination -> Environment -> Maintain acct determ. The system checks these tables according to the specified access sequence until it finds a valid account.

  • Help needed in TEXT determination procedure - Urgent

    Hi Experts,
    I have defined my own text determination procedure for complaints. This procedure is for the item category for the transaction(complaint).
    The following are the Text ID's that I have include in my procedure :
    1. C001
    2. C002
    3. C003
    My requirment is to have logs(history) for each of the text id's(C001, C002, C003).
    i.e. what ever i do in C001, it has to be loogged only in text id let;s say ZC001, same way C002 shld be logged only in ZC002 and C003 in ZC003.
    I have also defined ZC001, ZC002, ZC003 in the text detrmination procedure.
    Please help me in slving this problem. Can i do it in the config itself or shld i go for development?.
    Regards,
    Arul Jothi A.

    hi,
    This is what exactly i am lloking for, but i tried with your proposal. It didint work.
    Please find the detailos below.
    Text Object      CRM_ORDERI
    Text Det.Proc:   ZCOMP001
    Text Type  Description              Seq.        changes     Transfer      Access Seq.
    C001     Complaints Text     0001     P              -                   -
    Z001     complaints1     0002     R     A     ZC01
    C002     Internal note     0003     P              -                   -
    Z002     original text test     0004     R     A     ZC02
    C003     Recomm. Solution     0005     P              -                   -
    Z003     original text 3     0006     R     A     ZC03
    Access Seq :
    ZC01 :
    Ref. Object     CRM_ORDERI
    Ref. Text Type  C001
    continue chcked.
    ZC02.
    Ref. Object     CRM_ORDERI
    Ref. Text Type  C002
    continue chked
    ZC03.
    Ref. Object     CRM_ORDERI
    Ref. Text Type  C003
    continue chked
    I want to log all C001 text into Z001 only, C002 in Z002 only and C003 in Z003 only.
    hope you got it....
    Please help.
    Regrads,
    Arul Jothi A

  • Territory and partner determination procedure for employee responsible

    Hi CRM team,
    I have a little issue for you I'll be very thankfull if someone could help me.
    There is the organisation of the territory management in the company I'm working for:
    -Country
    -Region
    -sector
    *each sector have a determination rule based on 1 condition "1 field from the BP Header (customer)"
    *each sector have a position assigned to it. (Organisational model PPOMA_CRM) And there is 1 or 2 employee affected to each position..
    *When creating an activity,*
    *First thing I enter the Account (customer: activity partner)*
    *I would like the system to determine the employee affected to the sector of the BP as the employee responsible.*
    Any Idea?
    For the moment, I'm searching in the partner determination procedure. But the standard access sequence Business Partner Relationships: Activity Partner -> User dont work.
    There is some sitting from my IMG:
    The partner fonction Employee Responsible is with
    *fonction category: employee
    *usage: CRM
    *Relationship category: Is the employee responsible for
    Partner determination procedure:
    In the acces sequence, I put a dialogue seq 15 : 
    Business partner from territory
    And in the detail on source, I put:
    Fonct. categ. : Employee
    Usage: CRM
    It dosn't work...
    I don't know if I'm am searching in the right place.
    Could you help me with a solution to have the needed system behavior????
    Thanks a lot for your time and your help.
    Best regards,
    Ahmed.

    Hi Ahmed,
    After created determination rules for territories have executed the report CRM_TERRMAN_PROC_REL for initial option?
    Once territories and determination rules are created, you need to run the above report in Background(schedule a batch job) which will establish relationships between the territories and corresponding attributes. You need to run this report every time there is a change in determination rule of create/change territories.
    This should resolve your problem
    Regards,
    Priyanka

  • Error in CHARM_CREATE when using a Z partner determination procedure

    Hi,
    I use SDCR and needed to create a new partner determination procedure ZDCR0001. I don't need to change anything else in this Change Request transaction type, so everything else is standard. When I run CHARM_CREATE now, the program is using the partner determination procedure instead of the text determination procedure SDCR0001 in order to get the text ids, and then I have an error: Text determination procedure ZDCR0001 does not exist.
    I noticed that there is a problem in the standard code of CHARM_CREATE:
    *&      Module  get_data_0101  OUTPUT
          Retrieve the Data to get different text types                  *
    MODULE get_data_0101 OUTPUT.
       IF gv_display = ' '.
         CHECK gv_created IS INITIAL.
    *get the required info for text processing
         CALL FUNCTION 'CRM_ORDER_PROC_TYPE_SELECT_CB'
           EXPORTING
             iv_process_type = gc_processtype
           IMPORTING
             es_proc_type    = ls_proc_type.
    *get the list of changes to be done
         CALL FUNCTION 'COM_TEXT_CUST_I_STRUC1_READ'
           EXPORTING
             iv_object               = gc_object-order_h
             iv_procedure            = ls_proc_type-part_determ_proc
           CHANGING
             et_struc1               = gt_zthead
           EXCEPTIONS
             textobject_missing      = 1
             textobject_not_found    = 2
             textprocedure_missing   = 3
             textprocedure_not_found = 4
             other_error             = 5
             OTHERS                  = 6.
         IF sy-subrc <> 0.
           MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
         ENDIF.
    This function module is for getting texts, but uses the partner procedure. I created a message and sent to SAP, but they say they don't have this error there. Has any of you had the same problem? I could not find any note to correct this code. I have SP 17 for ST.
    Thanks,
    Raquel.

    Mention the Function name starting with 'Z'
    Regards
    Sreenivas

  • After the last Os update, my ipod can no longer determine its location. I have already restored

    After the last Os update, my ipod can no longer determine its location. I have already restored

    Make sure you have the latest versiom of AirPort Utility installed >  AirPort Utility 6.3 for Mac

  • Free Goods Determination Procedure

    Can anyone simply tell me free goods determination procedure with an example?
    Thanks

    Hi,
    Free goods is something that the customer is given after he buys certain quantity of the product/material.
    Free goods is a strategy to increase sales volume by luring the customer that if he buys 10 products one will be absolutely free.
    Free Goods:Goods that are given as additional goods as part of the ordered goods are called as free goods.Here the unit of measure of free goods should be the same as standard goods.
    Example:If you are are ordering 10 maggi sauce bottle you will be paying for only 8 bottles 2 is given as freegoods.
    price will not be reflected in pricing or billing.this is inclusive freegoods
    Exclusive freegoods.
    wherein the freegoods are given as additional good to that of the ordered goods
    Example:For 4 coffee vending machine 1 kg coffee powder isgive as free goods
    Sample goods:these are the goods which are given as pert of the promotional activity to increase the sales.
    here the customer is not paying money.
    Free goods - In SAP there are two types Exclusive and Inclusive.
    Exclusive - Buy 2 and get 1 free. This means you have to buy minimum 2 pieces then on that you will get 1 piece absolutely free.
    Inclusive - Buy 2 get 1 free. In this case it means you are paying for only 1 item and the other item is absolutely free.
    Configuration:
    IMG - Sales & Distribution - Basic Functions - Free Goods - condition technique for free goods -
    1. create the condition table.
    2. maintain access sequence and assign the condition table to the access sequence.
    3. maintain condition type and assign the access sequence to the condition type.
    4. maintain the procedure for free goods and assign the condition type to the free goods procedure.
    5. Activate free goods determination. In this enter sales org., dis channel, division , docu pri pro, cust pri pro and the free goods procedure.
    6. now go to VBN1 - create free goods determination. Select your condition type, key combination and enter. Here you enter sales org, dis channel, customer no., Valid from and Valid to dates. Then you first select whether it is exclusive or inclusive free goods determination. By default it will be inclusive if you click on exclusive it will become exclusive and on top it will display inclusive. Here you enter minimum quantity for free goods and from what order quantity the number of free goods. You can control the delivery also in the second last column(free goods delivery control).
    Save the record. Go to VA01 create the sales order , enter the item and the minimum quantity for free goods to be applicable and observe the results.
    Hope this will solve ur problem.
    Plz reward Pts for useful answer.
    Thx & regards,
    Pankaj
    Message was edited by:
            Pankaj Mahajan

  • Re-run Free goods Determination procedure in sales order

    Hi frnds,
    Free Goods determination procedure will run when I am entering material in the sales order.
    Like pricing (caarry out new pricing option)can we re-run the free goods determination procedure in sales order after entering the material.
    Please help me.
    Sunil Garg

    Hi Sunil,
          U cannot rerun the free goods. As free goods are given based on the material whenever u cahnge the materrial quantity then only it will be rerunned, but not during pricing,. Free goods condition records r based on the material

  • Use of Number range in Free goods determination Procedure

    Hi,
    Can any body tell me that why we use number range in free goods determination procedure & where it was assigned.
    Thanks & Ragds......
    rashmi

    Hi,
    This facility is provided just to differenciate your free issues documents from normal sales documents and nothing much. This means if you want to make a report depending upon free issues number range then you can get the results as per the free issues number range. For example if you customer has been doing business in various countries and each county wants specific number range for their documents then you'll use an exit which will assign the required number range specific to the country.
    Hrishi

  • Account Determination Procedure in Sales Order

    Hi All,
    I have a problem regarding account determination procedure in sales order.
    When I create a new sales document, and go to menu Environment --> Analysis --> Account Determination, the information about the procedure is blank.
    For your information, I already assign this sales document type to a billing type.
    This billing type also already has an account determination procedure, which is KOFI00.
    The G/L Account in VKOA also already been set up for the combination of Condition Type - Chart of Acct - Sales Org - Account Assignment Category in Customer and Material - Account Key.
    But every time I create a new sales order, I cannot get the account determination procedure.
    Anyone can please help me to solve this problem?
    Thank you in advance

    Hi Surya,
    Have you assigned Billing type For Ex: F2 or F1 to respective Sales Order Type in Sales Document Type controls VOV8.
    Assign these F2 against Delivery Related billing and F1 is for Order Related billing.
    Assign KOFI0000 to respective Billing Types F2 and F1.
    And check, hope issue may resolve.
    Revert if u have any query.
    Regards
    Durga sana.

  • Partner determination procedure

    <b>Hi,
    This is for the 1st time i am in this forum.
    Could anyone tell about when the error comes (during creation of sales document-customer master record does not exist), though i have created my own partner determination procedure with new part functions & created cmr successfully too.
    Regards,
    Dash</b>

    Have you created Customer Master Data?
    Steps to create Customer master data:
    <b>2.1.2 Process to Create Customer Master
    2.1.2.1 Initial Screen of Customer Master Maintainance</b>
    Use
    The purpose of this activity is to maintain Customer Master Data. Customer Master Can be created for Sales & Distribution, in which it will be possible to maintain General Data Tab & Sales Area Tab. Alternatively it is also possible to maintain Complete / FI, in which it is possible to maintain General Data, Company Code Data & Sales Area Data (Complete) or General Data & Company Code (F1)
    <b>Procedure</b>
    1. Access the activity using one of the following navigation options:
    SAP Easy Access > Logistics > Sales and Distribution > Master Data > Business Partner > Customer > Create > Sales and Distribution / Complete
    Transaction Code: VD01 / XD01
    Fields to be maintained in Initial Screen (referring Complete):
    Field     Functionality
    Account Group - Take a drop down & select appropriate Account Group (Say, Sold To Party)
    Customer     - Enter manually / Internal by system (Based on Configuration)
    Company Code - Take a drop down
    Sales Organization - Take a drop down
    Distribution Channel - Take a drop down
    Division - Take a drop down
    A Customer can be created with reference to an existing Customer & necessary data can be changed.
    Reference
    Field - Functionality
    Customer     Enter manually
    Company Code - Take a drop down
    Sales Organization -Take a drop down
    Distribution Channel - Take a drop down
    Division - Take a drop down
    <b>2.1.2.2     General Data of Customer Master Maintenance</b>
    Use
    The purpose of this activity is to maintain General Data. General Data is applicable to the customer centrally. Incase of extending Customer to another Sales Area, General data will remain the same.
    <b>Procedure</b>
          Fields to be maintained are as under:
    <u>ADDRESS</u>
    Field - Functionality
    Title     Take a drop down
    Name - Enter manually
    Search Term - Enter Manually (Optional)
    Street - Enter Manually (Optional)
    House No - Enter Manually (Optional)
    Postal Code - Enter manually
    City - Enter manually
    Country - Take a drop down
    Region - Take a drop down
    <u>Control Data</u>
    Field - Functionality
    Vendor - Enter Manually (Optional) – To establish Customer Vendor Relationship.
    Trading Partner - To be maintained incase of Inter-company Customer,
    The above is for Illustration purpose. Please ensure to maintain the fields required.
    <b>2.1.2.3     Company Code Data of Customer Master Maintenance</b>
    Use
    The purpose of this activity is to maintain Company Code Data. This is maintained by an FI person.
    <b>Procedure</b>
          Fields to be maintained are as under:
    <u>Account Management</u>
    Field - Functionality
    Recon. Account - Take a drop down (Mandatory)
    <u>Payment Transaction</u>
    Field - Functionality
    Terms of payment - Take a drop down.
    The above is for Illustration purpose. Please ensure to maintain the fields required.
    <b>2.1.2.4     Sales Area Data of Customer Master Maintenance</b>
    Use
    The purpose of this activity is to maintain Company Code Data. This is maintained by an FI person.
    <b>Procedure</b>
          Fields to be maintained are as under:
    <u>Sales</u>
    Field - Functionality
    Sales Office - Take a drop down
    Currency - Maintain the local / export currency.
    Exch. Rate Type - Maintain ‘M’, incase of export / inter-company(if required) only.
    Cust. Pric. Proc - This is maintained to pick the pricing procedure in Sales Order & Billing Document. It should always be maintained.
    Customer Stat. Gr - This is recommended to be maintained to enable the data to flow to SAP standard report.
    <u>Shipping</u>
    Field - Functionality
    Delivery Priority - Take a drop down & maintain the appropriate for Delivery purpose.
    Order Combination - Maintain the tick
    Shipping Condition - Take a drop down & maintain the appropriate for Delivery purpose.
    Delivery Plant - Take a drop down & maintain the appropriate Plant.
    <u>Billing</u>
    Field - Functionality
    Incoterm - Take a drop down & select. Maintain the Description manually.
    Terms of payments - Take a drop down & select.
    Account assignment Group - Take a drop down & maintain the appropriate. This is very important to be maintained, else it will give an error to release the billing document to accounting.
    Tax - Take a drop down & select ‘0’.
    The above is for Illustration purpose. Please ensure to maintain the fields required.
    Regards,
    Rajesh Banka
    Reward points if Helpful.

  • CRM 7.0 in partner determination procedure

    Dear all,
    In CRM 7.0 in partner determination procedure for an ITEM level am unable to set up procedure so that any partner will always be just mirror of the partner set on HEADER level.
    This functionality works only when the new order is created, then when changing the partner on HEADER level the partner on ITEM level partner is dynamically changed a according to HEADER.
    When changing the order later u2013 HEADER partner is changed, but the ITEM partner stays the same and had to be changed manually. If an ITEM partner is not changed manually an error is raised while transferring to ERP (because of customizing settings there). Partner determination procedure in customizing is set for ITEM to display all the partners defined in CRM (no only for defined in the particular procedure). I would basically need the ITEM partners to be always the same as HEADER partners no matter what operations are done in the HEADER is must be 1:1 with ITEM (automatically copied when creating/changing).
    I know that we can use ABAP development, but if possible I would like to use just customizing tools.
    Many thanks for your comments

    Hello Guys,
    thanks for your reply. The issue was that the system was copying the partners from header to item even if in customizing I had set up the item det. procedure so only basic partners like SP or Bill to shall be present. In our scenario the user has to change header partners from time to time. Before upgrade (version 4.0) if the user changed the partner header and this partner was also at item level the system changed this also so header partners were equal to item partners. After upgrade this functionality disappeared (I have checked user exits and did not find any cutomer dev.)
    At current CRM 7.0 if the header partner is changed item partners stays the same. And this can causing the troubles in R/3 due to settings of partner determination. To make it shorter. If you need to change the BDoc after it has been created by CRM use class if_ex_crm_dataexchg_badi~crm_dataexch_after_mbdoc_fill.
    Regards
    Radim

  • Text determination procedure in Marketing Plan

    HI All,
    I am using text object CGPL_TEXT and Text determination procedure MPL assigned under it. Text determination procedure MPL has two text types "Description" and "Notes". System is allowing to select "Notes" in marketing plan and enter the text. Next time if I try to select same type "Note" then system is giving error "Make entry in the field Language". But I can select other type "Description" and enter the text.
    Does it mean system allow to enter text for a text type only once? What if I want to use same text type for multiple time to enter information related to the same item.
    Any pointer?
    Regards,
    Nikhil

    Dear Nikhil,
    You are correct that in standard only one text type can be created per language... i.e. 'Note in English' or 'Description in English' can only be created once. But you can certainly add information to a previously created text type.
    I'm not sure if there is a technical way to change this.
    Regards,
    Anik Roy
    SAP CRM Moderator

  • Purpose of Access sequence in text determination procedure?

    Dear all,
    I can get my text id's at sales document header/item level by simply assigning my defined text id to the text determination procedure.
    now, what is the need for having an access sequence where a text abject and text id is maintained??
    Thanks and regards
    KV

    Hi,
    Define Access Sequences For Determining Texts
    In this IMG activity, you define the access sequences which the SAP System uses to determine the texts for a text object.
    Afterwards, you specify an access sequence for the text search in the determination procedure for every text type.
    You only define access sequences for sales and distribution documents, not for customer master records.
    With an access sequence, you define the sequence and the requirements of the search used by the SAP System to find a text.
    This allows you, for example, to have the system check whether a text exists in the customer language. If this is not the case, then a text in the sales organisation language can be searched for. If this is also unsuccessful, you can have the system carry out the search using English as the fixed value.
    To do this, you make the following specifications for every access sequence:
    acc. no (access number)
    With the access number, you define the sequence in which the text objects of an access sequence should be read. The element with the lowest access number is read first. If an appropriate text is found, the search is ended. Otherwise, the SAP System checks the element with the next number up.
    Text object
    Here, you define which text objects should be checked by the SAP System for an access sequence.
    In the standard SAP R/3 System, for example, in the access sequence 0001 for the text object sales document header is defined, that the SAP System first searches for a form header text in the preceding document (text object VBBK) and afterwards for a sales note in the customer master record (text object KNVV).
    ID (text type)
    Here, you define which text type is to be read from the specified text object.
    It is recommended to select the same text type for the text to be copied. For example, the text for the form header in the customer master record (text type 0001) should be copied into the text for form header of a sales document (text type 0001).
    kapil

  • Significance of access sequence in Text determination procedure.

    Can anybody explain me the significance of access sequence in text determination procedure?
    regards,
    arul jothi a

    hi Prathik,
    I have two text id's.
    1. User Input.
    2. Log
    I want to log all entries in text id 1 into 2 when the transaction is saved.
    Likewise i have three text id's for input and three corressponding logs.
    I have to route those texts that corresponds to a particular text id to the log.
    hope you can suggest me a solution.
    Regards,
    Arul jothi a

Maybe you are looking for

  • Switch phone numbers between 2 different sized SIM Cards?

    I have an HTC One and my dad has an iPhone 5. I want to switch phones with him but the iPhone 5 has a nano sim and the HTC One has a micro sim. Is their a way i can just switch phone numbers on the sim card? for example I have my phone number on my c

  • Host name (server name)

    Who can tell me what the host name (server name) is that I need to use when I add my Apple e-mail address on my iPhone? I already have a hotmail.com address on my iPhone. So I wanted to add my Apple [email protected] e-mail address. Thank you.

  • Iphoto sync with apple tv crash itunes

    When I try to sync my photos using iphoto to my apple tv, itunes latest version crashes. I have been able to sync the photos without using iphoto, any ideas. I think that this is a bug.

  • 2011 for MAC update and now unable to reply to messages in outlook?

    new message, reply, or forward window does not open in outlook for mac 2011, after software update. I have read I need to reinstall safari? I have safari 5.1.9 and snow leopard 10.6.8. How do I reinstall? Appreciate the help!

  • HTTP Error 404/support/download/dlm/main.JSP

    When I try to download Photo Shop Elements from my Adobe account I get this error. What is causing this error?