cancel
Showing results for 
Search instead for 
Did you mean: 

User Exit for extended ORDERS05

Former Member
0 Kudos

Hello,

We have extended tables VBAK & VBAP, and I have to put these new fields into the outbound ORDERS05 when a sales order is created.

I have extended the IDOC with some custom segments, but I can't seem to find the USER EXIT or BADI or NAST function module (SAP R/3 Enterprise) - can someone please point me in th right direction?

Many thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

In IDOC_OUTPUT_ORDERS, there is a user exit call EXIT_SAPLEINM_002. You can insert your code here in the include.

Regards,

Srinivas

Former Member
0 Kudos

Hi Srinvas

Thanks for your response, but IDOC_OUTPUT_ORDERS does not process the outbound Sales Order IDoc. this function module refers to table EKKO (Purchasing Document Header) and object type "BUS2012". Sales order is object "BUS2032".

Rgds,

Derek

Former Member
0 Kudos

Derek,

Its processed by function module IDOC_OUTPUT_ORDRSP.

You have userexits:

EXIT_SAPLVEDC_004 - for adding data to additional segments

EXIT_SAPLVEDC_001 - for changing the control record

EXIT_SAPLVEDC_003 - for a final wrapup (only data I think)

Hope they help.

Cheers,

Brad

Former Member
0 Kudos

Forgot to mention, they are part of customer extension: SDEDI001.

Cheers,

Brad

Former Member
0 Kudos

Hi Brad,

Are you sure IDOC_OUTPUT_ORDRSP processes the outbound order? I have looked at this function, and this was mentioned by one poster previously.

Rgds,

Derek

Former Member
0 Kudos

Derek,

I'm sure that this is the correct function module (if you check the posts above this function module is actually not mentioned).

You can double check via transaction code WE41 for process code SD10.

Cheers,

Brad

Former Member
0 Kudos

Way cool!

I have managed to get the custom segments populated with data via EXIT_SAPLVEDC_003 from project SDEDI001.

I'd like to share the cred between Samir and Brad. I found transaction WE41 immediately confirmed the path forward for me.

Thanks guys!

Message was edited by: Derek Colley

Former Member
0 Kudos

Hi Derek,

Good news!

I find that when working with Idocs that the area menu WEDI (just type WEDI at the SAP EASY Access menu) is best way to have all the relevant transactions at your fingertips.

You can access partners, ports, idoc development, etc. all from one screen (thats how I get to WE41 for example).

Much nicer than navigating via transaction codes.

Cheers,

Brad

Answers (5)

Answers (5)

Former Member
0 Kudos

Please note that message type in this case is ORDRSP.. Sales order confirmation

Former Member
0 Kudos

If you are using process code SD10, the associated function module is IDOC_OUTPUT_ORDRSP as mentioned by Brad. And the function exits mentioned above should do the job.

See transaction WE41 this gives the link between process code and its Function module.

Former Member
0 Kudos

Hello Derek,

How are you actually triggering this sales order IDOC.

Are you using message control, for triggering this..

In that case what is process code you are using?

Are you able to send in standard IDOCs without the additional fields you sent?

Regards,

Samir.

Former Member
0 Kudos

Hi Samir,

I have configured output control to trigger the outbound sales order IDoc. In WE20 I have added Message Control as follows:

Application : V1

Message Type: ZNOT

Process code: SD10

The IDoc does not trigger yet - I need to look into that - but I can add the output manually in the sales order. This way, the IDoc gets created and sent to the receiver system.

The problem is how to populate the additional segments..?

Rgds,

Derek

SaiKondapaneni
Explorer
0 Kudos

you can find in call customer-function '001' & '002' in idoc_input_orders FM

EXIT_SAPLVEDA_001 -> poulates fields from idoc to xvbak/xvbap structures

EXIT_SAPLVEDA_002 -> populates xvbak/xvbap structures to screen fields.

SMOD -> Enahancement ->VEDA0001

Hope it will help to you.

Thanks

sai

Former Member
0 Kudos

Hi Sai,

Thanks for your response, but the VEDA0001 is for "SD EDI Incoming Orders". I am looking to enhance the outbound IDoc.

Rgds,

Derek

Former Member
0 Kudos

Try using this enhancement : SDEDI001 User exits for EDI

Former Member
0 Kudos

Hi Samir,

I looked at SDEDI001 earlier, but it says for SD EDI ORDRSP, not "ORDERS". I looked at all the functions in this enhancement project, and none of them give the opportunity to change the outbound sales order IDoc.

Rgds,

Derek