cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC-FILE - If IDOC is not triggered, need to genarate file with constants

Former Member
0 Kudos
65

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.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

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

udo_martens
Active Contributor
0 Kudos

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

rajasekhar_reddy14
Active Contributor
0 Kudos

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

Former Member
0 Kudos

hi,

change the job in your source system so that if no idoc is generated it will send an idoc with default values

baskar_gopalakrishnan2
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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