Application Development and Automation 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: 
Read only

validation on outbound idoc

Former Member
0 Likes
1,422

Hello team

I have the below requirement now. please check and suggest me

1. i am sending outbound MATMAS05 idoc from SAP system. but i want to do few validations on the data of idoc (for example i will check the value of plant data with some other value of the table). if my checking is success then only i need to create outbound idoc and send it to downstream systems.

So now i want to know where i need to write the code which performs the validations against the data before creating/posting of idoc.

Please suggest me.

Regards

Raj

Hello team

I have the below requirement now. please check and suggest me

1. i am sending outbound MATMAS05 idoc from SAP system. but i want to do few validations on the data of idoc (for example i will check the value of plant data with some other value of the table). if my checking is success then only i need to create outbound idoc and send it to downstream systems.

So now i want to know where i need to write the code which performs the validations against the data before creating/posting of idoc.

Please suggest me.

Regards

Raj

8 REPLIES 8
Read only

Former Member
0 Likes
1,252

Hi,

Use enhancement "MGV00001".

Regards

Vinod

Read only

0 Likes
1,252

Hello vinodh

Thanks for your reply. if i write a logic in that enhancement, is it before creation of IDOC or before posting of IDOC. what i mean to ask you is how i need to write a logic.

1. check my condition and delete the records from IDOC_DATA if my check fails.

or

2. check my condition and pass the correct data for creation of idoc.

Please clarify me.....

Regards

RAj

Read only

0 Likes
1,252

Hi,

You can use Component EXIT_SAPLMV01_002" of enhancement "MGV00001" which get triggered while creating outbound IDOC.

Regards

Vinod

Read only

0 Likes
1,252

Vinod

Thanks..... so after doing required validations, the final data i can send for creating idoc right.

Thanks for your help.

I am rewarding points to your answer.

Reg

Raj

Read only

0 Likes
1,252

Hello Vinod

one quick question..... can you please tell me how can i find out the enhancements available for MATMAS05 idoc. so that i can select the relevant enhancement.

Regards

Raj

Read only

0 Likes
1,252

Hi,

1) see the customer functions called in functiion module "MASTERIDOC_CREATE_MATMAS"

2) See the Master distribution related enhancements of Material Master in SMOD

Regards

Vinod

Read only

0 Likes
1,252

Vinod

Dont mine of asking little more clarification. you mean to say go MM01 and find out the package (ie MGA) and then goto SMOD and findout the exits right.

But when check in this way, i didnt find the enhancment MGV00001 you have provided.

please tell me the procedure to check in a detail way. i want to know how can we check for the related enhancments for any idoc type. please tell me to check for MATMAS05 as an example, i will use the same techinque for any idoc type.

Regards

Raj

Read only

Former Member
0 Likes
1,252

i got the solution. so withdrawing the question.