Application Development 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: 

OREDRS IDoc User exit

Former Member
0 Kudos

Hi Experts,

we have a the below requirement for creating sales order using ORDERS05 IDoc

If   ../E1EDP01/E1EDP19/QUALF = 002
        If u2026/E1EDP01/E1EDP19/IDTNR =  'DEL-0123456'
        Then 
          Drop the respective.../E1EDP01 segment

Please let me know how to achieve this in the user exit(SAP enhancement VEDA0001).

Thanks in advance,

MK

5 REPLIES 5

Former Member
0 Kudos

Hi,

go to t.code cmod create the project and add the enhancement and write the code in that.

Atul

0 Kudos

Thanks for the reply,

But I want to know whether we can implement the above logic in userexits, If yes please suggest how to implement

uwe_schieferstein
Active Contributor
0 Kudos

Hello

That's exactly what Atul suggested.

Create a CMOD project and assign component VEDA0001 to it. Select a suitable component (e.g. EXIT_SAPLVEDA_001 or EXIT_SAPLVEDA_002) and then implement your logic in the user-exit.

For more details about how to organize user-exits you have a look at:

[Dangerous Liaisons in User-Exits and How to Avoid Them|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/11882] [original link is broken] [original link is broken] [original link is broken];

Regards

Uwe

0 Kudos

Thanks All,

Can you please suggest on -

Which include to use for the above implementation.

How to delete the complete E1EDP01 segment (with sub-segments) from the IDoc, if the E1EDP19-MATNR is equal to DELETE material number.

Former Member
0 Kudos

hi experts,

I need to enhance FM u201CIDOC_INPUT_ORDERSu201D. So I had created the new project ZDEV_VEDA via tcode CMOD and under this new project, I assigned the VEDA0001 enhancement. I wanted to enhance Function exit EXIT_SAPLVEDA_001 (INCLUDE ZXVEDU03). But I had encountered this message:

Program names ZX... are reserved for includes of exit function groups. Message no. DS027

Any ideas what is this about? Appreciate so much.

TQ.