on 02-28-2014 6:19 AM
Hi experts,
I have a requirement wherein if an EDI invoice output type is selected during the creation of the billing document, then all the remaining output types below that should not be selected. Please find below the screen shot of the output procedure used. Whether a customer is relevant for EDI output or not is based on different values provided in different fields and the business do not want to follow that approach.
Please provide suggestions/pointers to achieve this requirement.
Thank you,
Som
Som,
In case EDI output is not triggered, then do you want multiple outputs (e.g. print and fax) to get triggered?
See if this output procedure is assigned to other billing types, any requirement added in this procedure would be relevant for all billing types the procedure is assigned to.
Is this requirement for all customers?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi TW,
In case EDI is not triggered, then one of the remaining ZCR* type output will be selected. All these outputs are configured for print output type only.
Also the original output procedure was assigned to a number of billing documents. We have created a new output procedure and assigned it to the necessary billing documents and we are making the changes in the new procedure only.
Thank you,
Som
Hello Som,
One alternative would be to include a common field in the key combination used to determine these output types. There can be an indicator in your billing document that fills a specific value in this common field. You now only need to maintain the output condition records with this specific value in the common field for the EDI output type. This ensures that only the EDI output type is selected, not the others. This approach will avoid creation of new VOFM routines and ABAP development effort. And the process will be transparent to the business users.
Best Regards,
Balaji
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Som,
What are the output types you want to see in Billing Document ?
Regards
Sundar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Maybe you'd need to do your own requirement for the other output types. Do a new VOFM in your range name (see Note 327220 - VOFM function and its objects). I suggest you to make a combination between subroutine 101 where you'd need to hardcode the EDI output type and 62. For this you need ABAP resources. After, set the new VOFM subroutine requirement in control of output types.
I hope this helps you
Regards
Eduardo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
In my opinion yes. In table NAST there will be a record ofr ZINV. Taking the VOFM 101 as a template (your EDI output is ZINV), maybe, your VOFM 901
PERFORM KOBED_062. "call vofm 62
LOOP AT XNAST WHERE KSCHL EQ 'ZINV' AND
OBJKY EQ MSG_OBJKY AND
AKTIV EQ SPACE AND
VSTAT EQ '0'.
EXIT.
ENDLOOP.
IF sy-subrc = 0. "it was found
sy-subrc = 4. "output not created
ELSE.
su-subrc = 0.
ENDIF.
Create your VOFM (remember the note I told you in my first answer), and change the VOFM 901 for the other output types different to EDI.
Although it's for pricing, see also SAP Note 156230 - Requirements: What is permitted, what is not?.
After, debug it and fit to your requirements. During the debugging, check how XNAST is populated.
I hope this helps you
Regards
Eduardo
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.