Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Mapping some fields from one structure to other structure

Former Member
0 Likes
936

Hi ,

I have some fields in one structure (say for example employee record) , I have one more structure (say for example department record). I have to map some fields from department to employee . So how can i do that .If anyone know , please reply.

Regards,

Swathi.

Moderator message : Requirement dumping not allowed, show the work you have already done, thread locked.

Edited by: Vinod Kumar on Jan 22, 2012 8:49 PM

Hi ,

I have some fields in one structure (say for example employee record) , I have one more structure (say for example department record). I have to map some fields from department to employee . So how can i do that .If anyone know , please reply.

Regards,

Swathi.

Moderator message : Requirement dumping not allowed, show the work you have already done, thread locked.

Edited by: Vinod Kumar on Jan 22, 2012 8:49 PM

4 REPLIES 4
Read only

Former Member
0 Likes
876

swathi,

let us know what have you done till now.. if the structure has any field in common you can compare those

Read only

0 Likes
876

Hi ,

Thank you for your response. Actually there is no common field in those structures. What i need to do is i have take some fields from department , map those fields to the employee record. Actually the program will give the output as file i,e , we can download employee file using the program from application server.

what i am thinking is , i can include those fields (from department) into the emp structure . can we use 'transfer' command .

Regards,

Swathi

Read only

0 Likes
876

Hi,

I think best will be to map one to one field and make sure the data type is same.

Regards

Abhinav

Read only

0 Likes
876

transfer is used to pass content from program to app server file.

so, you need to first add the extra fields in the employee structure, pass the values as per your logic, there has to be one.. else how do you relate? once you pass the values then you can use transfer along with open dataset to wrote the data to app server file