How the ORG_ID pass into OM Customer Search

Hi all,
I need some help for understanding how the ORG_ID pass into OM Customer Search (navigation OM Supper User >> Customers >> Summary).   We currently have MOAC settup with that responsibility.
1. In R12 how the ORG_ID passing into each session, is it through FND_GLOBAL.APPS_INITIALIZE or MO_GLOBAL or?
2. How can I see the runtime ORG_ID inside HTML or Forms.
3. What is the function and package MO_GLOBAL.ORG_SECURITY in dba_policies for object_name like 'HZ_CUST%' mean?
The result of searching is so inconsistent, sometime able to search customer but sometime are not, event it is the same address?
Thank you.

I have reviewed those note before.  I performed tested in sqlplus and it work as I expected but within HTML page through multiple responsibilities.  the search sometime work sometime not work.  I really want to know.
1. How the ORG_ID passing through each session.  As far as I know the "FND_GLOBAL.APPS_INITIALIZE" no longer setting the operation unit in MOAC but rather than the MO: Default Operating Unit at the user level or responsibility level.  Is that mean when I switch responsibility it will perform a) cal FND_GLOBAL.APPS_INITIALIZE b) lookup profile value for MO: Default Operating Unit?
2. What is the function and package MO_GLOBAL.ORG_SECURITY does?  Should I see that execute when I switch the responsibility every time?
3. How can I validate the ORG_ID that passing into each session HTML page?
I am confused because it is inconsistent.
Thank you.

Similar Messages

  • Is it possible to pass parameters to custom search portlet?

    Hello!
    I use custom search to display automatically results.
    But I need to dynamically add some conditions or change sort order based on user selection in another portlet.
    So, is it possible to pass parameters to custom search portlet?
    Boris
    P.S. I am use Portal 9.0.4

    Hello!
    Ok, I find how to hack it and find out parameters (p_mainsearch, p_order_by_attribute...), but is there any documentation or notes about it?
    And is it possible to change order by list & add there my attributes?
    Kind regards,
    Boris

  • How the ORG_ID field is populated in cn_commission_headers

    Hi,
    Does anybody know how the org_id is populated in cn_commission_headers table?
    I check the package cn_transaction_load_pkg, it does not insert org_id.
    Thanks

    Hi,
    I think this is the ORG_ID of MO Operating Unit assigned at responsibility level.
    Satish

  • How to call & pass values to custom page from seeded page table region

    Hi All,
    can anyone tell me how to call & pass values to custom page from seeded page table region(Attribute is not available in seeded page VO)
    it is urgent. plssss
    Regards,
    purna

    Hi,
    Yes, we do this by extending controller, but you can also try this without extending controller.
    1. Create Submit Button on TableRN using personalization.
    2. Set "Destination URI" property to like below
    OA.jsp?page=/<yourname>/oracle/apps/ak/employee/webui/EmpDetailsPG&employeeNumber={@EmployeeId}&employeeName={@EmployeeName}&retainAM=Y&addBreadCrumb=Y
    Give your custom page path instead of EmpDetailsPG.
    EmployeeId and EmployeeName are VO attributes(Table Region)
    If you dont have desired attribute in VO, then write logic in your custom page controller to get required value using parameters passed from URL path.
    In this case, only personalization will do our job. Hope it helps.
    Thanks,
    Venkat Y.

  • How to hide the parameters passed into servlet or make it read only

    Hi,
    I am calling a servlet to downlaod files, using
    <a href="../servlet/DownloadFile?directory=<%=attachmentPath%>&fileName=<%=fileName%>">But this will display all the paramters passed , of course as I am using hyper link. However I can not use
    <form> to call the servlet because otherwise I got nested form anyway.
    So the users would be able to change the directory and file names to download files I do not like them to download. Somebody would suggest hardcode the directory and filename, but these two parameters are dynamic, so I have to pass them into the servlet everytime I call it.
    Any advice to disable the users to change or even view the two parameters on the address bar?
    Thanks
    </a>

    Here some code snippets to give you an idea of what I do.
    Let's say you want to retrieve a file from your server, and you need to pass the full directory path info in your URL. You might have code as follows:
    String fileName = "/server/SomeUltraSecretHiddenDirectory/ImportantSecretFile.doc";
    Click <a href="/fileservlet?fileName=<%=URLEncoder.encode(fileName)%>">HERE</a> to download file.Using the above code, ANYONE can retrieve this file if they know the URL. Also, they could try to change the URL paths to find other files. In other words, it's NOT SECURE.
    Now, try it this way (all exception handling is left out):
    private static final byte[] salt = { (byte)0xd4, (byte)0xa3, (byte)0xff, (byte)0x9e,
    (byte)0x12, (byte)0xc7, (byte)0xd0, (byte)0x84 };     
    String fileName = "/server/SomeUltraSecretHiddenDirectory/ImportantSecretFile.doc";
    base64Encoder = new BASE64Encoder();
    base64Decoder = new BASE64Decoder();
    // get key object
    SecretKey key = null;               
    PBEKeySpec keySpec = new PBEKeySpec("somesecretkeystring");
    SecretKeyFactory kf = SecretKeyFactory.getInstance("PBEWithMD5AndDES");
    key = kf.generateSecret(keySpec);     
    // get parameter spec
    PBEParameterSpec paramSpec = new PBEParameterSpec(salt, 1000);
    // create cipher
    Cipher c = Cipher.getInstance("PBEWithMD5AndDES");
    c.init(Cipher.ENCRYPT_MODE, key, paramSpec);     
    // take string and get encrypt it (base-64 encode it to get rid of non-printable characters
    byte[] aResult = c.doFinal(fileName.getBytes("UTF-8"));
    String strResult = base64Encoder.encodeBuffer(aResult);
    // print the link
    Click <a href="/fileservlet?fileName=<%=URLEncoder.encode(strResult)%>">HERE</a> to download file.
    // on the server side, do the following to decrypt the link
    String encryptedFileName = request.getParameter("fileName");
    // create decryption cipher (i'm skipping a lot of the init code this time - see above for code example)
    Cipher c = Cipher.getInstance("PBEWithMD5AndDES");
    c.init(Cipher.DECRYPT_MODE, key, paramSpec);
    // decrypt string
    byte[] aResult = c.doFinal(base64Decoder.decodeBuffer(encryptedFileName));
    String strResult = new String(aResult, "UTF-8");Now you have the decrypted String. Your link will be unreadable and unbreakable. 100% safe as long as your key password is safe. I hope that gives you an idea of what you can do with cryptography!
    A few notes:
    - Most of the above code is in separate methods that can be easily reused (especially encrypt() and decrypt())
    - All exception handling has been left out
    - The above code was patched together from memory, so don't expect it to work as is (that's my disclaimer :)
    - You'll need the JCE libraries to use this functionality.
    - For REALLY sensitive data (such as passwords), make sure you use one-way encryption (hashes) if you don't ever need to decrypt it again.
    Michael

  • How the data populated into tables like USR01,USR02 etc

    Hi,
    I have one theoritical doubt. How the data is populated into tables like USR01, USR02 etc after creating the
    user using SU01. Let me know the process behind it.
    Rgds,
    Chandra.

    Hi Chinna,
    When you create users using SU01, SU10 transaction codes, it uses BAPI_USER_CREATE1 which will update the data in the respective tables.
    Same way BAPI_USER_CHANGE is used when you modify any existing users.
    Hope this answers!!
    Warm Regards,
    Raghu

  • How to insert bookmarks into an custom installer

    Hello,
    I'm trying for quit some time now to insert some fixed bookmarks into a custom firefox 7.0.1 installer.
    I tried to use a default profile that has those settings preset, but this isn't working out well. Lot's of users are working on the same computers and every time someone logs into the AD and his roaming profile gets loaded firefox creates an new profile. I have to make the changes everytime they created a profile.
    Is there a way to customize the default profile thats loaded by first start?
    Or force firefox to look at a different location (at first start) for the profiles.ini? Then i use a customized profiles.ini on a other location (not the usual profile path).
    If you need more information, just ask, i want this to work :)
    Me

    You can place a file bookmarks.html in the location of the default profile template folder \defaults\profile in the Firefox program folder (C:\Program Files\Mozilla Firefox\).<br />
    All files in that folder are copied to the new profile.

  • How do I add a google custom search to my search bar

    Hello, I am currently trying to figure out a way to get this: https://www.google.co.uk/cse/publicurl?cx=011443679866246468437:ejnincolk1e custom google search engine to work with my quick search bar and have no idea how to go about adding it to the list of available search engines.
    Is it possible to do this? If so could someone please help me get it set up?
    Thank you!

    Hi guys!
    Thank you so much for you're replies.
    @Epicaleb:
    I already tried to use the 'add to search bar method' however, When I then try to search for anything via the newly added search bar, I just get directed to the search bar page as if a search has not actually been performed and I have to type the search into the actual webpage again instead of using the quick bar.
    @cor-el
    "This makes the search page available as a bookmark with a keyword that accepts search terms as an extra parameter and that you can invoke via the location bar"
    I'm not really sure what you mean by the above part!?
    As for the add on you linked me too, It does not seem to work for the reason listed @Epicaleb. It's really annoying!
    Do either of you know of another way this could be achieved?

  • How to fetch data into my custom script configured in qc02 transaction

    Hi All,
    I configured the custom SAP-Script in place of standard script name in QC02 tcode.In my requirement when I execute QC22
    transaction the custom script will be triggered along with some data based on material number,batch number and plant.I need to fetch QALS-KTEXTMAT , QALS-CHARG, MCH1-HSDAT and MCH1-VFDAT.Please help me how to fetch this data.Any Enahancement need to use or any spot is there Please specify.
    Thanks in advance.
    Regards,
    Satya.
    Edited by: satyareddygade on Sep 8, 2011 2:13 PM

    Hi Satya,
    Try like this in your Script window text element.
    /: PERFORM FETCH_KTEXTMAT IN PROGRAM <Z Subroutine Pool program>                                                                               
    /: USING &QALS-PRUEFLOS&                                                                               
    /: CHANGING &GV_KTEXTMAT&                                                                               
    /: ENDPERFORM
    in Z Subroutine Pool program
    FORM fetch_ktextmat TABLES  intab  STRUCTURE itcsy
                                outtab STRUCTURE itcsy.
      DATA:
        lv_prueflos TYPE qals-prueflos,
        lv_ktextmat TYPE qals-ktextmat.
    *---Get Inspection Lot Number
      READ TABLE intab WITH KEY 'QALS-PRUEFLOS'.
      CHECK sy-subrc = 0.
      lv_prueflos = intab-value.
      SELECT SINGLE ktextmat FROM qals INTO lv_ktextmat WHERE prueflos EQ lv_prueflos.
      outtab-value = lv_ktextmat.
      MODIFY outtab FROM outtab TRANSPORTING value WHERE
      name = 'GV_KTEXTMAT'.
      CLEAR : intab,outtab.
    ENDFORM.                    "FETCH_KTEXTMAT
    /: PERFORM FETCH_HSDAT IN PROGRAM <Z Subroutine Pool program>    
    /: USING &*VBDPL-MATNR&
    /: USING &VBDPL-CHARG&
    /: CHANGING &GV_HSDAT&
    FORM fetch_hsdat TABLES  intab  STRUCTURE itcsy
                                outtab STRUCTURE itcsy.
      DATA:
        lv_matnr TYPE vbdpl-matnr,
        lv_charg TYPE vbdpl-charg,
        lv_hsdat TYPE mch1-hsdat.
    *---Get Material Number
      READ TABLE intab WITH KEY '*VBDPL-MATNR'.
      CHECK sy-subrc = 0.
      lv_matnr = intab-value.
    *---Get Batch Number
      READ TABLE intab WITH KEY 'VBDPL-CHARG'.
      CHECK sy-subrc = 0.
      lv_charg = intab-value.
      SELECT SINGLE hsdat FROM mch1 INTO lv_hsdat WHERE matnr EQ lv_matnr
                                                    AND charg EQ lv_charg.
      outtab-value = lv_hsdat.
      MODIFY outtab FROM outtab TRANSPORTING value WHERE
      name = 'GV_HSDAT'.
      CLEAR : intab,outtab.
    ENDFORM.                    "FETCH_HSDAT
    Use the following program symbols where you want to print.
    &GV_KTEXTMAT& &QALS-CHARG& &GV_HSDAT& and &MCH1-VFDAT&
    Regards,
    Surya.

  • Implementing the IF_WORKFLOW interface into a custom class

    In workflow tasks you can use ABAP Classes and their methods to implement functionality instead of always using BOR objects. I created a class with a static method and got it to work outside of my task. As soon as I put the class and method into my task it says I must Interface implementation IF_WORKFLOW does not exist.
    Does anyone know how to do this?

    Yep, my biggest mistake was looking in the help of my own version. Look in NW2004s:
    http://help.sap.com/saphelp_nw04s/helpdata/en/02/527b42303e0e53e10000000a155106/frameset.htm
    It applies all the way back to 620. Put IF_WORKFLOW into your interface and then define all the shiny new methods in your class. As long as you're only working with statics you don't even need to bother with all the LPOR stuff - just make sure to at least create all the methods (even if empty) to prevent dumps if WF tries to do anything with it.
    Have fun,
    Mike

  • When, why, and how the high pass filter

    i have a good grasp of the arcane nuances of unsharp mask,
    but nothing on high pass filter,  So can someone offer just a
    summary of the thinking of when we select that tool, and
    what parameters to consider to what end.  Thanks a lot
    best,
    Steve z

    The high pass filter is a tool for finding edges...from that, you can adjust the edge width to increase or decrease the radius of the edges. Everything that is not an "edge" turns into a middle grays. Depending on the blending, this give an opportunity to modify edge or non-edge values. Overlay lightens the lights while darkening the darks and does nothing at 50% grays In the case of high pass, this means the light side of the edges gets lighter and the dark edges darker. This can have a sharpening effect similar to USM without the threashold control.
    If the HP radius is small, the effect is sharpening...if the radius is larger, it's more of a tone /contrast control. If you constrain the effects using Blend If adjustments, you can impact midtone contrast as mentioned by Robert.

  • While creating Projects Using the API, get two errors: 'Customer name must be passed' and 'class category is invalid'

    Hi
    While trying to Create Projects using the API, I'm getting two types of errors -
    The first is : 'API failed in one stage 1 Customer Name is a mandatory Quick Entry field. Value must be passed'
    The second is : '
    'API failed in one stage 1 Project: '<Project_Number>'
    The class category is invalid.'
    Both the messages are produced by our custom program. .. however I am not able to understand why the underlying errors occur.
    The first error ( Customer Name is a mandatory quick entry field), is caused by Projects that are to be created from Project templates where it is configured with Quick Entry Customer Name required. We are passing Customer Site number ( Party Bill to site number and Party Ship to side number). The site numbers being passed are also set as 'Primary'. Yet they are failing.
    For the second Error ( The Class Category is invalid), I rechecked multiple times, the Class categories for the Projects I am trying to create, with the Config in R12 and they are fine. Can't understand the reason for these two issues. Has anyone encountered such an issue ? If so how was it resolved?
    Regards
    Vivek

    HI All
    I resolved both the issues. In case there are others facing similar issues, following was the cause and resolution of my errors
    1. Error 1: Customer Name is a Mandatory Quick Entry field. Value must be passed.
    The cause was that the data loaded into our custom staging table was not in the right fields. This was because the data file values and the CTL were not in sync.
    Resolution:
    Corrected the data file to be in Sync with the structure defined in the CTL and  this loaded it successfully
    2. Error 2: The class category is invalid.
    The cause of this error was that  in the  Projects Template (used to create the project from), the Quick Entry setup had a Class Category set as required and I was not passing a value ( a class code value) for that Class Category.
    Hope this helps somebody else
    Cheers
    Turnbill

  • How to use Custom Search in Dynamic Page or HTML Portlet ?

    Gurus,
    1. I have a tab called My Space in the portal web site, where user gets a personalized view of the content.
    2. I am using custom attributes and custom item types. I have a custom attribute called 'Location', which is a attribute of custom item types.
    3. I have 2 pages - News and Events.
    4. All the content in News and Events page is tagged by the attribute 'Location'.
    5. The requirement is to let the user search the News and Events by Location.
    6. To achieve this I used the Custom Search portlet and the user can select the attribute Location and see the resultant News and Event items by location in the Search portlet.
    7. The requirement is to present the News items and Event items in separate regions on the page and show only the first 5 News and Event items in the result and show a More link which would guide the user to rest of the News and Event items.
    8. Eventually there may be more content other than News and Events tagged by location. If so, the requirement is to create a new region and display the new content.
    9. How would I do this using custom search ? I was thinking if there is anyway I could use the custom search api (where can i find it ?) in the HTML portlet or Dynamic page and submit the result to IFRAMES in each region and show the output ?
    Pls advise.
    Thanx a bunch.

    I would suggest that you use two custom search portlets; one for the news items and one for the events items. Switch the custom search portlets to "AutoQuery" mode and add the relevant criteria. On the results display tab of the the "edit defaults" screen, choose to show just 5 items.
    To add a link to show the user mode results, I'd create two new pages that have just a single custom search portlet on it that is customised to show more of the results and maybe has the pagination links enabled.
    Then I'd add two "Page Link" items underneath the two news and events portlets on the first page in an item region.
    I'm sure there are other ways of doing this as well. Hope that helps to get you started.

  • ME51N - need to concatenate the PR # & the item # into a custom field.

    Hi All,
    I need to concatenate the PR number and the item number into a custom field in the customer data tab in transaction ME51N. I been looking at some user exits, but the problem is that when I try to use BAPI_PR_CHANGE in a user exit the BAPI failed, because the PR has not been committed to the EBAN table and it cannot fined it. The custom field is in the EBAN table. The other problem is that most user exits don't have access to the PR number. Can anyone tell me how I can update the custom field on a new PR creation after I click the save button?

    Hi All,
    I need to concatenate the PR number and the item number into a custom field in the customer data tab in transaction ME51N. I been looking at some user exits, but the problem is that when I try to use BAPI_PR_CHANGE in a user exit the BAPI failed, because the PR has not been committed to the EBAN table and it cannot fined it. The custom field is in the EBAN table. The other problem is that most user exits don't have access to the PR number. Can anyone tell me how I can update the custom field on a new PR creation after I click the save button?

  • How To Disable Delete Button on AR Customer Search

    hi Guru,
    How to Disable the Delete Button of AR Customer Search Form.

    Hi;
    Duplicate post, please make post once
    How To Disable update Button on AR Customer
    Regard
    Helios

Maybe you are looking for