Correctness of the source structure
Dear Experts,
Its a case of synchrounous communication between SOAP application to PROXY.
The source interface was designed bases on the below reqr:
The sender would send 1 sales order and 1 sales order would contain multiple Material Number.
Sales order and Material Number are mandatory fields. The source structure look like:
MT_Send------(1:1)
SalesOrd-----(1:1)
Field2-------(1:1)
Field3-------(1:1)
Field4-------(0:1)
Line Item-----(0:unbounded)
MatNo-------(1:unbounded)
Field6-------(0:1)
The source request and receiver request are same in structure.
MT_Recv-------(1:1)
SalesOrd-------(1:1)
Field2-------(1:1)
Field3-------(1:1)
Field4-------(0:1)
Line Item-----(0:unbounded)
MatNo-------(1:unbounded)
Field6-------(0:1)
1. Need suggestions from experts whether the occurence of the fields in the soruce is correct.
2. when configuration was tested ( Mapping is 1:1),I receive the following error text in the operation mapping level:
IllegalInstanceException: Cannot create target element /ns0:MT_SAP_PROXY_REQUEST. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML
instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD. I have put the correct payload.
3. Testing message maapings works fine between source and receiver structure. Also I debugged thru Display queue.
Kindly provide me all your valubale inputs.
Regards
Alice Rebecca
Dear Raj and Experts,
Could you throw some light on my querry.
The sender would send 1 sales order and 1 sales order would contain multiple Material Number.
Sales order and Material Number are mandatory fields. The source structure look like:
MT_Send------(1:1)
SalesOrd-----(1:1)
Field2-------(1:1)
Field3-------(1:1)
Field4-------(0:1)
Line Item-----(0:unbounded)
MatNo-------(1:unbounded)
Field6-------(0:1)
The source request and receiver request are same in structure.
MT_Recv-------(1:1)
SalesOrd-------(1:1)
Field2-------(1:1)
Field3-------(1:1)
Field4-------(0:1)
Line Item-----(0:unbounded)
MatNo-------(1:unbounded)
Field6-------(0:1)
Similar Messages
-
How to save changed data from a input field to the source structure
Hi,
I have a small problem with the onChange event with HTML input fields.
When changing a value of a input field or by creating a new value for a field the OnChange event is called by moving away the mouse pointer....
get_form_field( 'field_name' ).
But is it possible to write back the new value in the source field ls_screenstructure_field1 without using the OnInputProcessing?
I ask because my application´s structures have a lot of fields that should be filled and changed by input fields.
It´s not comfortable to request every new value with .. = request->get_form_field(... .
Thanks for helping.
Cheers,
Andréyou wanted a onchange for a htmlb:inputfield which would also trigger server event. try the following code.
<htmlb:inputField id = "test"
alignment = "LEFT"
size = "6"
required = "TRUE"
doValidate = "TRUE"
type = "INTEGER"
/>
<bsp:htmlbEvent id="myid" onClick="myonclick" name="ValueChanged" />
<script for="test" event=onchange type="text/javascript">
alert(this.value);
ValueChanged();
</SCRIPT>
if the value in the inputfield is changed it would trigger a alert at the client side and also trigger a server event. now you can caputre the value in oninputprocessing.
Hope this helps.
do let us know if you need help in how to capture this value in oninputprocessing.
Regards
Raja -
1 : N Multimapping The source structure is getting changed
Hi All,
1 : N Multimapping these source structure gettng chnaged by Message under that Message1 and then comes my source structure, so my mapping is gettin failed , Please suggest me some option
Thanking you
SridharHi
In multimapping (either 1:N or N:1) the structure will change from
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MessageType>
</ns0:MessageType>
To
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:MessageType>
</ns1:MessageType>
</ns0:Message1>
</ns0:Messages>
So while testing you can remove those tags highlighted in the payload i.e.(<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">, <ns0:Message1>,</ns0:Message1>,</ns0:Messages>) and test it, otherwise it will fail.
If anything else let me know. -
What is the source file structure while doing the BDC of mm01
What is the source file structure while doing the BDC of mm01
Hi,
first u create a meterial note the data u enterd in the screens.
if u have created the material successfully then that data structure will be the source structure of the
file.
regards.
Jagadeesh. -
Hi Experts,
Is it require to include secondery cost element in the source structure.
As of now I have Created a Cost element group which contains only primary cost elements and assigned the same in the source structure.
If I need to include the secodery cost element in the source structure, where I need to include.
Can I Group both Primary and Secondery cost elements as a single group and assign in the sourcestructure.
Please advice
JyoshnaDear Waman,
Apologies if i am wrong.
I thought for Process order settlement.
Posting values to Process order comes through Primary cost elements only.
Settlement purpose, we use Secondary cost elements.
Correct me if i am wrong
Thanks -
Difference betwin Allacation sttucture and source structure
< MODERATOR: Message locked. Please post in the correct forum. >
Hi friends any one explian the difference betwin allocation structure and source structure.Hi
allocation structure defines the cost elements to be settled by cost elements. A source assignment is assigned to the allocation structure.
The source structure is used to settle costs incurred on the sender to various receivers, split by cost element. In this way, the source information is retained.
The source assignment defines the assignment of the debit cost element(s) to a receiver. More than one source assignments are summarized in one source structure -
Error while creating WBS element.. regarding source structure
I am creating a project and then a WBS element. Its a investment project. While creating WBS element XXX, it gives me error that "WBS element XXX: SOurce assignments for source structure A1 missing in Investment Profile ZZZZZ."
What shall I check? what could be the reason?
Thanks,
Ahi,
In this IMG activity, you define the source structures used when settling and costing joint products.
A source structure contains several source assignments, each of which contains the individual cost elements or cost element intervals to be settled using the same distribution rules
Just consult with your CO Consultant...
Venkatesh -
Source structure of XML file as different from Message type?
Hi,
We are picking an xml file from the FTP server of the client.
We have source message type 'MT_Invoice' with data type as 'DT_Invoice'.
When we open the message mapping test tab, the source structure is as shown below.
<ns0:MT_Invoice xmlns:ns0="urn:maxxium:nordic:invoice:inbound">
<Invoices>
<Invoice>
</Invoice>
</Invoices>
</MT_Invoice>
My question is "What should be the structure of the XML file that the client is depositing on to the FTP server?".
Should it start with the tag 'MT_Invoice' with the namespace or should it simply start from <Invoices> tag.
I have tried various combinations for the source xml structure. But all are failing.
(This is evident from the fact that the mapping is failing. That's why I have given the structure from the source structure of the message mapping tab.)
Kindly help.
Thanks,
John>
john j wrote:
> Hi,
>
> We are picking an xml file from the FTP server of the client.
>
> We have source message type 'MT_Invoice' with data type as 'DT_Invoice'.
>
> When we open the message mapping test tab, the source structure is as shown below.
>
> <ns0:MT_Invoice xmlns:ns0="urn:maxxium:nordic:invoice:inbound">
> <Invoices>
> <Invoice>
> .
> .
> .
> .
> </Invoice>
> </Invoices>
> </MT_Invoice>
>
> My question is "What should be the structure of the XML file that the client is depositing on to the FTP server?".
>
> Should it start with the tag 'MT_Invoice' with the namespace or should it simply start from <Invoices> tag.
>
> I have tried various combinations for the source xml structure. But all are failing.
>
> (This is evident from the fact that the mapping is failing. That's why I have given the structure from the source structure of the message mapping tab.)
>
> Kindly help.
>
> Thanks,
> John
you are picking an XML file. So you should create the MT which would represent exactly the XML format of the source file.
So ideally if your file starts with <invoice>, then name your MT as invoice -
Message Mapping of Recursive Source Structure?
Hello,
a mapping needs to be implemented from a custom source structure to an IDoc. An XSD has been provided for the source structures which contains recursive elements --> an element of a specific type contains another element with the same type.
If I import the XSD then the type of the recursive element is displayed in "red", but I still can expand it. If I want to use the source structure in the message mapping I cannot expand the recursive elements anymore. Does anyone of you have an idea how to handle this? I want to avoid XSLT if possible.
Thank you!Hi again Florian,
please have a look at [Structure Overview in Message Mappings on SAP help|http://help.sap.com/saphelp_nwpi71/helpdata/en/e3/92be7c6cd34fd485c967144e302fb6/content.htm]. There is a paragraph on Recursive Structures:
...It is possible to map these elements in the mapping editor in a rudimentary fashion by using the context menu to expand a specific number of subnodes and then use them in target-field mappings...
That works for both source and target message. -
Change of Source Structure for Partial Settled WBS elements - CJ02
Hi
As per standard SAP, the change of source structure under settlement perameters of WBS element is not supported when the settlement of WBS element is done either partial / full.
However, the client needs this change by doing any Z-Development as one time activity (since the source structure was changed for certain WBS elements as per change in business process).
Can i Know procedure to do the Z development to modify the source structure for partial settled WBS elements and also let me know the any side effects in this regard.
Regards
AnilHi Anil,
I agree with Ajay. You can try to change it in Debugging mode.
The values are handed over from include LCJWBF5Q (form project_settle_single using)
Some customer have also made a modification as a permanent solution.
Unfortunately in the standard it is not possible.
regards Bernhard -
Determining Source Structure u0096 for LSMW to upload Purchasing Info records?
I am trying to use program RM06IBI0 through LSMW to upload Purchasing Info records. While configuring LSMW, how do I determine the source structure? Can anybody please help me with an example?
Thanks,
Ketanhi dear
first of all record all the fields which you require through shdb including your vendor code and esokz.
now
generate a structure for mapping the fields through table maintainence generator option.you can add any number of fields there.
actully this must include all the fields which are being fetched from the your flat file.
please revert back if u find problem.
reward points if it find useful
regards
amit singla -
Split the Target Structure.
Hi,
I have Header and Detail in my Target Structure, in the output I have to create 2 separate files, one for Header and one for Detail.I dont want to go for BPM, is there any solution for this with out using BPM?
Thanks & Regards,
Pragathi.Hi Pragathi
Assuming you mean you have Header and Detail in the source structure and would like to create 2 messages on the target side, you have 2 options (Since you mentioned you dont want to use BPM)
1. Create 2 sets of messages interface and related objects for the target structure and split the flow into 2, which will map the header to one message and the item to the other.
2. Use multimap and map the header to message1 and item to message2. This will be a better option as the interface will use one map for creating the target message and you can pass the message onto 2 comm channels that will create the file.
Hope this help.
Regards
Prav -
Same source structure and different target structure without BPM
Hi Experts,
I am using PI 7.11.My requirement is at sender side the source structure is same.Basically invoice data coming from ECC to PI as a proxy message.
Receiver side adapter is JMS.At target side ,PI has to send the invoice data to 2 receiver systems.Payment node is coming in source XML,which always comes from ECC.For one of the business system ,Payment node should be sent.For the other BS,this node should be supressed.how to achieve this with single mapping?Payload based routing is not possible in my case as i dont have any field which differentiate the receiving system name.
Regards,
KarthigaHi,
In receiver determination, just input the two receivers (no conditions). In message mapping, you can use the constant function called receiver to suppress or create the node. You can only test it by editing the parameters in test tab e.g
At runtime, this value (receiver) will be filled out by the entries in receiver determination. So only one mapping is needed.
Hope this helps,
Mark -
Difference between source file and source structure
Hello,
I have a source file with around 60 fields. But I need to upload only 5 fields. I defined a source structure in LSMW with 5 fields and specified the file with 60 fields as the source file. But when the data is read, only 2 out of 5 fields are read. What should I do?
Thank youHi !!
In case you are selecting only limited fields form a file with more fields in LSMW . Please apply following consideration :
1. Add a dummy field in your source structure to make the whole structure size equal to the total width of all fields in the source file. This is because in LSMW the file is read for the length of the SOURCE STRUCTURE width only . So if i want to read only field3 in following example i still need toa dda dummy field to ensure LSMW reads a total width of source file as the FIELD3 is at absolute end of the source file from length 40 to 60 only .
For example :
if my source file ahs following firve fields : FIELD1 (10) , FIELD2(30),FIELD3 (20) .
Declare your source structure as : FIELD3 (20),FIELD_DUMMY (40) .
2. When you deifne the source file in LSMW step 7 take care to notify whether you have field names at start of file or the field order is same as
source structure .
This should close your issue or get in touch for more here buddy -
Ensure field sequence is correct for data for mutiple source structure
Hi,
I'm using LSMW with IDOC message type 'FIDCC2' Basic type 'FIDCCP02'.
I'm getting error that packed fields are not permitted.
I'm getting Ensure field sequence is correct for data for mutiple source structures.
Source Structures
HEADER_STRUCT G/L Account Document Header
LINE_STRUCT G/L Account Document Line
Source Fields
HEADER_STRUCT G/L Account Document Header
BKTXT C(025) Document Header Text
BLART C(002) Document Type
BLDAT DYMD(008) Document Date
BUDAT DYMD(008) Posting Date
KURSF C(009) Exchange rate
WAERS C(005) Currency
WWERT DYMD(008) Translation Date
XBLNR C(016) Reference
LINE_STRUCT G/L Account Document Line
AUFNR C(012) Order
HKONT C(010) G/L Account
KOSTL C(010) Cost Center
MEINS C(003) Base Unit of Measure
MENGE C(013) Quantity
PRCTR C(010) Profit Center
SGTXT C(050) Text
SHKZG C(001) Debit/Credit Ind.
WRBTR AMT3(013) Amount
I have changed PAC3 field for caracters fields of same length to avoid erreur message of no packed fields allowed.
Structure Relations
E1FIKPF FI Document Header (BKPF) <<<< HEADER_STRUCT G/L Account Document Header
Select Target Structure E1FIKPF .
E1FISEG FI Document Item (BSEG) <<<< LINE_STRUCT G/L Account Document Line
E1FISE2 FI Document Item, Second Part of E1FISEG (BSEG)
E1FINBU FI Subsidiary Ledger (FI-AP-AR) (BSEG)
E1FISEC CPD Customer/Vendor (BSEC)
E1FISET FI Tax Data (BSET)
E1FIXWT Extended Withholding Tax (WITH_ITEM)
Files
Legacy Data On the PC (Frontend)
File to read GL Account info c:\GL_Account.txt
Data for Multiple Source Structures (Sequential Files)
Separator Tabulator
Field Names at Start of File
Field Order Matches Source Structure Definition
With Record End Indicator (Text File)
Code Page ASCII
Legacy Data On the R/3 server (application server)
Imported Data File for Imported Data (Application Server)
Imported Data c:\SYNERGO_CREATE_LCNA_FI_GLDOC_CREATE.lsmw.read
Converted Data File for Converted Data (Application Server)
Converted Data c:\SYNERGO_LCNA_FI_GLDOC_CREATE.lsmw.conv
Wildcard Value Value for Wildcard '*' in File Name
Source Structures and Files
HEADER_STRUCT G/L Account Document Header
File to read GL Account info c:\GL_Account.txt
LINE_STRUCT G/L Account Document Line
File to read GL Account info c:\GL_Account.txt
File content:
Document Header Text Document Type Document Date Posting Date Exchange rate Currency Translation Date Reference
G/L Account document SA 20080401 20080409 1.05 CAD 20080409 Reference
Order G/L Account Cost Center Base Unit of Measure Quantity Profit Center Text Debit/Credit Ind. Amount
44000022 1040 Line item text 1 H 250
60105M01 13431 TO 10 Line item text 2 S 150
800000 60105M01 Line item text 3 S 100
60110P01 6617 H 40 Line item text 4 S 600
44000022 ACIBRAM Line item text 5 H 600
The file structure is as follow
Header titles
Header info
Line titles
Line1 info
Line2 info
Line3 info
Line4 info
Line5 info
Could someone direct me in the wright direction?
Thank you in advance!
CurtisHi,
Thank you so much for yout reply.
For example
i have VBAK(Heder structure)
VBAP( Item Structure)
My file should be like this i think
Identification content Fieldnames
H VBELN ERDAT ERNAM
Fieldvalues for header
H 1000 20080703 swapna
Identification content Fieldnames
I VBELP AUART
Fieldvalues for item
I 001 OR
002 OR
Is this format is correct.
Let me know whether i am correct or not
Maybe you are looking for
-
Parsing xml in clob field remove non utf-8 characters
hi all, i have an issue where a stored procedure runs during a nightly process and parses xml contained in a clob field. There are some records that contain non-utf8(they paste characters from word)characters and therefore the parse fails when using
-
Configuration of JMS receiver Using Jboss JMS provider
Hi all.. I am configuring JMS adapter as receiver. I am using JMS provider JBOSS . I hav done configuration as Transport protocol :Acess JMS provider with JNDI JNDI lookUp Name of q connection factory: org.jboss.naming.LinkRefPairService Name of JNDI
-
Hi everybody! I've got to create something very similar to a file commander - something like dos NC or linux MC. The difference is there are my objects - called "resources" - instead of files. I've created a JFrame with two separate JPanels, each of
-
Hi all, Newbie from the uk here Just got my N95 on Orange network, and have a few questions. (I have done some reading here already). First off is the updating of the phones's firmware, my phone is locked to orange, no problem but the software provid
-
Is there a way to find the total number of steps failed during a given execution. I see that step status information is available but that is for individual steps. http://zone.ni.com/reference/en-XX/help/370052H-01/tsapiref/reftopics/stepproperties/