Activating BP scenario for Ecom with R/3 backend

Dear All,
I am new to the functionality Ecom with r/3 backend. I have configured Ecom BP (220_BB_ConfigGuide_EN). Now i'm trying to test the BPP. I have created two layouts Layout1 and Layout2.
If I click on any og the layout I get the error:
ISA Framework: com.sap.spc.remote.client.object.IPCException: BackendException Exception: parameters: [client]='null' [user]='null' [language]='null' [ashost]='null' [systemnumber]='null' [mshost]='null' [gwhost]='null' [gwserv]='null' [group]='null' [systemid]='null' Properties: {lang=EN, passwd=?, sysnr=00, client=555, user=weblogin, ashost=10.244.2.25, jco.client.type=A, maxcon=100, codepage=1100} Client not connected com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: CPIC-CALL: 'CMRCV' null Function: SPC_GET_DOCUMENT_INFO Import Parameters: |--|| | PARAMETERS 'INPUT' ||| |IT_DOCUMENT_ID|IT_ITEM_ID| ||| | | | ||| |IT_DOCUMENT_ID|IT_ITEM_ID| ||| || | TABLE 'PRCT_PRIDOC_GUID_T' || | | || | 0 1 2 3 4 5 6 7| || || || | TABLE 'PRCT_ITEM_NO_T' || | | || | 0 1 2 3 4 5 6 7| || |--
|
Also, When i try to create shopping basket, after entering the product manually H11 etc and click on update i get the error:
com.sap.spc.remote.client.ClientException: BackendException Exception: parameters: [client]='null' [user]='null' [language]='null' [ashost]='null' [systemnumber]='null' [mshost]='null' [gwhost]='null' [gwserv]='null' [group]='null' [systemid]='null'
Properties: {lang=EN, passwd=?, sysnr=00, client=555, user=ecommerce, ashost=10.244.2.25, jco.client.type=A, jco.client.trace=0, codepage=1100}
Client not connected
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: CPIC-CALL: 'CMRCV'
null
Function: SPC_GET_DOCUMENT_INFO
Import Parameters:
| PARAMETERS 'INPUT'
IT_DOCUMENT_ID
IT_ITEM_ID
IT_DOCUMENT_ID
IT_ITEM_ID
| TABLE 'PRCT_PRIDOC_GUID_T'
0   1   2   3   4   5   6   7
I have not done the configurations for Document management as in configguide it says its optional.
Any idea how can I slove this issue?
Thanks,

Hi,
I am having exactly the same problem. I have deactivated IPC in shop admin. How do I deactivate in the XCM settings? I do not see that in any place...
I am sure I am missing something here..I am new to this ISA with R/3 backend.
Any help would be definitely appreciated. Thanks in advance.
Thanks and Regards,
Mahesh.

Similar Messages

  • How to use pre-defined scenarios for RosettaNet with XI 3.0

    Hi all.
       I am working in Comgroup Shanghai co. ltd. which is partner of SAP China.
       We have a potential customer who use RosettaNet as their Supply Chain EDI system.
       I would like to make a demo for demostrate the pre-defined scenarios for RosettaNet RNIF 2.0 packages.
       Where can I find such guideline ? I have checked the article: implementing RosettaNet with XI 3.0, but it cannot help me.
       Another question is how I can develop my own scenarios for the RNIF standards which are not included in XI RosettaNet business package ?

    Hi Andy,
    See the instructions below after you installed the RosettaNet STK.
    Below given is the sample config for PIP3B2 Scenario. Part I is using STK and Part II is using 2 XI systems.
    <b>Part I. Test Using STK</b>
    In your XI ID:
    1) Define both the parties 1) Shipper(Your Partner) 2) Receiver(Your company) with identifiers like DUNS Number.
    2) In ID goto>Tools>Transfer Integration Scenarios from IR-->select the scenario "PIP3B2_Receiver" from the drop down list.
    3) Follow the 4 steps in the config wizard.
    4) While creating your CC, create it from the channel template delivered with the RosettaNet BP.
       4.1) Specify the URL for STK which should be in the following format
    http://<STK Server>:<port>/rosettanet/servlet/listenerServlet?userId=<Party Name>
       4.2)In the location fields, enter your location and your partner location.
    In your STK
    1) Start the RosettaNet STK.
    2) enter the UserID<Partner Name in XI>
    3) Select the Test Scenario, 3B2V01.01-AdvanceShipmentNotification-0001-Scenario-Shipper
    4) Enter Global Business ID(DUNS Number) and Location ID for both the partners. These fields should be same as in your R/3 Party configuration.
    5) Enter the URL as follows:
    http://<XI Server:<J2EE_Port>/MessagingSystem/receive/RNIFAdapter/RNIF
    If everything is configured correctly as mentioned, you should be able to test your single-action scenario.
    <b>Part II Test using another XI System</b>
    For these follow the steps above for XI Config.
    Configure one XI System as PIP3B2 Shipper using the Scenario "PIP3B2_Shipper" and config wizard as mentioned above.
    Configure the other XI as PIP3B2 Receiver using the scenario "PIP3B2_Receiver" and config wizard.
    In the Url field, specify the URL as follows:
    http://<XI host>:<J2EE_Port>/MessagingSystem/receive/RNIFAdapter/RNIF
    Hope this helps.
    Regards,
    Sam Raju

  • Hi  experts  i need realtime scenario for declaration of infotype with MODE N at TM in ABAP HR

    hi  experts  i need realtime scenario for declaration of infotype with MODE N at TM in ABAP HR?? can anyone provide the brief explanation?

    Hi bharathi.
       Find the bellow code .
    Tables: pernr.
    infotypes: 0001,0002, 2001 mode n, 2007 mode n, 2013.
    start-of-selection.
    get pernr.
    pr-read-all-time-ity pn-begda pn-endda.
    write: p0001-pernr, p0001-bukrs, p0001-abkrs,
            p0002-nachm, p0002-name1, p0002-vorna.
    end-of-selection.
    ******** in the abouv code should be -ve TM.
               for +ve tm we need to use hr_time_results_get.
    based on this u can assume ur requirement .
    Thanks
    Venkat.

  • What is the best way to follow the scenario for Out look integration with share point using SAP Gateway?

    1)what is the best way to follow the scenario for Out look integration with share point using SAP Gateway?
    2)workflow concepts for Purchase order?
    3)Email triggering from out look for an approval process of PO? how these scenario can be best implemented with updated functions in Duet Enterprise.

    Hi,
    I do not have much idea on gateway integration with outlook but found out this document GWPAM Workflow Template which can be helpful for you to start with.
    also you may want to post your question in SAP Microsoft Interoperability forum
    Regards,
    Chandra

  • Do not have authorization for access with activity 03 on the InfoProvider

    Hi,
    I have developed new cube & ODS and created new Web Templates based on queries on these Infoproviders.
    I have created new role and adde these templates to menu of this Role.
    In Authorization profile i have used following Authorization objects.
    S_RS_BTMP
    S_RS_COMP
    S_RS_COMP1
    S_RS_ICUBE
    S_RS_ODSO
    In all these objects i hace selected activity 3.
    Infoarea used for these new Cube & ODS is also added and for cube & ODS selection ihave used * (full authorization)
    But when user is opening the web template it is showing error messahe
    "You do not have authorization for access with activity 03 on the InfoProvider ZICXEROX."
    Is there is any authorization object missing in the profile?
    Regards
    SSS

    Dear SSS,
    Have the same problem ' You do not have sufficent  authorization for the infoprovider'. so could you please send the document from my mail id
    [email protected].......
    plaase very very urgent
    Regards
    Ahmed.

  • Realtime scenarios for text &formula variable with replacementpath

    Please search the forums before posting
    i want real time scenarios for Text & formula variable with replacement path separately & how to solve it
    Edited by: Arun Varadarajan on Mar 15, 2009 7:26 PM

    Hi Karen,
    This require a text Variable with customer exit which reads the User entry formula variable and populate the coloum heading
    Hope you got it
    Regards
    Happy Tony

  • Wrong with activation key product for windows 7

    Hello everyone 
    I have downloaded windows 7 from my college website (Microsoft Windows 7 with Service Pack 1 Debug/Checked
    Build 32-bit (English) - DreamSpark ) 
    then I chose windows 7 home basic during installation 
    finally every time I try to active windows 7 it says "the product key
    you entered wont work with this edition of windows 7 you must either run windows 7 setup or enter a windows home basic product key"
    do I picked a wrong version in the installation of windows 7 ? whats the matter ? my windows got three more days to be activated and I dont know what to do, there wasn't any description on
    my college website on how to active
    please help me ASAP ! 
    Regards 

    You picked the wrong version Othman92.  The Checked/Debug build is intended only for very specific uses like windows driver development.   See this page for more infO: http://msdn.microsoft.com/en-us/library/windows/hardware/ff543450(v=vs.85).aspx
    Thanks,
    Mike
    Unfortunately your post is off topic here, in the MSDN Subscriptions feedback forum, because it is not feedback regarding the MSDN Subscription. This is a standard response I’ve written up in advance to help many people (thousands, really.) who
    happen to post their question in my forum, but please don’t ignore it.  The links provided below I’ve collected to help with many issues we’ve seen.
    For technical issues with Microsoft products that you would run into as an end user of those products, one great source of info and help is
    http://answers.microsoft.com, which has sections for Windows, Hotmail, Office, IE, and other products.   Office related forums are also here:
    http://office.microsoft.com/en-us/support/contact-us-FX103894077.aspx
    For Technical issues with Microsoft products that you might have as an IT professional (like more technical installation issues, or other IT issues), you should head to the TechNet Discussion forums at
    http://social.technet.microsoft.com/forums/en-us, and search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), you should head to the MSDN discussion forums at
    http://social.msdn.microsoft.com/forums/en-us, and search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here:
    http://community.dynamics.com/
    If you really think your issue is related to the MSDN Subscription, and I screwed up, I apologize!  Please repost your question to the discussion forum and include much more detail about your problem, that could include screenshots of the issue
    (do not include subscription information or product keys in your screenshots!), and/or links to the problem you’re seeing. 
    If you really have no idea where to post this question, then you shouldn’t have posted here, because we have a forum just for you!  It’s called the ‘Where is the forum for…?’ forum and its here:
    http://social.msdn.microsoft.com/forums/en-us/whatforum/
    Please review the topic of the forum you’re posting in before posting your question.  Moving your post to the off topic forum.
    Thanks, Mike
    MSDN and TechNet Subscriptions Support <br/> Read the Subscriptions <a href="http://blogs.msdn.com/msdnsubscriptions">Blog! </a>

  • Can I found my activation apple ID for my i phone 4s with this iphone,s serial number, part number, imei/meid number every things I have. Pls help Me.

    Can I found my activation apple ID for my i phone 4s with this iphone,s serial number, part number, imei/meid number every things I have. Pls help Me.

    Nope. You created your Apple ID and password. Only you can change it:
    Manage My Apple ID
    If you don't know your security questions:
    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a valid rescue email address, then use this procedure:
             Rescue email address and how to reset Apple ID security questions.
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
    Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                             Apple ID- All about Apple ID security questions.

  • Scenarios for PI 7.1

    Hi,
    I am looking for different scenarios for PI 7.1, I am specifically looking for these scenarios.
    1. iDoc to File
    2. File to iDoc
    3. iDoc to Webservice
    4. Webservice to iDoc
    5. Proxy to Webservice
    6. Webservice to Proxy
    Please do not send links for PI 7.0, I am specifically looking for PI 7.1
    Thanks,
    Nishant

    Nishant,
    THere is no much difference between PI 7.1 except webservices. File,IDOC,proxy will be similar.
    Here by sending u new features of PI 7.1.Use ESOA for webservices scenario.
    PI7.1 features refer this blog:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/706005a3-3bd6-2910-91ae-a2016239bdcf
    Advanncements of PI 7.1
    1. Enterprise Services Repository as a central storage location for enterprise service definitions and lifecycle management data for all enterprise services (Concept of Folders,.
    Using Folders in PI 7.1
    Using Folders in PI 7.1
    2. Universal Description, Discovery, and Integration (UDDI) 3.0u2013compliant services registry for runtime management of enterprise services.
    XI : How To publish WSDL generated from XI to UDDI
    XI : How To publish WSDL generated from XI to UDDI
    WebAS : A step by step guide for Configuring UDDI registry on Local Server
    WebAS : A step by step guide for Configuring UDDI registry on Local Server
    3. Enterprise Service Oriented Architecture (ESOA), Global Data Types, Modeling Tool Concept.
    ESOA BASICS
    SAP Architecture u2013Enterprise SOA Basics
    SAP Architecture –Enterprise SOA Basics
    Quick Guides for setting up an eSOA prototyping environment with CE, ESR, and NWDS
    Quick Guides for setting up an eSOA prototyping environment with CE, ESR, and NWDS
    ESA = SOA + ES ?
    ESA = SOA + ES ?
    PRINCIPAL PROPAGATION
    Principal Propagation with SAP NetWeaver Process Integration 7.1
    Principal Propagation with SAP NetWeaver Process Integration 7.1
    Principal Propagation in SAP XI
    Principal Propagation in SAP XI
    Modeling tools in PI 7.1
    Modeling tools in PI 7.1
    Publish services from PI 7.1 to the Service Registry
    Publish services from PI 7.1 to the Service Registry
    Using CCTS in PI 7.1
    Using CCTS in PI 7.1
    4. Improved support for standards such as Web Service Reliable Messaging (WS-RM), WS Policy, Security Assertion Markup Language (SAML).
    5. Support Business Activity Monitoring (BAM).
    XI: BAM - Episode III - new super trace
    The specified item was not found.
    XI: BAM - Episode II - Simple Proactive monitor
    The specified item was not found.
    XI: BAM - Episode I - Introduction s
    The specified item was not found.
    6. Advanced Adapter Engine Features (Eg. Bypass Integration Engine Process)
    7. Enhancement for Mapping (Eg. Re-usable User Defined Functions, Look-up function reads multiple fields, Specify mapping parameters at configuration time, Synchronous DB RFC lookups, Message Packing etc.)
    SAP PI 7.1 Mapping Enhancements Series: Correct Structural Inconsistencies
    SAP PI 7.1 Mapping Enhancements Series: Correct Structural Inconsistencies
    SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups
    SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups
    SAP PI 7.1 Mapping Enhancements Series: Parameterized Message Mappings
    SAP PI 7.1 Mapping Enhancements Series: Parameterized Message Mappings
    SAP NetWeaver Process Integration 7.1: Mapping Enhancements Blog Series
    SAP NetWeaver Process Integration 7.1: Mapping Enhancements Blog Series
    SAP PI 7.1 Mapping Enhancements Series: Mapping Enhancements Demo
    SAP PI 7.1 Mapping Enhancements Series: Mapping Enhancements Demo
    SAP PI 7.1 Mapping Enhancements Series: Copy XML Subtree
    SAP PI 7.1 Mapping Enhancements Series: Copy XML Subtree
    SAP PI 7.1 Mapping Enhancements Series: Using Graphical Variable
    SAP PI 7.1 Mapping Enhancements Series: Using Graphical Variable
    SAP PI 7.1 Mapping Enhancements Series: Share User-Defined Functions
    SAP PI 7.1 Mapping Enhancements Series: Share User-Defined Functions
    SAP PI 7.1 Mapping Enhancements Series: Import SQL Table's Metadata
    SAP PI 7.1 Mapping Enhancements Series: Import SQL Table's Metadata
    MAPPING LOOK UPS
    Lookupu2019s in XI made simpler
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    XI: RFC Mapping lookups (from BC to XI?)
    The specified item was not found.
    Use this crazy piece for any RFC Mapping Lookups!
    Use this crazy piece for any RFC Mapping Lookups!
    SAP XI Lookup API: the Killer
    The specified item was not found.
    mapping look ups RFC api
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    RFC Look up from XSLT mapping
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14
    Data Lookup Optimized
    Data Lookup Optimized
    8. Extended support for high volume scenarios
    huge processing of files
    Night Mare-Processing huge files in SAP XI
    Step-by-Step Guide in Processing High-Volume Messages Using PI 7.1's Message Packaging
    Step-by-Step Guide in Processing High-Volume Messages Using PI 7.1's Message Packaging
    SAP XI acting as a (huge) file mover
    The specified item was not found.
    Managing bulky flat messages with SAP XI (tunneling once again) - UPDATED
    The specified item was not found.
    New NetWeaver Process Integration how-to guide for typical high volumen replication scenarios.
    New NetWeaver Process Integration how-to guide for typical high volumen replication scenarios.
    9. Business Activity Monitoring for process definition of milestone monitoring (event correlation).
    10. Improved SAP NetWeaver Administrator support for central configuration and administration of both mediated and point-to-point scenarios.
    11. XML payload validation and validations using JAVA.
    VALIDATING MESSAGES
    Validation of Messages in SAP NetWeaver Exchange Infrastructure - SDN Member Session EPI213 at SAP TechEd '06 Amsterdam
    Validation of Messages in SAP NetWeaver Exchange Infrastructure - SDN Member Session EPI213 at SAP TechEd '06 Amsterdam
    SOA Middleware: XML validation error handling
    SOA Middleware:  XML validation error handling
    The Hitchhiker's Guide to Validation
    The Hitchhiker's Guide to Validation
    Validations using Java for those not having PI7.1
    Validations using Java for those not having PI7.1
    Xml validation
    XML Validation BPM:
    VALIDATING INCOMING FLAT FILE
    Generic Approach for Validating Incoming Flat File in SAP XI - Part 1
    Generic Approach for Validating Incoming Flat File in SAP XI - Part 1
    Generic Approach for Validating Incoming Flat File in SAP XI - Part II
    Generic Approach for Validating Incoming Flat File in SAP XI - Part II
    Validating messages in XI using XML Schema
    Validating messages in XI using XML Schema
    BPM:
    Enhancements in ccBPM within SAP NetWeaver Process Integration 7.1
    Enhancements in ccBPM within SAP NetWeaver Process Integration 7.1
    12. Process editor modeling enhancements: step groups, integrated alert management and configurable parameters.
    13. Integration of human interaction (generic user decision).
    14. Language dependent texts for end-user display.
    15. WS-BPEL 2.0 adoption (Preview and implementation BPEL4People, BPLE-SPE Simple User Defined Functions can be configured directly in the process.)
    Also refer this links for more clarifications:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/369142f195675ee10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/fb4cd3207c7063e10000000a1553f6/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f36ce30f-0e01-0010-a89b-c158d07c44ff
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ec19c05d-0501-0010-09a2-b6db51b5318d
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5441afe5-0601-0010-dba5-dc5f9d5caa9d
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c50cddbb-0601-0010-92a7-f2a40ca68e6d
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f027dde5-e16e-2910-97a4-f231046429f2
    Refer these threads as well:
    Advantages of using PI 7.1 over PI 7.0
    PI 7.0 and XI 3.0
    http adaptor on which factors we will use
    Diff between XI and PI
    differences between xi 3.0 and pi 7.0
    Difference/ changes from XI 3.0 to PI 7.0
    give me main advantages of XI-7.0 TO XI-3.0
    XI 7.0 vs Xi 3.0
    XI/PI
    XI vs. PI
    XI 3.0 vs. PI (XI 7.0)
    Difference/ changes from XI 3.0 to PI 7.0
    moving from XI 3.0 to PI 7
    Edited by: VenkataPrabhakar Teegavarapu on Dec 2, 2008 1:48 PM

  • Direct material procurement in PDP scenario for classic mode

    Dear Gurus,
    We have configured classic scenario in our SRM 7.01 with backend system ECC 6.0 Enhpk 5.  We have PDP scenario for direct material as one of the requirement. The requirement generated in MRP in the ECC backend system will be sent to SRM SOCO for sourcing. Once the right source of supply is found, the follow-on purchase order needs to be created in the ECC backend system in direct material mode.
    However, the SAP SRM standard supports only indirect material procurement in PDP scneario for classic mode. How to enable the direct material procurement? Could you suggest any BAdi to be used here?
    Thanks and regards,
    Ranjan
    Ranjan Sutradhar

    Hello,
    You need to activate the Bsdi 'ME_REQ_SOURCING_CUST' for transferring the purchase requisitions from ERP to SAP SRM.
    Some details about the method involved for the same are mentioned below :
    Mehtod : IF_EX_ME_REQ_SOURCE_CUST~ACTIVE
    ->when parameter CV_AUT_SOURCING is set to true, external sourcing (e.g. SRM system) is active in ERP system
    ->when parameter CV_EXT_RFX_IND is set to true, RFx can be created out of PR directly from ERP system using application CPPR
    ->when parameter CV_EXT_SC_IND is set to true, PR in ERP system will be transferred to SRM using application CPPR
    Method b. IF_EX_ME_REQ_SOURCE_CUST~CHECK_EXTERNAL_SOURCE
    Here you need to maintain the logic / condition for which PR has to be transfered to SOCO.
    Example
    IF ( is_req_item-ekgrp = 'SRM' AND is_req_item-matkl = '100' )
    cv_ext_sourcing = cl_mmpur_constants=>yes.
    ENDIF.
    When this BADI is active whenever you save a PR with say the purchasing group as SRM and material group is 100 (as per sample code above), system automatically triggers the PR transfer from ERP to SRM by xml's.
    Best Regards,
    Rahul

  • Scenarios for general ledger accounting

    Hello,
    Is there additional scenarios to assign in FI apart from the following ones : FIN CCA/FIN CONS/FIN PCA/FIN SEGM/FIN_UKV/FIN GSBER as I am looking  into retrieving from FAGLFLEXT the transaction type (RMVCT) and plant fields (WERKS) which I already added to the table but the fileds are blank although the informations is on the document on BSEG.
    So I assume I have to assign additional scenarios to have the data duplicated from BSEG to FAGLFLEX.
    Is it possible to create scenarios and if so how to proceed in custo?
    Thanks a lot for your help.
    Regards,
    Farida

    Hi ,
    I don't want to see document splitted based on Cost Centers.
    I active Cost Center Update scenarios on this month.
    IMG/Financial Accounting (New)/FA Basic Settings(New)/Ledgers/Fields/Display Scenarios for General Ledger Accounting
    Scenarios
    FIN_CCA Cost Center Update
    Scenario Fields
    Accounting documents RCNTR
    After this setting I post one document with cost center.
    I view documents , in the GL view, there is no cost center information.
    It's meaning that the field of RCNTR not update in table FAGLFLEXA .
    Can tell me which IMG I need to set?

  • Webservice for soap with attachments

    HI
    I am try to develop webservice for soap with attachments for the sending images like jpg,tiff,gif.
    it works fine when I statically attach the file
    but when i pass dynamically the file name it will give me error for the call.invoke() method
    Following is the code and the error details
    I am using eclipse wtp2.0 and using weblogic appserver 8.1 and axis-1.4
    that is my configuration details.
    // This is my service code
    import java.io.File;
    import java.io.IOException;
    import javax.activation.DataHandler;
    import javax.activation.FileDataSource;
    import javax.mail.MessagingException;
    import javax.xml.soap.AttachmentPart;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPBodyElement;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPException;
    import javax.xml.soap.SOAPMessage;
    import org.apache.axis.Message;
    import org.apache.axis.MessageContext;
    import org.apache.axis.message.SOAPEnvelope;
    //import org.apache.axis.soap.MessageFactoryImpl;
    import com.sun.corba.se.spi.activation.Repository;
    public class AttachmentServer1
         SOAPMessage msg = null;
         Message response= null;
         FileDataSource fileSource;
         DataHandler dataHandler = null;
         MessageContext context = null;
              public void sendImage(String fileName) throws MessagingException, IOException{
              try {
                        //java.lang.System.setProperty("javax.xml.soap.MessageFactory","com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl");
                        java.lang.System.setProperty("javax.xml.soap.MessageFactory","org.apache.axis.soap.MessageFactoryImpl");
                        MessageFactory fac = MessageFactory.newInstance();
                        msg = fac.createMessage();
                        context = MessageContext.getCurrentContext();
                        response = context.getRequestMessage();
                        if(msg != null){
                             System.out.println("From inside if statement");
                             //File f = new File("D:/1.png");
                             File f = new File(fileName);
                             fileSource = new FileDataSource(f);     
                             dataHandler =new DataHandler(fileSource);
                             System.out.println("From inside if statement 1");
                             AttachmentPart part = msg.createAttachmentPart(dataHandler);
                             System.out.println("From inside if statement part");
                             //part.setContentType("image/jpeg");
                             //part.setMimeHeader("Content-Type", "image/jpg");
                             //part.setContent(dataHandler, "image/jpg");
                             SOAPPart soapPart = msg.getSOAPPart();
                             javax.xml.soap.SOAPEnvelope envelope = soapPart.getEnvelope();
                             SOAPBody body = envelope.getBody();
                             SOAPBodyElement bodyElement = body.addBodyElement(envelope.createName("attach"));
                             SOAPElement element = bodyElement.addChildElement(envelope.createName("parent"));
                             System.out.println("From inside if statement 2");
                             part.setContentId("axis");
                             msg.addAttachmentPart(part);
                             element.addAttribute(envelope.createName("href"), part.getContentId());
                             System.out.println("From inside if statement 3");
                             msg.saveChanges();
                             System.out.println("From inside if statement 4");
                             System.out.println(part.getContentId());
                        }else
                             try {
                                  throw new Exception("Responce message is null");
                             } catch (Exception e) {
                                  // TODO Auto-generated catch block
                                  e.printStackTrace();
                   } catch (SOAPException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
    // This is the client code
    import java.io.File;
    import java.io.FileOutputStream;
    import java.util.Iterator;
    import javax.activation.DataHandler;
    import javax.xml.namespace.QName;
    import javax.xml.soap.AttachmentPart;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPException;
    import org.apache.axis.Message;
    import org.apache.axis.MessageContext;
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.message.SOAPEnvelope;
    public class AttachmentClient {
         public static void getImage(){
              try{
                   String endPoint = "http://localhost:7001/Test/services/AttchmentServer";
                   Service service = new Service();
                   Call call = (Call)service.createCall();
                   call.setOperationName(new QName("sendImage"));
                   call.setTargetEndpointAddress(endPoint);
                   call.setUseSOAPAction(true);
                   call.invoke(new Object[] {});
                   MessageContext context = call.getMessageContext();
                   Message msg = context.getCurrentMessage();
                   Iterator obj = msg.getAttachments();
                   while(obj.hasNext()){
                        try{
                             AttachmentPart part = (AttachmentPart) obj.next();
                             File graphFile = new File("test.jpg");
                             FileOutputStream outputStream = new FileOutputStream(graphFile);
                             DataHandler dataHandler = part.getDataHandler();
                             if(dataHandler != null){
                                  dataHandler.writeTo(outputStream);
                                  outputStream.flush();
                                  System.out.println("File Saved at:"+graphFile.getAbsolutePath());
                             }else{
                                  System.out.println("null");
                        }catch(Exception e){
                             e.printStackTrace();
              }catch(Exception e){
                   e.printStackTrace();
         public static void main(String args[]) throws SOAPException
              getImage();
    // The error is something like that
    - Exception:
    java.lang.RuntimeException: javax.mail.MessagingException: Error in input stream;
    nested exception is:
         java.io.IOException: End of stream encountered before final boundary marker.AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: javax.mail.MessagingException: Error in input stream;
    nested exception is:
         java.io.IOException: End of stream encountered before final boundary marker.
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace:javax.mail.MessagingException: Error in input stream;
    nested exception is:
         java.io.IOException: End of stream encountered before final boundary marker.
         at javax.mail.internet.InternetHeaders.load(InternetHeaders.java:122)
         at javax.mail.internet.InternetHeaders.<init>(InternetHeaders.java:93)
         at org.apache.axis.attachments.MultiPartRelatedInputStream.readTillFound(MultiPartRelatedInputStream.java:499)
         at org.apache.axis.attachments.MultiPartRelatedInputStream.readAll(MultiPartRelatedInputStream.java:433)
         at org.apache.axis.attachments.MultiPartRelatedInputStream.getAttachments(MultiPartRelatedInputStream.java:439)
         at org.apache.axis.attachments.AttachmentsImpl.mergeinAttachments(AttachmentsImpl.java:171)
         at org.apache.axis.attachments.AttachmentsImpl.getAttachmentByReference(AttachmentsImpl.java:341)
         at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:617)
         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.populateDataHandler(JAFDataHandlerDeserializer.java:74)
         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:59)
         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345)
         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
         at org.apache.axis.client.Call.invoke(Call.java:2467)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
         at AttachmentClient2.getImage(AttachmentClient2.java:27)
         at AttachmentClient2.main(AttachmentClient2.java:58)
         {http://xml.apache.org/axis/}hostname:solusoft18
    javax.mail.MessagingException: Error in input stream;
    nested exception is:
         java.io.IOException: End of stream encountered before final boundary marker.
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
         at org.apache.axis.attachments.MultiPartRelatedInputStream.readTillFound(MultiPartRelatedInputStream.java:609)
         at org.apache.axis.attachments.MultiPartRelatedInputStream.readAll(MultiPartRelatedInputStream.java:433)
         at org.apache.axis.attachments.MultiPartRelatedInputStream.getAttachments(MultiPartRelatedInputStream.java:439)
         at org.apache.axis.attachments.AttachmentsImpl.mergeinAttachments(AttachmentsImpl.java:171)
         at org.apache.axis.attachments.AttachmentsImpl.getAttachmentByReference(AttachmentsImpl.java:341)
         at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:617)
         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.populateDataHandler(JAFDataHandlerDeserializer.java:74)
         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:59)
         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345)
         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
         at org.apache.axis.client.Call.invoke(Call.java:2467)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
         at AttachmentClient2.getImage(AttachmentClient2.java:27)
         at AttachmentClient2.main(AttachmentClient2.java:58)
    Caused by: javax.mail.MessagingException: Error in input stream;

    Hi David,
    The "covert byte[] to a base64 encoded string" solution, is probably your best
    bet given the scenario you described.
    Regards,
    Mike Wooten
    "David Ruana" <[email protected]> wrote:
    >
    Weblogic 6.1 (SP2) does not support SOAP with attachments. In the meanwhile,
    what
    is the best approach in order to send a SOAP message which has binary
    data?
    My EJB is currently receiving a byte[] and returning also a byte[]. The
    only solution
    I can think of right now is to convert the byte[] into a String in base64
    format.
    Would you recommend that?
    Thanks in advance.

  • Can u tell me realtime scenario for craeting the views

    hi,
      in the interview they are asking to tell me scenario why i got a chance to create a view?
    can anyone plz sove my problem.
    2. how to debug smartforms?

    mahesh,
      1.I have 2 table which are having 40lakhs records in both the tables.In my
         requirement of report i have to extract the data from both the tables for last 3
         months only.This time even for few records it will run for long time. Instead of
         this create a view which is having both table fields.craete a program and
         scheduled it which will update the view with 3 months data .
         Now you can use view to extract the by your new report.
    2. *****************************
    Using the Smart Form trace, you can trace how a Smart Form was processed during printing. You can then see, for example, the sequence in which the nodes were run or the point at which processing terminated due to an error.
    Integration
    The trace is activated in transaction SFTRACE or by the user. When the trace is activated, Smart Forms stores a trace on the database for each output, using the generated function module. You can set the degree of detail for this trace. The Smart Form trace is automatically deactivated again after a day. The stored trace files are, however, retained.
    In deliveries before SAP Web AS 6.10, the trace can be started in transaction SMARTFORM_TRACE.
    Prerequisites
    The trace output is user-specific. The trace is therefore only recorded with the user who activated it. For traces to be recorded for batch input, the batch therefore has to be run under the user who activated the trace. This is automatically the case if you do not specify an explicit batch user when scheduling a batch.
    Activities
    Activate and configure the trace.
    Call a form - if the trace is activated, Smart Forms automatically stores a trace on the database.
    Analyze the trace.
    Deactivate the trace if you no longer require it. You can deactivate the trace using the Deactivate pushbutton in Trace management (transaction SFTRACE).
    Activating and Configuring the Trace
    Use
    The trace is deactivated in the default setting. If you want to use the processing of a form to search for errors, you have to activate and configure the trace beforehand.
    Procedure
    Start transaction SFTRACE (trace management).
    If the trace is not activated, you can activate it by choosing the Activate pushbutton. The status in trace management then changes to Trace active.
    Set the trace level and other options.
    Confirm your entries with the Enter key.
    Result
    Provided that the trace is activated for your user, Smart Forms creates a new trace each time you call a Smart Form. To avoid the trace being used unnecessarily, Smart Forms deactivates it again after one day. You can also deactivate it yourself before this time by choosing the Deactivate pushbutton.
    Stored traces are listed in the Traces in the database table. This table is not, however, automatically updated after a trace has been stored. To update the table, choose Refresh ().
    Analyzing Trace Output
    Use
    If a user has activated the trace, Smart Forms creates a trace every time this user calls a Smart Form, even if they have left transaction SFTRACE. The trace can be viewed in the system or downloaded as a file in this transaction.
    Prerequisites
    You have activated and configured the trace and created a trace run. You have updated the table in the Traces in the database frame.
    Procedure
    All trace runs stored on the database are displayed in the Traces in the database frame.
    Displaying the Trace in the System
    Select a line using the pushbuttons on the left side of the table.
    Choose Display Trace.
    In the default setting, the trace is only displayed to trace level 15 (document information) at first. To show other levels, use the pushbuttons in the application toolbar.
    Exporting the Trace into a Local File
    Select a line using the pushbuttons on the left side of the table.
    Choose Export.
    You can now store the whole trace locally on your PC using a file dialog.
    Once stored, trace files can be displayed again in the system using the Read trace from local file function.
    Have a look at below link.
    http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    Pls. reward if useful

  • Error activating CIF model for subcontractor PO w/component requirements

    Hello CIF experts,
    I'm having a problem with the CIF POs and PReqs between ECC and SCM.  If the CIF model is already active, then a subcontractor PO with component requirements is created (the material exists in SCM but the components do not exist in SCM) then the order CIFs successfully to SCM. 
    However, if the CIF model is deactive, then a subcontractor PO with component requirements is created (the material exists in SCM but the components do not exist in SCM), then when the CIF model is activated, it fails.  The error is "Product x for location y in model z does not exist". 
    We do not want to send all components to SCM because we do not plan components and do not want to overload SCM with additional data. 
    Can anyone answer why the order CIFs successfully if the model is active but why it fails when trying to activate the model?
    Much thanks,
    Elizabeth

    Elizabeth
    You have mentioned that you get an error that product X - loc Y does not exist in APO. Does this " product X" refer to the parent material or component material ?  If the product X refers to component material then check your PO integration model and make sure the component is not included in the filter criteria by mistake - CFM5 tcode .
    I understood your scenario and i believe that you must be able to transfer the parent subcontracting PO successfully to APO . Please delete the error queue and check your master data again in APO. Check if the parent material - location exists in APO and then create the integration model and activate it.
    Thanks
    Aparna

  • MIGO / MB01 - Barcode scenario for archiving just for certain plants

    Dear Experts,
    I'm trying to activate the barcode scenario for archiving delivery notes when posting a goods receipt. We are working with several plants but the barcode scenario should be activated just for certain plants .
    Does anyone have an idea how I can use barcode scenario for certain plants?
    Thanks in advance!
    Petra Hönnemann

    Hi Petra,
    not sure, if your question already had been answered. But if not, I think what you need is to create documenttypes for each plant. Also create different Contenet Reps and link them to the corresponding documenttype. In TA OAC5 you can activate the barcode scenario for each plant.
    Regards,
    Lu

Maybe you are looking for

  • Problem with iTunes in the cloud

    Hi, I can't download previously bought music in iTunes. There's only possibility to redownload apps and books. Few days ago I could do this, now the option is gone. I can't turn it on in iTunes on my computer. On iPhone-->Settings--->Store--->Automat

  • Branch office Exchange 2010 Role base administration control for branch site administrator

    Dear sir,      Customer has a Exchange 2010 Main and Branch office environment: - Main office Exchange 2010 CAS x2 +HTS & Mailbox x2  (Server1,2 & Server 3,4)   (Main office administrator:domain1\administrator) - DAG1 - Branch office Exchange 2010 CA

  • Date format error while accessing date from SQLSERVER

    Hi all, in me webdynpro application I have taken Date type for the Input Field. At date select it is displaying in the format   *2/14/2009 i.e. mm/dd/yyyy* And when I am saving date in the sql database then the date format changes to.. 2009-02-14 i.e

  • Can't see 7.x Variable in 3.5 Query Designer

    Hi, I created a BEx Variable on one of my characteristics in the 7.x Query Designer and cannot see this same variable in the 3.5 Query Designer. Does anyone know if this is a known limitation? Thanks!

  • 7816-H3 Locale installation

    Hi, I have a MCS 7816-H3 installed and need to upgrade to the - Default User Locale - german. But in CCO I dont find the right software. Any ideas where to find it? Thanks in advance