cancel
Showing results for 
Search instead for 
Did you mean: 

JDBC TO SFTP Scenario

vijender_p
Active Participant
0 Kudos

Hi All ,

My scenario is JDBC to SFTP scenario.

We took data from database and splitted into 6 files.

But there is duplication in our files. For example 10 lines come to file with the same ProductName.

How can I reduce the 10 lines to 1 line?

How can I avoid duplication with  mapping?

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vijendra,

Please use remove context--> Splitbyvalue(ValueChange).

Regards,

Sachi

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Vijender,

Please go through below link, this will be very helpful.

http://wiki.scn.sap.com/wiki/display/XI/Explain+node+functions

sendhil_kumar
Active Participant
0 Kudos

Hi Vijender,

Try this.

Field -> Remove Context -> Sort -> SplitbyValue(Value Change) -> Collapse Context -> Target

--

Sendhil

iaki_vila
Active Contributor
0 Kudos

Hi Vijender,

If the duplication issue is the same message you can avoid it like Rudra said. If the duplication issues comes for example in the first jdbc poll and the third one, it's more complicated and you will have two options to do it:

1. Do ccBPM to have the the polls needed to create the six files and to control the duplication issue.

2. To have an external or ABAP table to store the ProductNames read and to avoid with a JDBC/RFC lookup the duplicates.

Regards.

vijender_p
Active Participant
0 Kudos

hi ,

If at all we go on with the  cc BPM's it will be to complicated right and As of my knowledge can we do it my JAVA mapping ???

Former Member
0 Kudos

Dear Vijender,

I am not sure with the requirement but you can use the collapse context for removing duplicates.


Regards,

naveen_chichili
Active Contributor
0 Kudos

Hi,

Could you please elaborate your requirement.

Regards,

Naveen