cancel
Showing results for 
Search instead for 
Did you mean: 

Can we track sales order changes in output requirement?

Former Member
0 Kudos

Hi ,

We want to trigger an output only if there is changes to the sales order for fields plant,qty,material number. How can we know these chagnes in the output requirement. As the structures xvbap/yvbap will not be available in the output requirement is there a way to track those changes?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi there,

This is possible only after saving the doc for the 1st time. Any subsequent changes can be tracked.

In the requirement routine of the O/p type, declare the fields which you want to record. for eg VBAK-POSNR, VBPA etc.

If there is any change in the field values only then the O/p will trigger. Any change in SAP is recorded by value H. NEw entry by value V. Ask your ABAPer to record all changes of the type H & put the condition in the requirement routine.

Pls note that when you say H, it is only change to existing value. For eg if you change the delivery date from 25th to 30th. Any new entry is treated as V & requirement will not satisfy.

Once any change is of the type H, requirement is fulfilled & will trigger the O/p.

But be sure of the buiness process as to what fields changes they want to record. Orelse you will end up having many O/p types in your sales order.

Regards,

Sivanand

Former Member
0 Kudos

Hi Sivanadand,

Thanq so much for the inputs. The changes/ new entries made in VA02 will be stored in which table? and those tables are available at the output requirement routine level?

Thanks,

Srini

Former Member
0 Kudos

Hi there,

Changes will not be stored in any different table. They will be stored in standard VBAK & VBAP for eg.

But when the sy-code is VA02, any change in field values are interpreted by H. NEw entry is interpreted by C.

For eg plant is stored in VBAP-WERKS. Consider you have a sales order where the plant is 1000. So VBAP-WERKS will be 1000. When yu save the sales order that transaction is recorded as V new entry. LAter you wish to change the plant to 2000. So when you go to VA02, & change the value to 2000, VBAP-WERKS will change to 2000 & the transaction is recorded as change H.

Explain the requirement to the ABAPer. HE will understand what is V & H. Also as per your requirement, if you want to track any subsequent changes, you will need to pass the system code VA02 in the routine.

Regards,

Sivanand

Former Member
0 Kudos

Hi Siva,

Thanks again. As you told the changes are available in XVBAP-FKREL. New entry is with A and changed item is with H.This table is available at the sales order program (SAPMV45A). My question is the same table is avaialable at the output routine level also ex: requirement 912 ? I ever remember these structures are not available at the routine. do you have any idea about how we can know this changes at the output requirement level? do we need to pass the xvbap structure from sales order program to output routine. Please share your knowledge on this

Thanks,

SRini

Edited by: srini vasarao on Jun 24, 2009 11:39 AM

Former Member
0 Kudos

Hi,

You are going to trigger the O/p only after saving the doc. You cannot trigger any O/p without save. So by the time you save, values will be already stored in teh tables & you can refer them.

Regards,

Sivanand

Former Member
0 Kudos

Hello,

You have to define a routine and add this new routine in the OUTPUT DETERMINATION PROCEDURE

We made the same requirement for invoice.

Hope it will solve your query

santosh