Skip to Content
-3

Tcode used for SD document Creation

Apr 10, 2017 at 08:50 AM

170

avatar image

We have a requirement where in we need to capture the TCode used for creation of SD Documents( Sales orders, Delivery and Invoices). We have a few Z Tcodes that also can be used for Sales document creations. Like changes for all Sales documents are logged into CDHDR/CDPOS tables , including tcode used to make the changes. Here, my requirement is to find , which tcode was used to "create" a sales document, like VA01 for sales orders or some other Z tcode.

I have already tried to get the information from SLG1, STAD, and System Audit logs without any success. I am looking for a way to find this information without writing a new logic in all the Z tcodes.

Regards

Manpreet Singh

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Siva Prasad Vasireddy Apr 10, 2017 at 09:00 AM
-1

Hi,

go to SE16 and type TSTC then go for z* for searching

may be you can find the desired tcodes.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

That is not my requirement. CDHDR table contains the "Tcode" used for every change done on a sales document. I want to know, if there is a table that stores the tcode used to "create" a sales document. Looking for something like below in a table or system log.

SalesDoumentNumber Username Tcodeusedforcreation

123 ABC VA01

124 ABC ZVA01

0
Jelena Perfiljeva
Apr 10, 2017 at 06:50 PM
0

Why is this needed? What's the importance and what business purpose would this serve?

To my knowledge, there is no such option without doing some ABAP. But normally creating ZVA01s is not recommended either. The orders can also be submitted using different interfaces (e.g. EDI) but those scenarios can be easily tracked by user IDs. Interface orders would have generic user IDs, not real people.

Share
10 |10000 characters needed characters left characters exceeded
Tuncay Karaca Apr 10, 2017 at 07:02 PM
0

Hi Manpreet,

As you mentioned change documents should give this information even for Z* transactions. CDHDR-TCODE = 'Z*' and CHANGE_ID = 'I'.

Show 4 Share
10 |10000 characters needed characters left characters exceeded

Hi Tuncay,

My system does not record creation using "CHange_ID='I' for any of the Sales document (Order., delivery, invoice) creation. Is there any configuration change that needs to be done for this to become active?

0

This is the standard behaviour for sales documents (object VERKBELEG) - only update and delete are recorded. Read 1460780 - VA01 is not capturing change documents (CDHDR/CDPOS).

1

Veselina - I didn't know that, good point!

0

Manpreet - As Veselina pointed out there is no change documents are generated for creation of sales documents. You can still find transaction code in change document tables for Update and Delete records. If your requirement is for creation it seems there is no way to find transaction codes, it seems you can approach to custom development solutions for ongoing tracks.

0