Sending an idoc to 1 the of the 2 idocs in the receiver side based on field
Hi,
Am having 1 idoc in sender side SHPMNT05 and 2 idocs in receiver side DELVRY05 and VEHCLE01.
My requirement is to send data to DELVRY05 only when one field in SHPMNT05 is having space in it
and to VEHCLE01 only if having Vehicle no in that particular field.
And to populate DELVRY05,
Need to call a FM with Delivery no and del item details.
Function module has to determine based on the FS scenarios, whether to change the delivery, split the delivery (Create new delivery) based on the reason code.
Take the return values from RFC function module and populate DELVRY05 idoc.
Using conditional operator on that particular field we can map it to root nodes of the idocs and do mapping, i think.
But How can i call a func module for populatng del05.
Help me firends.
Thanks,
Ravi.
You may perform RFC lookup in your mapping to call the function module. Make sure that your function module is remote enabled.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
Regards,
Prateek
Similar Messages
-
To create multiple files on the receiver side based on key field
Hi Gurus,
My scenario is File to File
My Source structure is as below
My File looks like
My file looks like below
570774 11/26/2008 8:12 6296 xxxxxxx 985-399-5157 1153 Teche Road Morgan City United States Lori Eisenman Louisiana 70380 0 1153 Teche Road Morgan City United States Lori Eisenman Louisiana 70380 303 101400100000 3365440332522 ELLE YVES SAINT LAURENT Eau de Parfum Spray 2 61 78 156 184 184 0
570774 11/26/2008 8:12 6296 xxxxxxx 985-399-5157 1153 Teche Road Morgan City United States Lori Eisenman Louisiana 70380 1153 Teche Road Morgan City United States Lori Eisenman Louisiana 70380 376 106074700JP0 3365440347229 GOLDEN GLOSS N° 27Shimmering Lip Gloss 1 28 28 28 0
570775 11/26/2008 8:15 6296 xxxxxxx 985-399-5157 1153 Teche Road Morgan City United States Lori Eisenman Louisiana 70380 7 1153 Teche Road Morgan City United States Lori Eisenman Louisiana 70380 284 9000400000 3365440316546 L'HOMME Eau de Toilette Spray 1 53 53 53 60 60 0
for each new order number(key field ex: 570774) a new xml file to be created , from the above example 2 xml files sholud be created(one for 570774 and the other for 570775)
How can i acheive this functionality?
Please help me on this, Thanks in advance
Regards
SrinivasHi Srinivas,
map the key field to the parent record of the target field. Use the split by value and change the source key field level to higher one so that the all occurences of the key field are occuring. The mapping will be like this;
Source Key Field (change to higher level) --> Spli by value --> Filename creation UDF --> Target header field.
Try this.
Regards,
Murugavel. -
Part of sender File name at the receiver side?
Hello All,
My requirement is like this.
iam picking the file from FTP server and place the file in another FTP server with out mapping.
I need to use part of sender file name to create the receiver side along with current date.
for example.
sender side file name : LM01000008.txt
recevier side file name need to generate : LM01dd/mm/yyyy
Please let me know how to achive this.
i tried with the blog given below, but partial file name is not possible with that blog.
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417100)ID0229698450DB11989196758750510369End?blog=/pub/wlg/6400
Thanks and Regards,
chinnaHi Chinna,
Use this code
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
SimpleDateFormat dateformat = new SimpleDateFormat("yyyyMMdd");
String timestamp = dateformat.format(new Date());
String newfilename=fileName+timestamp+".txt";
// change to new file name
conf.put(key, newfilename);
return "";
Regards
Suraj -
How to Get the Source File Path in the Receiver Side
Hi Experts,
Here We are Trying to Do How to Get the Sender Information ( File Name & Path ) on the Receiver Side .
According to the Michal Blog
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Here we Are Able to Get only the File Name.
But If I Want to get the Total File Path Also means What Should I Do Here ????
Please Let Me Know
Regards
KhannaKhanna,
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey fkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
DynamicConfigurationKey dkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
String fname = conf.get(fkey);
Sring path = conf.get(dkey);
String final=fname""path;
return ""final"";
Best regards,
raj. -
Amplitude is not changing on the receiver side
I am trying to transmit square wave using USRP 2920. If I change the amplitude of square wave in Tx file from 1 to lets say 100. The Tx waveform shows that it is changed but on the receiver side there is no change in the amplitude. Can any body look at my files and guide me why I am not able to see increase in amplitude on Rx file when I increase the amplitude of Square wave on Tx file
Note: I am generating a randon number between 0 to 1. If random no. is greater than 0.5 then the amplitude is 1 or higher but if the random no. is less than 0.5 amplitude will be zero.
Thanks
JK
Attachments:
TX.vi 23 KB
RX.vi 34 KBYour not going to get a clean squarewave back on the receive side. The USRP uses a local oscillator (LO) so anything it reads will be interpreted as sinusoidal in nature. This is evedent in the screen shots in the attached .zip folder.
To address your voltage question, assuming your antenna is terminated with a characteristic impedance of 50 Ohms (Zo) and the max power of 100 mW, Power = (approximately) Voltage^2 / Zo
Therefore Voltage = ( Power * Zo ) ^ (1/2) = 2.2 Volts approximately.
What is your overall application? Why are you concerned about the voltage? What are you testing?
Brad S.
Application Engineering
National Instruments
Attachments:
USRP.zip 216 KB -
When sending a photo from my iPad with an email, the receiver gets the photo upside down. Why is this and what can I do to correct the error please?
I venture to say the recipient is a Windoze user and if so, state of the art Windoze ignores or doesn't recognize photo orientation data that is included with a photo's EXIF data.
There are 3rd party photo viewing apps that provide for this but not incorporated with Microsoft software. -
Queue blocked at the receiver side
Gurus,
I have worked on one scenario i.e file to RFC.My sender is MDM and receiver is BW.Data is easily passing through PI but it's in scheduled status at the BW side.For 500 records,its passing successfully and we can see the output at the BW reports but when we are passing 10K records,its coming in scheduled status i mean the messagae flag is in Green color(sceduled status).I have checked in the Tx SMQR also.Some queues are blocked but its status shows "Running".I can not see any error also.
Can anyone please suggest some way out.
Warm Regards
VeeruHi Veeru,
Please try this one
I think there is some issue with the Idoc at R/3 side , R/3 may not release the confirmation idoc to bw server, you or some one from Basis team can manually u2018Processu2019 these idocs at R/3 system then bw loads will process further.
User BD87 t-code and select the yellow request, drill down to end and right click on that and select process option. It will then release Idocs.
Check SM58 : check if the IDocs are stucked up on the t-rfc queue. If so, you can right click and choose Execute LUW to release them.
Please me know if this is doesn't work for you
Cheers
Sukhi -
File content Conversion in j2se at the receiver side
Hi ,
I need to do a file content conversion using j2se adapter at the recevier side.
my structure is something like
<name>
<name1>
<name2>
</name>
<address>
<address1>
<address2>
</address>
and the output should be like
#tname1$name2
#sadress1.address2
Please do the needfull
Thanks & Regards,
HamsaHi Hamsa,
#tname1$name2
#sadress1.address2
Lot of # and $, so can you paste the FCC parameters that you have tried in the File adapter?
In j2se also we can use the same. If you are not sure on how to use, paste the FCC parameter here and someone will be able to make the J2SE version out of it
Regards
Suraj -
File Content Conversion on the Receiving side
Is there a way in which if I want a Pipe Delimited File as a result, after the last field also I get a pipe with next record starting in the next line.
Hi,
For | (Pipe), use corresponding hex code as fieldSeparator i.e. 0x7C as fieldSeparator.
For FCC on receiver side refer -
[Simple FCC|http://www.riyaz.net/blog/index.php/2008/02/19/xipi-file-content-conversion-for-simple-structure/], [Complex FCC|http://www.riyaz.net/blog/index.php/2008/02/20/xipi-file-content-conversion-for-complex-structures/]
For separotor at the end of line you can try using a dummy field or use combination of pipe and newline i.e. '0x7C' and '0x0D' (stands for carriage return) or 'nl' as endSeparator
Edit: You might consider using 'nl' as beginSeparator parameter and 0x7C as endSeparator. This will do the trick. However, this would add a blank line in the beginning of the file.
Hope this helps.
Regards,
Riyaz
Edited by: Riyaz Sayyad on Aug 21, 2008 3:00 PM -
How to acquire analog signal and send a TTL pulse at the same time based on PXI 6123
Hi,
I am using a PXI-6123 data acquisition card, as the picture show in the attachment ,I want to acquire the analog signal of ai0 through reference analog window and at the same time send a TTL signal to trigger my camera. I have tried two methods, one is using the DAQmx Export signal.vi another is using DAQmx connect terminals, but when the data acquisition card acquire the analog signal, the DAQmx Export signal.vi and the DAQmx connect terminals sometime can send an TTL pulse ,sometime can not.
I don’t know why? or some other method that can achieve my arm is appreciated.
Regards
chunlei
Attachments:
method export signal.vi 21 KB
method connect terminal.vi 36 KB
Send a TTL pulse.JPG 288 KBHi,
Have things changed over the years?
I need to syncronise a digital output (Modul NI9474) and an analoge input (AI-Modul NI9203) module. I need to measure time intervals from a flank in signal A to a flank in signal B. I would like accuracies of the order of 1 ms. Currently, the signals are not synchronised, with errors of the order of 2 times the block length (block size x sample rate), sometimes much higher. The best I got so far was a block size of around 20 with a sample rate of 1 kHz.
If I use the master and slave settings on the RTSL settings, my program doesn't run properly.
If I use digital signals for input and output, I can syncronise them with RTSL settings and everything is good, but I can't always do that.
Also, if I do anything in the GUI (such as scrollowing something or going to another window), my output gets screwed up properly.
1. What can be done to synchronise AI with DO?
2. Is there something that can be done to avoid messing up the output when something happens in the user interface? (I know that I am messing up the outputs as they make some valves switch and that is loud).
Thanks in advance! -
please help me resolve this issue
Thank you. The troubleshooting guide online suggest resetting network settings and I did a restore to factory default. Since then I was able to receive another text message from the sender and it worked fine. He also left a voice mail message (several) and I'm not able to retrieve those either. Thank you so much for responding.
-
When i am sending mails from thunder bird the receiver getting wrong language?
like this
AFAR TRAVEL & TOURISMÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â BOOKING REF: 3BLWEG
LIWA ST.                                DATE:       11 SEPTEMBER 2014
ABU DHABI
UNITED ARAB EMIRATESÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â HASSANIN/WAEL MR
TELEPHONE: +971 2 4180888
FAX:Â Â Â Â Â Â +971 2 6227395
Â
Â
FLIGHTÂ Â Â Â WY 636 - OMAN AIRÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â SAT 13 SEPTEMBER 2014
DEPARTURE: ABU DHABI, AE (INTERNATIONAL)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 13 SEP 23:05
ARRIVAL:Â Â MUSCAT, OM (MUSCAT INTERNATIONAL)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 14 SEP 00:10
          FLIGHT BOOKING REF: WY/SQBTEE
          RESERVATION CONFIRMED, ECONOMY (L)                DURATION: 01:05
          BAGGAGE ALLOWANCE:       30K
          MEAL:                    SNACK
NON STOPÂ Â ABU DHABI TO MUSCAT
          OPERATED BY:             OMAN AIR, WY
          EQUIPMENT:               EMBRAER 175
Â
FLIGHTÂ Â Â Â WY 635 - OMAN AIRÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â SUN 14 SEPTEMBER 2014
DEPARTURE: MUSCAT, OM (MUSCAT INTERNATIONAL)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 14 SEP 21:20
ARRIVAL:Â Â ABU DHABI, AE (INTERNATIONAL)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 14 SEP 22:25
          FLIGHT BOOKING REF: WY/SQBTEE
          RESERVATION CONFIRMED, ECONOMY (L)                DURATION: 01:05
          BAGGAGE ALLOWANCE:       30K
          MEAL:                    SNACK
NON STOPÂ Â MUSCAT TO ABU DHABI
          OPERATED BY:             OMAN AIR, WY
          EQUIPMENT:               EMBRAER 175
ÂThat looks entirely like an incorrect code page When the message is open, look on the view menu for character encoding and set it to UTF-8. or perhaps western if unicode does not work.
The message being in English and the references to abu dhabi make me think the email may be incorrectly set to one of the Arabic code pages or as much of the -
Reg. the Message Splitting on the Receiver side.
Hi,
We are getting a Docuement/Message from a EDI partner. we need to split that doc. to send some of the data to the CRM system and rest of the data to the R3 system from the same EDI Doc. so is it possible to map the same EDI doc. to differnt systems like R3 and CRM? if so then how do we do that?? we are using standard IDOCs in both R3 and CRM side.
I would be very much tankful to you if you could give me a suggestion.
MurthyNarasimha,
Please correct me if i'm wrong. Your part of EDI document outbound message has to be reached R/3 System , and another part of EDI document outbound message has to be reached CRM System am I right?
If yes then u need to define the following objects.
2 Mapping programs.
Mapping program1 --EDI to R/3 (Map the necessary fields)
Mapping program2 - EDI to CRM(Map the necessary fields)
In ID :
Your outbound interface is same its EDI
so while defining Receiver determination configure with two receivers(CRM, R/3 -with no conditions).
Interface determination1 - as ususal choose inbound interface as R/3 (IDOC message type) and the corresponding Mapping Program1 as mentioned above.
Interface determination2 - as ususal choose inbound interface as CRM (IDOC message type) and the corresponding Mapping Program2 as mentioned above.
So if you look the objects in ID, it must have
1 Receiver determination - with 2 configured receivers.
2 Interface determination
2 Receiver agreement.
If you have any doubts reply back.
Best regards,
raj. -
How to archive file on the receiver side using file adapter
Hi All,
In our company we have many file to file scenarios some of them for B2B communication. We want to archive all the files that are sent from vendor to our company. Is there a way of archiving the orignal files being sent by the vendors?
Regards,
Xier
Message was edited by:
XIerhey
>>we want to archive the files before they are processed by XI, i.e the way the sender adapter picks it up.
well if the files are not picked up by XI then they will stay in the sender directory then why do u want to archive them and create a duplicate copy.
files are archived when they are picked by sender file adapter so that in future if we have any issue in message transfer we can resend them,simple set the mode as archive in the sender CC.
Thanx
Aamir -
Problem with File Content Converion at the Receiver Side
Hello
I have an xml file which is in this format.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:OUTPUT_ITALY_FORMAT_TYPE xmlns:ns0="urn:sli-payment-files:prototype">
<FEBRITRH>
<Filler/>
<RH/>
<ABI_Code/>
<SIA_Code>65318</SIA_Code>
<Creation_Date/>
<File_Identifier/>
<Filler1/>
<Application_Center/>
</FEBRITRH>
<FEBRIT61>
<Filler/>
<SixtyOne/>
<Accnt_Number>0000001</Accnt_Number>
<Filler1/>
<Blank/>
<Number/>
<Description/>
<Accnt_Code/>
<Bank_DIgit/>
<ABI_Code>06230</ABI_Code>
<Bank_Number>01653</Bank_Number>
<Bank_accnt>000043185249</Bank_accnt>
<Currency_code>EUR</Currency_code>
<Accnt_date>030204</Accnt_date>
<Constant/>
<Amnt/>
<Filler2/>
<FEBRIT62>
<Filler/>
<Constant/>
<Accnt_number>0000001</Accnt_number>
<Record_number>1</Record_number>
<Value_date>040204</Value_date>
<Posting_Date>030204</Posting_Date>
<Constant1>C</Constant1>
<Amnt>0000000000471.58</Amnt>
<Transaction_Code>Z2</Transaction_Code>
<Bank_Code>Z1</Bank_Code>
<Blank/>
<Reference_Number>2535394</Reference_Number>
<Reference>86</Reference>
<Additional_reference>VERS.***.IST./SU PIAZZA/CIRCOLARI/</Additional_reference>
</FEBRIT62>
<FEBRIT63>
<Filler/>
<Constant/>
<Accnt_Number/>
<Record_Number/>
<Text>POSTALI/TURIST</Text>
</FEBRIT63>
</FEBRIT61>
<FEBRIT64>
<Filler/>
<Constant/>
<Accnt_Number/>
<Currency_code/>
<Accntg_Date/>
<Constant1>C</Constant1>
<Amnt>0000000000471.58</Amnt>
<Constant2/>
<Cash_balance/>
<Filler1/>
<Balance/>
</FEBRIT64>
<FEBRITEF>
<FEBRITEF_1/>
<FEBRITEF_2/>
<FEBRITEF_3/>
<FEBRITEF_4/>
<FEBRITEF_5/>
<FEBRITEF_6/>
<FEBRITEF_7/>
<FEBRITEF_8/>
<FEBRITEF_9/>
<FEBRITEF_10/>
<FEBRITEF_11/>
<FEBRITEF_12/>
</FEBRITEF>
</ns0:OUTPUT_ITALY_FORMAT_TYPE>
Now i need to convert the above file into a text file when i get the o/p in xml format. I have tried using file content conversion but i am not able to get the solution right. Could anyone let me know as to how should i specify the recordset structure parameters if i need a comma between the fields in each of the structures.Also if u could let me know the other important parameters it could be of great help.
Thanks and Regards
SharatHi Sharat,
Your File format is like
Source Message Type
| - FEBRITRH
| - | - field1..
| - | - field2.. etc
| - FEBRIT61
| - | - field1..
| - | - field2.. etc
| - FEBRIT64
| - | - field1..
| - | - field2.. etc
| - FEBRITEF
| - | - field1..
| - | - field2.. etc
Create a Target Message Type like
Target Message Type
| - Recordset
| - | - FEBRITRH
| - | - | - field1..
| - | - | - field2.. etc
| - | - FEBRIT61
| - | - | - field1..
| - | - | - field2.. etc
| - | - FEBRIT64
| - | - | - field1..
| - | - | - field2.. etc
| - | - FEBRITEF
| - | - | - field1..
| - | - | - field2.. etc
Do all your mappings and
Define a Receiver File Adapter with Following Configuration
<b>Message Protocol</b> File Content Conversion
<b>Content Conversion Parameter</b>
<b>Recordset Structure</b> Recordset, FEBRITRH, FEBRIT61, FEBRIT64, FEBRITEF
Name value pair would be
Recordset.endSeparator nl
FEBRITRH.fieldNames field1,field2
FEBRITRH.fieldSeparator - , (or | )
FEBRIT61.fieldNames field1,field2
FEBRIT61.fieldSeparator - , (or | )
FEBRIT64.fieldNames field1,field2
FEBRIT64.fieldSeparator - , (or | )
FEBRITEF.fieldNames field1,field2
FEBRITEF.fieldSeparator - , (or | )
Hope this Helps,
Vijay
Maybe you are looking for
-
Safari doesn't open some websites correclty
Safari doesn't open some websites correclty. For example Interpals: My Internet speed is fine. It's playing videos from Youtube without any problem and displays Youtube correctly. I also resetted Safari, but it didn't help. What am I supposed to do?
-
HT1727 I want the songs I purchase copied to my computer with no further link to i-tunes
I want the songs I purchased from I-tunes permanently copied to my computer without any further link to I-Tunes
-
Why can't events be more than 3 hours
I want to be able to set an event to longer than 3 hours but I don't see anywhere in settings where I can change that.
-
Safari 1.3.1 and tabs are very slow
I just upgraded to 10.3.9 and then downloaded Safari 1.3.1 (v312.3). Now suddenly i am having new problems both with my tabs and with the way photos load on a page. For tabs: if i am loading 3 or 4 tabs at once, and click between them just to see how
-
Font Book will not open...
When trying to open a font or open Font Book.. I keep getting the "Font Book Applictation quit unedpectedly" message. I am unable to open it... Any ideas? -Jeremy-