Output Type to create FlatFile

Hi,
We have a scenario where we have to create flatfile as out. We have developed a program that can generate the required file. But this program has a selection screen that reauires the input as a PO.
Is it possible to link this program to an Output type, so that whenever the output type is determined this program is run and the required flat file is generated?
If yes, what are the changes We will have to do in the config and/or the ABAP code?
harehesh

Hi Ravi/RS,
First of all thanks for the reply.
Based on Ravi's suggestion we have introduced a form/ endform statement, also based on RS suggestion he have made sure we are not using any commit statement.
The functionality seems to be working but we are facing with an issue here. In the standard output types when the out is successgully transmitted the output type changes to green status. In out case, out program is creating a file but it is not changing the status of the output type to green , instead it becomes red.
Please help
harshesh

Similar Messages

  • Exit/badi to restrict output types while creating PO

    Hi,
    Please let me know how to suppress output types while creating/saving a PO. I need to find an exit/badi where I can get all the output types with status vstat = 0. Before saving the PO, I need to manipulate the nast records/output types, so that only PO will be processed successfully for those output types which I need.
    Please help me on this...
    Regards,
    Vikram.

    Hi Vikram,
    Output types are normally handled in configuration. In the configuration you can determine which output types are valid for the object in question and for the function (create or change).
    Also in the configuration you will be able to maintain requirements (coding), i.e. specifiy conditions when an output type should be surpressed or not ->Tx OMFT.
    Discuss this with your MM consultant.
    KInd regards,
    Robert

  • Delivery Output type newly created not triggering

    Hi,
    I have created 2 new output types i;e 1 for returns Order and one when we save the Delivery order. This i have copied the standard output type (BA00 & LD00).
    so now in returns order the output type i want to trigger automatically and print. But it is not happening. In VV11 i have defined for this condition as Print immediately and in customizing also i have maintained for sales organisation. But it is NOT triggering automatically when i save the return order. If i manually go and add this output then its working. So can you please tell me what needs to be done to trigger automatically.
    Secondly for Delivery i have 2 output i;e when i save the delivery without picking and all in VL01N, it should trigger 1 output and second is when i do the picking and PGI in VL02N. Both should trigger automatically.Now both my output is triggered only when i do PGI in VL02n i;e VL01N output is not triggered.
    Please help how can i do that.

    Hi,
    Go to T-code NACE
    Application area : V2-Shipping
    Now select the condition records and select your new output types.
    Take the key combination defined by you Viz. Sales org/Delivery Type (for example
    Enter Medium as '1'
            Date/Time as '4'
    Press the communication Tab and Tick Print immediatley and release after output Check Box.
    Also maintain the output device as LOCL
    I hope this will help you
    Br,
    Tushar

  • Output type not created for outbound delivery while using SHMNT05 idoc type

    Hi Experts,
    Please help me to solve the below issue.
    Problem:- I want to to generate an IDOC(using type SHPMNT06) once the PGI is done for an outbound delivery.
    Already it is working fine when used DESADV.DESADV01 or DESADV.DELVRY07. But now the output type is not getting created when used SHMNT.SHPMNT06. I have created a separate output type ZPJ7 just as a mirror copy of the earlier output type(ZPJ6) used for DESADV.DELVRY07.
    Question:- Is it possible to use idoc SHPMNT06 instead for DESADV01 or DELVRY07? If yes then what are steps to be followed?
    The reason why SHPMNT06 idoc is planned:- We have a scenario to send outbound delivery to 3rd party system via XI. If the outbound delivery is for National(Not for Export) and PGI is completed then send the idoc straight forward to XI otherwise DO NOT generate the idoc, but just create the delivery. Collect all the deliveries in a transport and send it in a shipment. The shipment details can be sent using SHPMNT idoc. Now from XI perspective, if we can utlitze the same SHPMNT idoc for the National delivery(1st case) then perhaps this will require less effort. Hence shipment idoc is required to be generated when the delivery is created and PGI is done.
    Also it would be great if you can advice some better way to solve above mentioned scenario.
    Many Thanks,
    Sanjay

    There could be several reasons. Go to the document and in the extras-output check output determination analysis in the processing log.
    If the output has been created successfully then you need to see your printer determination. Ask basis to check it up. If the problem is that even the print preview is not coming. Check your communication in the output analysis and ensure LOCL is selected. Any other printer will need to be configured.
    If thats done already then check whether you have maintianed the condition record.
    If that too is done then check whether your output type has been assigned to the output procedure and that the output type is listed in the procedure.
    regds
    Jude

  • 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

  • How do automate using two output types in an invoice based on plant

    Hello,
    Can you tell me how to configure automatically two output types for the same invoice.
    My client has business in USA and Europe.We are using only one sales organization. But we need to print invoices in letter size and A4 size depending on whether the invoice is created in europe or in USA. So , I have created two output types, one for letter size and one for A4 size. How do I configure so that if it is based in a plant/shipping point in Europe it is printed using the A4  output type else in letter size. Please suggest.
    SAPSDUSER

    I do not think you can use plant/shipping point in your access sequence for invoice output on header level, unless you add these fields to header level kommunication structure and populate these fields in userexit.
    You can either
    1. define requirement routines for your 2 output types which are mutually exclusive (if plant = A routine 1 returns sy-subrc = 0, routine 2 returns sy-subrc <>0, if plant = B routine 1 returns sy-subrc <>0, routine 2 returns sy-subrc = 0). You can assign requirements to output type either in output determination procedure OR in the access sequence. I would do it in output determination procedure. Check transactions NACO or NACE.
    OR
    2. add your fields to komkbv3 communication structure, populate your fields in thsi structure in userexits which are called from the function module komkbv3_fill and then you can either use then in the access sequence for your output types or create routines as in case 1. but the logic will be a simple check statement since KOMKBV3 is available in these routines.
    3. In fact you can use one output type and select your layout in the print program itself... which may be even easier for you. We use this approach to select proper layout for GEOs which may have several layouts depending on region for example... so the output type is defined per country, then layout is selected by print program. (tnapr-fonam = ..., nast-spras = proper language, set country '' to use proper decimal & date format...)
    Message was edited by:
            Siarhei Mahulenka

  • PO output issue. Create request is missing .

    Hi SRM gurus,
    We are  using SRM 4.0 with extended classic  with EBP SUS  scanario.
    There are some failures in XI  for  change PO request. The error  is as below :
    An error occured within an XI interface: Exception occurredA:BBP_PD:007 -No data found A:BBP_PD:017 -The document does not exist. Check entries E:BBP_PD:044 -Object 00000000000000000000000000000001 does not exist Programm: CX_BBP_BD_ERROR===============CP; Include: CX_BBP_BD_ERROR===============CM002; Line: 57.
    I have following questions :
    1) Original PO does not exists in SUS. Where I can see output option, user selected during  original PO creation ?
    Is there any standard table where I can see output options  during all PO versions. ( in version section it is  not displaying  output option for  earlier  versions.
    2)   is it possible to post change request before creating  create request ? if yes what to be done ?
    3)  How to replicate this PO to SUS. Do new PO is required to be created and existing PO's are required to  be shortclosed ?
    Kindly reply.  Thanks in advance.
    Regards,
    Sachin

    Murugan,
    1. For the client's user id, the PO output is not showing the company code data in the PO output form. But when we are trying to see the same thing in production in ME23N (we don't have access to make changes in production), we are getting the correct PO form that shows the company code address also.
    2. The company code 3278 and output types were created at the same time and moved to production.

  • Output type FAX and Email

    Hi,
    I hace newly created email output type and it is working fine, that is mail is sent to the vendor with attachment.
    Issue is when the vendor is having fax number and also email id in his master data, Though I am using the email message type, output type is created as FAX.
    Where is this priority set?
    Regards,
    Kumar

    It looks like you have just one message type and allow various ways of transmission
    In transaction OLME  under Messages > Output Control > Message Types > Define Message Types for purchase order 
    execute Maintain Message Types
    select your message type and go to the Default Values tab
    I think your Fax message is first
    the better approach would be to use different message type as explained in Strategy Procedure - Message Control

  • Defining output type to a transaction

    Hi friends,
    1) I have a transaction VF02.
    I have created two smartforms for this transaction.
    While issuing output in VF02. i can find only one output type RD00.
    i also want to include ZD00.
    2) is it possible to create our output types for any transaction. if yes , how to do it?
    thank you,
    kat.

    Hi,
    Is the out put types already available, if yes then just use VV31 to create new condition record for billing types and sales org.
    Alse you need to follow the below steps,
    SPRO-Sales & Distribution-> Basic Functions-> Output Control-> Output Determination-> Output Determination Using the Condition Technique-> Maintain Output Determination for Billing Documents-> Maintain Output Types, Maintain Access Sequences, Assign Output Types To Partner Functions, Maintain Output Determination Procedure, Assign Output Determination Procedures.
    Once it is done use VV31 to create condition record.
    Just an example below:
    Check this hope it helps, select the meduim 1 print instead of edi. hope it helps..STEP 1: Output Type Config
    Create Z810 output type with access sequence key Billing Type  Sales Org  Customer. Z810 is based on the SAP standard RD00.
    The following steps are executed in the IMG at the following path:Sales and Distribution -> Basic Functions -> Output Contrl -> Output Determination -> Output Determination Using the condition technique -> Maintain Output Determination for Billing Documents
    1.       Create Condition table (Tx: V/63)
    ·         Table 950
    ·         Description Bill.type / Sales org. / Bill to
    ·         Selected fields Billing type, Sales organization, Bill-to party
    2.       Maintain access sequence (V/54)
    ·         Access sequence ZEDI
    ·         Description Bill.type / Sales org. / Bill to
    ·         Access Table 950, Exclusive
    ·         Fields:
    o        FKART, KOMKBV3, FKART
    o        VKORG, KOMKBV3, VKORG
    o        KUNRE, KOMKBV3, KUNRE
    3.       Maintain output type (Tx: V/40)
    ·         Output type: Z810
    ·         Description: Invoice
    o        General data:
    §         Access sequence: ZEDI
    §         Check: Access to conditions
    o        Default Values:
    §         Time: 1
    §         Transmission medium: 6
    §         Partner function: BP
    ·         Processing routines:
    o        Medium: 6
    o        Program: RSNASTED
    o        Form routine: EDI_PROCESSING
    ·         Partner functions:
    o        Medium: 6
    o        Function: BP
    4.       Maintain Output Determination Procedure
    ·         Procedure: V10000
    ·         Control data: Insert step 11: Condition type: Z810 after RD00. No requirement
    5.       Assign output determination procedure (V/25)
    ·         Doc type: ZF1
    ·         Output procedure: V10000. Clear output type => Either RD00 or ZD00 can be used
    STEP 2: Condition Record (VV32)
    The table below shows the values for the condition records.
    ·         Part Fn: Partner function
    ·         Med: Transmission medium
    o        6 = EDI
    ·         Time
    o        Timing = 1 implies that a background job (running program RSNAST00) will process the output.
    o        Timing = 4 implies that the output will be created immediately on document save.
    Thanks & Regards,
    Nagaraj  Kalbavi

  • Standard driver programs,output type ,scripts,smartforms for SD reports

    hi experts,
                  Can any one list all the standard driver programs,output types ,scripts,smartforms for SD reports.
    mani

    Hi,
    Check this out
    NACE
    You can track the form and the print program used for that form
    The Tcode NACE is used to link the Standard SAP forms (SCRIPTFORM or SMARTFORM) or the customized form or the new form to its respective print programs. Also the output types, Form entry are linked with their forms and print programs. In short term, i can tell u that configuration or customization of forms to print programs, assigning output types, form entry to the forms are done using this Tcode.
    NACE is used to create output type while creating the output type you will mention forms, and driver program.
    that will be maintained in the table TNAPR.if you create the output type using NACE then it will be automatically visible in table NAST and TNAPR.
    so check in NAST, TNAPR table
    http://help.sap.com/saphelp_erp2005/helpdata/en/c8/1989fe43b111d1896f0000e8322d00/frameset.htm
    Condition records in NACE?
    and
    NACE is used for message control customizing.
    Take a look at the following link
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/198a1843b111d1896f0000e8322d00/frameset.htm
    and also
    NACE is used for message control customizing.
    Take a look at the following link
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/198a1843b111d1896f0000e8322d00/frameset.htm
    If it helps reward with points..

  • Output types

    i want to send purchase order data from sap toxi ..how to configure output types in nace transaction

    Hii Chandra
    NACE is used to create output type while creating the output type you will mention forms, and driver program.
    that will be maintained in the table TNAPR.if you create the output type using NACE then it will be automatically visible in table NAST and TNAPR.
    so check in NAST, TNAPR table
    Output types are added basically by BASIS people
    contact ur basis team
    Output types are represent how you want to output information. In SAP Script context it links the print program with SAP script. Output types are part of Output determination procedure which is linked to the application (e.g. Purchsing). Output types are also linked to Access sequence, which allows you to create condition records so that output types can be processed automatically.
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/19884743b111d1896f0000e8322d00/frameset.htm
    By using NACE transaction we will assign Sap script and driver program to O/P type in an aplication for different mediums (like print/fax , mail) .
    Example :
    NACE--> Application EA --> means for PO > check O/P "NEU" (SAP standard)> Medium "Print" --> You can find the Driver program and Sap script associated to it.
    If you have your Own o/p, Script and program. Then you will assign the by using T/code NACE. Then this will appear when you want to print PO or other.
    it is from the link
    Re: about NACE and output types
    also chk this links
    <b>SAP Script   -    NACE
    TNAPR vs NACE
    Condition records in NACE?
    Reward points if helpful
    Regards
    Naresh

  • Finding output type thru idoc

    hi
    for troubleshooting a scenario i want to find the output type. the only information i have is the idoc number and want to know the output type that created the idoc.
    thkx
    chaks

    check EDP12/EDP13 tables.

  • Output type triggering

    Hi All,
    I am setting output type to create idoc in the NACE transaction code.
    But how to call the output type, when the fields(Contract number, description, sold-to-party) are changing. I found user-exit (EXIT_SAPLV45W_001). In this user-exit, I wrote the condition saying, when those fields are changing. Later for calling the output type, i does't have code.
    Can anyone send me code, how to call (trigger) the output type.
    Thanks in advance

    Hi,
    The Output Type(Condition Type) for each Application Document(ex:SO,Contract,PO etc) is linked with Medium(1-Print, 6-EDI), Partner(Customer,Vendor) and Language.
    When this is configured it will create a record in NAST Table.
    Further You will assign this Output Type to a Triggering Form/Program in NACE transaction.(ex:RSNASTED or RSNAST00 program).
    Hope this is useful to you.
    Regards,
    Anji

  • Production Order   : OUTPUT Type Configuration for Production Order  as EDI

    Dear SDN All ,
      OUTPUT Type Configuration for Production Order.
    <b>Doubt in third Point</b>
    We have found the IDoc " LOIPRO01 " for Production Order
    (Please confirm that this IDoc can be used for outbound IDoc for Production Order)
    And foloowing
    <b>1. Defining the Output Type for Particular Application.
       T-Code: “NACE”</b>
      A. Output type have created upder application "ME" description : "Inventory Management"
      B.  " ZEDI "  created for getting output as EDI type
         ZEDI is copied from "WF01" output type. and
         Transmision mediam as "EDI"          
         Program : RSNASTED
         Form Routine :  EDI_PROCESSING
              (Please confirm is this for IDoc creation)
    <b>2. Partner profile creation:</b>
      A. Partner profile created under logical system and
      B. and In outbound parameter declared as "LOIPRO"(This is for sending the IDoc "LOIPRO01" to XI system).
    <b>3. Customization for output type for Proction Order -- (For CO02,CO08)</b>   ---
       A. But only one functional customization is remaining to do, for getting the IDoc while saving the Production Order in T-Code "CO02" and "CO08"
            <i>For Example:
                in sales order transaction va02 (in DBI 450 client) and select any Sales order.
                & select following menu path.
                 Extras --- > Output -
    > Header -
    > output
               Here we can set our output type "that U defined in NACE Transaction-Code"</i>
    <b> Like the same way I want to set output type  for CO02, CO08 transaction.</b>
    But I couldn't find the menu Item in Co02 and Co08 for setting the output.(like VA03)
    Please help me out for setting the output type for Production Order Creation.
    Thanks in advance,
    Dhanabal T
    Message was edited by: Dhanabal T

    Hello.
    I have a similar requirement. Did you guys find the solution?

  • Output Type in Purchase order.

    Hi Gurs,
    When purchase order creation  if the output type is created automatically the print immediately check box is Checked defaultly and when entered the output type manually the print immediately  check box is Unchecked. I need the checkbox should be checked by default at any case. Help me gurs..
    Regards
    Vadi

    Hi,
    After entering output type manually, just save the PO and now see the PO (ME23N) and see the check box will be selected.
    Also check in NACE t.code for your manual output type the dispatch time is set as 4 & also need to set dispatch time as 4 in condition record for your manual output type.
    Regards,
    Biju K

Maybe you are looking for