09-09-2008 10:17 PM
Hi Gurus,
I have a requirement we have the code in place to behave differently when it is in VA01 and VA02 in an user exit_save_document.
we are having trouble to trigger the code when the sales order is modified or created by a BAPI.
The check in the user exit is dependent on the T-code but when the BAPI runs it will be either the report T-code or se38 so how we can figure out without looking at T-Code in which mode the Sales order is opened i.,e Create or Change
09-09-2008 10:20 PM
Hi,
You can check the structure T180-TRTYP = 'V' for change and 'H' for create..
Thanks
Naren
09-09-2008 11:33 PM
Hi thanks For the response
But the t180 structure is visible when we use the T-code but when we try to use the BAPI it is not behaving in the same fashion so there is no way to check that.
09-10-2008 3:49 PM
HI,
You don't have to select the data from T180...
Just use the field T180-TRTYP in the sales order user exit...The value will already be populated by SAP..
Thanks
Naren