on 08-18-2005 1:52 PM
Hi,
I need userexit in sales order for issue the output as soon as sales order created. Based on header level field value i need to trigger the output type.
For instanse <b>Zfield</b> added in the VBAK table. If zfield = 0 then i want to issue the <b>ZOUT1</b> or zfield = 1 then i need to execute <b>ZOUT2</b>.
Would appreciate if any body can help me in this.
Regards
Suresh Babu Karanam
First of all, did you create your requirement in VOFM under:
Copy Requirements->Orders
or did you create it under:
Requirements->Output Control
If you created it under Requirements->Output Control, then you did it in the right place. If not, then look at a previous post I made today about this.
Then, if you look at my last post, it explains how to tie the requirement to the output type. I don't know that there is a tcode for it. You have to go into customizing - tcode SPRO. When you go into SPRO, there is a button at the top of the screen - SAP Reference IMG. Click this button, then follow the path in my last post to get to where you can tie the requirement to the output type.
Brian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brain,
I have done everything what you have suggested me in early post but i got little confused in assigning requirement in procedure ( difference between conditiontype and output type) but now i got clear that both are same.. i seen the data element of those two.
yes even we can see the same customisation using NACE Tcode.
Regards, Suresh
You need to go into customizing to set the requirement to the output type. Use transaction SPRO. Follow the path:
Sales and Distribution->Basic Functions->Output Control->Output Determination->Output Determination Using the Condition Technique->Maintain Output Determination for Sales Documents->Maintain Output Determination Procedure
Once you make your way there, you have to know what procedure your order type is using. Select it and go into Control Data. Here will be a list of Condition Types. There will be a column for the requirement.
Brian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Those are the wrong requirements for output. You need to take the menu path Requirements -> Output Control in VOFM. Create your requirement here. Follow the documentation I pointed you to in a previous post. The z-fields you have in VBAK need to be in communication structure KOMKBV1. The documentation shows you how to do it.
Brian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check out the following documentation.
http://help.sap.com/saphelp_46c/helpdata/en/9b/e82c7dd435d1118b3f0060b03ca329/content.htm
You need to follow this procedure if you want fields from VBAK to be available in the requirement.
Then you can create Output Control requirements if VOFM. In the requirements you will use structure KOMKBV1. You will see why in the link above. Now you can tie the requirement to the output type in your output determination procedure or you can tie requirements to access sequences.
Brian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suresh,
You could find 3 radio buttons near to Brian's post.
For more info check this;
https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm
Thanks
Vinod
Hi John,
Is it possible to fetch data from VBAK from requirements. I am waiting for your valuble answer.
Regards
Suresh Babu Karanam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sanjeev,
Thanks for help your information. I am trying to copy the already existing requirement for my output type for sale order.
<b>process i did:</b> Tcode (VOFM) -> copy requirements
-> selected Orders -> No 303 (since VBAK work is avialble)in the program. Please confirm whether i am doing correct or not.
Regards, Suresh
Hi suresh,
What you need is not an user exit but an output requirement (=trigger to execute output or not). You will need one requirement per outputtype. In this requirement you will check the value of your ZFIELD. If the value is '0' to set SYST-SUBRC to 0 else to '4'.
Regards,
John.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.