Handling BAPI responses..

Hi..
I am using the Bapi --> BAPI_BOM_UPLOAD_SAVE for BOM creation.. so while creating the BOM i am giving the mandatory fields
for the creation of a BOM.
For eg: if i create a BOM using this BAPI, if the BOM is successfully created then a response will get 000 as a success indicator with its LOg_Msg_No as 0000000 and  i am not getting any message as successfully created, and in case of failure it is just generating some error with message ID and type..
In the response i am getting the error message with its 3 digit code, but is it possibe to get the message along with its ID and type..
is there any way to capture the response message,
and also let us know the possibilities of capturing the error message..
the message classes w.r.t this BAPI are W_ and 29
regards,
Kishore

Hi
you can capture the error messages in the following way:
data: it_ret type standard table of bapiret2,
        wa_ret type bapiret2.
CALL FUNCTION 'BAPI_BOM_UPLOAD_SAVE'
  EXPORTING
    IS_MAST         =
    IS_STZU         =
IMPORTING
   ES_RETURN       = it_ret
  TABLES
    IT_STKO         =
    IT_STPO         =
    IT_STAS         =
loop at it_ret into wa_ret.
write: / wa_ret-message.
endloop.
Regards,
Vishwa.

Similar Messages

  • How to handle utl_http response

    Hi,
    I use the below code to call a https using POST method
    utl_http.set_proxy(apex_application.g_proxy_server, NULL);
    utl_http.set_persistent_conn_support(TRUE);
    utl_http.set_transfer_timeout(300);
    utl_http.set_wallet(p_wallet, p_wallet_pwd);
    l_http_req := utl_http.begin_request(p_api_url, 'POST');
    utl_http.set_header(l_http_req, 'Proxy-Connection', 'Keep-Alive');
    utl_http.set_header(l_http_req, 'Content-Type', 'application/x-www-form-urlencoded; charset=utf-8');
    utl_http.set_header(l_http_req, 'Content-Length', length(l_post));
    utl_http.write_text(l_http_req, l_post);
    l_http_resp := utl_http.get_response(l_http_req);
    utl_http.read_text(l_http_resp, l_response);
    The url return a respose with below l_response content
    <html>
    <head>
    <META HTTP-EQUIV='content-type' CONTENT='text/html; charset=UTF8'>
    </head>
    <title>Payment Page</title>
         <form method="POST" name="ePayment" action="http://www.testing.com">
         <input type="hidden" name="MerchantCode" value="M01247"><br>
         <input type="hidden" name="PaymentId" value="2"><br>
         <input type="hidden" name="RefNo" value="0001"><br>
         <input type="hidden" name="Amount" value="1"><br>
         <input type="hidden" name="Currency" value="MYR"><br>
         <input type="hidden" name="Remark" value="Testing1"><br>
         <input type="hidden" name="TransId" value=""><br>
         <input type="hidden" name="AuthCode" value=""><br>
         <input type="hidden" name="Status" value="0"><br>
         <input type="hidden" name="ErrDesc" value="Permission not allow"><br>
         <input type="hidden" name="Signature" value=""><br>
         </form>
         <script language="JavaScript">
              document.ePayment.submit();
         </script>
    </html>
    Apparently it will redirect to http://www.testing.com,
    how should my procedure handle this response so it will redirect to the url?
    Thanks.
    Vincent pek
    Edited by: [email protected] on May 3, 2010 7:09 AM

         <script language="JavaScript">
              document.ePayment.submit();
         </script>
    </html>
    Apparently it will redirect to http://www.testing.com,
    how should my procedure handle this response so it will redirect to the url?
    Thanks.
    Vincent pekYour procedure should be able to run JavaScript, which it isn't.
    Therefore, I would recommend that you talk to the website administrator and discuss using a webservice.

  • How to use bapi response in XI

    HI ALL,
             Can any one suggest me, how to use bapi response in XI as a sender.
    I m using bapi BAPI_BCA_BANKSTATEMENT_EXECUTE , I am executing  this bapi manually ,but want to use this BAPI RESPONSE in XI as a sender and map it with receiver.
    can i have any idea about how to do it, or can i have the idoc which is used by this bapi BAPI_BCA_BANKSTATEMENT_EXECUTE.
    THANX
    HONEY

    Hi Honey,
    Have a look at these
    -Configuring the Sender RFC Adapter - step by step
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    -Troubleshooting - RFC and SOAP scenarios
    /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009
    -sender RFC (forum thread)
    Is it possible to use the RFC sender adapter for asynchronous calls?
    Regards,
    Sreenivas

  • How to handle soap responses

    I am following this tutorial to handle SOAP responses but it does not work http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_6.html
    using code blew I am trying to parse the following soap response.
        <?xml version="1.0" encoding="utf-8"?>
        <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                         xmlns:s="library://ns.adobe.com/flex/spark"
                                         xmlns:mx="library://ns.adobe.com/flex/mx"
                                         xmlns:components="components.*"
                                         xmlns:hellos="services.hellos.*"
                                         height="957"  creationComplete="initApp()" >
                  <fx:Style source="Styles.css"/>
                  <fx:Script>
                            <![CDATA[
                                      import mx.controls.Alert;
                                      private namespace invesbot = "http://Services.com";
                                      use namespace invesbot;
                                      private namespace a = "http://schemas.xmlsoap.org/soap/envelope/";
                                      private namespace b = "http://www.w3.org/2001/XMLSchema";
                                      private namespace c = "http://www.w3.org/2001/XMLSchema-instance";
                                      use namespace a;
                                      use namespace b;
                                      use namespace c;
                                      [Bindable]
                                      var _result:*
                                      private function initApp():void
                                                myService.mycustomers();
                            ]]>
                  </fx:Script>
                  <fx:Declarations>
                            <mx:WebService id="myService" wsdl="http://localhost:8081/WebServiceTest/services/Hellos?wsdl"
                                                             showBusyCursor="true"
                                                             fault="Alert.show(event.fault.faultString), 'Error'">
                                      <mx:operation name="mycustomers" resultFormat="e4x">
                                                <mx:request>
                                                </mx:request>
                                      </mx:operation>
                            </mx:WebService>
                  </fx:Declarations>
        <mx:HBox>
                            <mx:Text
                                      text="{myService.mycustomers.lastResult.mycustomersReturn.name}"
                                      />
                  </mx:HBox>
        </s:Application>
    The SOAP response is as following
        <?xml version="1.0" encoding="UTF-8"?>
        <soapenv:Envelope
          xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
          xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <soapenv:Body>
            <mycustomersResponse xmlns="http://Services.com">
              <mycustomersReturn>
                <age>28</age>
                <name>John</name>
              </mycustomersReturn>
              <mycustomersReturn>
                <age>29</age>
                <name>Alex</name>
              </mycustomersReturn>
              <mycustomersReturn>
                <age>30</age>
                <name>Jack</name>
              </mycustomersReturn>
            </mycustomersResponse>
          </soapenv:Body>
        </soapenv:Envelope>
    Using the above code the output will be
        <name xmlns="http://Services.com" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">John</name>
        <name xmlns="http://Services.com" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Alex</name>
        <name xmlns="http://Services.com" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Jack</name>
    but when I use the following code to put the result in dropdown box it gives the following error
        <s:FormItem label="Employee:">
                            <s:DropDownList id="dropDownList3"
                                                                    labelField="name"
                                                                    dataProvider ="{myService.mycustomers.lastResult.mycustomersReturn}"/>
                  </s:FormItem>
    TypeError: Error #1034: Type Coercion failed: cannot convert XMLList@106e9af1 to mx.collections.IList.

    Hi Ashish,
    You can use Catch All error handler within scope of InvokeService action. By specifying SOAP Fault variable name there, response soap fault will be populated in variable.
    In 11g(As per observation), split joins are strict towards definition of input and output message based on WSDL of target service which causes exception for invalidMessage in InvokeService action.
    Hope this helps.

  • Application Issue - Adobe connect unable to handle "unreachable" responses

    Hi,
    We've discovered what seems to be a bug with the Adobe Connect application/flash player.
    For some reason when you have a proxy in place adobe connect still attempts to establish a direct connection to the adobe servers (for example na7fms2.adobeconnect.com), if these packets get dropped video plays with no issue.
    However in our case we have ACL's setup on our Cisco routing core (which do not allow this traffic), which in turn respond with "Destination Unreachable (Communication administratively filtered)".
    Adobe Connect seems to be unable to handle these responses and goes into a loop continiously attempting a direct connection (around every 10-12 seconds), therefore causing streaming video's to restart every 10-12 seconds.
    Below is a screenshot of the packet capture of the accurance.
    Basically we managed to create two of the following scenarios in our network.
    Video restarts every 10-12 seconds:
    Video plays with no issues:
    Now this "Destination Unreachable" response is completely legal in terms of RFC http://www.ietf.org/rfc/rfc792.txt
    It would be great if this issue could be raised as a bug and fixed in future versions.
    Thanks,
    Daniil

    Seeing the same issue.    Did anyone find any solution?.
    Only solution that I could see was opening HTTPS at firewall for only Adobe Connect servers.  Wasn't able to locate anything that published the network ranges for the Adobe Connect servers however.  Wasn't really a solution that I was happy with anyway.
    Only need to do this to allow 1 employee to access a recorded Adobe Connect meeting.
    Thanks
    Iain.

  • AJAX handling multiple responses

    Hi,
    I have a problem in handling multiple responses from server.
    I am sending requests simultaniously (response for the first requset comes sending other request) but i am getting only the response for the last request all previous request responses are lost.
    how to handle thi situation.is there a way to handle?
    pls help me asap.

    since it is for sure using a single connection to the server, it is quite normal
    can't you manke the request sequentialy?

  • File To Proxy : Handle the response from ECC to send mail without BPM

    Hi,
    Scenario: FILE To Proxy
    Requirement: We are receiving xml acknowledgement file from bank with IDoc number and status in SAP PI and the file is used to send the status number, message and and IDoc number to ECC. After request is received in ECC BAPI is executed to update the original status of outbound IDOC.
    There would be multiple records in file and PI will send all IDoc acknowledgement to ECC to update the IDoc status.
    Issue: Since PI send all records to ecc, if any single IDoc status update is failing in ECC how would it can be communicated to support.
    ECC can send success or error response in proxy but how we can use the same in PI to send mail to support. Or is there any better error handling we can go for in such scenario.
    Thanks,
    Vertika

    Hi everyone
    thanks for response.
    Interface 1: IDoc (ECC) to File (Bank) --> Done
    Interface 2: Acknowledgment File (Bank) to BAPI (ECC) where BAPI will update the status of IDoc sent in first interface.
    For Interface 2 : PI will receive file from Bank with multiple records i.e multiple IDoc numbers and their status. PI will invoke proxy to send the IDoc number and status number (eg 16) for all the records together. Now if BAPI fails to update status of any single IDoc in that file how support team will know that the particular record is failed. To handle this error ECC is saying they can send Error and Success back to PI. But the problem is how we can use that response in PI in the same interface to send emails to support team. Bank does not want any response back in this case. This is just to ensure proper error handling since this is bank related interface.
    Splitting the interface in two interfaces will definitely help. But is there some way which can be used in same interface and based on error response from ECC mail is triggered.
    If any one has better suggestion for such kind of error handling, please post the same.
    Thanks,
    Vertika

  • Updating database table based on BAPI response in case of error

    Dear Experts,
    My scenario includes pulling records from database stagging table, and push one record at a time to BAPI_ALM_NOTIF_CREATE.
    I am using sender JDBC adapter(with select query and update query to mark records as processed).
    My question is : Once XI selects records, immediately status is updated in stagging table for the selected records as processed. what if BAPI could not create document? In this case I need to update status of that record as "Not processed".
    What should I use?
    If BPM, then please tell me the steps.
    Is this possible without BPM?
    What are the chances of failure between XI and BAPI?
    Please provide your inputs.
    Thank you.
    Div

    >
    S.R.Suraj wrote:
    > Hi Divyesh,
    >
    > Your steps are correct..
    >
    > 1. JBDC will read record with code = 0 and make it 1...
    > 2. Once the bapi process is completed all these read records shoudl be made as 2 (if completed successful) else 0 if bapi went into some error.. so that again the jdbc adapter can poll these records and give back to bapi for processing...
    >
    > Now your questions
    > >>So after selection and updation only proxy call will be done right? So for every polling of jdbc adapter ,proxy call will happen?
    > YEs every poll of jdbc will result in a proxy call and every time it will contain next set of records (as the earlier one have already marked as 1)
    >
    > >>How to achieve this?
    > Since this is a synchronous scenario JBDC->XI->Proxy and reverse, I have suggested to use responseonewaybean as a module in sender jdbc adapter (because sender jdbc cannot act synchronously thats why you need to use this module)..
    >
    > >>Do i need to use BPM? please suggest steps.
    > and if this is not working then go for BPM..the steps as i mentioned in my first thread..
    >
    > Regards
    > Suraj
    Hi Suraj,
    Thanks a lot for your support.
    It would be good if you can provide your inputs.
    Stagging table records status:
    Flag = 0 (XI will poll records)
    Flag = 1(XI has polled records and XI will se tthis flag by JDBC adapter)
    Flag =2 (should be done based on response from Proxy Tables parameter) Proxy will set tables parameter which will include info on error message and type.
    (Now based on new requiremets: for error records status should not be reset to 0 so that XI can poll records again, now stagging table should contain error records(for which proxy can not create notification in SAP) with error message and status flag 2)
    Now scenario would be JDBC to Proxy.
    Polling interval for JDBC adapter should be 1 minute.
    So I think status 0 to 1 will be done by XI after immediately selecting records.
    But how about Status 2 that has to be set only for error records only and  with error information.
    I have to update stagging table records with status 2 and error info based on proxy table response. How this can be done?
    This updation will be done in case of error only.
    I was thinking this aproach:
    We can have two interfaces.
    First interface will be jdbc to proxy:
    JDBC adapter select and update records with flag =1 and then send to proxy call and create document in SAP. At SAP side if document can not be created then they will store that error info in some table.
    Second Interfgace:
    Client SAP Proxy will periodically run and send these error records info to XI and XI will update stagging table records accordingly.
    Suraj, What is your sugestion in this solution? Do I need to use Responseonewaybean?
    Thanks Suraj
    Div

  • IDoc to SOAP: client handler for response

    Hello All,
    I have a scenario with IDOC to Web services.
    Is it possible to establish synchronous communication?
    We do not want to use BPM.
    I tried with importing IDOC structure into External definition, and then defining it as Synchronous Interface like this
    IDOC Interface(Outbound) -> output:'ZINVOIC'
                                               input: 'Response'
    WSDL Interface(Inbound) ->   input:'Request'
                                               output:'Response'
    But this did not work as the response is still going from Web services to the sender channel which is IDoc adapter
    If asynchronous, the web service party is telling me to set up a client handler to listen to the responce that web service is sending. Is it possible? and if possible, please explain the steps.
    Please help me out with this!
    Thanks,
    Lakshmi

    Hello Lakshmi,
    We also had similar requirement. This cannot be synchronous. IDOC to Webservice is always an asyn communication.
    Hope this helps.
    Thanks
    -Kulwant

  • Does OCSPChecker handle multiple responses yet?

    I have been trying to get DavMail java application to access an Exchange server that requires the use of OCSP. I have not been able to get it to work. In my research, I have found references to a bug that the OCSP procedure handles only the first response from the OCSP server and so probably returns a fail if multiple responses are received.
    Several bug reports on this indicate that this is fixed, but a later bug report indicates that it is not. Does anyone know which it is?
    Thanks
    Edited by: 834601 on Mar 15, 2011 5:26 AM

    Found out that the answer is YES.

  • Android: Handling error responses

    I'm working on an app that makes use of a public api that sends back xml responses.  When everything goes well, air handles the xml and creates as components to turn the results into typed objects.  The problem arises when submitting information to the api that results in an api error.  The xml payload is completely reformatted.  How do I set up flashbuilder (burrito) so that it recognizes when a server error is returned?

    Hi,
    Using function module 'FORMAT_MESSAGE' you can capture the messages.
    Here is a sample of the program code for that:
      LOOP AT it_messtab.
      CALL FUNCTION 'FORMAT_MESSAGE'
        EXPORTING
          id     = it_messtab-msgid
          lang   = it_messtab-msgspra
          no     = it_messtab-msgnr
          v1     = it_messtab-msgv1
          v2     = it_messtab-msgv2
        IMPORTING
        msg    =  g_msg
      EXCEPTIONS
          OTHERS = 0.
      IF it_messtab-msgtyp = 'S'.
        it_sucess-sucess_rec = g_msg.
        it_sucess-lifnr = it_header-lifnr." Based on your field
        it_sucess-tabix = v_lines.
        APPEND it_sucess.
      ELSEIF it_messtab-msgtyp = 'E'.
        it_error-error_rec = g_msg.
        it_error-lifnr = it_header-lifnr.
        it_error-tabix = v_lines.
        APPEND it_error.
      ELSE.
        it_info-info_rec = g_msg.
        it_info-lifnr    = it_header-lifnr.
        it_info-tabix    = v_lines.
        APPEND it_info.
      ENDIF.
    ENDLOOP.
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • MAKING TWO REQUESTS FROM A JSP AND HANDLING TWO RESPONSE ????????

    Hi,
    I have a requirement like below.
    When a user clicks on download_pdf link on a web page, he should get the pdf data from the server where at the same time he should be shown with a processing window. Say the time taking for hitting the server and getting the response is 10 sec, the processing window should be shown for 10 sec and immediately it has to close.
    My approach :
    From JSP having download_pdf link :: while onClick I am calling an action which is nothing but a servlet call which will take care of getting the pdf data from the server and shown pdf save,cancel window. Other part is onClick I added a javascript function call which will open a seperate window (nothing but a jsp ) showing the processing icon.
    The problem here is, I can not close the window immediately after we get the response from the servlet.
    As we can not have direct communication between two responses(servlet reponse and processing window jsp) I am not able to close the window.
    My trials to close the processing window JSP :
    I tried to write a javascript in the processing window jsp which will be closed after 10 sec using setTimeout() funtion. But here the problem is the window will be closed after 10 sec where even if servlet call response takes 20 sec.
    Please suggest me if I need to do any design change ?
    Can I use any context attributes to come out of this ?
    What would be the best design for this ?
    Thanks and Regards,
    V.Narayana.

    Thanks for the idea.. I am trying to implement that.. Can you please let me know how Can I make a repetitive ajax call ??
    If anyone interested in code, I am pasting all the sample files I prepared for..
    start.jsp
    ===========================================================================================
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <script type="text/javascript">
    function call(){
              w='550';
         h='240';
    LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;
    settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
    win=window.open("http://localhost:7001/SampleExportWeb/ExportServlet",'',settings);
    function call2(){
              w='550';
         h='240';
    LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;
    settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
    win=window.open("http://localhost:7001/SampleExportWeb/statusWindow.jsp",'',settings);
    setTimeout("win.close()",5000);
    </script>
    <input type="button" name="button" value="button" onclick="call();call2()">
    </body>
    </html>
    =========================================================================================================
    statusWindow.jsp
    =============================================================================================================
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ page import="org.apache.beehive.netui.pageflow.scoping.ScopedServletUtils"%>
    <%@ page import = "com.bea.netuix.servlets.controls.portlet.PortletPresentationContext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <table border=1 width="100%">
    <tr><td align="center" height="210">
    <table border=1>
    <tr><td align="center">
    </td></tr>
    </table>
    </td></tr>
    Narayana
    <tr><td align="right">
    <div class="buttonBar">
    <div class="floatright">
         <a onClick="window.close();" class="button" title="" href="#">
    <span>
    </span>
    </a>
    </div>
    </div><!-- end buttonBar -->
    </td></tr>
    <%
    %>
    <iframe id="exportCall" height="0px" width="0px"></iframe>
    </table>
    =============================================================================================================
    FlowController.java
    ===============================================================================================================
    package main.java.com.export.servlet;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.lang.reflect.Method;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    * Export Servlet will be invoked by all dashboard widgets to perform common
    * functions (Print, Download, Export XLS/CSV)
    * @author kadalur.r.supreeth
    * @version 1.0
    public class ExportServlet extends HttpServlet {
         public void service(HttpServletRequest req, HttpServletResponse resp)
         throws ServletException, IOException {
              try {
                   System.out.println("ExportServlet :: service: entered");
                   Object exportManager = null;
                   Class exportClass = null;
                   Method invokingMethod = null;
                   * This condition will be executed if requested operation is to
                   * download PDF. Invoke the PDF converter method runtime and open
                   * the window dialogue box with generated PDF file. The requested
                   * operation value should be "pdfConverter".
                   ByteArrayOutputStream baosPDF = new ByteArrayOutputStream();
                        OutputStream ostreamPDF = resp.getOutputStream();
                        resp.setContentType("application/pdf");
                        resp.setHeader("Content-disposition", "attachment; filename="
                                  + "downloadfile"
                                  + ".pdf");
                        baosPDF.writeTo(ostreamPDF);
                        ostreamPDF.flush();
                        ostreamPDF.close();
              } catch (Exception e) {
                   System.out.println(
                                  "ExportServlet :: service method exception:"
                                  + e.getMessage());
    =========================================================================================================

  • How to handle multiple responses in Receiver Mail adapter?

    Hello,
    I have a scenario where I get n number of responses which has to be sent as an email.
    My response looks like this -
       <Response>
          <Status/>
          <Text>TEST 1</Text>
       </Response>
       <Response>
          <Status/>
          <Text>TEST 2</Text>
       </Response>
    Please let me know if there is any way to send this response as email.
    Thanks

    Hello,
    Check below mapping and change it as per ur source (response) and target (content) fields.
    Note - In below mapping i have used return as xml functionality on Record node, u have to use the same on ur source field.
    After implementing above mapping, just execute ur E2E scenario and check how content is getting generated in ur mail?
    Thanks
    Amit Srivastava

  • How to handle JSON response in XSL-Fo templates during PDF creation of the page

    XSL-FO in CQ5 converts xml output to PDF so for each new XML tag I need to introduce xsl-templates.
    But For ext-js javascript widget on the page that’s not part of CRX Node/page that shows result by making Ajax call and render JSON output. How to address that inside PDF page creation.
    Please share your thought.
    Thanks Chandra

    Declaratevly You can't do this.
    I use two event handler for state remembering:
    public static EventResult goToPage(BajaContext context,
    Page page,
    PageEvent pageEvent) {
    Page newPage = new Page(page.getProperty("nextPageName"));
    page.setProperty(NEXT_PAGE_NAME, null);
    newPage.setPropertyAsPage("returnPage", page, context.getPageEncoder());
    return new EventResult(newPage);
    public EventResult returnToPage(BajaContext context,
    Page page,
    PageEvent pageEvent) {
    Page oldPage = page.getPropertyAsPage("returnPage", context.getPageDecoder());
    return new EventResult(oldPage);
    StartPage.uix
    <handlers>
    <event name="nextPage">
    <bc4j:chaining>
    <bc4j:setPageProperty name="nextPageName" value="NextPage"/>
    <method class="..." method="goToPage"/>
    </bc4j:chaining>
    </event>
    </handlers>
    NextPage.uix
    <handlers>
    <event name="nextPage">
    <bc4j:chaining>
    <method class="..." method="returnToPage"/>
    </bc4j:chaining>
    </event>
    </handlers>
    method setPropertyAsPage save all page properties and state informations for page.
    On every page I use ctrl:page or ctrl:pageState DataObjectLists.
    On pages with search criteria I use ctrl:httpSession DataObjectList to save all criteria in one session. You must write event handler when you make search or trigger FIND event. In this event handler you must put every search form parameter in session.
    That's all from me! I hope this help You to resolve problems!

  • SOAP Sender Adapter Attachment Handling in Response message

    Hi Experts,
    I have a SOAP <> XI <> Proxy scenario where an external WS client sends a SOAP request and receives a SOAP response along with an attachment.
    The problem is that the WS client is unable to retrieve the attachment from the SOAP response although the SXI_MONITOR shows both the payload and attachment beign sent out. In the SOAP sender I 'DO NOT' tick the 'Keep Attachment' parameter.
    If I tick the 'Keep Attachment' parameter, then the payload and attachment both goes as attachment.
    I need help in writing an adapter module which would ensure that the payload remains as the main payload and only the additional attachment goes out as an attachment.
    Regards,
    Shobhit

    Hi Shobhit
    You can refer this generic guide
    How to create adapter modules for J2EE engine
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a
    How-to create a web service with attachments (SOAP With Attachments)
    How-to create a web service with attachments (SOAP With Attachments)
    Rename Attachment Adapter Module
    Rename Attachment Adapter Module
    Hope this will help
    Thanks
    Gaurav

Maybe you are looking for

  • Flash Player only works for the account that downloaded it

    I downloaded flash player and did not specify any special preferences, however, it doesn't work for the 2 other accounts on the computer.  It only runs for the Administrator account from which i downloaded it. I'm running XP professional. Can someone

  • Backup/Sync Manager in Elements 9 has quit working.

    It shows blank lines where it should show albums. How can I fix? The catalog which I am trying to back up has about 11000 items. The sync manager says the catalog is sync'd but it is not. Thanks for any help, 

  • Create Glass Effect Bugs/Titles/Watermarks With Photoshop Or PS Elements.

    Nothing new about this effect but it may be useful to people just starting with FCE. You will need Photoshop or Photoshop Elements. http://www.youtube.com/watch?v=QOJU97vVQKg This tutorial is produced by GeniusDV http://www.geniusdv.com/finalcut_pro_

  • Combining max, average and group by

    Hi! I have a simple table called Rates consisting of RateTime (datetime), Ask (decimal) and OrderSymbol (char) I'm trying to create a select statement that will give me one row for each unique value in OrderSymbol consisting of columns for "CurrentAs

  • ESS Travel links not appearing (EHP4)

    Hi there, We are on EhP4 and trying to implement travel management. Currently we are only seeing the following links: Travel Information Route planning My travel Profile Personalize data Switch personal number Unlock personal number We want to see th