Skip to Content
0
Former Member
May 20, 2010 at 10:18 AM

How to change field mapping in IDOC

505 Views

Hi Experts,

My requirement is to create a purchase requisition automatically through an interface using the IDOC sent by a *source client*.

For this i have used PREQCR as the message type, PREQCR02 as basic type.

E1BPEBANC & E1BPEBANTX are the segment type i have to use.

I have created a Z process code in which the function module that i have used is IDOC_INPUT_PREQCR.

With the help of this i can map all the field values to PR.

Now there is a field in this idoc called vendor which comes from the source client.

Now the value that is maintained in this field(vendor) should go to the Text Id that is maintained at the header level. ( i.e. the header text. i.e. In transaction ME51N, the text IDs which we can see at header level, the vendor value should go in one of this text Id ).

Now how do i do this, because I am using standard funciton module IDOC_INPUT_PREQCR in which there is already field mapping that this vaue should go in this field and so on...

Do I have to use an exit for the same ?? If yes then which is the exit ??

Please suggest.

Regards,

Priti.