on 2011 Feb 27 5:20 AM
Hi Friends,
I have a scenario like this.
IDOC to FILE scenario.
1. IDOC will get triggerd everyday and flat file will be genatated at specified location.
2. If IDOC is not genarated for the day, need to genarate falt file with some constants.
Can anyone help me on this.
Thanks in advance.
Hi Vivek,
I think a better solution will be to use Shell Scripts to check the target folder at a particular time (lets say 11.55pm), if there is no
file ....copy a file from another folder. you can generate a file with constants at a particular location and scripts will use it in case no idoc has been recieved for a day.
PS: You have started another thread for the same query :
Please close either of these.
Puneet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
the easiest way is if you create the "constant" file anyway and overwrite it with the IDoc file. This would only be possible if you choose File Construction Mode "Create".
If you like to have an archive for the IDoc files just create a second receiver BS with a second adapter writing in modus "addTimeStamp".
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
interesting requirement,
Better to handle this ECC it self sending defualt values , because if you want to achieve this one using BPM,it becomes difficult. when ever you receive IDoc in to PI then onlu execution starts so if IDoc not received then you have execute interface using some other mechanism like placing one dummy file in FTP .
ask ABAP Team to help to send constants when no data available for to create IDoc.
i prefer ABAP proxy in this case
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
change the job in your source system so that if no idoc is generated it will send an idoc with default values
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Basically you are planning to do IDOC to FIle(FCC) scenario.
FCC at the receiver side for creating flat file.
1) You have to trigger IDOC using scheduler in SAP ecc side. Once ECC is configured to communicate with PI, whenever you send idoc using scheduler, idoc will directly communicate to Integration engine (where abap stack exist) and at the reciever side we can create the flat file using FCC adapter. We need to map your idoc to fcc in the mapping area.
Note: Automatic time planning for scheduling is not possible at all. Because IDOC adapter lives in the abap stack not in java stack. If you have PI 7.3 that might be possible.
2) If IDOC is not genarated for the day, need to genarate falt file with some constants.
Scheduler using unix script on the ecc side would take care, you dont need to worry about second requirement. Are you waiting IDOC for a specfic time ??? Elaborate more. If you need badly, then for the second requirement alone you need to create a seperate scenario...
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vivek,
For your first requirement..........
For getting the IDOC to get triggered everyday you need to do some configuration in Availability Planning in Runtime Workbench.
First go to runtime workbench and then Component Monitoring.There, you need to select the adapter engine and click Status tab . Go to communication channel monitoring . Choose Availability Time Planning in the communication channel monitor.
There you can find options ..............
Goto Availability Time field and select the interval for the new availability time and choose Create.
Goto Details tab page, you can make the necessary time specifications,
select the communication channel for which you want to schedule the triggering time, in the Communication Channels tab page.
Now for the second requirement.........
You need to do some configuration in the Receiver Communication Channel.There you need to specify the location where
you want the flat file to be generated in the Target directory option .
For IDOC to file Scenario just search in the sdn and you will get a complete step by step guide.
For your second requirement.........
If the IDOC is not generated........then you have options in the communication channel that if file is not generated then what to do .........You can specify there the file which you want to be generated in this case........
Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
11 | |
10 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.