Document/Rpc and Encoded/Literal

Hi,
I need a brief explanation about:
1. RPC/encoded
2. RPC/literal
3. Document/encoded
4. Document/literal
and their respective uses case, examples will be appreciated.

Thanks but i have already read this article, what I want is a brief explanation or comparison

Similar Messages

  • What is the RPC and Document Type binding

    Hi Gurus,
      Do any one know what is the difference betwen
    "Soap binding sytle = Rpc" and "Soap Binding Style= Document".
    Do Netweaver Studion supports Document style for creating portal Application and components.
    Thanks
    venkata

    Hi
    I think you could have a look to this:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/the difference between rpc and document style wsdl.article
    And Portal application support rpc literal, rpc encoded and document literal
    Regards,
    Frederic

  • When I have documents open and I walk away for a few minutes, when I come back and try to resume working, my computer seems to freeze up and the little pinwheel starts spinning and I literally have to unplug my computer to get it out of this frozen state.

    When I have documents open and I walk away for a few minutes, when I come back and resume working, my computer freezes up and the little pinwheel starts spinning.  I literally have to unplug it to get out of this frozen state.  This has been getting progressively worse over the past three months.  I recently took it into the Genius Bar and they could not find anything wrong.  They told me to add more memory, which I did.  However, the problem persists. Do you know why my computer would freeze up after the screen has had no activity for just a few minutes?  My screen saver is set for an hour so I know this is not the problem.

    What kind of documents? Office? iWork? Text Edit? What version?
    What settings do you have in regards to power saver and/or screen saver?
    For these kinds of system glitches I always recommend installing and running Onyx 'Automation'. If that does not work you should reinstall the offending software, if possible.
    Onyx - http://www.titanium.free.fr/download.php?sid=d1caebc01e3207556c6d75791305ccf2

  • RPC/SOAP-Encoded Web Service with Workshop

    Is there anyway to create a RPC/SOAP-Encoded Web Service with Workshop ? There is an "encoding" attribute in the autotype ant task but no corresponding properties in Workshop.

    Hi,
    Thanks for the reference.
    I have checked both in the wsdl and the Soap message,
    rpc property effectively means rpc/encoded. Now that
    would say that RPC/Literal is not supported ?
    Here are what the messages looks like with rpc and
    document properties
    Thanks all for making this clear.
    document wlw property = Document/Literal
    <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <ns:getEmployeeResponse xmlns:ns="http://www.openuri.org/">
    <ns:getEmployeeResult xmlns:ns="http://www.openuri.org/">
    <ns:Address xmlns:ns="http://www.openuri.org/">
    <ns:City xmlns:ns="http://www.openuri.org/">Luxembourg</ns:City>
    <ns:Country xmlns:ns="http://www.openuri.org/">LU</ns:Country>
    <ns:Number xmlns:ns="http://www.openuri.org/">2</ns:Number>
    <ns:PostCode xmlns:ns="http://www.openuri.org/">1000</ns:PostCode>
    <ns:Street xmlns:ns="http://www.openuri.org/">Bld. Royal</ns:Street>
    </ns:Address>
    <ns:Age xmlns:ns="http://www.openuri.org/">20</ns:Age>
    <ns:Name xmlns:ns="http://www.openuri.org/">Dupont</ns:Name>
    <ns:FirstNames xmlns:ns="http://www.openuri.org/">
    <ns:String xmlns:ns="http://www.openuri.org/">Jean</ns:String>
    <ns:String xmlns:ns="http://www.openuri.org/">Jacques</ns:String>
    </ns:FirstNames>
    </ns:getEmployeeResult>
    </ns:getEmployeeResponse>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    rpc wlw property = RPC/Soap-Encoded
    <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <ns:getEmployeeResponse xmlns:ns="http://www.openuri.org/">
    <getEmployeeResult xmlns:s="http://www.openuri.org/encodedTypes" xsi:type="s:Employee">
    <Address xsi:type="s:Address">
    <City xsi:type="xsd:string">Luxembourg</City>
    <Country xsi:type="xsd:string">LU</Country>
    <Number xsi:type="xsd:int">2</Number>
    <PostCode xsi:type="xsd:string">1000</PostCode>
    <Street xsi:type="xsd:string">Bld. Royal</Street>
    </Address>
    <Age xsi:type="xsd:int">20</Age>
    <Name xsi:type="xsd:string">Dupont</Name>
    <FirstNames SOAP-ENC:arrayType="xsd:string[2]" xsi:type="SOAP-ENC:Array">
    <String xsi:type="xsd:string">Jean</String>
    <String xsi:type="xsd:string">Jacques</String>
    </FirstNames>
    </getEmployeeResult>
    </ns:getEmployeeResponse>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Message was edited by phcollignon at Aug 27, 2004 2:54 AM

  • Distributed Document Capture and UCM commit issue: 302 Moved Temporarily

    I am installing and configuring Oracle Document Capture and Oracle Distributed Document Capture to commit documents to Oracle UCM.
    I am unable to commit documents to UCM because of the following error: "302 Moved Temporarily". What can be wrong with my configuration?
    Error log from the ODDC:
    Wed Dec 15 10:20:14 CET 2010 INFO Document file name is D:\oracle\Document Capture\Batches\001\00000001\00000001_1.
    Wed Dec 15 10:20:14 CET 2010 INFO Begin Check In Process.
    Wed Dec 15 10:20:14 CET 2010 INFO Idc service = CHECKIN_UNIVERSAL.
    Wed Dec 15 10:20:14 CET 2010 INFO Parsing xml to obtain fields data.
    Wed Dec 15 10:20:14 CET 2010 INFO dDocTitle: oddc.
    Wed Dec 15 10:20:14 CET 2010 INFO dDocType: Application.
    Wed Dec 15 10:20:14 CET 2010 INFO Field DocAuthor: weblogic.
    Wed Dec 15 10:20:14 CET 2010 INFO dSecurityGroup: Public.
    Wed Dec 15 10:20:14 CET 2010 INFO dDocAuthor: weblogic.
    Wed Dec 15 10:20:14 CET 2010 INFO dDocAccount: .
    Wed Dec 15 10:20:14 CET 2010 INFO primaryFile: D:\oracle\Document Capture\Batches\001\00000001\00000001.1.
    Wed Dec 15 10:20:15 CET 2010 SEVERE Failed to check in document. Exception: {0}. Error is: oracle.stellent.ridc.protocol.http.HttpProtocolException: HTTP/1.1 302 Moved Temporarily
         at oracle.stellent.ridc.protocol.http.IdcHttpProtocol.writeRequest(IdcHttpProtocol.java:171)
         at oracle.stellent.ridc.IdcClient.sendRequest(IdcClient.java:140)
         at com.oracle.capture.UCM11g.Driver.checkIn(Driver.java:192)
         at com.oracle.capture.UCM11g.ComDriver.checkIn(ComDriver.java:42)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.jniwrapper.win32.com.server.IDispatchServer.invoke(SourceFile:209)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.jniwrapper.win32.com.server.CoInterfaceVTBL$VirtualMethodCallback.b(SourceFile:232)
         at com.jniwrapper.win32.com.server.CoInterfaceVTBL$VirtualMethodCallback.callback(SourceFile:135)
         at com.jniwrapper.Callback.enterPoint(SourceFile:222)
         at com.jniwrapper.Function.invokeCFunc(Native Method)
         at com.jniwrapper.FunctionCall.a(SourceFile:126)
         at com.jniwrapper.FunctionCall.call(SourceFile:34)
         at com.jniwrapper.Function.invoke(SourceFile:188)
         at com.jniwrapper.Function.invoke(SourceFile:212)
         at com.jniwrapper.win32.MessageLoopThread$LoopThread.run(MessageLoopThread.java:489)
    Error log from the WLS - UCM_server1:
    ####<2010-12-15 10:23:52 CET> <Info> <ServletContext-> <???> <UCM_server1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <8857620d73b0a621:-7e6d4fca:12ce951b643:-7ffd-0000000000000045> <1292405032703> <BEA-000000> <Failed access to redirected secure URL>
    I am using Oracle Distributed Document Capture Release 10gR3 and Content Server 11g Release 1.
    I configured the Oracle UCM 11g Commit Driver:
    user: my_user, password: my_password, Server URL: http://localhost:16200/cs
    When I am trying to commit a batch I am getting the following response:
    HTTP/1.1 200 OK
    Cache-Control: no-cache
    Date: Wed, 15 Dec 2010 09:33:06 GMT
    Content-Length: 664
    Content-Type: text/plain; charset=utf-8
    Set-Cookie: IDCCS_SESSIONID=yycVNLLSL1hJ3P2mQkQrjss7XLZY23r8vFbt2n4wTj7VJ2c9xQ01!-1355344816; path=/; HttpOnly
    X-ORACLE-DMS-ECID: 0000IndO3b39_aW5Pzw0yd1D28UE00000t
    X-Powered-By: Servlet/2.5 JSP/2.1
    <?hda version="11gR1-11.1.1.3.0-idcprod1-100505T121221" jcharset=UTF8 encoding=utf-8?>
    @Properties LocalData
    IdcService=PING_SERVER
    ClientEncoding=UTF8
    UserTimeZone=UTC
    UserDateFormat=iso8601
    addAlert=1
    ActAsAnonymous=1
    dUser=anonymous
    blDateFormat=yyyy-MM-dd HH:mm:ssZ!tUTC!mAM,PM
    refreshSubjects=
    refreshMonikers=
    changedSubjects=
    refreshSubMonikers=
    blFieldTypes=StatusMessage message
    RedirectUrl=/cs/
    changedMonikers=
    idcToken=
    IsJava=1
    @end
    @ResultSet USER_ALERTS
    3
    alertId
    alertMsg
    alertUrl
    csWeblayout8dot3Error
    <$lcMessage('!csWeblayout8dot3Error')$>
    @end
    @ResultSet UserAttribInfo
    2
    dUserName
    AttributeInfo
    anonymous
    account,#none,15,role,guest,15
    @end
    HTTP/1.1 302 Moved Temporarily
    Date: Wed, 15 Dec 2010 09:33:06 GMT
    Transfer-Encoding: chunked
    Location: http://localhost:16200/cs/login/login.htm
    X-ORACLE-DMS-ECID: 0000IndO3c19_aW5Pzw0yd1D28UE00000u
    X-Powered-By: Servlet/2.5 JSP/2.1
    0113
    <html><head><title>302 Moved Temporarily</title></head>
    <body bgcolor="#FFFFFF">
    <p>This document you requested has moved temporarily.</p>
    <p>It's now at http://localhost:16200/cs/login/login.htm.</p>
    </body></html>
    0000
    The Request:
    POST /cs HTTP/1.1
    User-Agent: Java; Stellent CIS 11g
    IdcVersion: 11.1.1
    Host: 127.0.0.1:16200
    Content-Length: 124
    Content-Type: text/hda; charset=UTF-8
    IsJava=1
    <?hda jcharset=UTF-8?>
    @Properties LocalData
    IdcService=PING_SERVER
    UserTimeZone=UTC
    UserDateFormat=iso8601
    @end
    POST /cs HTTP/1.1
    User-Agent: Java; Stellent CIS 11g
    IdcVersion: 11.1.1
    Authorization: Basic d2VibG9naWM6d2VibG9naWMx
    Host: localhost:16200
    Cookie: $Version=0; IDCCS_SESSIONID=Z2ZpNLQbKchmg2tVB5fpQLL2pPphT4BFX18GJPbkqkxMxLVMhbLZ!-1355344816; $Path=/
    Content-Length: 28963
    Content-Type: multipart/form-data; boundary=67xMPN-krvICaGSzKNTkd02u8MLyarA
    --67xMPN-krvICaGSzKNTkd02u8MLyarA
    Content-Disposition: form-data; name="IsJava"
    Content-Type: text/plain; charset=US-ASCII
    1
    --67xMPN-krvICaGSzKNTkd02u8MLyarA
    Content-Disposition: form-data; name="ClientEncoding"
    Content-Type: text/plain; charset=US-ASCII
    UTF-8
    --67xMPN-krvICaGSzKNTkd02u8MLyarA
    Content-Disposition: form-data; name="IdcService"
    Content-Type: text/plain; charset=UTF-8
    CHECKIN_UNIVERSAL
    --67xMPN-krvICaGSzKNTkd02u8MLyarA
    Content-Disposition: form-data; name="UserTimeZone"
    Content-Type: text/plain; charset=UTF-8
    UTC
    --67xMPN-krvICaGSzKNTkd02u8MLyarA
    Content-Disposition: form-data; name="UserDateFormat"
    Content-Type: text/plain; charset=UTF-8
    iso8601
    --67xMPN-krvICaGSzKNTkd02u8MLyarA
    Content-Disposition: form-data; name="dSecurityGroup"
    Content-Type: text/plain; charset=UTF-8
    Public
    --67xMPN-krvICaGSzKNTkd02u8MLyarA
    Content-Disposition: form-data; name="dDocAccount"
    Content-Type: text/plain; charset=UTF-8
    --67xMPN-krvICaGSzKNTkd02u8MLyarA
    Content-Disposition: form-data; name="dDocAuthor"
    Content-Type: text/plain; charset=UTF-8
    weblogic
    --67xMPN-krvICaGSzKNTkd02u8MLyarA
    Content-Disposition: form-data; name="dDocType"
    Content-Type: text/plain; charset=UTF-8
    Application
    --67xMPN-krvICaGSzKNTkd02u8MLyarA
    Content-Disposition: form-data; name="dDocTitle"
    Content-Type: text/plain; charset=UTF-8
    oddc
    --67xMPN-krvICaGSzKNTkd02u8MLyarA
    Content-Disposition: form-data; name="DocAuthor"
    Content-Type: text/plain; charset=UTF-8
    weblogic
    --67xMPN-krvICaGSzKNTkd02u8MLyarA
    Content-Disposition: form-data; name="primaryFile"; filename="00000002.1"
    Content-Type: application/octet-stream; charset=ISO-8859-1
    ˙Ř˙ŕ<file content....>

    "302 Moved Temporarily" is a web server error (I googled it - see e.g. http://www.checkupdown.com/status/E302.html)
    Two recommendations that you can try:
    - do not use 'localhost' - use computer assigned name, or at worst IP address
    - in my system, Server URL is set to http://ecm-base:16200/cs/idcplg (from ODC). Try to modify yours accordingly.

  • How to retrieve version and encoding info from SAX parser

    I want to have access to the version and encoding info in a parsed XML document (when using SAX2). Who knows how this works?
    If not possible with SAX2, what other solutions are there?
    Second question: how to retrieve comments in XML files?
    Thanks in advance!

    thanks for answering, but ...
    LexicalHandler is fine for retrieving the comments,
    but does not give me the encoding (specified by
    encoding="UTF-8") and version (specified by
    version="1.0").
    I am feeding my parser with a byte stream, the parser
    resolves the correct encoding and i want to have
    access to this value!!hi , It is unlikely that you will get the encoding and version . This is being addressed by the DOM level3
    , see
    http://www-106.ibm.com/developerworks/xml/library/x-dom3.html?dwzone=xml .

  • JAX-RPC and Parameter Interfaces

    I am designing the Web Service interface for our project using JAX-RPC, and have enjoyed the ease with which I can create Web Service deployments and WSDL documents.
    However, some of the developers on my team have chosen to create their Data Transfer Objects as a pair of Interface and Implementation classes. This works okay in scenario where the WS caller is "pulling" data from my service. However, it doesn't work in the scenario where the caller is "pushing" data to the service because JAX-RPC can't make the connection between the interface and implementation classes used in my service interface.
    For example, suppose there are four classes in the project: MyService, MyServiceImpl, Foo, and FooImpl. The MyService class uses Foo in it's method signatures. How does JAX-RPC know to instantiate an instance of FooImpl for incoming requests?
    public class MyServiceImpl implements MyService {
    // not ok
    public void doStuff (Foo arg) { ... }
    // ok
    public Foo giveMeStuff () { ... }
    It would be nice if JAX-RPC provided annotations that facilitated making connections between interfaces and implementation classes used in service inputs and outputs. For example:
    @WebServiceInterface {
    Implementation=FooImpl
    public Foo {
    Any thoughts? Thanks,
    Scott Kidder
    http://urlgrey.net/

    Found some answer from the following link
    http://forum.java.sun.com/thread.jsp?forum=331&thread=465860

  • Mixing document & rpc style in one web service

    Hi all!
    Can two different styles of webservies (i.e. document & rpc) be contained in one web service?
    I looked around and only thing i found out was that WebLogic does not support mixing styles in one web service. I hope there is no limitation from Webservice specification nor any constraint by WS-I either. What about tomcat/jboss etc. ??
    Any help/clue/links are appreciated.
    Have a nice day!

    Thanks Eric for your valuable input.
    I created a Web Service Proxy in Jdev 10 and it did create all the Class that I need to Call the Web Service.
    When I wanted to Import these Classes into my Oracle 9iDS (Forms Builder) I started having Java version incompatibility issues such as Unsupported major.minor version 48.0 / Unsupported major.minor version 49.0 Import Errors.
    So I had to change the LIBRARY of the JDEV Project into J2SE 1.3.1_02 version and rebuild the Project and Redoply in order to IMPORT into Oracle Forms 9i (which I think FORMS 9i JAVA version is 1.3.1_02 an earlier version than JDEV 10 with is 1.5.0_06!!! NOT sure please confirm)
    By doing this I was able to Import most of the Class (but NOT all) except for ONE class that I tested the Web Service from Jdev "Service1SoapClient" and is working perfectly fine from JDEV calling Webservice and returning proper values, which Imports the following class:
    import oracle.webservices.transport.ClientTransport;
    import oracle.webservices.OracleStub;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Stub;
    I also had to Add to CLASSPATH the following Jar:
    ..webservices\lib\wsclient.jar;
    Still I was getting the "Unsupported major.minor version 48.0 " as below:
    Exception occurred: java.lang.UnsupportedClassVersionError: oracle/webservices/transport/ClientTransport (Unsupported major.minor version 48.0)
    Can you please tell me what is it that I am going Wrong? Can I resolve this issue?
    Kindly can you tell me what does Axis do? Where can I get it? Is it downloadable?
    Thanks for all the support.
    Regards,
    Baz

  • Generate Client Proxy from a RPC-Style encoded WSDL

    Hi Experts,
    I was just trying to consume a RPC-Style encoded WSDL,
    but the creation of the client proxy failed with the following error message:
    Exception occurred in library handler     
    Incorrect value: Unknown Namespace http://schemas.xmlsoap.org/soap/encoding/     
    Does anyone know, if it's possible to consume a RPC-Style encoded Web Service?
    Thanks in advance!

    Hi Sandeep,
    Could you try invoking clientgen [1] directly to see if this properly
    consumes your WSDL?
    Thanks,
    Bruce
    [1]
    http://e-docs.bea.com/wls/docs81/webserv/anttasks.html#1080160
    Sandeep wrote:
    >
    Hi,
    I am using Weblogic 8.1 SP1. I created a webservice which takes a XMLBean object
    as parameter and returns another XMLBean object. The web service works fine when
    tested using the workshop's test browser but when i am trying to generate a client
    proxy trough the workshop's test browser, it displays this warning:
    Failed to generate client proxy from WSDL definition for this service
    and does not generate the proxy.
    I'll appreciate any thoughts on this.
    Thanks
    Sandeep

  • How to read excel file in document library and store excel content in sql table

    Hello,
    Can anyone help me how to read the excel file present in document library and store the content inside excel into sql table?
    Please let me know the ways to acheive this. Feel free to give your suggestions.
    Thanks,
    Cool Developer

    Hi!
    this code i have written becuase i donot find any soltions on net for this , u can try with this . :)
    System.Data.OleDb.
    OleDbConnection ExcelConnection = null;
    FileMode fileMode;
    string filePath = ConfigurationManager.AppSettings["TempLoaction"] + "\\" + fileName;
    using (SPSite _site = new SPSite(SPContext.Current.Web.Url))
    using (SPWeb _web = _site.OpenWeb())
    string docLibrary = ConfigurationManager.AppSettings["DocumentLibrary"];
    SPFile _file = _web.GetFile("/" + docLibrary + "/" + fileName);
    fileMode =
    FileMode.Create;
    byte[] byteArray = _file.OpenBinary();
    MemoryStream dataStream = new MemoryStream(byteArray);
    Stream stream = dataStream;
    using (FileStream fs = File.Open(filePath, fileMode))
    byte[] buffer = new byte[4096];
    int bytesRead;
    while ((bytesRead = stream.Read(buffer, 0, buffer.Length)) != 0)
    fs.Write(buffer, 0, bytesRead);
    fs.Close();
    //Create the Connection String
    try
    string ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;
    Data Source ='"
    + filePath + "'; Extended Properties=Excel 5.0";
    //Create the connection
    ExcelConnection =
    new System.Data.OleDb.OleDbConnection(ConnectionString);
    //create a string for the query
    string ExcelQuery;
    //Sheet1 is the sheet name
    //create the query:
    //read columns from the Excel file
    ExcelQuery =
    "Select * from [Sheet1$]"; // from Sheet1";
    //use "Select * ... " to select the entire sheet
    //create the command
    System.Data.OleDb.
    OleDbCommand ExcelCommand = new System.Data.OleDb.OleDbCommand(ExcelQuery, ExcelConnection);
    //Open the connection
    ExcelConnection.Open();
    //Create a reader
    System.Data.OleDb.
    OleDbDataReader ExcelReader;
    ExcelReader = ExcelCommand.ExecuteReader();
    //For each row after the first
    while (ExcelReader.Read())
    thanks,
    kshitij

  • Regarding : Material document data and PO data do not match (Plant)

    Hi Gurus,
    Please go through this BAPI program.
    While uploading it is giving an error ' Material document data and PO data do not match (Plant) '.
    Please help regarding this issue.For all Other moment types it is working fine except this 351 moment type.
    dATA: i_excel TYPE truxs_t_text_data. "work table for excel upload
    DATA: BEGIN OF it_itab OCCURS 100,
          docdate(10),
          postdate(10),
          mvt_type(3), "Movement Type
          plant(4), "Plant
          lgort(4),
          pur_doc(10), "Purchase Document No
          po_item(3), "Purchase Document Item No
          material(18), "Material Number
         delnote(16),
          erfmg(13),
          uom(3),
         lfmng(13), "Quantity
          batch(10) TYPE c,
          vfdat TYPE vfdat,
          END OF it_itab.
    DATA: it_goodsmvt_head TYPE TABLE OF bapi2017_gm_head_01      INITIAL SIZE 100,
          it_goodsmvt_code TYPE TABLE OF bapi2017_gm_code         INITIAL SIZE 100,
          it_goodsmvt_item TYPE TABLE OF bapi2017_gm_item_create  INITIAL SIZE 100.
    DATA: wa_goodsmvt_head LIKE LINE OF it_goodsmvt_head,
          wa_goodsmvt_code LIKE LINE OF it_goodsmvt_code,
          wa_goodsmvt_item LIKE LINE OF it_goodsmvt_item.
    DATA: w_mat_doc  TYPE bapi2017_gm_head_ret-mat_doc,
          w_year     TYPE bapi2017_gm_head_ret-doc_year.
    DATA: BEGIN OF it_errmsg_goodsmvt OCCURS 10.
            INCLUDE STRUCTURE bapiret2.
    DATA: END OF it_errmsg_goodsmvt.
    DATA : obj_type LIKE bapiache09-obj_type,
           obj_key  LIKE bapiache09-obj_key,
           obj_sys  LIKE bapiache09-obj_sys.
    DATA: v_date1 TYPE sy-datum.
    DATA: v_date2 TYPE sy-datum.
    DATA: w_lines TYPE i.
    DATA: errflag.
    SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-100.
    PARAMETERS: p_file TYPE  rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK bk1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          field_name = 'P_FILE'
        IMPORTING
          file_name  = p_file.
    Start-of-selection processing
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
          i_line_header        = 'X'
          i_tab_raw_data       = i_excel
          i_filename           = p_file
        TABLES
          i_tab_converted_data = it_itab[]
        EXCEPTIONS
          conversion_failed    = 1
          OTHERS               = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      LOOP AT it_itab.
        REFRESH it_goodsmvt_head.
        REFRESH it_goodsmvt_item.
        CONCATENATE it_itab-docdate6(4) it_itab-docdate3(2) it_itab-docdate+0(2) INTO v_date1.
        CONCATENATE it_itab-postdate6(4) it_itab-postdate3(2) it_itab-postdate+0(2) INTO v_date2.
        wa_goodsmvt_head-pstng_date = v_date2.
        wa_goodsmvt_head-doc_date   = v_date1.
       wa_goodsmvt_head-ref_doc_no = it_itab-delnote.
    wa_goodsmvt_head-pr_uname   = sy-uname.
        APPEND wa_goodsmvt_head TO it_goodsmvt_head.
    Maintain it_goodsmvt_code
        wa_goodsmvt_code-gm_code    = '04'.
    Maintain it_goodsmvt_item
    *LOOP AT it_itab.
    IF wa_goodsmvt_item-po_number IS INITIAL.
        wa_goodsmvt_item-po_number    = it_itab-pur_doc.
        wa_goodsmvt_item-move_type    = it_itab-mvt_type.
        wa_goodsmvt_item-MOVE_PLANT      = it_itab-plant.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = it_itab-material
          IMPORTING
            output = it_itab-material.
        wa_goodsmvt_item-material     = it_itab-material.
        wa_goodsmvt_item-stge_loc     = it_itab-lgort.
        wa_goodsmvt_item-po_item      = it_itab-po_item.
        wa_goodsmvt_item-entry_qnt    = it_itab-erfmg.
        wa_goodsmvt_item-ENTRY_UOM_ISO    = it_itab-uom.
       wa_goodsmvt_item-po_pr_qnt    = it_itab-lfmng.
        wa_goodsmvt_item-batch        = it_itab-batch.
        wa_goodsmvt_item-expirydate   = it_itab-vfdat.
       wa_goodsmvt_item-NO_MORE_GR   = 'X'.
        wa_goodsmvt_item-mvt_ind      = 'B'.
        APPEND wa_goodsmvt_item TO it_goodsmvt_item.
        CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
          EXPORTING
            goodsmvt_header  = wa_goodsmvt_head
            goodsmvt_code    = wa_goodsmvt_code
          IMPORTING
            materialdocument = w_mat_doc
          TABLES
            goodsmvt_item    = it_goodsmvt_item
            return           = it_errmsg_goodsmvt.
    Process of commit work
        IF it_goodsmvt_head[] IS NOT INITIAL.
          DESCRIBE TABLE it_goodsmvt_head LINES w_lines.
        ENDIF.
        IF it_goodsmvt_item[] IS NOT INITIAL.
          DESCRIBE TABLE it_goodsmvt_item LINES w_lines.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              wait = 'X'.
        IMPORTING
        RETURN        =
          CLEAR errflag.
          READ TABLE it_errmsg_goodsmvt INDEX 1.
          IF it_errmsg_goodsmvt-type EQ 'E'.
            WRITE:/'Error in function', it_errmsg_goodsmvt-message.
            errflag = 'X'.
          ELSE.
            WRITE:/ it_errmsg_goodsmvt-message.
          ENDIF.
          IF errflag IS INITIAL.
            COMMIT WORK AND WAIT.
            IF sy-subrc NE 0.
              WRITE:/ 'Error in updating'.
              EXIT.
            ELSE.
              WRITE:/ 'Material Document created successfully and the Document Number for the Material',
                      wa_goodsmvt_item-material,'is:', w_mat_doc, w_year.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDLOOP.

    Hey,
    Just wanted to post that in my case this was the error of MVT_IND field in item table. When I made it from 'B' to blank then it worked.
    Mine is solved....
    Thanks

  • Excise No. using  Accounting Document Number and the P.O. number

    Hi All ! In my GL report, I'm displaying the Accounting Document Number and the P.O. number.
    Now, the requirement is to display the excise no..
    Tried different tables in SE11 using J_1EXC for excise detials, but to no avail.
    And last which vendor to pick, Because vendors in P.O and BSEG differs.
    If I use the BSEG-BELNR I get a different vendor & If I use the P.O. no. in EKKO then also I get a different vendor.
    Please suggest.

    Hi,
    Actually the vendor in the accounting document and PO should match. If not look in table EKBE, It will have the accounting document or at least the invoice receipt against which accounting document would have been created. Check if the vendor number matches with the invoice receipt.
    Regarding the excise number I'm not sure what you mean, If you mean excise invoice number, you can look at the J_1IEXCDTL
    J_1IEXCHDR tables. You could check with FC on what basis the document is getting created to make out the relation ship. If it is vendor excise no etc. you can hit F1 help to find out the table etc.
    Hope it helps.
    Sujay

  • How to decoding and encoding PNG and GIF images?

    I could decode and encode JPEG images using following create functions which are in com.sun.image.codec.jpeg package.
    JPEGImageDecoder decoder = JPEGCodec          .createJPEGDecoder(inputStream);
    JPEGImageEncoder encoder = JPEGCodec                    .createJPEGEncoder(outputStream);
    But I dont know required package and functions to decode and encode PNG and GIF images. Please help me.

    Is the API that hard to follow?
    ImageIO.read( file/stream/url)
    ImageIO.write( image, format (e.g. PNG, GIF(1), JPEG), file/stream what have you)
    1) Not sure if Java supports GIF saving, it might if you install JAI, or Java 6.

  • HT1212 When I hit the restore button on itunes to restore my iphone 3gs to factory setting as I am giving it away  it takes me to my PC document folder and asks for a file name

    Hi,
    Im trying to restore my iphone 3GS as i am giving it to my dad. When I hit the restore button when connected to my PC and itunes it takes me to my documents folder and asks for a filename. I cant find anywhere on the internet that this has happened to anyone else and the steps that itunes say are supposed to happen arent. please help.

    It says   at the top      under Redeem after I touched that:
              $14.73
    Account: [email protected]   (my account name)
    Enter your Gift Card or Download Coad

  • Number Range (series) for Billing Document (F2) and Excise Invoice

    Hi All,
    I want to know how the number ranges / number series is defined for billing documents (F2) and excise invoice, for India business scenario.
    In India, the excise invoice is given to the customer so that he can the excise duty/ cenvat. This invoice acts as the Tax invoice (having all pricing elements apart from excise duty) against which customer outstanding is considered. That is, the payment due will be tracked against this Tax (excise) invoice.
    But in SAP, the accounts posting is done (customer a/c debited) when we creaate and post the billing document (type F2). Hence, the outstanding amount is tracked against the billing document created. This billing doc/invoice will have all the pricing components like price, discount, freight, etc apart from excise duty.
    The excise invoice is created separately....with ref to the above billing doc....for posting the excise duty.
    If the number ranges for billing document and excise invoice are different then it is difficult to trace the outstanding amount from a particular customer on the basis of excise invoice created in the system.
    Can somebody provide inputs/solution on this?
    Thanks indvance.
    Rgds,
    Amit

    Hi Saurabh,
    My question is not how to define number range for billing doc and excise invoice? i mean what procedure / tcode to be used for the same?
    My question is whether we need to define same number range for Billing doc (F2) as well as Excise Invoice.
    For example: number range 1000 to 1999  --- same for F2 and excise invoice....
    Lets say billing doc 1000 is created. Further, when we create excise invoice w.r.t. this billing doc....the excise invoice created will also need to be 1000. ....so that we can identify that against this excise invoice, we need to collect the payment from customer.
    If the number ranges for billing doc and excise invoice are different, then it is difficult for the user to trace the outstanding payment .....because genarally the excise is treated as Tax invoice by companies in India ...(so that the customer can claim the excise duty....when he purchases the goods from the company).
    Whereas the customer account is hit when the billing doc is posted .....hence i feel, we need to keep the same number range for billing doc and exice invoice.
    Hope the question/scenario is clear now.
    I would appreciate the inputs on the above, from the consultants/experts who have worked on SAP implementation projects in India.
    Rgds,
    Amit

Maybe you are looking for

  • Jumping to start/stop of layer?

    Once a layer is selected, is there any way to jump to the beginning or end of that layer aside from dragging in the timeline and holding down the shift key? In Final Cut, you hit the up arrow and it jumps to the start of clip. Here, it moves up in th

  • Muvo Sport C100 Serious Problem

    My Muvo sport c00 player it`s almost dead...when i turn my player on,i get this message " file system error"...the player has 256 Mb memory...i tried to format the dri've with FAT file system and worked , but i can`t copy any songs on mp3 player, i t

  • Opening downloaded templates from the Pages start menu

    can you do that? i downloaded a template for avery address labels and just have it sitting on my desktop right now. is there any way i can integrate it into my pages application thing so when i click to open the program, that template is one of the o

  • Security Issues with Flash Player 9

    I created a swf embedded on a web document and hosted on our local server. I have no problem previewing and playing it on flash player 10 but whenever I attempted to play the same swf in flash player 9 I'm getting a popup security warning. I went ahe

  • HT204053 Delete items in iCloud

    Is there a way to delete books that I no longer want in my I cloud?