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.

Similar Messages

  • 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

  • Unable to add custom SOAP header to consumer webservice in CRM( without using PI)

    Hello Experts,
    We have a requirement to consume webservice proxy in CRM without involving PI. We have WSDL file which has many services as depicted in the first screenshot.After checking old posts, I could add custom SOAP header by using if_wsprotocol_ws_header and there is no xml parsing error for ws_header.Have used if_ixml_stream_factory to check xml parsing error for header.
    '<soapenv:Header>'
    '<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">'
    '<wsse:UsernameToken wsu:Id="UsernameToken-2">'
                '<wsse:Username>user id</wsse:Username>'
                '<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">paswd</wsse:Password>'
                '<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">MT0B9XFzsZJXXKmVKOsj/Q==</wsse:Nonce>'
                '<wsu:Created>2015-03-30T06:29:17.407Z</wsu:Created>'
    '</wsse:UsernameToken>'
    '</wsse:Security>'
    '</soapenv:Header>' INTO l_string.
    But when my ABAP program as a whole gets executed where consumer proxy is called, then it still throws XML parsing error - undeclared namespace prefix. As mentioned, there is no parsing error for header and WSDL file as a whole in SOAP UI tool works fine,by manually adding SOAP header.
    Have configured SOAMANAGER with logical port.Or any wrong setting in SOAMANAGER can cause this issue? When I tested webservice ping, it gave me attached error but I read in a SAP note that such error can be ignored.
    I want to know if some more setting/coding is required if we manually add custom header to a payload? Is PI really required to implement this requirement? Payload mapping has to be done to add custom header and if that can be taken care by ABAP coding and how?
    Can you please help?
    BR,
    Nisha Verma

    Hello Experts,
    I have not found the solution yet.
    Can anyone provide some insight??
    BR,
    Nisha Verma

  • Question about TextEdit. How do i add a custom header to a multipage document? For example, "Smith, page 2", "Smith, page 3', etc. I can do it in Microsoft Word, but cant figure out how in TextEdit.

    How do i add custom headers to a multipage document in TextEdit? i need to add a custom header in upper right of page, for example: "Smith, page 2", "Smith, page 3" etc.  The add header setting in Textedit file-print only adds date : time in upper right, with "Page 1 of 3" on bottom right.
    Thank you.

    It's just a text editor not a word processor.

  • Add customer button on header level for BUS2201(PO) - SRM 7.0

    Hi,
    I want to define a customer button (with action) within PO on header level.
    Web Dynpro           FPM_OIF_COMPONENT
    Configuration          /SAPSRM/WDCC_FPM_OIF_PO_PURCH
    Task:
    Add a customer button besides standard Export button.
    I assume-afterwards I have to enhance the method onactionbutton_pressed to create my event when customer button is pressed, right?
    Could anyone please guide me how to solve this issue?
    Thanks and best reagrds
    Andreas

    Hi,
    Here are the steps to add the button, I wrote it in other thread. In my case for PO is not displayed, try to follow the steps and if you are able to show the button tell me how please.
    Add custom button in PO
    And yes ,you need to create an enhancement point in the view CNR_VIEW of the component FPM_OIF_COMPONENT, you need to create a post-exit in the method BUTTON_PRESSED, here you have a sample code:
    DATA: lv_id TYPE string,
            lv_event_id TYPE fpm_event_id.
      DATA: lo_nd_oif_application TYPE REF TO if_wd_context_node,
            lo_nd_variant TYPE REF TO if_wd_context_node,
            lo_nd_toolbar TYPE REF TO if_wd_context_node,
            lo_nd_button TYPE REF TO if_wd_context_node,
            lo_el_button TYPE REF TO if_wd_context_element,
            lo_nd_other_functions TYPE REF TO if_wd_context_node.
      DATA: lv_substring TYPE string,
            lv_substring_i TYPE i,
            lv_node_name TYPE string,
            lv_position TYPE string,
            lv_length TYPE i,
            lv_seq TYPE i.
      DATA:lt_keys TYPE STANDARD TABLE OF string,
           lv_key LIKE LINE OF lt_keys.
      TYPES:BEGIN OF y_parameters,
        name TYPE string,
        value TYPE string,
      END OF y_parameters.
      DATA: lt_parameters TYPE STANDARD TABLE OF y_parameters,
            ls_parameter LIKE LINE OF lt_parameters.
      DATA: lv_boid      TYPE bbp_guid,
            lv_botype    TYPE string,
            lv_objkey TYPE  swo_typeid,
            lv_objtype  TYPE  swo_objtyp,
            lv_object_id TYPE crmt_object_id_db,
            lv_process_type TYPE crmt_process_type_db,
            lv_object_type TYPE crmt_subobject_category_db,
            lv_rfc TYPE zgrs_co_logsys-rfc,
      DATA: lo_fpm TYPE REF TO if_fpm.
      lo_fpm = cl_fpm_factory=>get_instance( ).
      lo_fpm->raise_event_by_id( lv_event_id ).
      lt_keys = lo_fpm->mo_app_parameter->get_keys( ).
      LOOP AT lt_keys INTO lv_key.
        ls_parameter-name = lv_key.
        lo_fpm->mo_app_parameter->get_value(
          EXPORTING  iv_key = lv_key
          IMPORTING  ev_value = ls_parameter-value  ).
        INSERT ls_parameter INTO TABLE lt_parameters.
      ENDLOOP.
      lv_id = wdevent->get_string( 'ID' ).
      lo_nd_oif_application = wd_context->get_child_node( name = wd_this->wdctx_oif_application ).
      lo_nd_variant = lo_nd_oif_application->get_child_node( name = wd_this->wdctx_variant ).
      lo_nd_toolbar = lo_nd_variant->get_child_node( name = wd_this->wdctx_toolbar ).
      lo_nd_other_functions = lo_nd_toolbar->get_child_node( name = wd_this->wdctx_other_functions ).
      lv_substring = lv_id.
      lv_length = STRLEN( lv_id ).
      lv_seq = lv_length - 3.
      IF lv_id+lv_seq = '_CP'.
        lv_substring = lv_substring(lv_seq).
        lv_id = lv_substring.
      ENDIF.
      WHILE lv_substring CS '_'.
        lv_position = sy-fdpos + 1.
        lv_substring = lv_substring+lv_position.
      ENDWHILE.
      IF lv_substring CO '1234567890'.
        lv_substring_i = lv_substring.
      ENDIF.
    * Item level action;
      IF lv_id CS '_item'.
    * Or header level action;
      ELSE.
        IF lv_id CA '0123456789'.
          lv_position = sy-fdpos - 1.
          lv_node_name = lv_id(lv_position).
          IF lv_id CS 'OTHER_FUNCTIONS'.
            lo_nd_button = lo_nd_other_functions->get_child_node( name = wd_this->wdctx_button ).
            lo_nd_button->set_lead_selection_index( index = lv_substring_i ).
            lo_el_button = lo_nd_button->get_element(  ).
            TRY.
                lo_el_button->get_attribute(
                EXPORTING
                  name =  `EVENT_ID`
                IMPORTING
                  value = lv_event_id ).
              CATCH cx_wd_context.
            ENDTRY.
            READ TABLE lt_parameters INTO ls_parameter WITH KEY name = 'SAPSRM_BOTYPE'.
            lv_botype = ls_parameter-value.
            READ TABLE lt_parameters INTO ls_parameter WITH KEY name = 'SAPSRM_BOID'.
            lv_boid = ls_parameter-value.
    *         Obtain the object_id;
            SELECT SINGLE object_id INTO lv_object_id
             FROM crmd_orderadm_h
             WHERE guid EQ lv_boid.
    *         If not Z button, exits;
            IF lv_event_id(1) NE 'Z'. EXIT. ENDIF.
    *      Actions;
            CASE lv_event_id.
              WHEN 'ZBUTTON'.
              WHEN 'ZBUTTON2'.
            ENDCASE.
          ENDIF.
        ENDIF.
      ENDIF.

  • How to add Custom code in Report Painter

    Hi All,
      I have a requirement to add Authorization checks at Profit Center Level for 8A-PCA001G report. This is the first time am working on Report Painter/Writer. I am wondering whether i can add custom code or not. Please suggest me how to do this. I copied 8A-PCA001G into a zreport but did not find anywhere to add custom code.
    Any help would be really appreciated.
    Thanks,
    Kumar

    Hi Kumar,
    You cannot write custom code (0% coding) in an Report Writer/Painter report. The code is generated by SAP while generating the Report group. The only place in a report writer report where you can write very minimal code is at varables level or formulas inside reports.
    At the report group header level, there is provision to provide authorization group. Try that.
    Regards,
    Subin John.
    Edited by: subin john on Mar 24, 2011 10:36 AM

  • How can i add custom document properties in Content Services?

    Hello guys.
    I have question. I need to add custom attributes of document uploaded in CS.
    I know about categories, and it will help me.
    But i need it on the properties page? in main tab, where docname, creationdate, etc. appears. Is it possible?
    Ideally it should appears in main window of CS, without any additional clicks.
    Is there any way organize it without development new Web Services?
    Thank you.

    One possible way of doing this would be to use the $A mapping in the send_access mapping table. see http://docs.iplanet.com/docs/manuals/messaging/ims52/ag/filter.htm#15965
    This will depend on what value you wish to use in the header and when and where during the message routing you want to add the header.
    You can use channel level filters on the send_access or orig_send_access mapping table to control at which point the header is added but without knowing more about what you wish to do and which conditions you wish to use to add the header it is difficult to say more. It is possible to use a "customer supplied routine (in the form of a shared object call) from the mapping process, but during the mapping process the only information available to the routine is the sender and recipient info so that probably isnt suitable for your purposes.
    Another method of header manipulation in IMS is channel header option files but these should be used with caution and will only operate on "known" headers and as a result are probably not of too much use to you either.
    The conversion channel does have access to the original message headers http://docs.iplanet.com/docs/manuals/messaging/ims52/rm/mta_conf.htm#1044412
    but Im afraid I cant point you at an example of where it has been used like this - perhaps someone else can.
    WRT moving the message to the top of the message list - I presume this is from the clients perspective - How did you accomplish this in NMS as message views and sorting are almost exclusively a client responsibility ?
    Also have you looked at the ENS service available with IMS?
    Sorry I cant offer anything more than that but without knowing what functions your previous SMTP plugin performed its a bit difficult.
    Ciaran

  • How to add specific header and footer to flat file using SSIS 2008

    The SSIS package need to create file  with headers, totals and adds a status to position one of the records.
    Header: "$$ADD ID=ENTK0557 BID='IA   HBZAC14HBZACHRYCORP' PASSWORD='CUSTOMER        ' %AU HBZAC14" is added.
    $$ADD = Static
    ID=ENTK0557 = Static
    BID='IA   HBZAC14HBZACHRYCORP' = "HBZAC14" is the company, "HBZACHRYCORP" is company name
    PASSWORD='CUSTOMER        '  = static
    HBZAC14 = company
    Control Totals:
    T010533343 000050 0002659604 000000 0000000000
    T = Totals
    010533343 = Account Number
    000050 = Total records
    0002659604 = Total checks
    000000 = TBD
    0000000000 = TBD
    Data for the file
    DECLARE
    @T AS
    TABLE
    [BR-ISSUE-VOID-IND] [char]
    (1)
    NULL,
    [BR-ACCT-NBR] [varchar]
    (9)
    NULL,
    [FILLER1] [char]
    (1)
    NULL,
    [BR-SERIAL-NBR] [varchar]
    (8000)
    NULL,
    [BR-CHECK-AMT] [varchar]
    (8000)
    NULL,
    [BR-CK-ISSUE-DATE] [varchar]
    (6)
    NULL
    INSERT
    INTO @T
    [BR-ISSUE-VOID-IND]
    [BR-ACCT-NBR]
    [FILLER1]
    [BR-SERIAL-NBR]
    [BR-CHECK-AMT]
    [BR-CK-ISSUE-DATE]
    SELECT
    'C'
    ,NULL,' ',30090072,2114.39,100502
    UNION
    ALL
    SELECT
    'C'
    ,NULL,' ',30090190,430.58,100502
    UNION
    ALL
    SELECT
    'C'
    ,NULL,' ',30092371,589.93,100502
    UNION
    ALL
    SELECT
    'C'
    ,NULL,' ',30092550,1198.6,100502
    SELECT
    FROM @T
    File SnapShot.

    Using SSIS its difficult unless you use a script task after the data flow to add the header footer bits.
    A much better option in this case would be bcp as you can generate query with values in the order you want and bcp it out
    http://msdn.microsoft.com/en-us/library/ms162802.aspx
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Add New Header

    What I would like to do is add a header using a servlet and then forward to a new jsp or html page with the new header. I've tried using response.addHeader and response.setHeader methods and then to RequestDispatcher.forward(response, request) that to a new jsp page or servlet, but the new header was not found. Am I doing something terrible wrong or stupid? Any help would be appricated thanks

    You: Can I add a header to a request and forward it to another servlet?
    vijay.Amirineni: No, you can't.
    You: How do I do it, then?
    I felt that your second question was, um.... a little restrictive. Anyway, now that we have the real question on the table, let's look at that. You want to test an application, and that application expects to receive a header of a certain form. Okay, then why not just use a URLConnection object to generate exactly the request you want? There's a testing product called HttpUnit, which I haven't used and know basically nothing about, but I would not be surprised to find that it can handle creating custom headers.
    PC&#178;

  • Add custom fields in a new tab in J1B3N

    Hi All,
    In the project we need to to add custom fields from custom table (z table) in an Additional Tab (header) of J1B3N transaction. How can we do it using user-exits or BADI's?
    I've looked for this requirement in the forum, but none of them related to J1B3N transaction.
    If someboby has developed something like that, I will be grateful for help.
    Thanks in advance.

    Hi Okuma,
    Did you tried what are the badis are triggering while you run this transaction,then you will get an idea .
    Regards,
    Madhu.

  • Add Custom Fields in MB1B Tcode

    I want to Add Custom fields in MB1B Header Data. I not able to find way how to do that. So can you please let me know how to add custom fields in MB1B.
    Thanks & Regards
    Nikunj Shah

    Hi Parikshit,
    There is no badi or user exit available to add a custom fields.If that fields are standard one then it can be controlled against the movement type.Go to T code: OMCJ .Select the movement type, and click on display. And maintian the filed settings accordingly.
    Post if need help.
    if you need validations there are some exits.
    TCode MB1B
    EXIT_SAPMM07M_001 - MBCF0002 - Customer function exit: Segment text in material doc. item
    EXIT_SAPMM07M_003 - MBCFC003 - Maintenance of batch master data for goods movements
    EXIT_SAPMM07M_004 - MBCFC004 - Maintenance of batch specifications for goods movements
    EXIT_SAPMM07M_005 - MBCF0006 - Customer function for WBS element
    EXIT_SAPMM07M_009 - MBCF0009 - Filling the storage location field
    EXIT_SAPMM07M_010 (Propose Batch / Transfer Batch) - MBCFC010 - Propose batch number on Inventory Management item screen
    Regards,
    Madhu.
    Edited by: madhurao123 on Jun 28, 2011 9:44 AM

  • Custom header delimeter

    My company is used to exporting data from MAX using a custom header with the tab delimeter.  I am trying to make a LabVIEW program that automatically writes the data and header to the file.  My company already has software to make a custom header text file but the problem is that this file contains the text:  {delimiter} where each tab should be.  Is there a way when reading this custom header from the file to add a tab when this {delimiter} shows up such as MAX does? 

    Use "search and replace string",
    search string= {delimiter}
    replace string=tab diagram constant
    replace all=true.
    LabVIEW Champion . Do more with less code and in less time .

  • Re-Creating the Help button in a Custom Header portlet

    I've disabled the Top Bar from my portal, and need to create the Help within my custom Header portlet. I can't find any code on how to have it dynamically work? Is it even possible?

    It is possible. Here is a custom function we wrote:
    /***ReturnsanHTMLAnchorthatimplementscontextsensitivehelp.Note,ifeither*imgHelpORstrHelpTextarenotnull,bothdefaultswillbeclearedandoverridden**@paramimgHelp-Includeanoptionaloverrideimage-nullifdefault*@paramstrHelpText-Includeoptionaloverridetext-nullifdefault*@paramasOwner-Theactivityspacecurrentlyinuse**@returnHTMLAnchor*/
    publicstaticHTMLAnchor GetHelpLink(HTMLImg imgHelp, String strHelpText, AActivitySpace asOwner){HTMLAnchor result = [b]null;
    //Get the default help anchor
    result = HTMLConstructHelpers.GetHelpAnchor( asOwner );
    if(null!= imgHelp || null!= strHelpText)
    //Clear the existing default help image and text
    result.ClearInnerHTMLElements();
    if(null!= imgHelp)
    result.AddInnerHTMLElement(imgHelp);
    if(null!= strHelpText)
    //Add in our own custom text
    result.AddInnerHTMLString(strHelpText);
    returnresult;

  • Add custom fields

    Hi all,
       Please provide me with some guidance for below activity .
    How to add custom fields to ERDK table (print doc header ) by creating our own Z FM similar to the existing FM provided in R436 event .
    suppose the field is
    FIELD NAME u2013 FLAG
    TYPE u2013 CHAR
    LENGTH u2013 1
    Moderator message: please use a more meaningful subject line next time.
    Edited by: Thomas Zloch on Mar 31, 2010 1:14 PM

    goto that table.
    Click append structure, create a structure with required field.
    it will come into that table.
    Thank
    Gowrishankar

  • Custom Header

    Dear Experts,
    I am trying to create custom headers for a sap query report i worte. I have the following issues:
    1. I created the custom header and footer (to display the user and the date). However, when i run the report and view the list output i cant seem to get the information.
    2. I am also wondering if i can somehow display the period information in the custom header or footer. The period is one of the selection criteria of my report.
    Any answers will be highly appreciated.
    Thanks.
    R

    For the search button, you will have to create a custom tag to generate the search box without the dropdown in community mode. Our search box tag just uses the portal code to generate the search box, and the portal code automatically adds the "everywhere" combobox when you are in a community.
    For the second issue, there is no good way to get a specific community right now. You can always hard-code a link to the community by using the standard.opener link tag. However, this won't give you the name of the community. In order to do this you would either need to create a custom tag (not that hard), or use the mycommunities tag to get a collection of all the communities the user is a member of. You would then have to write a custom tag to check if the ids match, you could find the name.
    The easiest thing to do is either hardcode the link, or write a custom tag to do exactly what you want.
    Hope this helps.
    -- Don

Maybe you are looking for

  • 10.6.8, Safari 5.1, Yahoo Mail, Hopeless?

    I am just about fed up with how dysfunctional Yahoo Mail is on my Mac.  I'm using the latest version of Safari that can be used on 10.6.8 and Yahoo mail is just abysmal.  Slow, slow, and slow, even when it works.  Often, it just doesnt.  Buttons fail

  • Automatic Plant determination logic in the order line item level

    Dear all, I would like to know if there is a possibility to determine plants automatically, avoiding the standard plant determination logic at line item level, to determine plant based on stock availability. The process will be to skip the standard p

  • Lumia 520 Games situation

    I really need some help and i don't know who or where to ask im new to the site .... here's my problem i bought nokia lumia 520 today and used it i also went to the windows store and downloaded a lot of app then went to the store once more to downloa

  • MacBook Air Thunderbolt shipped without System Restore USB key

    I just received my new 13" MBA 2011 Thunderbolt and it doesn't come with a System Restore USB key. Anyone else? I know Lion has a System Restore partition, but that doesn't help if I'm planning on upgrading the SSD with one of these: http://eshop.mac

  • System Preferences crashes

    System Preferences crashes everytime I click on "Security", "Keyboard & Mouse", and "Sound". I got a Mighty Mouse for Christmas, and I need to change the settings of it. Everytime I click on "Keyboard & Mouse" it crashes. Can anybody help me? Thanks!