cancel
Showing results for 
Search instead for 
Did you mean: 

method to map mandatory fields of target structure?

former_member268877
Participant
0 Kudos

Hi all,

is there any way to map mandatory fields of target message structure? i mean other than mannualy going through each and every fields.

Thanks and Regards,

ujwalkumar

Accepted Solutions (0)

Answers (1)

Answers (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Can you give an example?

Normally, you use MAPWITHDEFAULT to make sue that if the source field does not occur, you still create the Mandatory field with the default value..

Regards

Bhavesh

former_member268877
Participant
0 Kudos

Hi Bhavesh,

for example i am using target message with huge number of fields say some 50000 fields. but source message has only 100 fields and i map them all to target structure. so there will be thousands of mandatory fields ( i mean required fields) in target message. so my question is is there any way to map these mandatory fields in target message without mannually navigating through each 50000 fields?

i want to map them to empty constant.

Thanks and Regards,

Ujwalkumar

Former Member
0 Kudos

No

You have to navigate through every field manually and assign an empty constant.

Regards,

Jai Shankar

bhavesh_kantilal
Active Contributor
0 Kudos

You will have to do this manually.

Regards

Bhavesh

Former Member
0 Kudos

work around is you need export the mapping and edit the mapping by making necessary change in exported mapping by this ypu achive withminmum effort rather than ampping indival field.

Regards

sreeram.g.reddy

former_member268877
Participant
0 Kudos

Hi Sreeram,

Can you please tell me what is ypu? can you explain me how to do it?

Thanks and regards,

Ujwalkumar

Former Member
0 Kudos

Hi,

It is you not ypu..

see select the left side root node and target side root node and click on map all. all similar fields will be mapped.

later go to target structure and each field by field wheich are red color mandatory, assign the constant..

See if you have more than 100 fields try to use JAVA map or XSLT map, it is not recommeded to use graphical MM..

if other than the graphical MM, then it will be easy to do assign constant to all field which are not in source field..

Regards

Chilla..

Former Member
0 Kudos

Ujwalkumar,

you export the mapping from graphical mapping tool use this option in theeditor.

In ammping Editor CRTLSHIFTRight click -> Tools->Export .

once you export the XML to our localdesktop make sure the extesion .mte.

you can edit the XML write an XSD defination to define blank values for all blank fields.

Regards

sreeram.g.reddy

former_member268877
Participant
0 Kudos

hi ,

Can you please help how to use java mapping ot XSLT mapping?

because target message which i am using has 1,80,8000 fields.

so i am trying to map manually but its taking more effort and i am not able to expand all fields. if i expand system will hang and i will not be able to scroll down.

so can you please help me in this regard?

Thanks and Regards,

Ujwalkumar

Former Member
0 Kudos

HI,

I hope there is a possible way with JAVA,XSLT and ABAP.

See i may not be able to give exact java code becz, idonot know the structures.

do in the following way.

first you know the source structure,you know the target structure.I mean say for example 100 fields are to be mapped to target 100 fields first completed the code for this later maintain the code to fill the rest of the fields with some constant.

Regards

Chilla..