cancel
Showing results for 
Search instead for 
Did you mean: 

How to split file based on condition send to 2 sap systems(bapis) 7.3.1 verion

former_member561528
Participant
0 Kudos

Hi friends,

   How to split 2 file and based on condition then send to 2 sap systems. i need using bpmsbut explain sap pi 7.3.1 version

Thanks&Regards

Accepted Solutions (0)

Answers (4)

Answers (4)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

You can use interface determination to check the condition for sending messages to  different systems.

Use this link for Multimapping and u can easily do it..

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90dcc6f4-0829-2d10-b0b2-c892473f1...

former_member561528
Participant
0 Kudos

Hi Friends,

   My Scenario is Text file(fixed lenth) we r using SFTP here.

   my data split based on condition

  if company code is US then transfer to sap(bapi) r system
  if company code  is uk then transfer to sap(bapi) D system here we r using RFC

one more Scenario:

data coming from sap(Bapi)  R and D systems

                      Sap r system(USing  Bapis) data comeing 10 clock

                  Sap D system (using bapis)  data coming   12 clock   thes two bapis merged and send  single file to file server (here using SFTP ADAPTER) fixed lenth

Thanks&regards

Former Member
0 Kudos

Hi Bhanu

For the first scenario use the below step

1. Do content conversion in adapter.

2. Use condition in the receiver determination, choose the xpath of company code and use the condition

U need to create two interface determination and two receiver agreement and one sender agreement.

For the second scenario

You need to use BPM. You will get lots of blog on message merging in BPM.

Former Member
0 Kudos

For second scenario.

with ccBPM.

ref http://scn.sap.com/thread/913427

With out BPM.

Ref http://scn.sap.com/thread/3332737

br, avinash

Harish
Active Contributor
0 Kudos

Hi Bhanu,

  if company code is US then transfer to sap(bapi) r system

  if company code  is uk then transfer to sap(bapi) D system here we r using RFC

--> One always be for US or UK or it can be for both (multiple message in one file)? If it is for one country then you can route the message from RD (receiver determination) else you need to use multiple flow (one flow to split the multiple message and second flow to route the message).

for your second scenario you need to use the BPM.

regards,

Harish

former_member184720
Active Contributor
0 Kudos

For the first one as everyone suggested

Do FCC in SFTP sender channel using MTB

Route the messages using RD(XPATH)

For the second one, If you want to avoid BPM - Append the files on the local server(NFS).

Then develop a pass through interface which will pick the appended file and post it to SFTP server.

Former Member
0 Kudos

If you are looking to merge two files at sender, its the same scenario as in 7.1 to use BPM or to use OS commands in sender channel.

Regards,

Pranav

former_member184720
Active Contributor
0 Kudos

Hi Bhanu - Can you please provide some additional details?

Is it an XML file/ is it a flat file?

On what basis you want to split the file i.e. i mean is there any specific attribute?

Is there any transformation (mapping) before we send it to target systems?

Harish
Active Contributor
0 Kudos

Hi Bhanu,

I assume you need to split one into two message and send to 2 SAP system.

you can achieve this multiple flow in PI.

source (file) -(source adapter)-> PI (split the file using multi map) -(SOAP adapter)-> PI (receiver via sender SOAP adapter) --> based on receiver determination send to two different system from PI.

please let me know if my assumption is not correct.

regards,

Harish