Question:
I want to extend the standard idoc type with customer specific segments,how to do it?
where can I find the idoc type's list?and double click it can direct to it's subtrees of segments.
Best redards
Leslie Zhu.
_________________
The only way to learn it,is to do it!
Answer:
Hi,
I have answered this in another forum for inbond IDOCS, I will paste it here:
Example:
You want to add two fields (zfield1 and zfield2) into the inbound ORDERS message type. You currently get orders using idoc type ORDERS05 and message type ORDERS, and process code ORDE.
Steps:
1. create new segment in we62 called ZORDSEG and put in fields zfield1 and zfield2.
2. go to we30 and create an extension called ZEXT1, select linked basic type, and put in ORDERS05 as the basic type. Insert the segment ZORDSEG wherever you want it.
3. Go to WE81 and create a new message type called ZORDERS
4. Go to WE82 and create a new link between message type ZORDERS, IDOC Type ORDERS05 and extension ZEXT1
5. Go to WE57 and link the idoc type, message type and extension to function IDOC_INPUT_ORDERS
6. Go to WE42 and create a new inbound process code ZORD that is a copy of ORDE, except the message type is changed to ZORDERS.
7. Code the user exit EXIT_SAPLVEDA_001 to do whatever you want with the user segments. This exit is inside of IDOC_INPUT_ORDERS when the idoc is being interpreted.
8. Set up your inbound partner profile in WE20 with your new message type and process code (ZORDERS and ZORD).
Answer:
HI,matt123
Now I have finished step 1 -step 6,I want to extend inbound WPUBON message type,In step 7,I don't know which user exit I should code?how can I do?
Best regards.
Leslie Zhu.
_________________
The only way to learn it,is to do it!
Answer:
I believe the exit you may be looking for is called EXIT_SAPLWPUE_104. This is an exit in function IDOC_INPUT_POS_SALES_DOCUMENTS (which processes WPUBON idocs). The enhancement name is WPUE0002. the documentation can be got from transaction SMOD by putting in "WPUE0002", selecting documentation and display.