cancel
Showing results for 
Search instead for 
Did you mean: 

How do I automatically trigger new BA00 idoc upon sales order change?

Former Member
0 Kudos

Hello,

When I make a sales order change (VA02) I want to automatically trigger a new BA00 idoc. I have configured a partner profile with outbound message ORDRSP containing one BA00 entry for create and one BA00 entry with the change checkbox checked. I can get a new BA00 if I manually go into the order output and click on Change Output. Is there a way that it will automatically be created? If I can get that to work, then I would like to go a step further and have the idoc created only for a certain customer so if you know how I can get to a user exit it would be helpful.

Thanks in advance for your help.

Joy Mills

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Create the requirement and assign the requirement to BA00 output type.

write the Requirement based on CDHDR and CDPOS tables.

Regards

narendra

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi there,

After defining the O/p type & maintaining the determination procedure, assign the procedure to the sales doc type.

Maintain the transmission medium as EDI.

In the requirement routine in the O/p determination procedure put a custom logic. In the logic put a code such that when the user changes the critical fields in VA02. Initial entry in sales order is recognised by option V & subsequent change as H.

So ask your ABAPer that when the system T-code is VA02 & option is H, then the O/p type has to be retriggered automatically.

Explain the requirement to the ABAPer. He will understand that.

I hope you maintained partner profiles in WE20 & assign the relevant IDOC processing progs to it. Define the required segments in WE30.

Regards,

Sivanand

Former Member
0 Kudos

Hello Sivanand,

Thank you very much for your reply. I will be programming the requirement. What field is the option?

Joy

Former Member
0 Kudos

Hi there,

We have implemented something similar. We have 1st identified the critical fields. For eg sold-to, delivery date, material, quantity etc. If any of those critical fields are changed then the system will capture that change & then trigger the IDOC as per your requirement.

Explain the concept of V & H to the ABAPer. He will understand that. Also capture the system T-code VA02.

Regards,

Sivanand

Former Member
0 Kudos

Hello Sivanand,

Do you know what is the exact field to test for V or H?

Thanks,

Joy

Former Member
0 Kudos

Hi again,

I found that T180-TRTYP is H for create but T180 is not available in the requirement.

Joy

Former Member
0 Kudos

Hello Sivanand,

Instead of customizing a requirement linked to the output type, I think I need to configure the Change Output form in NACE. Do you know anything about this?

Thank you very much for your helpful replies so far.

Joy

Former Member
0 Kudos

Hi there,

Change O/p type is 1 option you can have.

But even there, in the requirement routine of that O/p, you need to put a condition that in VA02 when the customer changes any field, system has to trigger the O/p. If you donot put that condition, system will trigger the O/p every time you go to VA02 for that order. I guess that is not your requirement.

it is only upon change of a sales order in VA02 that you need to trigger.

When you say T180 is not relevant for your requirement, what does that mean? It is not dependent on any particular case. It will just display what changes / new entry has been made in which T-code.

In T180 for eg if you give VA02, it will display what prog is touched & weather a change is made or new entry made.

Regards,

Sivanand

Former Member
0 Kudos

Hello Sivanand,

Thank you very much for your reply. What I meant by T180 is not available is that within the requirement, the table T180 is not in memory at that time so I cannot test for TRTYP.

However, instead of using a requirement, I was able to solve my issue by configuring the change program in transaction NACE. In V1-> BA00 -> Change output, I put program FM06AEND and Form routine CHANGE_FLAG. I am able to customize within CHANGE_FLAG to trigger another BA00 under my conditions.

Thanks for you help!

Joy Mills