Object Key for PO

Hi Guys,
I had a requirement where i need to call a particular FM whenever a PO is getting created/changed. I had the Object Type and the event which is called when a PO is changed. How can i link the Event and the FM in R/3.So that whenever that event is called it triggers that FM Importing the Object Key.
Thanks,
Kittu.

Hi Kittu,
As far as i know we cannot link a Business Object - Event to a FM directly. We can trigger a workflow whenever a Business Object - Event occurs and in this WF we can create a Step Type: Task to which we can attach the FM.
So whenever this event occurs the WF is triggered and you FM gets executed.
Please let me know if further details are required.
Regards,
Goutham.

Similar Messages

  • Object key for PORDER (document links, table DRAD)

    Hi,
    the object key for PORDER entries in table DRAD looks like:
    000003054845O00000000000020000000020000
    what i know:
    character 1 to 12: ordernumber (AFKO-AUFNR)
    character 18 to 23: sequencenumber (AFVC-PLNFL)
    character 24 to 27: operationnumber (AFVC-VORNR)
    character 28 to 35: counter (AFVC-APLZL)
    so whats about character 13 to 17 and 36 to 40?
    Thanks, Martin

    Hello Martin,
    Look at the field OBJECT which indicates which is the table for which the key OBJECT Key is populated. Check the table indicated in the OBJECT field and the key for the field is the same as the value for OBJECT KEY.

  • Object key for object type WORKITEM is not generated

    Hi experts,
    I have a problem when I create a purchase requisition by workflow. This problem happens a client copy from production to quality system has been done.
    The problem is that the object key for the object type WORKITEM is not generated. I check in transaction SWEL in quality system it displays the following data:
    For the event data I have the following data:
    Event Instance ID - 1099124
    Object Type - BUS2105
    Object key - 0120001588 (purchase requisition number)
    Event - criadaoumodificada (createdorchanged)
    For the Receiver Data I have the following data:
    Receiver Type - WS99900003 
    Object Type  (is not displayed)
    Object Key   (is empty)
    Receiver FM - SWW_WI_CREATE_VIA_EVENT_IBF
    RFC Destination - WORKFLOW_LOCAL_010
    In the Receiver Data the object type is not displayed and the object key is not generated. In production system the object type is WORKITEM, and the object key is filled by a number of workitem.
    Can anyone tell me why this happens?
    Best regards,
    Leonel

    Hi Leonel,
    as far as I remember, those fields are updated once the receiver function module was successfully processed. In your case, I'd suggest, that you ...
    - Check the workflow local RFC destination (SM59, WORKFLOW_LOCAL_<client>)
    - Check the workflow-user (SU01, User-ID WF-BATCH normally),
    - Check for entries that stuck in the event processing (tRFC queue, transaction SM58).
    - To verify the complete system, execute transaction SWU3. The section under "Runtime environment" should be marked green.  (Ignore the red sign on definition environment).
    - For a more extensive workflow runtime check, use the transaction SWUD  (workflow diagnosis).
    After all that, your problem might be solved, or at least you know, what's all okay
    Best wishes,
       Florin

  • Requirement for object key for HashMap

    Hi,
    I would like to put the object to HashMap keyed by my own object. what is the requirement for the class to be key? I have a method boolean equals(Object o) defined in the key class, My key is composed by 2 ids, so in the equals method I compared the 2 ids. but it seems can't get the value out. Please help. Thanks

    How do I supposed to do the hashCode? If myKey1.equals(myKey2) returns true, then myKey1.hashCode() must return the same value as myKey2.hashCode(). One consequence of this is that if something is not used to compuate equals(), then it must not be used to compute hashCode(). (Note that the reverse is not true. That is, if two objects are not equal, they can still return the same value from hashCode(), and hence, if some data is used for equals() it may still be left out of hashCode().)
    You want hashCode to be 1) quick & easy to compute and 2) "well distributed" or "mostly unique. If you know how hashcodes are used (in the general sense, not just the Java hashCode() method) then you should understand why those properties are desirable. If not, just ask.
    The most common approach is to use some subset of the object's fields in computing the hashCode. If you have a Person object with lastName, firstName, birthdate, height, weight, address, phone number, you probably wouldn't use all those fields. You could just lastName, or maybe a combination of lastName and firstName.
    One generally combines multiple pieces by taking XORing (the "^") operator the individual pieces (for primitives) or their hashcodes (for objects). For example, in the Person example: public int hashCode() {
        return lastName.hashCode() ^ firstName.hashCode(); // but make sure to check for null first
    }

  • Activate standard badi - prompts for Object Key?

    In SE19 when trying to activate an SAP delivered implementation of a badi I'm prompted for an object key for the implementation class.   
    fyi  Running ECC6 on Basis 7 kb14.
    Go to SE19
    Display badi FIAA_BW_DELTA_UPDATE
    Go to environment menu, choose activate.
    Notice that the activate option is greyed out?
    Go back and change the FIAA_BW_DELETA_UPDATE badi implementation.      Go to environment menu, choose activate. You'll be prompted for an object key for the implementing class -  CL_IM_FIAA_BW_DELTA_UPDATE.
    Is this correct behavior?   We don't want to change the class - just activate it.    Could I get around this by copying the class changing the implementation class to a ZCL_IM_FIAA_BW_DELTA_UPDATE?
    Thanks in advance for any help on this topic.

    Hi Ryan.
    You need to apply an OSS note for this
    Please check the extract below..it will solve the problem
    check the following Notes.
    Check these OSS Notes - 828240, 688477 and 590034,599896
    Note Pasted below :
    When you load the delta-enabled InfoSources of asset accounting, no time stamp information is updated in the OLTP system if you have selected "Simulation of the delta process initialization" (initialization without data transfer; technical mode 'S') as the update mode.
    This affects the InfoSources:
    1. 0ASSET_ATTR_TEXT
    2. 0ASSET_AFAB_ATTR
    3. 0FI_AA_11
    4. 0FI_AA_12
    As a result of the error, you cannot start delta extraction after the initialization without data transfer because the delta extractor does not find any time stamp information it can use.
    Other terms
    RSA3, BWOM2_TIMEST, delta, DeltaInit, BWFIT, 0FI_GL_4, BWFIT_GET_TIMESTAMPS, BWFIT_RESET_TIMESTAMPS, BWFIT_UPDATE_TIMESTAMPS
    Reason and Prerequisites
    a) The problem is caused by a program error.
    b) The 'FIAA_BW_DELTA_UPDATE' BADI is not active.
    Solution
    For a: Implement the source code corrections to create a correct time stamp for the initialization without data transfer.
    For b: For a data extraction to the BW system according to the delta method, the 'FIAA_BW_DELTA_UPDATE' BADI must be active. When assets are changed, this BADI writes the corresponding change entries which are read by the extractors to determine the delta values. If this BADI is not active, the extraction terminates with error BWFIAA 001 (BAdI implementation FIAA_BW_DELTA_UPDATE inactive in source system). During a DeltaInit extraction with data transfer, the system flags the data request as incorrect or canceled in the monitor and issues the error message. However, during the DeltaInit extraction without data transfer, the system does not issue an error in the BW system even though the extractor triggered an error message and the termination of the extraction in the OLTP system. The data request in the BW system has the status 'successful' and the user cannot see that an error has occurred. However, a time stamp is not created in these cases since the following delta extractions would cause inconsistencies because the BADI would not be able to log all changes that have occurred since the last extraction.
    Regards
    Byju

  • Object Key required for document in Script

    Hi All,
    I require Object Key for Document to compair with Nast-vstat. Requirement is check vstat value. How will i get object key in SAP Script.
    Regards
    Divekar Mahadev

    Objectkey(objky) you can get from NAST table. It is basically the document number.
    Regards,
    Mallick

  • Creation of new Personalization object keys

    Hi All,
    Is it possible to create new personalization object key for a role for eg: in SRM we have personalization objects keys BBP_SPEND_LIMIT and BBP_APPROVAL_LIMIT already defined by SAP. In case we need to define the same kind of spend limits for users in MM. Can we define new personalization objects keys ? If yes let me know what are the steps
    I am aware of the transaction PERSREG, but not sure of its uses.
    Regards,
    SC

    Hi,
    PERSREG is the right one for defining the pers.key.
    I think the problem will be, if and how your new key shall be handled by the applications coding....
    Maybe MM offers some exits or whatever to verify own personalizaiton keys?
    b.rgds, Bernhard

  • How to create new object key in BDS?

    Hello,
    I need to create custom class in BDS (OT type) and object key for it.
    In this forum (and in the whole Internet) I found information only about custom class. However there's nothing about object key.
    How could I create new object key in BDS class?
    Great thanx in advance!

    Hi Max,
    you can create BOR object in business object repository, Transaction SWO1, SWO2, search documentaion for BOR obkect.
    Regards,
    Clemens

  • Object type for Material Document

    Hi,
    I need to get the object key for a material document, which has to be passed to NAST table. If 4900004026 is the material doc. then its object key is conerted as
    490000402620050001. Is there any FM for conversion ?

    Hi,
    Am not sure, whether Function Module is existing or not.
    But, you can concatenate these fields to a String variable  or split for the values based on Field Length to separate variables and you can proceed with your process.
    Regards,
    Anbalagan.

  • Olap universe lov restriction on detail object key

    Hi,
    I created a restriction on dimension lov in SAP olap universe using 0PLANT dimension on Orders keyfigure as below
    <EXPRESSION>(@Select(Key Figures\Orders),[0PLANT].[1000])</EXPRESSION>
    this syntax works but webi results are not matching with BEx.
    Values of BEx RKF and formula object (
    =[Orders] Where([L01 Plant] = "1000")
    )created in webi are matching.
    I am trying to create restriction on detail key object,  like
    <EXPRESSION>(@Select(Key Figures\Orders),[0PLANT].[LEVEL01].[[20PLANT]].[Value].[1000])</EXPRESSION>
    above measure is giving error when i run the webi query.
    here both L01 Plant and L01 Plant Key are having same lov as 1000,but i wanted check exact values with detail key syntax.
    Can anyone please tell me the syntax for using detail objects keys for restriction in Select Clause.
    Thanks,
    Harsha

    Hi,
    why are you not creating this as a restricted key figure in the underlying BEx Query ?
    Ingo

  • How to get object type and object key of bapi_acc_gl_posting_post

    Hi,
       I want to upload data from flat file to FB01 transaction using BAPI. For this i found bapi_acc_gl_posting_post. How should i get the obj type and object key for this bapi.
    Please let me know wether this is correct bapi for fb01 transaction.
    Thanks in advance,
    Regards,
    Sun.

    Hi,
       I want to upload data from flat file to FB01 transaction using BAPI. For this i found bapi_acc_gl_posting_post. How should i get the obj type and object key for this bapi.
    Please let me know wether this is correct bapi for fb01 transaction.
    Thanks in advance,
    Regards,
    Sun.

  • Reg creating Object Key

    when a person tries to create a new planning area using Transaction BPS0
    it is asking for a Object key for a object called
    r3tr CLAS /1SEM/CL_FACTORY_100ZPAPK
    Is this a SAP Object or a user created object.
    Shall i go ahead and create a object key if it is a SAP Object

    Hello Balaji,
    This is standard SAP object that is the reason why object key is being asked. You can create it in the SAP marketplace using OSS id pertaining to your installation.
    Please award points for useful info.
    Regards.
    Ruchit.

  • Resource Object Key

    Hello experts.
    How to find Resource Object Key for example for AD in my env?
    I have AD server, connector and I want to provise AD User to user in OIM.
    I use access policy and createAccessPolicy method:
    accessPolicyKey = accessPolicyOp.createAccessPolicy(policyCriteriaMap, provObjKeys, revokeObjectIfNotApply, denyObjKeys, groupKeys, resourceParam);
    long[] provObjKeys = {?};
    Help me pls.
    Thanks.

    I used this code:
    public void whatakey(){
    try {
    tcObj = (tcObjectOperationsIntf)getUtility("Thor.API.Operations.tcObjectOperationsIntf");
    } catch (tcAPIException e) {
    HashMap mam = new HashMap();
    mam.put("Objects.Name", "AD User");
    tcResultSet set;
    try {
    set = tcObj.findObjects(mam);
    System.out.println(set);
    } catch (tcAPIException e) {
    And got this message:
    Thor.API.tcMetaDataSet@1112c36d
    Whats wrong?

  • Transaction KB16N business-object type and key for GOS

    When attachments (notes, PC documents etc) are made to a manual cost allocation in transaction KB16N using GOS (generic object services):
      what is the business-object type?
      how is the business-object key constructed?
    I suspect that the business-object type is BUS6036.
    I suspect that the business-object key is the concatenation of the controlling area and the document number (using internal values).
    Is that correct?
    The reason for my question is that I have a program to display attached notes (and allow drill-down to attached PC documents) that works for various business objects (billing documents, purchasing documents and some FI documents), but I cannot get it to work for manual cost allocations.
    John

    Hi Michele 
    The transaction you are looking for should be SWO1
    Then put the ex "BUS2000116" into the Object/Interface type and ...
    Guess it will help you
    Best Regards
    Daniel

  • Regarding the access key for an object

    HI all
    Please clarify me the doubt that an access key will be different for each and every object or one for all the objects.
    regs
    karna

    Hi karna,
    1. It will be different for all objects.
    2. In fact, access key will be different
        for each object,
       and that too, for each different installation number
       as well as each basis version number
    <b>3. In short, access key is dependent upon the combination of
    1. The object R3TR FUGR SFES    
    2. Sap Release (eg. 640)
    3. Installation Number</b>
    4. It means that the access key for one standard program
       (in our server),
       will not work in another server bcos the installation number will be different.
    regards,
    amit m.

Maybe you are looking for

  • While doing down payment request with PO (F-47)

    Hi, While doing Downpayment Request (Capital Vendors) with reference PO the system is showing below error. Contact your system administrator (table error) Message no. AA866 Diagnosis No account has been entered for posting down payments in area 01 un

  • Multiple digital signatures in a pdf form?

    I'm creating an adobe pdf form that requires multiple approvers (one after the other) to digitally sign the form. However, once the second person digitally signs the form, the first person's signature will become invalid because the addition of the s

  • Material doc. list and purchasing process

    Hi Gurus, Can anyone please tell me how can Material Document List can be used to support the purchasing process (what decision(s) would this information support, and/or how could it improve the efficiency or effectiveness of the process

  • Problem in adding a standard field to identification screen in sap crm 2007

    Hi Experts, I have added a field INDUSTRY SECTOR to the identification screen, my requirement is to pull the data from R/3 field INDUSTRY SECTOR.All middleware settings are fine and even i could see the data in CRM Database, but it is not pulling to

  • My help file disappeared in the middle of a session

    closed help window in the middle of an iPhoto session.  when I reopened it the window was blank. relaunching iPhoto didn't fix problem.  any ideas?