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

Similar Messages

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

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

  • 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

  • Adding authentication in header while consuming external webservice

    Hi,
    I am using oracle soa suite 11g, while consuming an external webservice i have to add authentication in header before sending request.
    I want my header in request to look like this:
    <soapenv:Header>
    <urn:Authentication>
    <urn:username>user1</urn:username>
    <urn:password>pass1</urn:password>
    </urn:Authentication>
    </soapenv:Header>
    if anyone has any idea then please share.
    Regards

    please look at this and see whether that helps you..
    Re: Creating a partnerlink  from a secure webservice

  • Problem in assiging header to invoke an  external  webservice.

    HI,
    I want to assign some additional elements to the header when invoking an external webservice.
    I am creating a variable named customHeader and it contains an element of anytype.
    later in the assign activity i am assigning the following
    <copy>
    <from expression="ora:parseEscapedXML('&lt;payload>&lt;payloadManifest xmlns=&quot;http://www.starstandards.or/webservices/2003/12/transport&quot;>&lt;manifest xmlns=&quot;&quot; id=&quot;Content0&quot; namespaceURI=&quot;http://www.starstandards.org/STAR&quot; element=&quot;ProcessSalesLead&quot;/>&lt;/payloadManifest>&lt;/payload>')"/>
    <to variable="customHeader"
    query="/client:CustomHeader"/>
    </copy>
    so in the soapmessage the header is added as below:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:x
    sd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchem
    a-instance"><env:Header><CustomHeader xmlns="http://xmlns.oracle.com/BODMessageS
    ender"><payload xmlns=""><payloadManifest xmlns="http://www.starstandards.or/web
    services/2003/12/transport"><manifest id="Content0" namespaceURI="http://www.sta
    rstandards.org/STAR" element="ProcessSalesLead" xmlns=""/></payloadManifest>
    but I donot need that customHeader part to be added.My header should be like this:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Header>
    <payloadManifest xmlns="http://www.starstandards.org/webservices/2003/12/transport">
    <manifest id="Content0" namespaceURI="http://www.starstandards.org/STAR"
    element="ProcessPartsOrder" />
    </payloadManifest>
    </soap:Header>
    <soap:Body>
    <ProcessMessage xmlns="http://www.starstandards.org/webservices/2003/12/transport">
    <payload>
    <content id="Content0">
    <ProcessSalesLead>
    </ProcessSalesLead>
    </content>
    </payload>
    </ProcessMessage>
    </soap:Body>
    </soap:Envelope>
    can anyone Please help me on this.This is very urgent.
    Thanks in advance
    deepthi.

    anybody has idea about this .Please let me know.

  • 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

  • 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 columns to the tasks tab in UWL

    Hi Experts,
    We have UWL configured for GP in CE 7.1.
    Currently we have standard columns like Subject, From, Sent Date etc. only
    I need to add some columns like Project No., Customer No.(GP parameters) to the 'Tasks' tab in it.
    These columns are required for all the Work items that appear in UWL.
    I have read about adding custom view for a specific task , but not sure how it can be done in my case.
    Kindly provide inputs for this.
    Thanks and Regards
    Aanchal

    Hi Aanchal,
    i have posted exactly the same problem a few months ago, and no one answered me.
    I couldn't find any documentation on how to add custom GP parameters in the universal worklist, in the examples on customizing the UWL XML they always refer to parameters from the r/3 webflow, never GP.
    I really can't believe that nobody ever tried to do this and faced this problem!
    Please let me know if you find something..
    Regards,
    Marco.

  • 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

Maybe you are looking for

  • Java 1.4 under Redhat 7.2

    Dear all, I got the following message after I installed and tried to run java under RH7.2 Error occurred during initialization of VM Unable to load native library: /usr/java/j2sdk1.4.0/jre/lib/i386/libjava.so:symbol __libc_waitpid, version GLIBC_2.0

  • In our application we have CV Builder and after submit we want to show in  pdf format.

    In our application we have CV Builder and after submit we want to show in  pdf format. this is html page and we want to create pdf after click on Submit. Please provide Solution as soon as possible.

  • Help! PC Suite with Vista Business ...

    I'm user of N95 8GB. Was installing PC Suite on my XP and everything went alright. Just upgrade to Vista Business and the PC Suite can't work. PC Connectivity Software & Nokia Software Updater can't install (keep failing to install). And when I start

  • SPA-1X10GE-L-V2 AND 4-10GBE-WL-XFP SUPPORTED FEATURES

    Hello! I am trying to find documents that prove the following: 4-10GBE-WL-XFP (with CRS-FP40 and XC-L2L3VPN) SPA-1X10GE-L-V2 (with CRS-MSC-40G-B AND CRS1-SIP-800) FEATURES NEEDED: -802.1q encapsulation for L2VPN (EoMPLS & VPLS), L3 and L3VPN -802.3ad

  • Problems With Vertical Photos in One Event Folder

    This is my first post here on these forums...I tried searching for an answer first and couldn't find one. I have one event folder that is having problems. I am unable to export or even duplicate any pictures that are in the vertical position. This fo