Skip to Content

Tcode OPK8

I need some type of help/documentation on Tcode OPK8. I want/need to automatically create an iDoc or an output (iDoc is preferred) at the save (creation and change) of a production order (for specific plants). I assume that I can control this in OPK8 but I can't find any information.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2008 at 06:14 PM

    You can give a print out during saving

    In OPK8...Flow control transaction option

    for a given plant and transaction you selcet radio button - online...then itb will work. For Idoc you need to define a new output type and give out put with need to set with ABAPer/basis guy to design the new output type with idoc option.

    For more details read below

    print procedure

    Flow control for transactions

    You can use flow control to determine for each plant and transaction whether printing is to take place online on updating or in the background. The print mode that you choose here is just a default and can be changed in the actual transaction.


    Plant TCode Online Backgr. Update

    • **masked** XXXX **masked** x

    Here it is specified that the mode of processing "background printing" is to be proposed in each plant and for all transactions.

    come back if required

    Edited by: Rajesha Vittal on Jan 21, 2008 7:15 PM

    Add a comment
    10|10000 characters needed characters exceeded

    • Yes I did, well, I tried all user exits on tcodes CO01 and CO02. I even tried the user exits at the save of the sales order. I was hoping that the sales order saved after the production order was saved (in our flow) but that isn't the case. I believe we will have to resort to appending a field onto AFKO that acts as a flag. We will then use a bit of overlap (based on past production order numbers) and run a batch job that creates idocs and sends them off. I can't believe that SAP doesn't have anything but the closest I can find is a tcode that you run after the production order is saved but this is only tailored to their shop floor system and you must know the production order number. I know what we need isn't unique, there is no way that it can be.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.