cancel
Showing results for 
Search instead for 
Did you mean: 

A Sales Document for a Particular Sales Org. should not appear in VF04

Former Member
0 Kudos

Hi SD Gurus,

Please guide me in this scenario.

There is a Sales Document type ZNEW, for which the billing type is ZA.

Requirement: -

1. XXXX Sales Org. wants to bill ZNEW. I mean they create ZA from ZNEW.

2. YYYY Sales Org. doesn't want to bill ZNEW. I mean they DON'T create ZA from ZNEW

2a. They don't want to see ZNEW orders in VF04.

2b. They don't want to exclude ZA from VF04.

Is there any other way in which we can achieve the above requirements ?

My Solution: -

1. Putting a Billing Block for YYYY ZNEW orders only using USER_EXIT. But the problem with this is ZNEW orders still shows up in VF04.

2. Putting a Reason for Rejection for all the line items in YYYY ZNEW orders using USER_EXIT. This time ZNEW won't show up in VF04. As there are some reports running for Reason for Rejection, the report looks big.

3. I tried manually making YYYY ZNEW order complete in VBUK and VBUP. Still it shows up in VF04.

Please let me know if you have any suggestions on this. Your response is really appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

jpfriends079
Active Contributor
0 Kudos

With Billing Date you can try.

Where you can be one month or desired period.

Try & share you feedback.

Regards

JP

Former Member
0 Kudos

@JP

Thanks for the reply.

Can you please elaborate on how can I use Billing Date in this scenario.

@Charles

Thanks for the reply.

ZNEW is used by both Sales Orgs. XXXX and YYYY

jpfriends079
Active Contributor
0 Kudos

1. Change billing date in header of sales doc.

2. Use VF04 with Billing Date from to which should not include the date maintained at Sales order.

Or more simply, maintain billing block at sales doc.

Or take assistance of ABAPer use function module RV_INVOICE_CREATE for Billing due list.

Regards

JP

Former Member
0 Kudos

@JP

Thanks for your reply.

When users run VF04 From date will be blank and To date will be current date. So I guess Billing date won't help me in great extent.

And also YYYY Sales Org. users don't have access to create ZA billing type from ZNEW. When they press save in VF04 selection list, all ZA billing docs will be listed in error log saying "Doc is relevant for ZA". Users don't want to see that error in the log. Right now they are excluding ZA billing type in VF04. But they don't want do exclude everytime they run and also they are not interested in creating a variant.

Let me check with ABAPer to see anything can be done.

former_member209761
Active Contributor
0 Kudos

Dear Red Raider,

Since i do not have access, i wont be able to give a exact solution, but i think you can also try with

transaction variant.

In the selection screen of vf04, filter with sales document type =/= ZNEW.

Save this as a variant.

Assign this to all the relevant users who deals only with YYYY.

Check and revert back.

Thanks & Regards,

Hegal K Charles

Former Member
0 Kudos

@Charles.

Thanks for your reply.

Variant is a good choice (very simple solution) but users are not ready for that. Is there any thing you can think of dealing with this Sales Doc Type ZNEW.

No Billing Dates, No Billing Blocks, No Variants, No Reason for Rejection.

former_member209761
Active Contributor
0 Kudos

Dear Red Raider,

Why users do not agree with variant?

Is there any valid reason?

Thanks & Regards,

Hegal K Charles

Former Member
0 Kudos

@Charles

That is Company confidential. Thank you.

We are thinking of outside variant now.

former_member209761
Active Contributor
0 Kudos

refer the next post

Edited by: Hegal . K . Charles on Dec 6, 2011 12:09 PM

former_member209761
Active Contributor
0 Kudos

Dear Uday Kumar Narayanappa ,

I think as a consultant you have the say in deciding how the things should be mapped in SAP than the USER.

I dont find any reason other than having the same user id being shared between multiple users (and hence variant cannot be used).

Anyways try this.

Make a Z program copying VF04 .

Give the Tcode which is agreeable for the users.

In that Z program , write a code NOT TO CONSIDER documents of type ZNEW.

Now limit the authorisation of this new program only to those users who doesnt not want to deal with ZNEW.

Hope it helps.

Thanks & Regards,

Hegal K Charles

Former Member
0 Kudos

I think transaction variant (not variant) cannot work for your case, as there is still no order type seelction.

You definitely has to copy the program: SDBILLDL to a z program and assign a new T-code and make a check in there to exclude the order type.

Answers (1)

Answers (1)

former_member209761
Active Contributor
0 Kudos

Dear Red Raider,

Is this ZNEW order type assigned to both the sales organisations?

If so, it will come in VF04.

If the ZNEW is used only by XXXX, try to remove the sales order to sales area assignment (ZNEW TO yyyy) and then try.

Thanks & Regards,

Hegal K Charles