cancel
Showing results for 
Search instead for 
Did you mean: 

Global Variable

Former Member
0 Kudos

My scenario is IDOC to Flat File..

in the flatfile. the last record has field which gives the total number of record in that output flatfile.

means...

record1,hhhh,ggggg,jjjjj,....

record2,aaaa,bbbbb,ccccc,.....

........

...........

.......

............

LastRecord,totalNumberOFrecords,nnnnnn,......

I heard using global variable we can do this.

and I'm very new to this topic. can some one help me.. ?

Thanks

sagar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In the message mapping for that field Just do:

<REcords>REMOVE CONTEXT-COUNT---TotalNumberOFrecords

The RECORD is the segment which 0...unbounded and contains all this record

Regards

vijaya

Former Member
0 Kudos

Vijaya,

Thanks for your reply..

My scenario is Orders IDOC to Flatfile...

I didn't find any segment which contains 0...unbounded.

and am taking values from....few segments and mapping it to.. flatfile.

can you please tell me.. in little more detail.. ..

Thanks

sagar

Former Member
0 Kudos

Hi,

There must be segment based on which the RECORDS get created in the file.

Now if you are using N number of segment, you can use any one of this segment node

Just change the context during mapping of this segment to the IDoc.

Regards

Vijaya

Former Member
0 Kudos

Thanks I'll try...

Answers (0)