cancel
Showing results for 
Search instead for 
Did you mean: 

SUCCESS WITH SOME ERRORS

former_member529475
Active Contributor
0 Kudos

HI FRIENDS

I AM DOING 2 SCENARIOS. ONE IS FILE TO IDOC SCENARIO AND ANOTHER ONE IS IDOC TO FILE SCENARIO.

IN FILE TO IDOC SCENARIO I AM GETTING THE SUCCESSFUL MESSAGE IN THE SXMB_MONI BUT IT WAS GENERATING THE IDOC WITH ERROR CODE 51 i.e., IDOC NOT FULLY PROCESSED. HOW CAN I RECTIFY THAT ONE.

IN THE SAME SCENARIO I AM USING AN XML FILE. IN THAT I AM HAVING 2 RECORDS. SO IN R3 2 IDOCS WILL BE GENERATED. BUT IT WAS GENERATING ONLY ONE IDOC. I FOLLOWED THE BLOG FROM MICHEL, STILL I AM GETTING THE SAME PROBLEM. I USING ORDINARY SCENARIO NOT BPM.

IN THE IDOC TO FILE SCENARIO EVERYTHING IS DONE IN IR, ID. THING IS I AM NOT ABLE TO SEND THE IDOC FROM R3 TO XI. IN R3 TCODE SM58 IT SHOWS THE ERROR AS "NO SERVICE FOR THE SYSTEM SAP<SID>, CLIENT XXX IN THE INTEGRATION DIRECTORY.

CAN ANYONE KNOWS PLEASE HELP ME..

THANKS IN ADVANCE

REGARDS

VASUDEVA RAO

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I think even in SXMB moni , there should be some errors , even though it shows successful status for a file to idoc scenario, if you scroll horizontally , u will find some error (error in outbound processing or queue blocked etc) at the last.

I suggest you go through the trace in the call adapter stage.

Regarding the creation of 1 idoc for 2 xml messages, i think it has got some thing to do with your mapping. You check whether your mapping handles creation of multiple idocs.

Also go through the below link regarding configuring idoc adapter

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d19fe210-0d01-0010-4094-a6f...

With these, i think you shud be able to solve the problems.

Let me know if you still face issues.

Regards,

Senthil.

former_member529475
Active Contributor
0 Kudos

Thank you UDAY

In file to IDOC Scenario my xml message is

<?xml version="1.0" encoding="UTF-8"?>

<ns7:mt_file_idoc_new xmlns:ns7="http://file.idoc">

<ROOT>

<POLIST>

<HEADER>

<CURRENCYID>INR</CURRENCYID>

<TRANSDATE>20060921</TRANSDATE>

<VENDORID>V31</VENDORID>

<DOCUMENTTYPE>PURCHASE</DOCUMENTTYPE>

<POID>PO/1/JAN</POID>

</HEADER>

<DETAILS>

<ITEMID>377</ITEMID>

<QUANTITY>10</QUANTITY>

<UOM />

</DETAILS>

</POLIST>

<POLIST>

<HEADER>

<CURRENCYID>INR</CURRENCYID>

<TRANSDATE>20060921</TRANSDATE>

<VENDORID>V31</VENDORID>

<DOCUMENTTYPE>PURCHASE</DOCUMENTTYPE>

<POID>PO/2/JAN</POID>

</HEADER>

<DETAILS>

<ITEMID>377</ITEMID>

<QUANTITY>10</QUANTITY>

<UOM />

</DETAILS>

</POLIST>

</ROOT>

</ns7:mt_file_idoc_new>

So it is generating the 2 IDOCs from single XML File. I am not using 2 xml messages.

How can I achieve it

Thanks

Former Member
0 Kudos

Hi,

Can you also send the mapping program you use to convert the xml file to idoc xml file ? Also send the idoc xml file that is getting created after the mapping ?

Rgds,

Senthil

former_member529475
Active Contributor
0 Kudos

Hi senthil

I am using Message Mapping. After Mapping in the IDOC Side I got the IDOC XML Message with only one record.

<?xml version="1.0" encoding="UTF-8" ?>

- <WPUWBW01>

- <IDOC BEGIN="1">

- <E1WPG01 SEGMENT="3">

<BELEGDATUM>20060921</BELEGDATUM>

<BONNUMMER>PURCHASE</BONNUMMER>

- <E1WPG02 SEGMENT="4">

<LITEM>377</LITEM>

<ARTNR>PO/1/JAN</ARTNR>

<MEINH />

<MENGE>10</MENGE>

<WAERS>INR</WAERS>

<LIFNR>V31</LIFNR>

<E1WXX01 SEGMENT="5" />

</E1WPG02>

</E1WPG01>

</IDOC>

</WPUWBW01>

how can it be solved

Former Member
0 Kudos

Can you send me the xsd for the input message , xsd for the idoc and the xml sample you are using to test ?

I will try out message mapping at my end to let you know the result.

former_member529475
Active Contributor
0 Kudos

Hi senthil

My SENDER DATATYPE XSD IS

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://file.idoc" targetNamespace="http://file.idoc">

<xsd:complexType name="dt_idoc_file_new1">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

8b9baf504a1b11dbaf8d00096bf1d97b

</xsd:appinfo>

</xsd:annotation>

<xsd:sequence>

<xsd:element name="ROOT" minOccurs="0">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

f5fd248047a711db81b1f8920a646754

</xsd:appinfo>

</xsd:annotation>

<xsd:complexType>

<xsd:sequence>

<xsd:element name="POLIST" minOccurs="0" maxOccurs="unbounded">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

f5fd248147a711db8675f8920a646754

</xsd:appinfo>

</xsd:annotation>

<xsd:complexType>

<xsd:sequence>

<xsd:element name="HEADER" minOccurs="0" maxOccurs="unbounded">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

f5fd248247a711db98ecf8920a646754

</xsd:appinfo>

</xsd:annotation>

<xsd:complexType>

<xsd:sequence>

<xsd:element name="CURRENCYID" type="xsd:string" minOccurs="0" maxOccurs="unbounded">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

f5fd248347a711dbc0e9f8920a646754

</xsd:appinfo>

</xsd:annotation>

</xsd:element>

<xsd:element name="TRANSDATE" type="xsd:string" minOccurs="0" maxOccurs="unbounded">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

f5fd248447a711dba57df8920a646754

</xsd:appinfo>

</xsd:annotation>

</xsd:element>

<xsd:element name="VENDORID" type="xsd:string" minOccurs="0" maxOccurs="unbounded">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

f5fd248547a711dbc164f8920a646754

</xsd:appinfo>

</xsd:annotation>

</xsd:element>

<xsd:element name="DOCUMENTTYPE" type="xsd:string" minOccurs="0" maxOccurs="unbounded">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

f5fd248647a711db8ab9f8920a646754

</xsd:appinfo>

</xsd:annotation>

</xsd:element>

<xsd:element name="POID" type="xsd:string" minOccurs="0" maxOccurs="unbounded">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

f5fd248747a711db9d8af8920a646754

</xsd:appinfo>

</xsd:annotation>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

<xsd:element name="DETAILS" minOccurs="0" maxOccurs="unbounded">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

f5fd248847a711dbbf09f8920a646754

</xsd:appinfo>

</xsd:annotation>

<xsd:complexType>

<xsd:sequence>

<xsd:element name="ITEMID" type="xsd:string" minOccurs="0" maxOccurs="unbounded">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

f5fd248947a711db9fa8f8920a646754

</xsd:appinfo>

</xsd:annotation>

</xsd:element>

<xsd:element name="QUANTITY" type="xsd:string" minOccurs="0" maxOccurs="unbounded">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

f5fd248a47a711dbb3edf8920a646754

</xsd:appinfo>

</xsd:annotation>

</xsd:element>

<xsd:element name="UOM" type="xsd:string" minOccurs="0" maxOccurs="unbounded">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

f5fd248b47a711db9512f8920a646754

</xsd:appinfo>

</xsd:annotation>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:schema>

and MY IDOC xsd is

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:element name="WPUWBW01">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="IDOC" type="WPUWBW.WPUWBW01" minOccurs="0" maxOccurs="9999999999" />

</xsd:sequence>

</xsd:complexType>

</xsd:element>

<xsd:complexType name="WPUWBW01.E1WPG01">

<xsd:annotation>

<xsd:documentation>

POS interface, inbound, goods movements, header segment

</xsd:documentation>

</xsd:annotation>

<xsd:sequence>

<xsd:element name="BELEGDATUM" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Date of Document

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="8" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="BONNUMMER" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

External reference no. (GR/I slip)

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="15" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="KASSIERER" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Cashier

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="AUTORISIER" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Authorized by

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="E1WPG02" type="WPUWBW01.E1WPG02" maxOccurs="9999999999" />

</xsd:sequence>

<xsd:attribute name="SEGMENT" type="xsd:string" fixed="1" use="required" />

</xsd:complexType>

<xsd:complexType name="WPUWBW01.E1WPG02">

<xsd:annotation>

<xsd:documentation>

POS interface, upload goods movements, items

</xsd:documentation>

</xsd:annotation>

<xsd:sequence>

<xsd:element name="QUALVORG" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Qualifier reference transaction

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="4" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="REFERENZNR" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Number of reference transaction

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="25" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="LITEM" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Item of POS document

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="QUALARTNR" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Qualifier for following field

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="4" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="ARTNR" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Article Number

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="25" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="BEWART" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Movement Type

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="4" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="MEINH" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Sales Unit

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="4" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="MENGE" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

POS goods movement quantity

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="LIEFMENGE" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Delivery note quantity

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="WAERS" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Currency code

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="4" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="WERT" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Value

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="20" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="EXBWR" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

External Valuation Price

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="20" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="ZFILIALE" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

POS target store

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="KUNDNR" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Number

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="25" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="VERKAEUFER" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Personnel Number

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="LGORT" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Storage Location

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="4" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="CHARG" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Batch

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="LIFNR" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Vendor Number

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="SAKNR" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

G/L Account

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="KOSTL" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Cost Center

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="SOBKZ" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Special Stock Indicator

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="ELIKZ" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Delivery Completed Indicator?

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="KZBEW" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Movement Indicator

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="GRUND" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Reason for Movement

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="4" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="VFDAT" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

POS shelf-life expiration date or use-by date

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="8" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="CHECK" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Goods Movement Check

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="UMLGO" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Storage Location

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="4" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="E1WXX01" type="WPUWBW01.E1WXX01" minOccurs="0" maxOccurs="9999999999" />

</xsd:sequence>

<xsd:attribute name="SEGMENT" type="xsd:string" fixed="1" use="required" />

</xsd:complexType>

<xsd:complexType name="WPUWBW01.E1WXX01">

<xsd:annotation>

<xsd:documentation>

Segment for Customer Enhancements to be used as Required

</xsd:documentation>

</xsd:annotation>

<xsd:sequence>

<xsd:element name="FLDGRP" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Field Group

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="5" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="FLDNAME" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Field Name

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="FLDVAL" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Field Value

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="40" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

</xsd:sequence>

<xsd:attribute name="SEGMENT" type="xsd:string" fixed="1" use="required" />

</xsd:complexType>

<xsd:complexType name="EDI_DC40.WPUWBW.WPUWBW01">

<xsd:sequence>

<xsd:element name="TABNAM" type="xsd:string" fixed="EDI_DC40">

<xsd:annotation>

<xsd:documentation>

Table Structure Name

</xsd:documentation>

</xsd:annotation>

</xsd:element>

<xsd:element name="MANDT" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Client

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="3" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="DOCNUM" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

IDoc Number

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="16" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="DOCREL" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

SAP IDoc Release

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="4" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="STATUS" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

IDoc Status

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="2" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="DIRECT">

<xsd:annotation>

<xsd:documentation>

Direction

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:enumeration value="1">

<xsd:annotation>

<xsd:documentation>

Outbound

</xsd:documentation>

</xsd:annotation>

</xsd:enumeration>

<xsd:enumeration value="2">

<xsd:annotation>

<xsd:documentation>

Inbound

</xsd:documentation>

</xsd:annotation>

</xsd:enumeration>

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="OUTMOD" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Output Mode

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="EXPRSS" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Overriding in Inbound Processing

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="TEST" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Test Flag

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="IDOCTYP" type="xsd:string" fixed="WPUWBW01">

<xsd:annotation>

<xsd:documentation>

Basic Type Name

</xsd:documentation>

</xsd:annotation>

</xsd:element>

<xsd:element name="CIMTYP" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Enhancement (Customer-Defined)

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="30" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="MESTYP" type="xsd:string" fixed="WPUWBW">

<xsd:annotation>

<xsd:documentation>

Message Type

</xsd:documentation>

</xsd:annotation>

</xsd:element>

<xsd:element name="MESCOD" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Message Variant

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="3" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="MESFCT" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Message Function

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="3" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="STD" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

EDI Standard, Flag

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="STDVRS" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

EDI Standard, Version, and Release

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="6" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="STDMES" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

EDI Message Type

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="6" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="SNDPOR">

<xsd:annotation>

<xsd:documentation>

Sender Port (SAP System, External Subsystem)

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="SNDPRT">

<xsd:annotation>

<xsd:documentation>

Sender Partner Type

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="2" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="SNDPFC" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Sender Partner Function

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="2" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="SNDPRN">

<xsd:annotation>

<xsd:documentation>

Sender Partner Number

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="SNDSAD" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Sender Address (SADR)

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="21" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="SNDLAD" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Logical Sender Address

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="70" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="RCVPOR">

<xsd:annotation>

<xsd:documentation>

Receiver Port

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="RCVPRT" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Receiver Partner Type

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="2" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="RCVPFC" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Receiver Partner Function

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="2" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="RCVPRN">

<xsd:annotation>

<xsd:documentation>

Receiver Partner Number

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="RCVSAD" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Receiver Address (SADR)

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="21" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="RCVLAD" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Logical Receiver Address

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="70" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="CREDAT" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Creation Date

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="8" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="CRETIM" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Creation Time

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="6" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="REFINT" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Interchange File (EDI Interchange)

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="14" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="REFGRP" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Message Group (EDI Message Group)

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="14" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="REFMES" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Message (EDI Message)

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="14" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="ARCKEY" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

External Message Archive Key

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="70" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="SERIAL" minOccurs="0">

<xsd:annotation>

<xsd:documentation>

Serialization

</xsd:documentation>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="20" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

</xsd:sequence>

<xsd:attribute name="SEGMENT" type="xsd:string" fixed="1" use="required" />

</xsd:complexType>

<xsd:complexType name="WPUWBW.WPUWBW01">

<xsd:annotation>

<xsd:documentation>

POS interface: Upload goods movements

</xsd:documentation>

</xsd:annotation>

<xsd:sequence>

<xsd:element name="EDI_DC40" type="EDI_DC40.WPUWBW.WPUWBW01" />

<xsd:element name="E1WPG01" type="WPUWBW01.E1WPG01" minOccurs="0" maxOccurs="9999999999" />

</xsd:sequence>

<xsd:attribute name="BEGIN" type="xsd:string" fixed="1" use="required" />

</xsd:complexType>

</xsd:schema>

and MY XML FILE IS

<?xml version="1.0" encoding="UTF-8"?>

<ns7:mt_file_idoc_new xmlns:ns7="http://file.idoc">

<ROOT>

<POLIST>

<HEADER>

<CURRENCYID>INR</CURRENCYID>

<TRANSDATE>20060921</TRANSDATE>

<VENDORID>V31</VENDORID>

<DOCUMENTTYPE>PURCHASE</DOCUMENTTYPE>

<POID>PO/1/JAN</POID>

</HEADER>

<DETAILS>

<ITEMID>377</ITEMID>

<QUANTITY>10</QUANTITY>

<UOM />

</DETAILS>

</POLIST>

<POLIST>

<HEADER>

<CURRENCYID>INR</CURRENCYID>

<TRANSDATE>20060921</TRANSDATE>

<VENDORID>V31</VENDORID>

<DOCUMENTTYPE>PURCHASE</DOCUMENTTYPE>

<POID>PO/2/FEB</POID>

</HEADER>

<DETAILS>

<ITEMID>377</ITEMID>

<QUANTITY>10</QUANTITY>

<UOM />

</DETAILS>

</POLIST>

</ROOT>

</ns7:mt_file_idoc_new>

please check it and tell yar. it is very urgent requirement