on 08-07-2015 3:57 AM
Dear Experts,
We have a special requirement for output in billing.
As we know we can set dispatching time in output condition master data in T-CODE: VV33 for billing output, currently we set it to '4 - Send immediately (when saving the application)' .
In our daily operation for create invoice we have two ways:
1. Manually create invoice
2. Batch job create invoice
Our requirement is when Manually create invoice, we want the dispatching time for the billing output be '4 - Send immediately (when saving the application)' ; when Job create the invoice, we want the dispatching time for the billing output be '1 - Send with periodically scheduled job'
As we know in master data there only can set one exact value for dispatching time for one record, I want to enable to modify dispatching time dynamicly based on own code logic.
So where can I add own coding logic to modify the dispatching time during invoice creation?
I have tried in requirement of access sequence, but failed.
Thanks for your great help!
Jeff, you will need some field in the condition records (access sequence) that would allow to distinguish between the two kinds of invoices.
What Santosh suggested is the easiest way, not sure you understood the idea. You can keep the same output type, but in the access sequence add another access on top and marked exclusive (so that it would "trump" all other conditions) with Sales Org/.../UserID. Normally I don't suggest including user IDs in the condition record, but in this case you'll just need one record for the user ID running the background job. (It should be some kind of generic BATCH user.) If invoice is not created by that user ID, then there would be no condition record found for that key and all other conditions will be accessed, as usual. So you'll just need to add one condition record, there is no "master data" involved.
You could also come up with another field, but the idea would still be the same - you need a top condition to kick in for the background job only somehow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Experts,
Can any one helps on this? thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jeff
How about adding one more condition type .
ZR01- Triggerged by system for Job .( Example Access sequence- Sales Org/Div/User{SYSADMIN}) -Dispatch -Periodic
ZR02- Manual Trigger. ( Example Access sequence- Sales Org/Div)- Disptach - send periodic .
This is serve the purpose .
Regards
Santosh
Hi Santosh,
I was also think about this, but it's a burdan to business to maintain all related master data once again.
Also we need to write a routine to control which condition will effect in which situation.
So I think if we can find a user exist which enbale to update the related value before update the dispatch time to data base, it will be the best way.
Hi,
In the condition records, change the Dispatch time to 1 in VV32.
By doing this system will automatically pick output while processing with Job and when you want to manually create, just change the dispatch time from 1 to 4 in the Output processing (SHIFT+F8)
It will serve your purpose . check and revert with your findings
thanks
santosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.