cancel
Showing results for 
Search instead for 
Did you mean: 

How to mention the occurences for repeated and/or optional segments in cc?

Former Member
0 Kudos

Hi,

How to mention the Record Structure occurences for repeated and/or optional segments in communication channel?

Sample Structure of the Input Message Type:

Invoic01 (Message Type)

IDoc

-E1EDK01 (1 occurence) (sub segment of IDoc)

-E1EDP01 (0..unbounded occurences) (sub segment of IDoc)

-E1EDP02 (0..1 occurence) (sub segment of E1EDP01)

-E1EDP26 (0..2 occurence) (sub segment of E1EDP01)

-E1EDPT1 (0..1 occurence) (sub segment of E1EDP01)

-E1EDPT2 (0..1 occurence) (sub segment of E1EDPT1)

-E1EDS01 (0..3 occurence) (sub segment of IDoc)

Can anybody please give any idea?

Yogi.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Yogi,

Why you need adapter module?

Actually this is called as module processor program which will be used to enhance the adapter functionality.

Please see the following PDF documents to develop the Module processor programs.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c...

http://help.sap.com/saphelp_nw04/helpdata/en/0d/00453c91f37151e10000000a11402f/frameset.htm

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e21106cc-0c01-0010-db95-dbfc0ffd...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9913a954-0d01-0010-8391-8a307644...

help : http://ifr.sap.com

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6f83d790-0201-0010-629d-ab5bf10c...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7bf6e190-0201-0010-83b7-cc557eb7...

Some weblogs for JAVA mapping for IDoc mapping

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii

Please clearly ask your question.

What is your input file, and file structure you are receiving, and what is your scenario.

Then only you will get correct solution.

Regards

Chilla..

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Chilla,

Thanq for your information.

Problem resolved.

Regards,

Yogi.

Former Member
0 Kudos

Hi yogendranath,

I suppose that the file is the output (inbound) message,

then why do you need occurrence of segments in CC? If the segment will be found in the target message it will be written otherwise it will not.

If I misunderstood your question please let me know.

Kind Regards,

Sergio

Former Member
0 Kudos

Hi,

It is an Outbound message, which comes in Flat file with fixed length fields.

Thanks,

Yogi.

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

You would need to use KEYFIELD.

Please refer to this blog for more info,

/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem

Regards

Bhavesh

Former Member
0 Kudos

Hi,

We have used keyfield in our Record sturucture. But the problem is that we have nested levels in our record structure. The problem coming while defining the Record Set Structure. Because the sub structures may come or may not and also they may come repeatedly.

Example of Flat File:

RootNode

Segement1

Segment2

Segment3

Segment4 (Here Segemennt 4 may come n number of times)

Segment5 (For each occurance of Segement4, Segment5 comes twice)

Segment6 (For each occurance of Segement4, Segment6 comes thrice)

Segement7

Segment8

That is XML File needs to be created like this:

<RootNode>

<Segment1>

<Segment2>

<Segement3>

</Segement3>

<Segement4>

<Segment5>

</Segement5>

<Segment5>

</Segement5>

<Segment6>

</Segement6>

<Segment6>

</Segement6>

<Segment6>

</Segement6>

</Segement4>

</Segment2>

</Segment1>

</RootNode>

How to define the record structure for nested levels?

Can anybody please give any idea?

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Such a strcuutre cannot be ceated using the sender file adaptes content conversion.

Ony the strucutre shown in this link is supported,

http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm

Either change the source strucutre , or wrting an adapter module is the solution.

Regards

Bhavesh

Former Member
0 Kudos

Hi,

Can you please send me some sample Adapter Module programs, and also please let me know how to cofigure those programs in Integration Directory?

Thanks,

Yogi.