Adding custome header : response.setHeader()

HI
I have an application where in authorization is done from a different server. When we hit our app's URL proxy redirects to that othorizing server and that server adds a header named sn_userdn in the header and we read that header and accordingly we do the further processing based on that.
But now I need to bypass this thing. I need to develop a login page which gets the user information and sets same header this is because we are going to not use the third party authorization any more.
I am useing response.addHeader("sn_userdn","binoyb9");but while trying to read it as we were doing it previously it gives null.
can you tell me why?
How do i set custom headers in jsp?

response.addHeader() will add a header that goes back to the response, usually to the browser. If something isn't intercepting that after that, it's not going to be there. I think it seems you are adding something to the wrong place. Perhaps a servlet filter could be used to add the header before the servlet/jsp page gets it.

Similar Messages

  • Adding Custom Header to SOAPMessage sent to external webservice

    Hi ,
    I want to append some payload and manifest elements to the soapmessage header when i am calling an external service using partner link.
    I have created a variable of type string and initialised the string with my elements below:
    <payloadManifest soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" so
    apenv:mustUnderstand="0" xmlns="http://www.starstandards.or/webservices/2003/12/
    transport">
    <manifest element="ProcessVehicleOrder" id="Content0" namespaceURI="http://ww
    w.starstandards.org/STAR" xmlns=""/>
    and this string I have assigned to the the InputHeader part of the adapter tab in the Invoke activity.
    Its removing the tags and displaying .
    Please provide me help on how to append custom header to the soapMessage.
    Its very urgent.
    Thanks in advance
    deepthi.
    </payloadManifest>

    Maybe you can use this blog for this :
    http://orasoa.blogspot.com/2007/09/using-custom-headers-in-bpel.html

  • Adding new header in doFilter()

    Hi all..
    I'm having problem.. with adding customized header in my application...
    Here's a sample of my code....
              try {
    HttpServletResponse httpRES = (HttpServletResponse) res;
              if (!httpRES.containsHeader("cpa_cp_id"))
    httpRES.addHeader("cpa_cp_id","hi");
                        chain.doFilter(req, res);
              } catch (Exception ex) {
    Is there something else I had left out??
    Thanks..

    That page (inside another server) which I'm calling
    requires me to add new header information (once
    again, not session nor request.getParameter()).
    Hope you'll understand my situation...Your original code does that. So no, I don't understand your situation. Unless it's this:
    I'm unable to retrieve the new header valueSo what? You can't retrieve a header from the servlet response in any case. Using a HttpServletResponseWrapper doesn't change that fact. If you've got a design that wants to retrieve headers from the servlet response then you've got a design that wants to be changed.
    Note that you DO have a "containsHeader(String)" method to see if the response contains a certain header.

  • Issue in receiving custom header in response SOAP message

    Hi,
    I have created a simple BPEL process with custom headers in request and response message.
    I tried to send SOAP message through SOAPUI tool. Service is getting instantiated, able to access the request header and able to send response message. But only body is send as response message. Header is not sent in the response message.
    Also tried to invoke the above service through another BPEL process. I could able to send the header through request but not able to receive the header in response message.
    Pls. throw some light on this..
    Regards
    Jude.

    Hi,
    Input request is working as you mentioned but the output custom headers are not working. When I use bpelx:outputHeaderVariable="varOutManifest" I am getting exception while running the interface. So I used bpelx:outputHeaderVariables="varOutManifest" but I am not getting back the custom header from the partner service to the variable.
    Any hint.
    receive:
    bpelx:headerVariable="varManifest varSecurity"
    reply:
    bpelx:inputHeaderVariable="varOutManifest"
    Invoke:
    bpelx:outputHeaderVariables="varOutManifest"
    bpelx:inputHeaderVariable="varManifest varSecurity"
    Is anything wrong?
    I am on 10.1.3.3.1 MLR # 14. I am getting following exception when I use bpelx:outputHeaderVariable.
    <2009-03-06 17:33:36,840> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "delivery": [com.oracle.bpel.client.ServerException: 1] -> [java.lang.ArrayIndexOutOfBoundsException: 1]
    java.lang.ArrayIndexOutOfBoundsException: 1
         at com.collaxa.cube.ejb.impl.DeliveryBean.request(DeliveryBean.java:109)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:646)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at DeliveryBean_RemoteProxy_4bin6i8.request(Unknown Source)
         at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processNormalOperation(SOAPRequestProvider.java:451)
         at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processBPELMessage(SOAPRequestProvider.java:274)
         at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processMessage(SOAPRequestProvider.java:120)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:956)
         at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:466)
         at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
         at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
         at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:177)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__callback(BPELInvokeWMP.java:626)
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:436)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:195)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3703)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1652)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:184)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:281)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5689)
         at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1082)
         at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.createAndInvoke(CubeEngineBean.java:132)
         at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncCreateAndInvoke(CubeEngineBean.java:161)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:646)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiresNewInterceptor.invoke(TxRequiresNewInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at CubeEngineBean_LocalProxy_4bin6i8.syncCreateAndInvoke(Unknown Source)
         at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequestAnyType(DeliveryHandler.java:515)
         at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequest(DeliveryHandler.java:457)
         at com.collaxa.cube.engine.delivery.DeliveryHandler.request(DeliveryHandler.java:131)
         at com.collaxa.cube.ejb.impl.DeliveryBean.request(DeliveryBean.java:95)
         ... 48 more
    Thanks,
    Arul
    Edited by: user599098 on Mar 6, 2009 2:42 PM

  • Adding custom information in HTTP Header in an outgoing request from GWWS

    Is there a way to send custom header information with the a webservice request (HTTP post) that happens via GWWS server?
    All the methods I read about deal with managing the soap envelop that gets sent.
    We are looking for ways which will allow us to put custom information in the headers.
    I am aware there is something we can do using the Salt Plugins.
    For example, we can write a Out bound plugin which has a capability of putting the "Authentication:Basic..." in the header.
    Then there is message conversion plugin which deals with transformation of message, which gives us control over the soap body.
    Is it possible to put information in the header for outgoing request (from GWWS) to a specific web service?
    Thanks and Sincere Regards,
    Mrugendra

    Maurice,
    Thanks for confirming this.
    It clarifies the doubts that I was having while reading through the documentation Xu pointed to.
    Yes, we need to add HTTP Headers (not SOAP header).
    For now we just need to add Basic Authentication HTTP Header for outbound service calls.
    We have developed a plugin to do that for now.
    And even if the salt plugin takes care of adding the Basic Authentication in the HTTP Header for outgoing calls, I guess we do not have any option to include some custom information in the HTTP Header which might be required in the future.
    At-least, not unless we request that enhancement.
    Bringing the plugin into our mix requires a lot of changes to our architecture including inclusion of AUTHSVR in the UBB,
    Which, in turn, makes it imperative to change the endpoint clients of our application.
    In addition to that, the incoming web service calls also need to include TUXEDO authentication information, which would again require either communicating the authentication information to the consumers of our service or device some kind of a proxy which would add the authentication information for all the incoming requests!
    With these facts in mind, we were wondering if we have an easier way to include the HTTP header information.
    As you say, Maurice, it seems it is not possible yet.
    Thank you again for your replies.
    Sincere Regards,
    Mrugendra

  • Doubt in response.setHeader();

    If I tried to set the header using
    response.setHeader(�My Header Name�,�My Header Value�);
    But while retrieving using getHeader(�My Header Name�); it is giving me null�..
    I am setting and getting the header in the same serlvet�.
    What might be the problem?
    Thanks In Advance.
    Bennet Xavier. X
    Edited by: Bennet on May 12, 2008 3:05 AM

    i added my own header in the servlet using response Object and trying to get the header back in the same servlet using request Object...
    i dont know whether its correct or not.It isn't. A response is not a request. Client sends a request, server sends a response. It is astounding that you would think that setting a property of some object would enable you to get that property from a different, unrelated object.
    if not, Tell me how to set the header and get back header values.When you set a header on an object, ask that object for the header. Look at the following code; it's roughly equivalent to what you seem to be expecting:public class Foo {
        public static void main(String[] args) {
            A a = new A();          // 1.
            B b = new B();          // 2.
            a.set(42);              // 3.
            int x = b.get();        // 4.
            assert x != 42;         // 5.
            assert 42 == a.get();   // 6.
    class A {
        int i;
        void set(int i) {
            this.i = i;
        int get() {
            return i;
    class B {
        int n;
        void set(int n) {
            this.n = n;
        int get() {
            return n;
    }Have a good look at line 4. Following the same logic you're applying to the request/response, you would expect x to have the value 42. If this doesn't immediately strike you as nonsensical, step away from the Java EE and brush up on the fundamentals of OOP. That's not meant to be an insult; just think carefully about what you're trying to do.
    ~

  • Added custom screen in PO using BADI ME_GUI_PO_CUST and ME_PROCESS_PO_CUST

    Hi All,
    I have added custom screen with two z fields at item level using BADI ME_GUI_PO_CUST and ME_PROCESS_PO_CUST i can see my screen in tcodes ME21N , ME22N , ME23N but I am not able to save data.
    and also screen is coming in change mode even in ME23N .
    thanks.

    Hi,
    I have added two xfields at item level.
    This is the code i have added in zimplementation ZME_GUI_PO_CUST .
    IN Zimplementation ME_PROCESS_PO_CUST I have added code only in method FIELDSELECTION_ITEM . after doing this I can see only screens in ME21N, ME22N, ME23N but when enter data in zfields and trying to save it is giving me message no data has changed.
    method IF_EX_ME_GUI_PO_CUST~SUBSCRIBE.
    DATA: ls_subscriber LIKE LINE OF re_subscribers.
    we want to add a customer subscreen on the item detail tab
      CHECK im_application = 'PO'.
      CHECK im_element     = 'ITEM'.
    each line in re_subscribers generates a subscreen. We add one subscreen in this example
      CLEAR re_subscribers[].
    the name is a unique identifier for the subscreen and defined in this class definition
      ls_subscriber-name = subscreen1.
    the dynpro number to use
      ls_subscriber-dynpro = '0001'.
    the program where the dynpro can be found
      ls_subscriber-program = 'SAPLYMEPOBADIEX'.
    each subscreen needs his own DDIC-Structure
      ls_subscriber-struct_name = 'MEPO_BADI_STRUCT'.
    a label can be defined
      ls_subscriber-label = text-001.
    the position within the tabstrib can be defined
      ls_subscriber-position = 4.
    the height of the screen can be defined here. Currently we suport two screen sizes:
    value <= 7 a sevel line subscreen
    value > 7  a 16 line subscreen
      ls_subscriber-height = 7.
      APPEND ls_subscriber TO re_subscribers.
      ENDIF.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_FROM_MODEL.
      DATA: l_item       TYPE REF TO if_purchase_order_item_mm,
            ls_mepoitem  TYPE mepoitem,
            ls_customer  TYPE mepo_badi_exampl.
    system asks to transport data from the business logic into the view
      CASE im_name.
        WHEN subscreen1.
    is it an item? im_model can be header or item.
          mmpur_dynamic_cast l_item im_model.
          CHECK NOT l_item IS INITIAL.
    transport standard fields
          ls_mepoitem = l_item->get_data( ).
    transport customer fields
          CALL FUNCTION 'YMEPOBADIEX_GET_DATA'
            EXPORTING
              im_ebeln = ls_mepoitem-ebeln
              im_ebelp = ls_mepoitem-ebelp
            IMPORTING
              ex_data  = ls_customer.
    store info for later use
          MOVE-CORRESPONDING ls_mepoitem TO dynp_data_pbo.
          MOVE ls_customer-badi_bsgru TO dynp_data_pbo-badi_bsgru.
          MOVE ls_customer-badi_afnam TO dynp_data_pbo-badi_afnam.
        WHEN OTHERS.
      ENDCASE.
    endif.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_TO_DYNP.
      CASE im_name.
        WHEN subscreen1.
          CALL FUNCTION 'YMEPOBADIEX_PUSH'
            EXPORTING
              im_dynp_data = dynp_data_pbo.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    endmethod.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_FROM_DYNP.
      CASE im_name.
        WHEN subscreen1.
          CALL FUNCTION 'YMEPOBADIEX_POP'
            IMPORTING
              ex_dynp_data = dynp_data_pai.
          IF dynp_data_pai NE dynp_data_pbo.
    something has changed therefor we have to notify the framework
    to transport data to the model
            re_changed = mmpur_yes.
          ENDIF.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    endmethod.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_TO_MODEL.
    DATA: l_item       TYPE REF TO if_purchase_order_item_mm,
            ls_mepoitem  TYPE mepoitem,
            ls_customer  TYPE mepo_badi_exampl.
    data have to be transported to business logic
      CASE im_name.
        WHEN subscreen1.
    is it an item? im_model can be header or item.
          mmpur_dynamic_cast l_item im_model.
          CHECK NOT l_item IS INITIAL.
          ls_mepoitem = l_item->get_data( ).
    standard fields changed?
         IF dynp_data_pbo-matkl NE dynp_data_pai-matkl OR
            dynp_data_pbo-plifz NE dynp_data_pai-plifz OR
            dynp_data_pbo-webaz NE dynp_data_pai-webaz.
    update standard fields
           ls_mepoitem-matkl = dynp_data_pai-matkl.
           ls_mepoitem-plifz = dynp_data_pai-plifz.
           ls_mepoitem-webaz = dynp_data_pai-webaz.
            CALL METHOD l_item->set_data( ls_mepoitem ).
         ENDIF.
            CALL FUNCTION 'YMEPOBADIEX_GET_DATA'
              EXPORTING
                im_ebeln = ls_mepoitem-ebeln
                im_ebelp = ls_mepoitem-ebelp
              IMPORTING
                ex_data  = ls_customer.
            ls_customer-badi_bsgru = dynp_data_pai-badi_bsgru.
            ls_customer-badi_afnam = dynp_data_pai-badi_afnam.
            CALL FUNCTION 'YMEPOBADIEX_SET_DATA'
              EXPORTING
                im_data = ls_customer.
         ENDIF.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    method IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM.
    DATA: l_persistent TYPE mmpur_bool.
    CONSTANTS:
    FIELD-SYMBOLS: <fs> LIKE LINE OF ch_fieldselection.
    l_persistent = im_item->is_persistent( ).
    *IF l_persistent EQ mmpur_yes.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY
                         metafield = MMMFD_YYMAN_NUM."fd_cust_01.
    IF sy-subrc IS INITIAL.
    <fs>-fieldstatus = '*'. " Display <-- this one was as per the sample code given.
    <fs>-fieldstatus = '+'. " Input <-- this i added to make the field mandatory.
    ENDIF.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY
                         metafield = MMMFD_YYMAN_DES."fd_cust_01.
    IF sy-subrc IS INITIAL.
    <fs>-fieldstatus = '*'. " Display <-- this one was as per the sample code given.
    <fs>-fieldstatus = '+'. " Input <-- this i added to make the field mandatory.
    ENDIF.
    *ENDIF.
    ENDIF.
    endmethod.

  • Adding Custom Fields to FAGLFLEXP Table

    Hello,
    We have a requirement to update WBS Element for Planning related Data. So have added custom field(WBS Element)  in structure CI_FAGLFLEX04.
    The field is visible when I open FAGLFLEXP table, but when I post data The custom field (WBS Element) is not being updated. Could you please let me know the process to update this field?
    Thank you in advance.

    Hi.
    The procedure isn't so simple. There are several posts on the subject SCN. I suggest research before you start developing.
    Start here:
    https://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eb61446011d189700000e8322d00/content.htm
    However, the most important is: a) Is it really necessary to change the standard? b) There could be a Z table containing the new information and referencing FAGLFLEXP? c) What is the transaction that will keep the data? It has Exit´s for what you need?
    As Vadamalai said below,
    Actually your approach may be wrong, first as an ABAPer should ask to functional team, which transaction and where to insert the fields, it could be header or item level(I am saying example)
    Based on tcode, you need to enhance the table level as well as the screen exit/BADI we need to pass screen to internal programming structure. the structure type will be table type of FAGLFLEXP.
    Regards.
    Douglas

  • Adding custom fields to shopping cart in SRM 7.0

    Hi My dear Experts,
    I am having big doubt also a lot of confussion as per my understanding regarding adding custom fields to SC.
    I believe,
    i) It can be achieved by configuration in spro with respect to Meta data frame.
    i,e  Configure field control->configure control for fields on Header/Item level
    after that
    configure customer fields->Define cistomer fields on Header/Item level.
    ii) I also doubt fields can be added through Webdynpro enhancement of standard component.
    Pls clarify my doubt with little detail which is the best way to achieve my requirement ??
    Is Webdynpro Enhancement  really needed ??

    Hi ,
       Example for  Adding fields in SC accounting Tab ...follow the below example
    1. Add custom field ZZTESTACCT  in   structure   INCL_EEW_PD_ACC_CSF by  using  append structure.
    2. Spro ->Supplier Relationship Management u2192 SRM Server u2192 Cross application basic settings u2192 Extensions and field controls (personalization) u2192 Configure field control ->Configure Control for Fields of Substructures
    then click on  "Metadata for Fields of Substructures and Table-Like Enhancements"
    add the below entry
    Bus. Object Set Type  : 31
    Structure Field Name  : ZZTESTACCT
    Bus. Object Type       : BUS2121
    Set Level                    : Item
    Field Visible :  Check box should be checked
    Field Enable :  check box should be checked
    if you create the above entry then you can see ZZTESTACCT field in the accounting tab.
    Second point :
    WD_BADI_DOMODIFYVIEW  is a Badi you can implement this badi for the WD component and View to handle the UI elements.
    regards,
    Devi

  • Screen Exit for adding custom fields in Additional Data tab in ME21N

    I need a screen exit or whatever other method for adding custom fields to the additional data tab at header level.
    I also need a similar exit for adding a filed at item level.
    Thanks in advance
    Martin

    Hello,
    1st find badi or exit and then create screen ...and assign the screen group and screen no for that implementation....some steps i can give u i did with SPRO tcode....
    please check it for VA02
    SPRO u2013 SAP Reference IMG ---  Logistics General --- Basic partner u2013 customers -- Control u2013 Adaption of customers own masters data element u2013 prepare modification of customer free enhancement of customer master record
    1)Screen group                                  description
            zs                                           creating badi      --- (save)
           click on (label tab pages) u2013 new entries
           number u2013 10 , function code u2013 zs10 ,  description u2013 func ---(save) u2013(back)
    2)select (FM_CUSTOMER_ADD) u2013 copy
         Implementation name u2013 ZAS
         (desc u2013 impl for cust) u2013 (save)
        interfaceu2014(check_add_on_active) double click on it
    3)the above screen appear --  write the code in it u2013 (save) --- (activate) u2013 (back) u2013 (save)
         -- (activate) u2013 (back)
       Business adds in customer sub screens
    4)select (FM_CUSTOMER_ADD) u2013 copy
         Implementation name u2013 ZAS1
         (description -- cust) u2013 in attribute u2013 (give screen group name)
    5)go to interfaces (GET_TAXI_SCREEN)  double click on it
       (save)  --- (activate) 
    6)(SAVE)  -- 
        Goto SE38  -- CREATE PROGRAM WITH NAME (ZQW) type module pool
         Goto SE51  -- Prog : ZQW
           Screen : 200 (Create)
          Goto layout u2013 design the screen
    7)save u2013 activate
       then goto transaction : va02
    For User Exit's
    goto to tcode->status->program name->double click on that,
    then goto to-> attribute take the package name and
    Goto SMOD tcode ->Utilities->give the package name and F8
    then a list of exits will display for that tcode as well as that package.
    u can check the table MODSAP
    u can check the table MODACT
    For BADI's,
    1)goto to tcode SE24 give the CL_EXITHANDLER and display and then double click on the GET_INSTANCE
    keep Break point at this location 'call method cl_exithandler=>get_class_name_by_interface'
    then the tcode it will trigger there and we can debugg there we can find badi'for that tcode and then remove the break point.
    2)Goto to tcode->status->program name->double click on that program will display's
    then  press crtl+F then cl_exithandler
    Thank u ,
    santhosh

  • Add Custom Header Tab to ME22N

    Hi I want to add a Customer Header Tab to ME22n. For that I am using BADI : ME_GUI_PO_CUST . As I understand to publich the tab at header level all I have to do is implement method IF_EX_ME_GUI_PO_CUST~SUBSCRIBE
    i have implemented this method as mentioned below. However, the tab at header level is not displayed for some reason. Please advice
    * we want to add a customer subscreen on the item detail tab
    IF im_application = 'PO' AND im_element     = 'ITEM'.
    * each line in re_subscribers generates a subscreen. We add one subscreen in this example
    *    CLEAR re_subscribers[].
    * the name is a unique identifier for the subscreen and defined in this class definition
       ls_subscriber-name = subscreen1.
    * the dynpro number to use
       ls_subscriber-dynpro = '0101'.
    * the program where the dynpro can be found
       ls_subscriber-program = 'SAPLYPDM_LINK'.
    * each subscreen needs his own DDIC-Structure
       ls_subscriber-struct_name = 'YPDM_LINK_OBJCTS'.
    * a label can be defined
       ls_subscriber-label = text-001.
    * the position within the tabstrib can be defined
       ls_subscriber-position = 8.
    * the height of the screen can be defined here. Currently we suport two screen sizes:
    * value <= 7 a sevel line subscreen
    * value > 7  a 16 line subscreen
       ls_subscriber-height = 16.
       APPEND ls_subscriber TO re_subscribers.
    ***to add Confirmations Tab to PO at Header level
    ELSEIF im_application = 'PO' AND im_element = 'HEADER'.
         DATA: ls_next_subscribe LIKE LINE OF re_subscribers.
         CLEAR: re_subscribers.
         REFRESH: re_subscribers.
         ls_next_subscribe-name = subscreen2.
         ls_next_subscribe-dynpro = '9000'.
         ls_next_subscribe-program = 'SAPLZMM_PO_CONFIRMATIONS'.
         ls_next_subscribe-struct_name = 'YMM_CONFIRMATIONS'.
         ls_next_subscribe-label = text-002.
         ls_next_subscribe-position = 15.
         ls_next_subscribe-height = 16.
         APPEND ls_next_subscribe TO re_subscribers.
    ENDIF.
    In the code above the ITEM part was implemented by another developer and works fine. However the HEADER part I am implementing does not work. Structure YMM_CONFIRMATIONS is created in DDIC. Functional pool SAPLZMM_PO_CONFIRMATIONS also has been created with screen 9000 with just text on it for testing purposes. Please advice what else do I have to implemented to get the custom tab to be printed on Header level in enjoy transaction me22n.

    Hi,
    i had similer problem when adding custom fields in va01 traction in header level at Additional data B tab.
    these subscreen are placed in subscreen containers.
    and if you have more number of fields in subscreen some fields will not be displayed.
    i solved the problem by increasing the size of subscreen container.
    SAP NOTE NO. 302497 - Additional cust. fields not displayed in 'Additional data B'
    this note say:
    Enlarging the screen containers:
    If there is insufficient space on the subscreens and you enlarge the
    maintenance area, you must also adjust the lines and columns in the
    subscreen containers.
    You can do this using Transaction SE51 (Screen Painter).
    1) In the initial screen, you must fill the following fields:
    Program SAPMV45A
    Screen number 4312 (or 4462)
    2) Then activate the 'Attributes' selection field and choose
    'Change'.
    3) Adjust the size of the lines/columns in accordance with the
    subscreen.
    4) Check your changes, then save and activate the screen.
    5) Exit the transaction.
    NOTE : This is for VA01 transaction. for more details see the SAP NOTE NO. 302497

  • How to insert custom header in log files

    How i can insert a custom header in sun one 6.1 sp2 logging ( access logs)...
    In apache i can do it like :
    LogFormat "%v %{X-Forwarded-For}i %l %u %t \"%r\" %>s %b" X-Forwarded-For
    CustomLog /var/log/apache/www.example.com-xforwarded.log X-Forwarded-For
    so "X-Forwarded-For" header i want to put in the server access log file.
    Any idea's ?

    6.1 SP2 contains known security vulnerabilities that allow anyone to completely take over your web server. Unless you a) don't care what happens to your web server or b) trust everyone completely, you should install the latest service pack.
    That said, you can configure your log format string using the Server Manager UI or by manually editing the files in the config subdirectory. In both cases, adding \"%Req->headers.x-forwarded-for%\" to the log format string will tell the server to log the value of the X-Forwarded-For header. This is documented, albeit poorly.

  • Adding custom field va31

    Hi,
    I need  to  add two  custom fields  as  header in
    Tran va31 , Please  explain  procedure
    2) In ale added custom  segment  to   custom idoc  and  assign to message  type MATMAS in Tran we82,
    Now i want to populate  custom  field .
    Could you  give me  idea  which FM should  i change or use enhancement
    3) In  bapi how  should  return custom  fields  for system  defined  bapi.
    should  i do  changes for BAPIRETURN.
    Thanks,

    HI
    GOOD
    1- MAIN PROGRAM -SAPMV45A
    2- CONVERT IT TO Z* PROGRAM AND DO THE CHANGES
    OTHER WISE USE THE FOLLOWING USER EXITS
    V45E0001     Update the purchase order from the sales order
    V45L0001     SD component supplier processing (customer enhancements)
    V45S0001     Update sales document from configuration
    V46H0001     SD Customer functions for resource-related billing
    V60F0001     SD Billing plan (customer enhancement) diff. to billing plan
    THANKS
    MRUTYUN

  • Adding HTTP Header Attribute

    Hi all,
    in order to get our Load Balancer to work correctly, we need to add an attribute to every HTTP Request that comes from the portal. In 4.5 we have added it in the common/include.asp file.
    Call Response.AddHeader ("MyAttribute", "MyAttributeValue")
    Do you know where is the right place to put the code in 5.0.2. Have you any examples of Java code to do this?
    Thank you very much.
    Alberto

    I'm going to take a wild guess at this -- on line 463 of com.plumtree.portaluiinfrastructure.activityspace.Interpreter, you might try adding the header you need to the response (IXPResponse) object somewhere inside of HandleGatewayRequest.
    A word of caution: I think Plumtree would frown upon this customization, and here's why.
    My guess was based on 5.0.1 as I haven't seen the source code provided to customers for 5.0.2 yet, but I suspect that they've refactored Interpreter into uiinfrastructure so that it's compiled instead of distributed to customers (based on this comment in the source):
    /* Note: There should be no portaluiinfrastructure code in this file. This * will no longer be an issue when this file, along with AppWarmUp, are * moved to the uiinfrastructure jar. */
    So if this is even possible in 5.0.2 (and I suspect it's not), it probably won't be possible to maintain this customization in future releases of Plumtree.
    I'm interested to hear the official response from Plumtree because one of our customers is considering making a change to Interpreter and I've been cautioning them against it because it might not be supported in future releases.
    Hope this helps,
    Chris Bucchere | bdg | [email protected]| www.bucchere.com

  • Add Custom header

    Hi Friends,
    We are going to implement SSO in our project.For this we have to costomize our code to allow preauthorized
    (Authenticated by third party) user based on the user id which is available in the HTTP header.User id will be set in the http header under the variable REMOTE_USER by the third party.To do our testing we are trying to set this variable into the header,but it is not working.we are using the following code...
    response.setHeader("REMOTE_USER","krishna");
    Please help me how to do this.
    Appreciated if any one could provide sample code.
    Thanks in advance.

    Are you sure that isn't a cookie?
    If you send the browser headers the browser doesn't know it likely won't be echoing them back in further requests.

Maybe you are looking for

  • Page number of linked textframe in indesign document

    Hi,   My indesign document has linked pages 1 - 10 (ie., linked textframes).  I want to take page number of selected text from 5th page., which textframe is linked textframe of 1st page.  When i use the following code for findpage, its returning the

  • Reader X: Attaching PDF to email in Outlook 2003

    Since installing Reader X, it takes several minutes to attach a PDF to an email when using Outlook 2003 (installed on Windows XP SP3, with Outlook and Windows fully patched, running McAfee VirusScan for AV). This occurs with any pdf document, regardl

  • How Many Vbox servers do I need?

    Hi Chaps Im planning a VDI solution for 300 users I was wondering for my Virtualization platform (Vbox) how many servers do I need? Thanks Edited by: 878284 on Aug 9, 2011 7:12 AM

  • Oracle Forms for the Helpdesk

    Greetings, all We are in the process of seeking an alternative to our Peregrine system. We really like Remedy, but since they are owned by Peregrine, we're reluctant to go with them. I've worked with Remedy in the past and am very happy with it. I he

  • EPMA Essbase Error

    Hi All We are trying to deploy 13000 - 90000 members (for a dimension) in essbase from EPMA. Error: server.TaskOutOfMemoryException Thanks in advance Regards