cancel
Showing results for 
Search instead for 
Did you mean: 

how does the file adapter picks 2 files..

Former Member
0 Kudos

Hello experts,

1. In a file to idoc scenario,the file adapter has to pick 2 files from the same input directory one after the other.how is it possible?

2.In a file to idoc scenario,If there are 2 input folders,and depending on the details like plant no...the adapter has to pick the file n post it to the intended reciever.I'll explain the scenario in brief...here are the plant 1000 and plant 2000 details.If the plant no is 1000 the records should be posted to SAP1 reciever and if the plant no is 2000,the records should be posted to SAP2 reciever.How and where do we specify the condition? pls help me on this asap..

regards

Jay.

Accepted Solutions (0)

Answers (3)

Answers (3)

bhavesh_kantilal
Active Contributor
0 Kudos

> Hello experts,

> 1. In a file to idoc

> scenario,the file adapter has to pick 2 files from

> the same input directory one after the other.how is

> it possible?

You can use Wildcard characters in the filename in the Sender File adapter or, you can give multiple filenames in the Additional Files section,

http://help.sap.com/saphelp_nw2004s/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm

To ensure that they are processed sequenetialy, select the QOS as EOIO and give the QueueName as any name you want.

> 2.In a file to idoc scenario,If there are 2 input

> folders,and depending on the details like plant

> no...the adapter has to pick the file n post it to

> the intended reciever.I'll explain the scenario in

> brief...here are the plant 1000 and plant 2000

> details.If the plant no is 1000 the records should be

> posted to SAP1 reciever and if the plant no is

> 2000,the records should be posted to SAP2

> reciever.How and where do we specify the condition?

You can use Conditional Receievr Determination. In the receievr determination you can give the condition on which the receievrs are to be choosen.

this can be on the payload content or on the SOAP header fields like filename, directory etc.

Regards

Bhavesh

sridharreddy_kondam
Active Contributor
0 Kudos

Hi Krishna,

For 1--> Try using exclusion mask (dont give any source directory and file just give as XYZ)

Does the files start with same prefix? if then just give as A*.xml

For 2--> Just give the conditions in the Receiver determination(configured receivers) for both receivers

Hope this will help you

Regards,

sridhar

Former Member
0 Kudos

HI,

Check the Sender file adapter configuration.

did you specify the file name any thing * like and check the poll interval and processing mode.

or 2 input folders see the below link

Weblogs 1888,1895

Regards

Chilla