on 06-01-2007 6:24 AM
Hi friends,
There are 2 ba01(output type) documents for shipment 501342 - one in language EN and the other in language NL.To prevent this I need to write ABAP code The code will not allow ba01 output to be generated automatically if it already exists in NAST table in any language. For this I need to create routine. what logic I need to write in that routine. Please help me.
Thanks & Regards,
Bharat.
HI,
in NAST if you give the OUTPUT type then it will give the details of that output type whether it is already existed i mena i already printed with this Output type, so write a Select with that Output type if it is already exists in that NAST table then you need to create a Routine
Regards
Sudheer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
When you configure the Output type in the Application Document then only the ENTRY comes into NAST tables
So if you wont configure this BA01 in the application doc, your problem is solved no
If you still needs to write a routine Goto VOFM
Requirements-> output control
write the sample code such that
if the condition type = 'BA01'
then sy-subrc = 1.
endif.
see the doc for Output
Output Determiantion :
You can use output control to automate either messages or subsequent processing of partner-specific messages"
This means, it provides a method for you to perform subsequent processing once a document is saved in the system. This subsequent processing is normally to print the document, but can also include activities such as:
- Faxing the document
- Emailing the document
- Sending an idoc of the document
- Sending an EDI message for the document (via an Idoc)
- and so on.
In general, it uses the condition technique to determine what, if any, output is to be produced. The condition technique works by selecting key fields from the document (document type, plant, etc.) and matching them to master data records you have previously set up. If there is a match, then output is produced.
You can use transaction NACE for the output determination settings for all applications.
1. When you start transaction NACE, a list of all represented applications appears.
2. From this initial screen, you can access all the individual processing screens for output determination from the EDIT menu.
3. Select the relevant application. This transaction does not have a menu path in customizing.
Refer the following links.
http://help.sap.com/saphelp_crm40/helpdata/en/b3/58bf39f7568648e10000000a11402f/content.htm
http://help.sap.com/saphelp_erp2004/helpdata/en/c8/19878343b111d1896f0000e8322d00/frameset.htm
http://help.sap.com/saphelp_erp2004/helpdata/en/c0/4e4746497d11d385ee0000e81ddea0/content.htm
Reward points if useful
Regards
Anji
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.