Message Mapping logic ...!!
Hi Experts ,
I am working on the below scenario where my Sender System is the Oracle Database system and Receiver System is SAP ECC
basically JDBC->PI->IDOC channels i am using . I need to create the below Mapping logic in order to satisfy the Interface Requirement
Based on the Interface_Transaction_ID each Idoc has to be Created and each Idoc should have corresponding Segments and line items . based on th value of GLAccount and Vendor Account
My sender Payload is
<row>
<INTERFACE_TRANSACTION_ID>CFCV00000627</INTERFACE_TRANSACTION_ID>
<DOC_HEADER_TEXT>5251/0115/000000/0000</DOC_HEADER_TEXT>
<COMPANY_CODE>1610</COMPANY_CODE>
<DOCUMENT_DATE>20110707</DOCUMENT_DATE>
<POSTING_DATE>20110305</POSTING_DATE>
<PERIOD>3</PERIOD>
<DOCUMENT_TYPE>ZF</DOCUMENT_TYPE>
<REFERENCE>45720-T</REFERENCE>
<VENDOR_ACCOUNT></VENDOR_ACCOUNT>
<CF_MATERIAL_TYPE>MATTE</CF_MATERIAL_TYPE>
<CF_ENTRY_POINT>610 Tank</CF_ENTRY_POINT>
<CF_SOURCE>XNN</CF_SOURCE>
<PAYMENT_TERMS></PAYMENT_TERMS>
<BASELINE_DATE>20110305</BASELINE_DATE>
<ASSIGNMENT>5251/0115/000</ASSIGNMENT>
<TEXT>USD </TEXT>
<GL_ACCOUNT>111810</GL_ACCOUNT>
<SPECIAL_GL_IND></SPECIAL_GL_IND>
<PREV_DOC_NUMBER></PREV_DOC_NUMBER>
<PREV_POSTING_DATE></PREV_POSTING_DATE>
</row>
<row>
<INTERFACE_TRANSACTION_ID>CFCV00000627</INTERFACE_TRANSACTION_ID>
<DOC_HEADER_TEXT>5251/0115/000000/0000</DOC_HEADER_TEXT>
<ASSIGNMENT>5251/0115/000</ASSIGNMENT>
<TEXT>USD </TEXT>
<GL_ACCOUNT>111821</GL_ACCOUNT>
<SPECIAL_GL_IND></SPECIAL_GL_IND>
<PREV_DOC_NUMBER></PREV_DOC_NUMBER>
<PREV_POSTING_DATE></PREV_POSTING_DATE>
</row>
Row having GL_Account Value E1BPACHE09,
E1BPACGL09, (GLvalue 111810)
E1BPACGL09, (GLvalue 111821)
E1BPACCR09,
E1BPACCR09,
E1PACEXTC .
Field value=CFCV00000627
Similary if Vendor_Account Value exist then only Vendor Segment (E1BPACAP09) must occur at target side
Row having Vendor_Aaccount Value
E1BPACHE09,
c (Vendor value 123)
E1BPACAP09, (Vendor Value 124)
E1BPACCR09,
E1BPACCR09,
E1PACEXTC .
Field value=CFCV00000628
I have mapped GL_ACCOUNT -
>E1BPACGL09 .
Vendor_Account---->E1BPACGL09.
if any one have gone through simiar mapping logic kindly share and do the needfull ...
Regards,
Aziz khan .
I
Hi ,
Here the requirement which i am looking for :
Sender Side has below value
<row>
<INTERFACE_TRANSACTION_ID>CFCV00000627</INTERFACE_TRANSACTION_ID>
<PERIOD>3</PERIOD>
<DOCUMENT_TYPE>ZF</DOCUMENT_TYPE>
<REFERENCE>45720-T</REFERENCE>
<CF_MATERIAL_TYPE>MATTE</CF_MATERIAL_TYPE>
<VENDOR_ACCOUNT>600046</VENDOR_ACCOUNT>
<CF_ENTRY_POINT>610 Tank</CF_ENTRY_POINT>
<CF_SOURCE>XNN</CF_SOURCE>
<PAYMENT_TERMS></PAYMENT_TERMS>
<BASELINE_DATE>20110305</BASELINE_DATE>
<ASSIGNMENT>5251/0115/000</ASSIGNMENT>
<GL_ACCOUNT>111810</GL_ACCOUNT>
<USER_STATUS>TOHD</USER_STATUS>
<PREV_POSTING_DATE></PREV_POSTING_DATE>
</row>
as you can see in the above Payload has values where Row is the Root element and under that the rest of fields occur (its a jdbc to idoc Scenario ) and here based on the Interface Trasaction ID the Idoc is generated . where each Idoc should have either GL Segment if GL Account Value has values and respectively Vendor idoc Segment has to be generated if Vendor Account details are present . the Sender Data will have either GL Account or Vendor Account value in a row not both.
below is the IDOC Strcuture how it looks for GL Account at Target side
IDOC
--->E1BPACHE09
E1BPACGL09 (This is the GL Segment will have GL Account Line item)
E1BPACAR09
E1BPACAR09.
E1BPACEXTC
Filed1
below out put should come when Vendor Account have Value
IDOC
E1BPACHE09
E1BPACAP09 (This is the Vendor Segment will have Vendor Account Line item)
E1BPACAR09
E1BPACAR09.
E1BPACEXT09
Filed1
Now when i duplicate the above Row
Like
<row>
<INTERFACE_TRANSACTION_ID>CFCV00000627</INTERFACE_TRANSACTION_ID>
<VENDOR_ACCOUNT></VENDOR_ACCOUNT>
<GL_ACCOUNT>111810</GL_ACCOUNT>
</row>
<row>
<INTERFACE_TRANSACTION_ID>CFCV00000627</INTERFACE_TRANSACTION_ID>
<VENDOR_ACCOUNT></VENDOR_ACCOUNT>
<GL_ACCOUNT>111811</GL_ACCOUNT>
</row>
<row>
<INTERFACE_TRANSACTION_ID>CFCV00000627</INTERFACE_TRANSACTION_ID>
<VENDOR_ACCOUNT></VENDOR_ACCOUNT>
<GL_ACCOUNT>111812</GL_ACCOUNT>
</row>
I have Mapped the below fileds
Interface_Transaction_ID-->SplitByValue(EachValue)>CollapseContext>IDOC
Interface_Transaction_ID -->Filed1 (IDOC/E1BPACEXTC/Filed1)
all the above 3 Row have been duplicated the 3 Rows will have 3 interface Transaction id Value=CFCV00000627 (which is same as per the above Sender Payload ) and 3 GLAccount fields with values 111810,111811,111812 each
If i test the data i should get the below output 1
if GL account exists
IDOC 1
E1BPACHE09
E1BPACGL09 (This is the GL Segment with value 111810)
E1BPACGL09 (This is the GL Segment with value 111811)
E1BPACGL09 (This is the GL Segment with value 111812)
E1BPACAR09
E1BPACAR0/
E1BPACEXTC
Filed1 (CFCV00000627)
If Vendor account Exists then output 2 as follows
IDOC
E1BPACHE09
E1BPACAP09 (This is the Vendor Segment will have Vendor Account Line item)
E1BPACAP09
E1BPACAP09
E1BPACAR09
E1BPACAR09.
E1BPACEXT09
Filed1 (CFCV00000627)
How can i achive the above logic .
Regards,
Aziz
Similar Messages
-
Message Mapping Logical Problem
Hi there I have an issue with my message mapping. My source structure looks like this.
IDOC
-Seg1
---Element1
---Element2
---Seg2
ElementA
ElementB
Ok so I have to map the IDOC to a flat file. Seg 1 is the Header and Seg2 is the Details. For each flat file there will only be 1 Seg1 but there can be X amount of Seg2s' in the flat file. My problem is mapping Element 1 to Element A. Element A has the value of Element 1 and 2 combined. It appears I cannot map a lower hierarchy to an higher hierarchy? I tried changing the context but with no luck.
Any idea?
Thanx,
JanMy problem is mapping Element 1 to Element A.
What do you mean by this? I guess you want the Element1 to appear with each Segment occurrence. If yes, you may use standard function useOneAsMany as shown.
/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
Regards,
Prateek -
Hi All
I have a source structure like this below. It's a big structure actually. I'm just pasting the relevant structure where I need your help.
</root>
<storage>
<id>AB</id>
<Type>TY</storType>
<Temp>100</Temp>
</storage>
----</root>
My requirement is to check the value coming in <Type> and if it is TY, then the target structure will be the exactly the same
If it is XY, then the target structure will have one more field <celsius> and will look like this below.
</root>
<storage>
<id>AB</id>
<Type>TY</storType>
<Temp>100</Temp>
<celsius>922</celsius>
</storage>
----</root>
The <storage> complex element with elements can repeat as many times in the source XML. But the values of <Type> will be either TY or XY and I have to create the target structure accordingly. Pls help. I am using graphical message mapping
thx
mikeHi Michael,
Please try below mapping
Regards,
Krupa -
Regarding Message Mapping Logic ...!
Hi Experts ,
I am working on the the below requirement JDBC to IDoc scenarion in the mapping i need the below logic
based on the existence of the Transaciton ID . the idoc followed by the segments should be created . for ex
If Interface_Trasaction_ID= 456 THEN Idoc 1 followed by Segments and line items
E1BPACHE09,
E1BPACCR09
E1BPACCR09,
E1PACEXTC .
Field value=456
If Interface_Transaction_ID =457 THEN Idoc 2 followed by Segments and line items
E1BPACHE09,
E1BPACCR09
E1BPACCR09,
E1PACEXTC .
Field value=457
To satisfy the above logic i have mapped Transaction id > SplitByValue->CollapseContext--->Idoc
But the same Mapping Logic is not working when Sender payload is triggred having Repeated Transcation_Id value ias given below if Transaction ID= 456 ,
Transaction ID= 457,
Transaction ID= 457,
Transaction ID= 456 .
then output should have only 2 Idoc Followed by segments where Field Value will be 456, 457
I have mapped Transaction id -->Field Value .
let me know how can achive the above logic ...!!Hi Aziz,
you can use UDF
Transaction IDRemoveContext-->sortUDF- SplitByValue->CollapseContext--->Idoc
public void removeDuplicate(String[] Value, ResultList result, Container container) throws StreamTransformationException{
String temp = Value[0];
result.addValue(Value[0]);
for(int i=0;i<Value.length;i++)
if(!(Value<i>.equals(temp)))
result.addValue(Value<i>);
temp=Value<i>; -
Error : message mapping logic in PI
Dear Team,
Please find the source and target structures..
Source ::
->MT
-->records
--->matnr
--->batch
--->submatnr(s)
Target::
->ZRFC
-->Import
--->Item
>matnr
>batch
>submatnr
1) It is SOAP to RFC scenario. In Source strcuture for one matnr , we have one or more submatnrs.
2)RFC in R/3 contains Import parameters as..matnr,batch,submatnr(onlyone).
3)I want to build mapping - for each submatnr in source I want to create one complete record in target .i.e
if matnr contains 2 submatnrs in source , i want to create 2 records at target side like
first record - matnr,batch,submatnr
second record - matnr,batch,submatnr.
here in both records the matnr and batch values are same , which we have taken from source but submatnrs changed.
Can any body help me how to build mapping.
-DrumiHi,
I assumed that submatnr occurance 1 to unbounded...
here is the logic
map
Submatnr----->SplibyValue(ValueChange)-->RemoveContect-->Item
matnr1---->useoneAsmany(1st argument Matnr1,second and third arugument submatnr)--->splitbyValue(EachValue)-->Matnr1.
batch1---->useoneAsmany(1st argument batch11,second and third arugument submatnr)--->splitbyValue(EachValue)-->batch1
submatnr-->removecontext-->splitbyevalue(eachvalue)--->submatnr
Regards,
Raj -
Require some complex logic scenario in message mapping
Hi all,
I need some complex logic scenarios for practice in message mapping . Kindly forward some links for message mapping logic scenarios.
Thank you so much in advance.always search sdn first....
http://wiki.sdn.sap.com/wiki/display/XI/MappingConceptsinSAPXI -
Require a Message mapping for this Logic.
Hi Experts,
I require a Message mapping for this Logic.
In the Source there are 4 fields and, the Target side, the fields should appear like this.
Source Structure- File
Record
|-> Header
Order_No
Date
|-> Item
Mat_No
Quantity
Target Structure-IDoc
IDoc
|-> Header
|-> Segment
Delivery_Order_No
Recv_Date
|-> Item
|-> Segment
Delivery_Order_No
Material_Num
Recv_Quantity.
The Logic is for every Order number an IDOC is generated.And if the Material num matches then the quantity should be added. and important note is that the material numbers are different for every order number. That means if a material number is 2 in the order number A. Then the material number can never be 2 in any of the order numbers.Here is the following with an example for the above scenario.
For example:-
we have
Source Structure- File
Order-no Date Mat_No Quantity
1 01/02/2011 A 10
1 01/02/2011 B 15
1 01/02/2011 A 10
2 01/02/2011 C 10
2 01/02/2011 C 10
3 01/02/2011 D 20
3 01/02/2011 D 10
3 01/02/2011 E 25
Target Structure-IDoc
Delivery_Order_No Recv_Date Material_Num Recv_Quantity
1 01/02/2011 A 20
1 01/02/2011 B 15
2 01/02/2011 C 20
3 01/02/2011 D 30
3 01/02/2011 E 25
So for this example total of 5-Idocs created. That means for this example if Order_No is 1 When the Mat_No is A the quantity gets added. For this Scenario 1 IDoc with four Fields 2 in Header(Delivery_Order_No, Recv_Date) and 2 in Item(Material_Num, Recv_Quantity) is generated by adding the quantity field in the Target Side. Similarly if Order_No is 1 when the Mat_No is B then separate IDoc is generated with four Fields 2 in Header(Delivery_Order_No, Recv_Date) and 2 in Item(Material_Num, Recv_Quantity) in the Target Side. Similarly, if Order_No is 2 when the Mat_No is C, an IDoc is generated with four Fields 2 in Header(Delivery_Order_No, Recv_Date) and 2 in Item(Material_Num, Recv_Quantity) by adding the quantity field in the Target Side. ike wise the process goes on upto 3.Kindly do the needy..
Thanq very much in advance..
Edited by: Prashanth Bharadwaj on Oct 17, 2011 1:29 PMHi Prashanth,
Concatinate the two fields OrderNo and MaterialNo and follow the below logic which will resolve your problem.
concatinationOfOrderNo&MaterialNo>removecontext>sort>splitByValueChange>collapseContext-->IDOC
concatinationOfOrderNo&MaterialNo>removecontext>sort>splitByValueChange>collapseContext>splitByEachValue>subString(0,1)-->Delivery_Order_No
formatByExample>collapseContext>SplitByEachValue-->Recv_Date
FormatByExample:
input1:resulrOfSortByKey
input2:concatination>removecontext>sort-->SplitByValuChange
sortByKey:
input1:concatination-->removecontext
input2:date-->removecontext
concatinationOfOrderNo&MaterialNo>removecontext>sort>splitByValueChange>collapseContext>splitByEachValue>subString(1,1)-->Material_Num
formatByExample>sum>Recv_Quantity
FormatByExample:
input1:sortByKey
input2:concatination>removecontext>sort-->SplitByValueChange
SortByKey:
input1:concatination-->removecontext
input2:Quantity-->removeContext
Regards,
Priyanka. -
PI 7.11: IDoc Message mapping
Hi there,
I'm currently working on a graphical message mapping using IDoc HRMD_A06 as source structure (HR master data transferred via PFAL).
In my result structure I have to fill a field CostCenter with the following logic:
If field KOSTL (cost center) is filled in node E1P0315, map this field to CostCenter in result structure, otherwise take KOSTL of node E1P0001.
The end date (ENDDA) has to be '99991231' in each case.
This is how the result structure looks like:
<e> [1...1]
<CostCenter> [1...1]
</e>
This is the simplified source structure:
<E1PLOGI SEGMENT="1">
<E1PITYP SEGMENT="1"> [0...n]
<E1P0001 SEGMENT="1"> [0...n]
<INFTY>0001</INFTY> [0...1]
<ENDDA>99991231</ENDDA> [0...1]
<KOSTL>0000012345</KOSTL> [0...1]
</E1P0001>
</E1PITYP>
<E1PITYP SEGMENT="1"> [0...n]
<E1P0315 SEGMENT="1"> [0...n]
<INFTY>0315</INFTY> [0...1]
<ENDDA>99991231</ENDDA> [0...1]
<KOSTL>0000024001</KOSTL> [0...1]
</E1P0315>
</E1PITYP>
</E1PLOGI>
How can I do the check if field KOSTL of node E1P0315 is null?
I've tried an existence check for the whole node (E1P0315->exists), but then it fails, because all E1PITYP nodes are processed.
I hope my problem is clear to you.
Would it be better to use another mapping type?
As I'm an ABAP developer, I would of course prefer some lines of code to this graphical drag&drop thing.
Thanks in advance!Cheers, guys!
I did it now like that:
http://www.abload.de/image.php?img=mappingflknz.jpg
Click on the image to enlarge it!
The logic is as following (ABAP Pseudo-code ):
IF 0315_KOSTL and 0315_ENDDA are populated.
IF 0315_ENDDA equals '99991231'.
map 0315_KOSTL to Cost_Center.
ENDIF.
ELSE.
IF 0001_KOSTL and 0001_ENDDA are populated.
IF 0001_ENDDA equals '99991231'.
map 0001_KOSTL to Cost_Center.
ENDIF.
ENDIF.
ENDIF.
Is that a good way to do that mapping?
Do I also have to use the removeContexts function or is it ok like that?
Could I also do that with an ABAP mapping program?
Thanks in advance! -
Message Mapping ... ABAP ,XSLT and JAVA
HI Friends
I have a general question ... but it will confuse me a lot ....
my question is we have four types of message mappings
1) GUI ( and UDFs)
2) ABAP
3)XSLT
4) JAVA
when we have plenty of options in GUI (and User defined functions also) to define sender 2 receiver message mapping
then what is need of JAVA,ABAP and XSLT Message Mapping and when we use these message mappings( exactly in which situation) and difference b/w them
Thanks in Advance
MaheshGreen = recommended
Yellow = Acceptable
Red = not recommended
In my experience.
XSLT mapping: is confotable to convert to another format different to xml(when we do not have a complex logic)
Java Mapping: is to implement complex logics(but the maintainbilityis not good...you need a external tool)
ABAP mapping: I think is the best option when the you have the skills on that technology but take account that is not portable neither good for usability.
Regards
Ivan -
UDF in message mapping instead of Java Mapping. Pls advice urgent
Hi All,
My scenario
CRM --- XI -- CRM
In XI I have to open socket connection.
Pls refer link:
/people/saravanakumar.kuppusamy2/blog/2005/12/15/socket-integration-with-xi
Can Java Mapping code given in above link for socket connection can be used in Message Mapping (CRM -- CRM)UDF?
Pls advice urgent
RegardsHi Henry,
I understood your requirement.
But as per the architecture of XI/PI some message has to trigger your scenario.
In this case there is no adapter where you can directly communicate with CRM system.
Do one thing configure a dummy scenario on the sender side.
Use File adapter for simplicity. once it pools the file with some dummy data in the file it comes to Interface mapping(message mapping) of the PIPELINE steps. Now use the code as you mentioned above(within UDF) for opening socket to CRM system and implement you business logic within that program and write the response to target interface which will infact talk with CRM system.
Dont forget to do the coding in an infinite loop with some delay (if required). Other wise every time you have to put a message for File Adapter for triggering purposes.
You can also acheive the same if you use Java Mapping instead of Graphical mapping with UDF(code for Opening socket and business logic). I suggest you to use Java Mapping.
I dont know how you will comunicate with CRM system on receiver side.?
Thanks,
Gujjeti -
Access current system or target system ID in message mapping
Hi.
I have a requirement to map three different constant values to Sales Org field, depending on whether the system is D, Q or Prod.
This needs to be done in the message mapping section of the Interface along with all the other mapping logic.
Is there any way how we can access the current system ID or the Target system ID (XI is communicating with target, in this case, ECC, using RFC receiver Communication channel)?
Please help.
Thanks.
Anuradha.Hi,
The key element would be :-
System.getProperty("SAPSYSTEMNAME");
Use this in UDF to get System Name ... and then on basis of systemname do whatever you want to perform.
Regards
Prabhat Sharma -
Need Clarification on Looping in Message Mapping.
Hi All,
I'm trying to implement the Dynamic emailing as explained in the Michals blog.
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
I have this partially working for the scenario I have.
XI will be receiving a ORDRSP IDoc from an external system and XI needs to do the following.
1) Check the value of <b> E1EDP01-ABGRU </b> equals to Z2. If any of the E1EDP01-ABGRU has a value of Z2, it should do the following
a) Get the email address from the E1EDKA1-ILNNR and map it to the TO field as shown in the blog.
b) Get the values of BELNR-E1EDK01, MENEE, VPREI, POSEX, PEINH, ABGRT from the E1EDP01 segment and concatenate them all and map it to the Content tag as explained in Michals blog.
I have this process partially working. The XI interface is only mapping for the first occurrence of E1EDP01 and not the subsequent occurrences of E1EDP01 which matches the criteria ( E1EDP01-ABGRU = Z2)
Any help in getting fixing this problem??
ThanksMake sure to define multiple target messages in your message and interface mappings, for the mail package message definition (occurrence = 0...unbounded).
Also, in the logic of your message mapping, you need to create a new mail package message only if E1EDP01-ABGRU = 'Z2'. Use it like this:
ABGRU --- EqualS --- createIf --- Mail
Constant[Z2]
Regards,
Henrique. -
Problem in message mapping index.
HI All,
I am doing idoc to file scenario.
I have a problem in message mapping.
Issue is,
pallet1
palletheader(here i used counter to increment the value)
palletline(here i used INDEX to increment the value)
pallet linenumber1(it should be 1)
pallet linenumber2(it should be 2)
so on )
so on
pallet2
palletheader
palletline
pallet linenumber1(here again it should be 1)
pallet linenumber2(here again it should be 2)
so on )
so on
In INDEX we have option called reset index in that we have two radio buttons
one is "reset index to intial value with each new context"
and next one is "donot reset index to intiak value"
if i use the first radio button which is working fine in only one pallet and more pallet lines but not more than one pallet.
If i use the second radio buttton which is working fine in more than one pallet but not satisfying the more pallet lines in one pallet.
Can you please help me on the issuemy requirement is like this.
IF DELVRY05/IDOC/E1EDL20/E1EDL24/POSNR equals to /DELVRY05/IDOC/E1EDL20/E1EDL37/E1EDL44/EXIDV
then map to 'pallet line' .
I tried to keep posnr context as E1EDL20 and also IDOC level.
And at the same way to EXIDV too.
pallet(1 to unbounded)
pallet header(1 to 1)
pallet lines(1 to 1)
in sub level pallet line(1 to unbounded) (here i applied the index logic)
The out put should be pallet line 1,2,3,----- so on
In the second pallet the pallet lines should be again 1,2,3,4-------so on .
But when i try to apply thsi logic,
I am getting only one pallet line instead of two.
second is not comming .
please help on this i am facing this problem for the long time back.
if i solve then i can complete my scenario. -
Hi All.
I created a message mapping from a custom message type towards MATMAS_BAPI01.
I disabled the EDI_DC40 field and in the idoc communication channel I disabled "Apply control record values from payload".
When I check the final idoc message created, I noticed that some EDI_DC40 parameters were wrong.
<SAP:TABNAM>EDI_DC40</SAP:TABNAM>
<SAP:MANDT>200</SAP:MANDT>
<SAP:DOCREL>640</SAP:DOCREL>
<SAP:DOCNUM>0000000000037246</SAP:DOCNUM>
<SAP:DIRECT>2</SAP:DIRECT>
<SAP:IDOCTYP>MATMAS_BAPI01</SAP:IDOCTYP>
<SAP:CIMTYP />
<SAP:MESTYP>MATMAS_BAPI</SAP:MESTYP>
<SAP:MESCOD />
<SAP:MESFCT />
<SAP:SNDPOR>SAPCX1</SAP:SNDPOR>
<SAP:SNDPRN>host01</SAP:SNDPRN>
<SAP:SNDPRT>LS</SAP:SNDPRT>
<SAP:SNDPFC />
<SAP:RCVPOR>CFDCLNT200</SAP:RCVPOR>
<SAP:RCVPRN>CFDCLNT200</SAP:RCVPRN>
<SAP:RCVPRT>LS</SAP:RCVPRT>
<SAP:RCVPFC />
<SAP:TEST />
<SAP:SERIAL />
<SAP:EXPRSS />
<SAP:STD />
<SAP:STDVRS />
<SAP:STATUS>03</SAP:STATUS>
<SAP:OUTMOD />
<SAP:SNDSAD />
<SAP:SNDLAD />
<SAP:RCVSAD />
<SAP:RCVLAD />
<SAP:STDMES />
<SAP:REFINT />
<SAP:REFGRP />
<SAP:REFMES />
<SAP:CREDAT>2005-09-12</SAP:CREDAT>
<SAP:CRETIM>23:21:31</SAP:CRETIM>
<SAP:ARCKEY>2FE85D8023D311DA9BDB000D56B9D8A6</SAP:ARCKEY> </SAP:IDocOutbound>
In concrete
<SAP:SNDPRN>host01</SAP:SNDPRN> had to be changed into <SAP:SNDPRN>hostXX</SAP:SNDPRN>. I thought the value host01 came from the sld (logical system name of the technical system attached to the business system), so I changed that towards hostXX.
<SAP:RCVPOR>CFDCLNT200</SAP:RCVPOR> had to be changed into <SAP:RCVPOR>SAPCDD</SAP:RCVPOR>. I thought this value came from the rfc destination in the xi sytem, so I created a new one called SAPCDD and configured it into the idoc adapter.
However, this change in the sld/XI system did not affect the generated idoc (no, I did not forget to activate ).
I decided to do some more drastic changes:
- enable EDI_DC40 field in the message mapping
- enable "Apply control record values from payload" in the idoc communication channel
I now hardcode the wanted values.
After activating the changes, still the same idoc is send towards the R/3 system.
Can anyone tell me what I am doing wrong.
Is it a caching problem or am I doing something wrong.
Kind regardshi Geert,
take a look at my weblog:
/people/michal.krawczyk2/blog/2005/09/01/xi-idoc-adapter--edidc40--demystified
it may answer some of your questions:)
Regards,
michal -
Message Mapping - NewLine generation in the target field
Hi ,
This is a File to SOAP scenario, where text file is picked by XI and posted to target using webservice in the xml format.In the message mapping, I am supposed perform a logic where 3 fields in the source structured are to be concatenated and sent to the target structure. This fields at the target structure are to be displayed with a newline character.
So if I am sending : abc, 123 and xyz as input and the output should be in one field as follows :
<ns3:OutputField xmlns:ns3=abc
123
xyz</ns3:StreetAddressLine>
I have used this "
" as the seperator in the concat function, hoping this would produce a new line but was hopeless.
Any ideas are appreicated.
Thanks,
RagHi Raghav,
XML will never show new line or space characters.
Try to open the message in notepad or wordpad and then check if you can see the new line character.
-Supriya.
Maybe you are looking for
-
Laserjet 100 color MFP M175a Mbook Air lion only detected as a "Scanner"
.printer not detected at all after installation. message " failed to start session" appears when trying to launch scanner. NO printer detected.. Tried all means..installed and unistalled ....reset printer pref... What to do!
-
Pop up window help!!!!
Hi, I want to change text of default DISPLAY_CANCEL_BUTTON which is 'CANCEL'. I mean i want to change 'CANCEL' text. MY code: CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = 'Değişiklikler kaydedilsin
-
I recorded a project in Captivate 5 at a resolution of 1024 x 768 and resized it at 800 x 600. When I preview it from our corporate online training center, the project now has scroll bars on the side and bottom where, in order to view the entire scr
-
I install OS X 10.7 lion and now my quicken 2007 is no longer accessible now what should I do
I install OS X 10.7 lion and now my quicken 2007 is no longer accessible now what should I do to get it on ibank I can't import my finance. Should I uninstall lion and if so how?
-
Hi experts, I have downloaded the Localized Demo Databases for SAP Business One 2007 B for Countries like Singapore & India. I would like to know whether i can use those demo database in SAP Business One 2007 A. thanks L.Manickam