Saving output type through progaram

Hello,
I want to save an output type to some shipments as i have more than 10000 of them.
can i write a Zprogram using which i am  planning to attach all of them at one shot.
is it possible to write a program to saving output types .. if so .. can any one help me with the code?

any SAP standard links or any kind of help will do as i am in very much need of this

Similar Messages

  • Possible to trigger output type through Function module?

    Hi,
    Is it possible to trigger output type through Function modules or through some codings or any standard FM's?
    Regards
    Bala.

    You did not specify what area you need to retrigger an output type for, but here is a sample to retrigger a delivery output.
      CALL FUNCTION 'BAPI_LIKP_PROCESS_MSG_DIRECT'
        EXPORTING
      DYNAMICOUTPUTDEVICE       =
          processing                       = PROCESSING
      SORTMESSAGE               = 1
        TABLES
          deliverynumber                 = delnbrs
          outputtype                       = outputs
          messageprotocol              = bapimsgprot
          return                              = bapiret2.
    Thanks

  • Trigger special function output type through a custom program

    Hi,
    I have to trigger the special function output type from a custom program.
    This custom program contains a BAPI and the output parameters of this BAPI are required as input to the second BAPI which is contained in the form routine of the special function output type.
    I am not able to understand how to trigger the special function as I dont know how the nast-objky will be updated
    and how the BAPI parameters will be passed.
    Is this has to be done through a Idoc
    Can anyone guide me on how to handle the above functionality.

    Hello,
    I am not able to understand your requirement completely...
    agree with above post....addition-
    1. Transport medium would be '8 - Special Function' where one program would fire and that can be used for further processing.
    2. If condition record are maintained and it is matching with parameters then output type with all transport medium would be called
    Thanks

  • Do not trigger output type through BAPI

    I have a custom program which modifies purchase orders using the BAPI 'BAPI_PO_CHANGE'. However, when the program modifies the POs, it also triggers the associated output types in the POs.
    We want to modify the purchase orders using the custom program but do not want the output types to be triggered. Please let me know whether we have a feasible solution for this requirement.

    Hi Dawood,
    can you check the parameters
    WA_ITEM-NO_MORE_GR= 'X' and NO_MESSAGING = 'X'parameters.
    Regards,
    Kannan

  • Trigger Output Type through RFC

    My requirement is when RFC is called then based on the invoice number and Fax number this RFC should able to create invoice document in PDF format and sent a mail to particular fax number with PDF as attachement.....
    we have created output type to trigger the print program which call the smartform then then we convert smartform into PDF format and send a mail so by this we  are done with part to create the PDF and email it ...
    but the problem is i want to trigger output type  when RFC is called....so that it will called the print program and process goes on as planned..?
    Is there any FM to trigger O/p type so that i can call it in RFC
    or some other option???

    You did not specify what area you need to retrigger an output type for, but here is a sample to retrigger a delivery output.
      CALL FUNCTION 'BAPI_LIKP_PROCESS_MSG_DIRECT'
        EXPORTING
      DYNAMICOUTPUTDEVICE       =
          processing                       = PROCESSING
      SORTMESSAGE               = 1
        TABLES
          deliverynumber                 = delnbrs
          outputtype                       = outputs
          messageprotocol              = bapimsgprot
          return                              = bapiret2.
    Thanks

  • Update LIKP table while saving the output type in VT02N transaction

    Hi All,
    I have a requirement where i have to update Delivery Priority(LPRIO) field in LIKP table while saving the output type in VT02N transaction. I am not able to use the BAPI "BAPI_OUTB_DELIVERY_CHANGE" or FM "WS_DELIVERY_UPDATE" because, when we save the output type the programs that are configured in NACE are triggered in update mode and hence i will get a roll back error.
    Let me know other ways of updating the table at the time of saving output type for shipment transaction VT02N.

    This could be a result of one of the following reasons:
    1: Incorrect smart form/routine assigned in the output configuration (NACE)
    2: Serial number range of the delivery expired
    3: The default settings of the user (SU01) processing the delivery is missing the default printer name.
    Hope this is helpful
    Manish

  • Need input for error caused while trggering a output type

    I had created a custom program and assigned it to a custom output type. while processing this output type through VF01(billing doc) it is generating an error saying commit_in_posting. can anyone suggest in this regard........

    1Check for VF01 is there any control routine written for this output type which blocks it from triggering this output.
    2. are there any condition records maintained which are creating problems.
    3 check the out put poecedures aslo....

  • Output type configuration

    Hi,
    I have one doubt. What is the difference between configuring the output type through nace and spro. For few transactions, i see that the functional team add the custom driver program or the form name through NACE and for some cases through SPRO. Can you tell me the difference?
    Thanks.

    For purchase, Inventory & sales (Sales, Delivery & Billing) related transactions, we have to configure the output types through NACE.
    For PP, QM & FI related transactions we'll go with SPRO or specific transactions like, OPK8, FBZP etc..

  • Two printers need to be setup for same output type

    Dear Experts
    How do we create condition records for two different printers in VV61 with same output type and packing material type?
    Thanks in advance for your answers.
    Regards
    Bala

    3)
    The configuration helps to redetermine the printer.
    F1 help for the field:
    "Description of print profile
    By specifying a print profile, the printers for output processing are redetermined. You can, for example, assign the printers of a specific packing station to a print profile.
    Using the parameter "PPT", you can individually define the print profile in the user parameters."
    Please note that you also have to maintain the profile for each user.
    2)
    You have to make yourself familiar with SAP's condition technique.
    http://wiki.scn.sap.com/wiki/display/ERPLO/output+determination+using+condition+technique
    (You will need a condition table in which one key field is the plant and assign it to the output type through an access sequence)

  • Hi, plz help me how to assign my PO to output types

    plz help me how to assign my PO to output types through Nace t-code.what form routine?

    Murli,
    the settings in MN05 for PO.
    NACE is the Tcode used to link the Application type, Output Types and its processing Routines like ( Driver programs and attached Script forms or Smartforms).
    You should know the Application of a document first Like:
    for PO it is EF, for sales Doc's it is V1, for Delivery docs it is V2, for billing Doc's it is V3 etc.
    so first select the Application type (ex: EF) for PO and press OUtput types
    then a list will come in that you should know the related output type for PO.
    select any outtype and click on the processing Routines button on the left side
    it will display the Medium, Driver Program and the Script form or smartform related to that document..
    Reward points if it is helpful..
    Amit.

  • Mass update output type

    dear all,
    pls advice how to mass update the output type in sales order. thanks

    Dear jo jo,
    You need to maintain the condition records for the output type through TCode --> VV11, in case the order has already been created and the print is not coming then you need to manually go into every sales order (change mode) and set the record in Go To --> Output.
    Reward Points if it helps,
    Regards,
    N
    Edited by: Nitesh Nagpal on Apr 10, 2008 5:49 PM

  • Output type assign to VF02

    Hi All,
    I created Output type through NACE transaction.
    When i was trying to assign that in tranx VF02>billing #->enter->goto>header--->output.
    Here i was trying to assigning my output type.
    I am getting error that 'Output type is not defined'.
    But when I go to NACE tranx there it exists.
    please suggest what went wrong or am i missing some thing.
    Thanks in advance,
    Deepak.

    Hi deepak,
    After creating OUTPUT TYPE in NACE ,
    U have to assign the output type in SPRO transcation
    SPRO - > SD - BILLING -> detemine output type
    this is done by SD consultants.Please get their help.
    regards,
    Prabhu
    reward if it is helful

  • Error while triggering program through output type while saving invoice

    Hi,
    I have a scenario where in my Z program needs to be triggered when saving a invoice.
    For that we have attached out Z program to output type which gets picked while saving invoice.
    In the Z program we have written the entire code in Form Entry subroutine.
    In the Z program we have called a FM "SD_SALESDOCUMENT_CREATE", to create a sales order.
    After sales order is created we have used a Commit statement.
    If I run the Z program individually, Salesorder gets created perfectly.
    How ever as per scenario when trying to save the invoice, output type gets picked. But program doesn't get called.
    and when I go to the saved the invoice I get the following error immediately:
    "Error document - Update was terminated"
    I have found that the problem is with COMMIT statement through transaction SM13.
    Can anybody help me with this. I cannot save the sales order without COMMIT, so I have to use it.
    Thanks in Advance,
    Rohan.

    Hi Rohan,
    I have worked on almost similar kind of requirement as you. 
    "Error document - Update was terminated" is because saving of invoice is done in u201CUpdate Tasku201D. Again in that work process, FM also calls for update task, which is not allowed and give short dump.
    Here are two different approaches to cope up in this scenario.
    1.Call FM in NEW TASK.
    Calling Function module in new task will assign new work process and will use different update task.
    Use:
    CALL FUNCTION 'SD_SALESDOCUMENT_CREATE' STARTING NEW TASK 'task'
    This will not give update termination error.
    Call of FM in this way will work, but as this will be asynchronies call you will be not able to get status/message out of the FM call result.
    If capturing return message is mandatory, use below approach
    2, Process output type via Job
    Set output type, dispatch time u201CSend with periodically scheduled jobu201D in u201CDefault valueu201D tab.
    Run batch job for program u201CRSNAST00u201D with appropriate variant.
    Please let me know if you need any further details.
    Best Regards,
    Nisarg

  • Output type not getting saved in the PO

    Hello Team
    we are facing one issue where output type is not getting saved in the PO.
    we give one output type and than save it , after going back to the PO we see that it is not there.and no output issued
    the PO is released properly and there is no issue , any idea what could be the reason for it

    Hi,
    Check in SU3 t.code, did check box selected u201CDelete After Outputu201D in Spool Control segment in Default TAB
    Also check Partner Function VN maintained in Default values TAB in NACR--- > EF Application for your output type
    Cross check partners {VN, PI, GS) are assigned to your PO output type in Partner Roles per Message Type
    Regards,
    Biju K

  • Triggering output type when sales order is saved

    Hello all,
                I have a small question. Whenever I create a drop ship sales order it triggers a custom output type and prints the form by default even though this output type hasnt been saved in the sales order messages. Similarly from a drop ship PO when it is created with reference to the drop ship order and a requisition it tries to call this cusotm output type and prints the form.
    Please advice how to find the settings and make it not print this form.
    Thanks in advance.

    Hello,
             There are few other custom output types configured for a sales order. I wonder why it picks this particular output type and prints the form.
             If I uncheck 'Print Immediately' then would it stop from just printing or even calling the form too.
              Please advice if there might be any other config which tells to call this particular form whenever a drop ship sales order is created.

Maybe you are looking for