cancel
Showing results for 
Search instead for 
Did you mean: 

output - userexit in sales order

former_member534411
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

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

former_member534411
Participant
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member534411
Participant
0 Kudos

Hi Brain,

Yes i have already done the process now i am ready with my requirement then what is the tcode to configure the requirement with output type.

Thanks in Advance.

Regards, Suresh

Former Member
0 Kudos

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

former_member534411
Participant
0 Kudos

Hi Brain,

It is really very clear. I want to reward a points to you but i could not able to see option here. help me to this.

Best Regards

Suresh Babu Karanam

Vinod_Chandran
Active Contributor
0 Kudos

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

former_member534411
Participant
0 Kudos

Hello Vinod,

I agree with you but I could not able to see any Radion Buttons.

//suresh

Vinod_Chandran
Active Contributor
0 Kudos

Hi Suresh,

When you mark the topic as a question, you have the reward points option enabled. Can you check your first posting?

Thanks

Vinod

former_member534411
Participant
0 Kudos

Hi John,

Is it possible to fetch data from VBAK from requirements. I am waiting for your valuble answer.

Regards

Suresh Babu Karanam

Former Member
0 Kudos

Hi Suresh,

Yes, VBAK data is available in 'requirement'. Check any one of the standard requirement (txn VOFM), it will most probably be using some of the VBAK fields.

Cheers,

Sanjeev

former_member534411
Participant
0 Kudos

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

Former Member
0 Kudos

This is correct. Please remember customer name range starts from 500, so give an appropriate number to your requirement to avoid upgrade problems later.

Cheers,

Sanjeev

former_member534411
Participant
0 Kudos

Hi Sanjeev,

Ok after sucessfully created the requirements what is the Tcode to assign <b>my requirement</b> to <b>output type</b> as John mentioned early in the same thread.

Regards, Suresh

Former Member
0 Kudos

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.