FORM ROUTINE in Output Types

Hi group,
  there is a requirement in which after the generation of accounting document(after saving VF01), we need to immediately reverse some of the lines in the accounting document by using F-02.  We have thought of using the Output Type Program to write our code as that was the only genuine place we could find to write our enhancement ( searched for user-exits after accounting doc is generated but cudn't find any). In the program , we shall write the BDC for aor reversal process. Now, when we SAVE VF01, this program(RLB_INVOICE, output type RD00) gets triggered. I thought instead of  writing something in the standard program( or even a Z version of it ), we wud write our code in a new program & then assign this program in NACE. I tried with some dummy program(zxxxxx), but there is an error log which says 'Processing Routine Entry does not exist for program zxxxxx).
what is the significance of this FORM Routine 'ENTRY' in the output type???  wat is the solution for my problem??
hope i am clear enough
ur valuable inputs awaited...
Thanks & Regards,
Bikash Agarwal

Hi
The routine ENTRY is the start form called by the progam runs the print (RSNAST00 for example), that routine has to be defined in the program is assigned to output type.
See the program RLB_INVOICE, here you can find the form ENTRY.
So the program manages the print for the output type RD00 run a comand like this:
PERFORM ENTRY IN PROGRAM RLB_INVOICE USING .......
I don't think there's an exit after accounting document is created, there are some BTE (trx FIBF) are triggered just before it is generated, for example in BTE 1030: here you can know all accounting number and data (but the document isn't stored in database yet).
I don't know if it's a good idea to insert the code in the routine of the print: remember all the process of saving of account document are running in update tusk, so while the output is been printing you can't be sure the accounting document is really stored in database.
Max

Similar Messages

  • Attach a Smart form to a output type .

    Hi,
    May i know how to attach a smart form to a output type in NACE transaction.
    So that when we take PO printout from me9f it should work fine.
    Is it same as we do for a script or any thing extra need to be done??/
    Regards,
    Neha

    Hi Neha,
    If you want to print a PO with smartform, please maintain it in t-code
    NACE with SAP standard settings.
    1- normal method using the standard PO printing:
    Out type   Print program   Form Routine   Form      Smartform
    NEU        SAPFM06P        ENTRY_NEU      MEDRUCK   Not applicable
    2- for smartforms:
    Out type   Print program   Form Routine   Form     Smartform
    NEU        /BPR3PF/FM06P   ENTRY_NEU      Not      Indicate the
                                               Applic   template to use
    Please find notes which explains on where to find Standard
    Smartforms , assistance and documentation on this issue.
      526824   Smart Forms: Which information sources are available?
      430621   Delivered print programs and form templates
    Best Regards,
    Arminda Jack

  • Debugging routine for output type in purchase order

    HI all,
       I am unable to get breakpoint to stop at a custom requirement  routine  for a custom output type (ZSND) for purchase order.
    I created routine 901 and explicitly add  'break  userid' .  In ME21N, it stops at the routine.  In ME22N, it did not stop at the routine.
    I like to it stop during ME22N.   I tried adding the custom output in ME22N in Messages details, then save.  It still did not stop at the custom routine.  Can anyone pls shed lights how i can make it stop ?  Or could it be that no output is generated during the ME22N changes, thus it would stop at that routine in ME22N ?
    thanks
    Joyce

    Hello Joyce
    The first output ZSND creates the ORDERS IDoc (ME21N). For this output type you obviously have assigned the VOFM condition (somewhere in the NACE transaction).
    Changing the purchase order (ME22N) should create a different output type (-> ORDCHG IDoc). The first output ZSND must not be repeated (or it is defined to be set automatically only once).
    Thus, there are two explanations for your observation:
    (1) The output ZSND is not created a second time using ME22N
    (2) The new output (-> ORDCHG) has not been assigned to the VOFM condition 901.
    (1) you can test quite easily by adding the ZSND output manually in transaction ME22N.
    (2) you need to check the output customizing.
    Regards
      Uwe

  • Routine for Output Types

    Dear All,
    How to write Routines to control the execution of output types?

    HI,
    Go to VOFM transaction, in the menu requirnment -> output control
    Double click the routine number and write the code. Coopy the code from other routine and just make changes for your.
    Regards,
    Senthil

  • How to configure a interactive pdf form to an output type

    Hi all,
       The user has to open the form, do some manual entry in the form and finally print it. For this I have created a Webdynpro application with the adobe pdf form linked to it. It can be teted by testing the webdynpro application. But can it be linked to some output type, so that when the output type is triggered, the form is opened and user can do some corrections and print it. Please help me in this regard.
    Thanks
    Thivya

    Hello. I dont understand why would you do such a thing.
    First option is to link it. so if a user e.g. changes the order, he will get the form preview which he can fill and then print as you wanted. All this in ERP and print preview for the form in adobe reader.
    Or you can create a WD app, which must be manually opened, form created, form changed and printed.
    I hope it helps or you can try to clarify if i don´t understand your problem.

  • Printing multiple forms for one output types.

    Hi,
    I need to print the form 4 times for one specific output type.  My internal table contains only one record, but for that one record also i need to print 4 forms. How can i do this, i tried using control parameters but in vain.
    Any suggestions of how to achieve this,
    Thanks & Regards,
    Ramana.

    Hi,
    I am working with only one smart form. But there are different output types(ZVSL, ZVFX, ZVFE & ZVFI) configured for that form. But for one specific output type (ZVSL), i need to repeat the print for 4 times.
    Thanks & Regards,
    Ramana

  • Form triggering through Output type

    Hi All,
    There is a issue which i am facing , I have create a output type ZFIN and attached a custome program xyz with this outputtype. when the output is triggered throught transaction VL32n the custom program should be trigger but ther is an error raising which is going to my SAP inbox that is " PERFORM_TOO_MANY_PARAMETERS".
    Regards
    Dhiraj Shetty

    Hi,
    1. Run transaction SU01
    2. Enter <user name> => EDIT
    3. Go to tab 'Parameters'
    4. Select parameter ID = 'NDR' and enter value 'X'
    5. Save
    Done

  • Diff forms for one output type.

    We have 2 types of prints: (1) normal final invoice and (2) Pauschal Final Invoice.
    For the (1) Normal final invoice following pages are needed:
    normal invoice page
    overview sheet
    Rechnungsanlage
    For the (2) Puaschal final invoice the following pages are needed:
    Pauschal Invoice page
    Rechnungsanlage
    To differentiate between (1) and (2) we use the field VBAK-KVGR1
    If VBAK-KVGR1 = C01 à print (2) Pauschal final invoice (meaning the Pauschal Invoice page and the Rechnungsanlage)
    If ELSE à print (1) normal invoice page (meaning normal invoice page, overview sheet and Rechnungsanlage)
    Above is my requirement i have one output type ZDE6 so how can i develop above requirement .
    Pls guide me how to process .

    did u mean its possible only one smartform. I am using only one billing type for all smartforms but when vbak-kvgr1 = co1 here pauschal invoice and rechnungsalang invoice will desplay.
    in normal invoice i have to display overview layout and rechnungsalang layout including normal invoice.
    Finally i am asking i required to develop four smartforms for this development.
    if i develop four smartforms how to assign all , because all are using same billing type .
    Pls suggest me the same.

  • Form Printing Using Output Type

    Hi,
    I have a requirement on authorization consideration, it says:
    Set user parameter NDR =X to Indicates that the output determination function will be activated. In this case, the system checks whether output is to be generated.
    Where can I see this?

    Hi,
    1. Run transaction SU01
    2. Enter <user name> => EDIT
    3. Go to tab 'Parameters'
    4. Select parameter ID = 'NDR' and enter value 'X'
    5. Save
    Done

  • Invoice output type getting triggered after setting SY-SUBRC = 4 in routine

    Dear Friends,
    When ever invoice document is generated, if the invoice document is completed and if its accounting document is generated successfully, we need to trigger an output type for invoice ZRD0
    For this purpose, we have created a routine 902 in our system. If the required condition, mentioned above, fails then SY-SUBRC set as 4 else set as 0 to trigger the output type.
    Currently we are facing a problem, even after setting SY-SUBRC as 4 in routine 902, output type ZRD0 getting triggered.
    Please help me to fix this bug.
    Thanks a lot.
    Best regards,
    Amol Chaudhari.

    Hello Aditya,
    I have maintained same code in both routines 'kobed_902' and 'kobev_902'.
    Required code maintained in the routine,
    sy-subrc = 4.                          " Do not trigger output type
    * If the posting document is created or Billing document canceled    *
    * and if invoice document is Completely processed then the output    *
    * type ZRD0 is Triggered.                                            *
      IF komkbv3-uvall CA gc_c.   "Invoice document is complete or not
        IF komkbv3-rfbsk CA gc_ce.   "For VF01 and VF11
          sy-subrc = 0.
        ENDIF.
      ENDIF.
    We are getting this problem on production client and not able to generate the scenario on quality.
    The output type is actually an EDI output type which is generating an IDOC for the invoice.
    Thank you.
    Best regards,
    Amol Chaudhari.

  • Output type processing error for adobe forms

    We have created one output type in NACE transaction for Application V1(Sales) and attached the Adobe form to that output type. Whevener i am creating or saving a quotation / Sales order that output type is not processesed rather it is giving an Express document error that 'Update was terminated'.
    Please help me out to solve it.

    It is processed as there was a issue in the program.

  • Archiving option in output type

    Hello Gurus,
    I need information on wht exactly the archiving option in Output type will do. I have created a condition type to archive the document which has the storage mode as archive only.
    I can view the document in VF07 but cannot see the document from SARA transaction. Could you plz clear me on this.
    Thanks and Regards,
    Pavan P.

    Hi pavan
    Output determination
    What is output?
    Output is communication. When we create a transaction in sales & distribution, and save the transaction we may have to communicate to the concerned business partner about the transaction.
    Example;
    Customer--&#61664;Purchase Order-&#61664;VA01 (Create sales Order)-&#61664; save the sales order-&#61664; send the order confirmation to the customer
    Here the output is “ Order confirmation”
    This output is sent to business partner-&#61664;Customer-&#61664;Sold to Party
    Other Examples: Quotation, Invoice, Delivery note, Packing List
    Output determination happens through Condition Technique.
    Condition records are very important here. And these records contain answers to following questions.
    a)     What is the Output Type? Order confirmation or Invoice etc
    b)     Who is the recipient? A Sold-to-party or Payer etc.
    c)     What is the media? Take print out and send, or as email? Or Fax? Or EDI (Electronic data Interchange)
    d)     When output to be processed? Immediately when the transaction saved or scheduled to happen at particular Time etc
    e)     In which language the output to be prepared
    Customization:
    IMG—SD—Basic functions—Output Control
    Output Determination
    Output Determination using Condition technique
    Maintain Output Determination for Sales Documents
    Maintain output types
    SAP provides standard Output types for sales, shipping, transportation and billing
    Sales:
    AF00                    Inquiry
    AN00                    Quotation
    BA00                    Order
    RD03                    Cash sales invoice
    Each of this condition type has Repository data called Routines
    a)     Program---Program that reads data from tables (VBAK / many tables storing data pertaining header etc)
    b)     Form routine—Program used for creating layout
    c)     Form---Layout
    The Output type has an Access sequence
    Example: BA00 has access sequence 0010
    Access sequence uses sales document type as the field under table 7
    SAP provides standard Procedures, Copy the procedure and assign it to the Sales document Type
    Select maintain output determination procedure
    Position               V10000 (Order Confirmation)
    Select V10000 and Copy as
    ZV1000 Kirlosakr Order Confirmation
    Save
    Assign output determination Procedure
    Allocate Sales Document Header
    Position ZKOR
    Sales document Type               Procedure
    ZKOR                              ZV1000
    Save
    Now maintain Condition Records
    SAP menu—Logistics—Sales & Distribution—Master data-Output--sales document
    Create VV11
    Sales Doc=ZKOR
    Partner function=SP
    Media=1 Printout
    Date=4 immediately when saving transaction
    Lang=EN
    Now select Communication Tab
    Printer= A000 virtual Printer
    Save the Record
    Create an order and check the Order Confirmation
    Create VA01
    Save
    VA02-&#61664; sales document—issue output to
    Select BA00 and select Print review to see the Output
    Outputs for shipping processes customization carried out under Logistics Execution
    IMG Menu—Logistics execution—Shipping—Basic shipping Functions-Output Control-Output determination---
    Maintain output determination for outbound deliveries
    Std Delivery outputs
    LD00                    Delivery document
    PL00                    Packing List
    Follow the same procedure, like in sales, Copy the std Procedure and assign to respective documents like Delivery document etc
    Reward if useful to u

  • Purpose of Output types

    Hi!
    I am new to output types... what is the purpose of output types?
    For example, if we have a form SD_INVOICE_LIST, some Z program using this form and two output types: LR00 and RDES.
    What does it change if we use one output type or other output type?
    Where is defined which output type will be used?
    Will reward,
    M.

    Output type - interface between print program and sap standard transaction.
    print program calls form by using open_form function module.
    this output type will trigger application wise ( Example - LR00 output type,this one will trigger Vf21,Vf22,VF23 Transaction ).
    Just goto NACE Transaction ->select application V3 -> click on ouput type ->select LR00 output type ->click on processing routine.
    here you are able to see program and layout.

  • IDoc output type not getting configured in IDoc-File scenario

    Hello
    I am having IDoc to file scenario where I want to post Delivery Document to legacy system. For this I have configured following EDI configuration for Delivery through NACE transaction
    1] Created output type
    2] Created partner function as EDI LS for this output type
    3] Configured RSNASTED as Processing Routines for output type
    4] Included this output type in the Header output procedure
    5] Configured XI system as the partner in partner profile with appropriate Message control
    Still when I attempt to include this output type in the Delivery it gives me "Output for partner could not be configured". The detail message says "In Customizing, the 'CannotBeChanged' indicator has been set for output type".
    I checked in SPRO but could not find such flag.
    Does anyone had came across such output type configuration.
    Thanks in advance.
    I know this question might be not appropriate in XI forum as it comes under EDI but it has become necessary for XI profs -:)
    Regards
    Rajeev

    Hi,
    Please check the following
    1. Condition Table
    SPRO > Material Management> Purchasing -> Message -> Output Control->Condition Tables->Define Condition Table for Purchase Order
    Select:
    Purchasing Doc. Type,
    Purch. Organization,
    Vendor
    2. Access Sequences
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Access Sequences->Define Condition Table for Purchase Order
    3. Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define Message Type for Purchase Order
    Copy NEU to ZNEU or YNEU
    4. Message Determination Schemas
    4.1. Message Determination Schemas
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Maintain Message Determination Schema
    4.2. Assign Schema to Purchase Order
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Assign Schema to Purchase Order
    5. Partner Roles per Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control-> Partner Roles per Message Type ->Define Partner Role for Purchase Order
    6. Condition Record
    Navigation Path: SAP Menu-> Logistics -> Material Management -> Purchasing-> Master data->Messages-> Purchase Order-> MN04-> Create
    Now you create PO (ME21N) and save it. Go to ME22N and print the PO by giving output type ZNEU or YNEU.
    G.Ganesh Kumar

  • Output type not defaulting on PO?

    Hi,
    I am trying to get the NEU Output type (we use this output type used to send the PO to the vendor through email) to default onto the PO.
    I have maintained all relevent customization, and master data:
    1.     Output Type NEU defined with external send medium (5)
    2.     Communication strategy CS01 defined
    3.     Communication strategy assigned to output type NEU
    4.     Condition record maintained in MN04 for order type / porg / pgroup using medium 5 (external send)
    5.     E-mail address maintained in vendor master record
    6.     E-mail address maintained in my user master record
    When I create a PO, no output is automatically created.  If you check the output determination analysis, it actually finds the condition record, but does not generate the output for some reason.
    Diagnosis
    A valid output condition has been found for the application object.
    System response
    An output proposal is created.
    Procedure
    Execute function
    Any thoughts on why?
    Cheers,

    Hi MD Patel,
    I tried assigning a form to the output type, however this doesn't make a difference.
    The requirement I have here, is upon save of the PO, they want to send an internal email message to the PO creator / approver / requisition creator (ihat tells them the PO# that was created, vendor, the header details from the PO, etc.) WITHOUT the PDF PO form attachment.  The way I decided to implement this was to configure a new output type for simple mail, and configure it to default onto the PO messages screen (however the defaulting is  the piece that is not working).  I then plan to add some custom logic to determine the recipient list for the email and send the email (e.g. if this output type is defaulted on the PO messages screen, then obtain PO creator, approver and Requisition creator's email addresses, populate the communication tab of the output message with these email addresses, and then upon save of the PO, the message would be sent to the users). 
    When I look at the message type determination analysis in the PO messages screen, it finds the output condition record.
    Diagnosis
    A valid output condition has been found for the application object.
    System response
    An output proposal is created.
    Procedure
    Execute function
    However, there is also a message in the message determination analysis screen saying that there is no partner found for partner function MP
    Condition type  Message     Description
    ZEMA     539                         No partner was found for Partner function MP
    Could this be the cause?  In my condition record, I have specified the "Dummy recipient for output" as I obviously cannot set it to a certain email address as the recipient needs to be determined uniquely for each PO.
    Any thoughts?
    Cheers,

Maybe you are looking for