How to fetch owner party ID in custom jsp?

We are implementing Oracle iSupport 11.5.10
We are building a custom jsp (as per business requirement).
We need to fetch owner party ID (which is further required to retrieve other data).
Some seeded pages like ibuSRProblemDetails.jsp fetch party ID as follows:
long userID = _context.getUserID(); 
long employeeID = context.fetchEmployeeID(connection, userID);
long companyID = context.getCompanyID(connection);
long customerID = _context.getCustomerID();
long partyID = companyID;
if (companyID <= 0 && employeeID <= 0) partyID = customerID;
We incorporated this logic in our custom jsp. Also included ibucincl.jsp and ibucinit.jsp, as in seeded jsp.
However after this custom jsp is not getting compiled. (We dont know exact compilation error, because jsp gets compiled at run time on server. Also we do not have local iSupport jdev setup to check compilation locally)
iSupport experts,
Can you please help/suggest us in this regard?
Thanks

The compilation issue got resolved by including "ibucbend.jsp" at the end.
However now we are getting NullPointerException. The stack trace is as follows:
<!-- Error stack of the JSP exception if any:
java.lang.NullPointerException
     at oracle.apps.jtf.admin.adminconsole.WebNavigationRenderer.renderEnd(WebNavigationRenderer.java:103)
     at oa_html._xxeegibuViewProducts._jspService(_xxeegibuViewProducts.java:1847)
     at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
     at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
     at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
     at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
     at oracle.jsp.JspServlet.service(JspServlet.java:156)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
     at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
     at org.apache.jserv.JServConnection.run(JServConnection.java:294)
     at java.lang.Thread.run(Thread.java:637)
WebNavigationRenderer.renderEnd() is called in jtfdnbarbtm.jsp (which is included in ibucbend.jsp)
// render the bottom part of navigation UI
oracle.apps.jtf.admin.adminconsole.WebNavigationRenderer.renderEnd(
oracle.apps.jtf.admin.adminconsole.WebNavigationRenderer.getWebNavigationContext(pageContext),
pageContext);
For reference, WebNavigationRenderer.renderEnd() code is as follows:
public static WebNavigationContext renderEnd(WebNavigationContext webnavigationcontext, PageContext pagecontext)
throws Exception
if(webnavigationcontext.getMenuConfig().dataOnly)
return renderEndDataOnly(webnavigationcontext, pagecontext);
} else
return renderNavigationEnd(webnavigationcontext, pagecontext);
Can somebody please advise on how to overcome this NPE?
Thanks

Similar Messages

  • How to add a lookup to the customized jsp

    Hi,
    I added a menu item, when click on this menu item it goes to the one jsp page(my own jsp page), here I have one field, for this field I want to add a lookup.....
    please advice me how to achieve this.....
    Thanks.

    I was actually trying this with my custom JSP. This shows up a "lookup item" in the jsp with all valid values added in the associated lookup:
    Just few points for your reference:
    1) Bean-Name = Your bean name
    2) Action-Form-Field = Any field from your action form
    3) USR_UDF_TESTLOOKUP = OIM field
    I actually created a UDF in Users with DB column name='*USR_UDF_TESTLOOKUP*' and of lookup type. All valid values to be shown in the JSP are provided in this lookup only.
    4) First-Name = The label which should get displayed when we click on the lookup icon.
    5) All remaining fields must be left as it is.
    Copy this to any JSP and see it should work.
         <tr>
              <td class="ControlLabel" width="25%">
              Custom Field
              </td>
              <td
              width="35px">
              </td>          
              <td class="ControlLabel">
              <tctags:lookupfield name="*Bean-Name*" property="*Action-Form-Field*"
              windowheight="500"
              windowwidth="500"
         lookupcolumn="USR_UDF_TESTLOOKUP"
              selectionColumn="Lookup Definition.Lookup Code Information.Decode"
              columnLabelKey="First-Name"
              htmlFormName="*Bean-Name*"
              styleClass="Fields"
              iconsrc="images/lookup.gif"
              tabindex="65"
              maxlength="25" />
              </td>
         </tr>
    Thanks
    Sunny

  • How to fetch Signature in to my custom script configured in qc02 from DSAL

    Hi All,
    In my requirement I need to get the signature from DSAL tcode for a particular material(may be BULK or FINISHED) while executing QC22 tcode.I already got the remaining data in to the form like QALS-KTEXTMAT , QALS-CHARG,MCH1-VFDAT and MCH1-HSDAT
    by writing subroutine pool program in my script.Only thing left is need to fetch Digital Signature(signature for a material who certifies).
    Help me if anyone knows.Thanks in advance.
    Regrads,
    Satya.

    Hi Satya,
    Implement USER EXIT to link the signature to your custom script.
    Refer following link it may be useful...
    http://wiki.sdn.sap.com/wiki/display/SAPMDM/E-SIGNATUREforMaintenancePlants-MasterData(ECC6.0)
    Regards,
    Surya.

  • How to fetch the VAT registration number of the ship to party from billing

    Dear SDN Team
    How to fetch the VAT registration number of the ship to party from the billing document.  Can you proide some information for fetching the VAT registration number of the ship to party.
    Normally only the payer VAT registration number will be displayed in the Invoice.  But in my case the Ship to party VAT number is displayed. 
    I have resolved this problem by doing the customizing setting in order to have the payer vat registration number.  But for the Old Billing documents it is more than 30,000 documents where it was printed with the ship to party VAT number.  So i need to identify those documents.
    Can you please help to resolve this problem.
    With Regards,
    Jai

    Hi,
    To get VAT from the ship to from Billing, You have to first fetch the BILLING NUMBER from the VBRK and then goto the Document flow in VBFA to get the SALES DOCUMENT NUMBER and with sales document you will get the SHIP TO number from the VBPA with the PARVW = SH
    Once you got the SHIP TO , then goto the KNA1 and get the VAT ID in the field STCEG
    so the logic will be as follows
    VBRK---VBELN and then
    VBFA--VBELN with the document Category as C
    VBPA-VBELN and get the  KUNNR with PARVW =SH
    Now with KUNNR ( ship to ) get the VAT ID from KNA1-STCEG
    regards,
    santosh

  • In Third Party sales order processing how we come to know that the customer

    Hi SAP SD Gurus,
    In Third Party sales order processing how we come to know that the customer is recived the Goods from the vendor?
    Thanks & Regards,
    Sreenivas.P

    From a high level view, the behavior should work like this:
    -  Sales order placed from customer PO via Tcode VA01. Purchase Requisition created upon saving the order
    -  Purchase order created with reference to Purchase Requisition via Tcode ME21N
    -  Receive confirmation from vendor that goods have shipped via EDI
    -  Create invoice receipt to vendor via Tcode MIRO
    -  Create billing document to bill customer via VF01

  • 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.

  • How to fetch data from Customer (Centrally) XD03...

    hi friends,
    how to fetch the data which is maintained in the transaction XD03.
    flow to reach the required data: XD03 --> enter customer number and press enter --> now it takes you to the next screen --> in menu bar EXTRAS --> TEXTS (here we can see the document with the column Description, 1st line and few more...
    here my requirement is to fetch the details that are maintained in the columns DESCRIPTION and in 1st LINE.
    so can i know any function modules or tables where i can fetch or find this data...
    ...thanks in advance

    Hi,
    Use the Function module  READ_TEXT
    Pass the values for the following Parameters in the function module..
    ID
    LANGUAGE
    NAME
    OBJECT
    goto  XD03 --> enter customer number and press enter --> now it takes you to the next screen --> in menu bar EXTRAS > TEXTS Double click on the value of the  Description  column.. this will take to the WORD Document now click on the Menu GOTO> HEADER , this will display TEXT NAME, Language, TEXT ID & the TEXT OBJECT

  • How to fetch the Table Control data to Customer Table(Z-Table) ?

    How to fetch the Table Control data to Customer Table(Z-Table) ?

    Hi Krishna,
    Check this sample programs
    http://www.planetsap.com/online_pgm_main_page.htm
    http://sap.niraj.tripod.com/id29.html
    http://www.sapdevelopment.co.uk/dialog/tabcontrol/tc_basic.htm
    Have a look at below links. It will help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm
    Thanks,
    Reward If helpful.

  • How to fetch data from different sources into one source (like into Ztable)

    hi friends,
    As per our client requirements they want to develope an Inventory and an Ontime delivery report in BO on top of Oracle database.
    Situation is some thing like they have ECC 6.0.and they want to collect all inventory and ontime delivery data at one place.According to me that could be one Ztable in which we can gather all data.Apart from that they are going to use Data Integrator in which they can directly fetch the data from R/3 system(They dont want to have BI system) and put all data in Oracle DB.On top of ORacle BO person can develop BO reports.
    My question is how to fetch all data at one place and what are the tables going to be use.
    kindly help me out as its very important project.
    Thanks
    Abhishek

    The following is my standard reply to those who need to get old data from a backup in one account and add it to another account.  The method described here may be applied to your case.  It would be a bit of a long process, though.
    When connected to the account you want to GET data from, Go to Settings>iCloud and turn all data that is syncing with iCloud (contacts, calendars, etc.) to Off. 
    When prompted choose to keep the data on the iPhone. 
    After everything is turned off, scroll to the bottom and tap Delete Account.  Next, set up a new iCloud account using a different Apple ID and turn iCloud data syncing for contacts, etc. back to On.  When prompted, choose Merge.  This will upload the data to this new account.
    Note that this only affects the "Apple data" like contacts, calendars, reminders, etc.  Many third party apps also use iCloud to store data files there.  These files may be lost in the process, unless the apps also keep the data locally on the device.
    NOTE:  Photos in the photo stream (if you use it) will not transfer to the new account.  It is advised that you save the photos to a computer before performing the account switch. 

  • How to fetch post goods issue date and sales order creation date

    Hi All,
    How to find out the difference between SD Sales Order Item Creation Date and final Post goods issue Date. I would like to know how to fetch those dates and what is the relationship between the tables from which i will get the dates.
    Please let me know the solution .
    Thanks in advance.

    Hi,
    Sales order creation date is when u raise a sales order in favor of the customer using VA01.......using ATP logic system purposes the material availability date....
    after saving ur sales order...when u raise the Delivery using VL01n  w.r.t to OR...than u have to perform picking ....In the picking Tab...specify the amount to be picked than press Post Good Issue....means the goods left the company premises ..
    You can the fetch the values using tables-  Use T code   SE12  or SE16
    Vbak-----order header
    Vbap-----order item
    Vbek-----order schedule line
    Likp-----Delivery header
    Lips----Delivery item

  • How to Build Custom JSP Page to bypass Oracle Apps Login

    Hi All,
    Can some one guide me how to develop a custom jsp page to bypass Oracle Apps R12 Login.
    Actually Our requirement is some external user will enter the login details in some third party login page with the third party generated username and passwrod, that user's credentials are mapped to oracle system,so as soon as they enter credentials having validated it has to redirect that external user to Oracle Apps R12 Home Page, where responsibilities are shown. Currently that third Party login page is set to redirect to RF.jsp but that is not working and throws this error:
    "You are trying to access a page that is no longer active.
    - The referring page may have come from a previous session.Please select Home to Proceed"
    So I am planning to build a custom jsp page to resolve the error.
    As soon as user enter credentials in the third party login page, it will be redirected to my custom login page which in turn redirect external user to Oracle Apps R12 Home Page, where responsibilities are shown. Is it possible? If yes what JSP Page/Servlet I have to invoke from custom JSP Page and what all URL parameters or session parameters and cookies parameter I have to pass or set.
    Can anybody please help me...
    Its very urgent. We are running short of time. Its a sev 1 issue.
    Please reply soon.
    Thanks,
    Raja Dutta

    Hi,
    Thanks for the update.
    Sir its not about calling the JSP Page from OAF page.
    My requirement is what I have explained above.
    Please suggest its urgent.
    Thanks,
    Raja Dutta

  • How to fetch data for the Change Request in PROCESS_EVENT

    Hi All,
    I need to write some custom logic on Save/Submit button. For this I am planning to enhance the PROCESS_EVENT method of class CL_USMD_CR_MASTER. Within this method I need to access runtime data of the change request currently being processed.
    I am going to create a post-method exit for this PROCESS_EVENT method. Is this correct?
    I have heard we have APIs in MDG which can be used to fetch data, however I do not know how to use the same.
    Can someone please help me with sample code how to fetch the runtime data of the Change Request
    Thanks in advance.
    Regards,
    Vanessa

    What MDG domain are you working on? What you are trying to do is called "reuse mode" enhancement and you do NOT want to tinker with the FPM feeder classes in this case. SCN document Configuration and Enhancement of SAP Master Data Governance contains many examples on how to achieve this.
    This is a how-to document for MDG-M reuse mode enhancement: Extend MDG-M Data Model by a New Entity Type (Reuse Option)
    This is a how-to document for MDG-C/S reuse mode enhancement: SAP How-To Guide: Extend the MDG Business Partner - Node Extension (Reuse Option)
    Keep in mind, these examples are mainly for additional "master data" fields. If you need additional fields that are not master data but are more related to the Change Request itself, you should use this how-to document: Enhancement of the User Interface Building Block for Change Requests
    Again, all of these documents can be found on the first document I referenced above. I suggest that you bookmark it.

  • How to dynamic order of groups & How to fetch data at runtime from database

    Post Author: ferikpatel
    CA Forum: Formula
    I am using visual studio .net application having inbuilt crystal report feature. Now, what I want to do is, i have create 5 groups in crystal report, but dynamically want to change the order of those reports as per user's selection.
    How to do that?
    Also, how to fetch database item on runtime which is not selected through data expert as its relation is depends on situation. Say if one field's value is 5 than i want to get name of customer, but if same field's value is 6 than i want to get name of suppliers. In database both supplier and customers tables are different however they are connected with base table.
    I'm bit new in crystal report. Please help me out if it is possible.

    Post Author: Charliy
    CA Forum: Formula
    You don't actually change the order of the groups.  You group on a formula and change contents of the formula based on the parameter.
    IF {?Group1} = "Manager" then {table.Manager}
    else if {?Group1} = "Invoice Date" then Totext({table.InvDate},"yyyyMMdd")    note all options must be the same date type, so numbers and dates are converted
    else . . .

  • Third party returns from customer to vendor (Urgent)

    Hi,
    We have an urgent requirement regarding an issue with third party returns from customer.
    The scenario required is as follows :
    When the customer returns the goods in Third party proccess the goods should be directly returned to the vendor instead of receiving into our plant .
    How can we map this bussiness proccess?
    Currently the returns are handled as per the standard SAP proccess ie.,
    Customer returns the goods> Return order is created>Return delivery created (PGR)>Credit memo created.
    In this case we are receiving goods into our plant .

    Hi Shrikant
    1. If delivery of goods is the only issue then you can ask customer to make invoice with Invoice to your company address and Delivery address as the vendor address. Practically it is possible.
    2. Then you can make corresponding entries in SAP and regularise it.
    Thnx
    Nilesh

  • How to fetch the contact person of the Vednor in SRM

    Hi All,
       I need to display the Contact Person of the vendor which is maintained in XK03(contact person(view)).
         ->How to fetch that name in the SRM ?
        ->Is any FM exists ?
    Thanks and Regards
    Channappa

    Hello Channappa,
    Contact person is only significant for Bid Invitations.
    For Bid Invitations, you don't have a Vendor but a Bidder with one or several Contacts Persons.
    So, when you are in BBP_BID_INV transaction, when you look for bidders to link to your bid invitation, you will find their contacts: this is standard process.
    In SAP GUI transaction BP, you will see bidder contacts if customizing done to use BBP_VENDOR_SYNC report to replicate vendors is correctly maintained.
    Regards.
    Laurent.

Maybe you are looking for

  • Setup as new or restore??? Photo query

    I have used my ipad for nearly a year without connecting to my computer or iTunes. I'm terrified if I click on SETUP AS NEW IPAD that my large number of photos will be deleted. Even worse is the only other choice of a RESTORE FROM THIS BACKUP (from m

  • Can I create a "floating" toolbar, or customize any of the floating palettes?

    I don't want the toolbar visible because I need it for almost* nothing and I can't accept even a little compromise to the visible length of my writing workspace. So I hide toolbars, formatting bars, rulers, etc., and use key commands instead whereeve

  • Exporting using Quicktime Movie makes my sequence unrendered.

    This is really strange, but when I export my sequence my sequence becomes unrendered during and after the process. It was fully rendered before the export. Any ideas? Lately, the more I use FCS the more I want to revert to an older version.

  • Populating ZTABLE using BAPI

    Hi Experts , Our requirement is to populate a ZTABLE from another application(in this case a JAVA based application). We are connecting SAP via JCO. I want to know ..is there any Standard BAPI through which we can do this ? If not can you please  sug

  • Shout out to Cat and Jer

    Greetings all! I ordered a 40GB Zen Touch and have been trolling on the boards here ever since, to get a feel for the product that I ordered, and see what people had to say. There have been some very good threads. After much reading, I decided that i