cancel
Showing results for 
Search instead for 
Did you mean: 

Create Idocs based on Company Code change & Line Items less than 950

Former Member
0 Kudos

Dear all,

I am trying to create the Idocs based on the flat file in the following way.

1) Create the Idoc per company code

2) If company code exceeds 950 lines then create another Idoc

I am trying to follow this BLOG and could not be able to achieve it because in the Blog explained with flat structure and my case is Idoc structure.

/people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool

I changed the Idoc Occurrence and imported to External definition.

I am able to do the both check individually but not able to put them in combining.

Please advice..

Regards

Accepted Solutions (0)

Answers (2)

Answers (2)

srikanth_srinivasan3
Active Participant
0 Kudos

Company Codes -> sort -> SplitbyVlaue(Valuechange) -> CollapseContexts -> remove contexts

AND

Contact(CompanyCodes, Lines) both in header context - removeContexts - SortbyKey(CompanyCodes) -

formatbyExample(Company Codes -> sort -> SplitbyVlaue(Valuechange)) - count - greater(>950)

-

Srikanth Srinivasan

stefan_grube
Active Contributor
0 Kudos

> I am able to do the both check individually but not able to put them in combining.

When you are able to do both checks individually, all you have to do is using the "concat" function.

check 1 \

check 2 - concat - splitbyvalue(valuechanged)