IDOC triggerred by which Output type?

Hi Gurus,
My requirement is to add a new segment in ORDERS05 and populate the values int he Zsegment based on the output type selected.
I am using same user-exit to populate but i am not sure how to find the output type which user selected.
How to find the Output type in FM IDOC_OUTPUT_ORDERS?
Thanks GIRI

Hi Giri,
There is no direct provision to Read the Output type from the function module. But you can do this with the following Options.
1) Find user Exit in PO Transaction while issuing the output. Export the output type from there and import it in your IDOC function module and then do you logic.
2) Since you are going to Specify the Basic type and Extension in the partner profile you no need to worry about other partners. This extension will not trigger to the other partner and other output types.
Let me know if you need any further details.
Thanks,
Venkat

Similar Messages

  • Trigger Idoc by using the Output type in Z function module

    My requirement is when I run Z function module then  Idoc should be send which is configured in Output Type.
    Means when ever i run the Functional module that Output type should be triggered.?
    Does any one have solution??

    Hi,
    Remove the Material Class from Importing Tab and Place the same under Tables Parameter.
    Regards,
    SRinivas

  • 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

  • Mb1b trigger which output type ?

    Hi
    we do mb1b for 322 movement. I found it has wa01 and zwa1 which both for mb1b output type.
    When we do for plant A, it may use wa01, another use zwa1? Does this relate to omj4 setup?
      Or any place we could trigger different output by plant?
    Thanks
    Alice

    Hi experts,
      for wa01 and zwa1 ,these two output type we setup in mn21 same.
    type as wa and print version 1 , item document as 6 . Only in OMJ4
    we setup plant a for wa01 and plant b for zwa1.
    Does that mean when we do mb1b , for plant a ,it will trigger out wa01?
    Or where else we could setup plant with output type ?
    Thanks
    ALice

  • MM Purchase Order IDOC NEU output type configuration

    Hi All,
    after creation of Purchase Order in ME21N in ECC 6.0 server, i want an IDOC for Purchase order to be created...........
    i saw there is a standard output type NEU and it has EDI and Distribution Model as medium..........
    when i went to ME21N and specified in message button output type of NEU, then the PO which i created had a NEU in messages but on opening  a new session and running ME21N and creating a second PO, then in this PO there is no output type for NEU....
    So i want to know in SPRO where is the exact location which specifies which output type will be triggered for IDOC creation on PO creation in ECC for message control...............
    plz help guys...........

    Hi,
    If it configured for EDI and Distribution Model , now check condition record in T.code:MN06{ if you are geeting for one PO, you should get for other PO also)
    Also check the following confi. details for Output of Purchase Order
    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{NEU}
    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 ,,,use medium '6' 
    Now you create PO (ME21N) and save it and then release.
    Also check in NACE t.code for standard SAP environment (program 'SAPFM06P', FORM routine 'ENTRY_NEU' and form 'MEDRUCK') as the processing routines and for the output type for default values, a communication strategy needs to be maintained in the Customizing that supports . You can find the definition of the communication strategy in the Customizing via the following path: (SPRO -> IMG -> SAP Web Application Server -> Basic Services -> Message Control -> Define Communication Strategy).
    Regards,
    Biju K

  • Determining output type inside the IDOC processing FM

    Hi,
    When sales order is created, ZXXX is the output type triggered which invokes the function module (FM) IDOC_OUTPUT_ORDRSP to send the IDOC. My question is how do we know which output type got triggered the execution inside the FM?
    My requirement is to do some calculation only for ZAAA inside the FM IDOC_OUTPUT_ORDRSP but this same FM is triggered by many output types ZXXX, ZXYZ, ZMNO. So I want to know which output type triggered the FM. Hope I make it clear.
    Thanks,
    Sakthi.

    dossgs
    An import parameter of FM IDOC_OUTPUT_ORDRSP is the structure named OBJECT (like NAST).  OBJECT-KSCHL is the message type (output type).
    Regards,
    zKen

  • 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.

  • Creating IDOC by Output type

    Hi Xperts,
    I've experienced cases of creating delivery idoc when sale order is created. This creation of idoc is triggered when an output type for the SO is determined. I want to understand how the configuration of Output type determines the coresponding message type for creating the idoc. pls help and point to the related materials.
    thanks
    P.S

    via partner profiles

  • Output type Requirement triggering

    Hi,
    In my project I have a requirement to stop triggering of an output type if all the items in the sales order have reason for rejection set.
    I have done the condition check in a output requirement routine and if the condition fails then I set SY-SUBRC = 4.
    Problem 1:
    But when I am creating the sales order, the komkbv1 structure does not have the sales order no. (it has other fields) and kompbv1structure is not filled. Then how do I check if all the items have Reason for rejection set or not.
    Problem 2:
    For an existing sales order, I trigger the output type in Header-->Output... , this code is getting executed and sy-subrc is set to 4. But still the output is triggered.
    Please let me know how do I proceed.
    Code:
    w_vbeln = komkbv1-vbeln.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT         = w_vbeln
    IMPORTING
       OUTPUT        = w_vbeln .
    Atleast one item of the Sales Order does not have
    reason for rejection set.
    select single * from VBAP
    where vbeln = w_vbeln and
          ABGRU eq space.
    if sy-subrc ne 0.
       sy-subrc = 4.
       EXIT.
    endif.
    Thanks in advance,
    Vishnu Priya

    Hi,
    For the first problem,
      Check the standard structures available, but not sure.
    For the Second one,
      You routine include should be included in the standard include RV61BNNN
    for it to get triggered.
    Your routine will not get executed if your routine is not included in this standard include.
    Hope this helps.

  • IDOC Posting problem Through Billing Output Type

    Dear Friends,
    I have strange problem for IDOC posting through Billing Output Type.
    We are using same output type for Partial / Final settlements through Billing Output type.
    For Final settlements IDOC posted and generated account document is perfect, But for Partial settlement we are always getting message data is missing "No batch input data for screen SAPMF05A 0700 (Message no. 00 344)".
    I tried to reprocess same IDOC in foreground then we are getting message "Posting is only possible with a zero balance; correct document"
    (Message no. F5 060).
    Could you please suggest me
    Thanx  in Advance.

    solved

  • Query rgd. output types

    Hi,
    This is wrt output types. If we just select an output type from NACE for billing, and the processing routines for an output type. we can find different mediums, which one of these mediums will be used when the output type is triggered?

    All the output is controlled by document type and output types. Now you will assign an output determination procedure to a document type. In this procedure you will specify which output types need to be triggered when the document is created. Then you will also specify which condition tables are to be accessed in order to find out the defaults for the partner. Short answer is, if you don't do anything except saving the document, yes the default option will be triggered. If you didn't specify the default option(didn't maintain the condition records), still the output type will be triggered, but will not be transferred to any medium. In such cases you need to go to the document, and fill the missing information and save the document, then it will send the output to the medium specified.
    I can tell you exactly where to look for it once I get to my office, but meanwhile, you can search for these in IMG for config settings and in your billing document and NAST table for your output.
    Srinivas

  • MIRO - Invoice Output types (MR90)  Routines Based on Specific Suppliers

    Hi All,
    Requirement is to trigger Invoice outputs for a specific set of suppliers, while doing invoice verification in MIRO and the same need to be processed in MR90 for the output.
    Is there a routine which triggers a invoice output ( type REKL) only for specfic set of suppliers, for e,g if the suppliers are all ERS suppliers then it should trigger "REKl" else not?
    I am aware we have a routine 181 which can be modified but wanted to know from experts if this kind of requirements has a standard solution.
    Will appreciate any help regarding this.
    Note :Standard settings and customization have been done and triggering output is not an issue so please address the specific requiremennts.
    Regards
    Swagat Panda

    Would like to know more on how your are cancelling ERS invoices already settled? as i am not able to cancel them in MR8M is there any other ways around it?
    Also, Sub Cr we are using not for back dated price changes but since we are a service company we don't have concepts of MAP prices for the materials all are account assigned materials and get expensed and revaluation will just act as a statistical entry as there won't be stock at any point of time.
    The invoice reduction we are not using as these are all ERS invoices and if there is any amount to be debited to the supplier we come to know after a settlement run (MRRL) is over and we see a "visual" quality defect at a later point of time as i mentioned earlier we don't have stock.
    So this is one of the reason why we are debited the supplier at a later stage using Sub Cr and for this the vendor has to be sent a "notification" that we are going to debit him for a delivery ( account assigned ).
    But your suggestions were helpful in setting up business rules.
    Please be in touch.
    Regards
    Swagat Panda

  • Help in output type

    Hiee gurus,,
    I have created a billing output type in nace i.e. ZDSS,
    I have also assigned that output type for a billing document in VF02 but the output type is not getting triggered.
    Please help me regarding this issue.. what could be the reason behind that and please suggest a solution.
    I am new into abap.
    Thanx

    Keep a break point at below line of code in the program RSNAST00 and check which output type  is triggering
    perform (tnapr-ronam) in program (tnapr-pgnam) using returncode
                                                              us_screen
                                                              if found.

  • 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

  • OUTPUT types for F.27

    hi all,
    i have to maintain the company name for F.27 in form, can anyone please tell me the output types for the same? OR is there any method by which i can check that which output type is being called by seeing output?
    regards saurabh.
    Edited by: saurabh srivastava on Dec 22, 2008 7:14 AM

    Hello Saurabh,
    The form which gets triggered from F.27 is a correspondence form. Goto SPRO & search for "Define Form Names for Correspondence Print".
    Here you give the company code, the program name & the form name. You can consult your functional consultant for details. He can definitely help you.
    Hope this helps.
    BR,
    Suhas
    Edited by: Suhas Saha on Dec 22, 2008 7:48 AM

Maybe you are looking for

  • How do I use multiple cameras to live stream through FME?

    I am looking to live stream pool tournaments from multiple angles but don't know what software or hardware I might need. Anybody have any good how to advice or links they might share? I stream through Ustream.tv if that makes a difference. Should I l

  • Reg calling Transaction code in Webdynpro ABAP

    Hi All, Can I call Transaction code in Webdynpro ABAP Portal Application. If so, how can this be possible? Can anybody give me a lead? Thanks. Kumar Saurav.

  • Using Mac as Wireless Access point

    If i set up the MAC to be a Wireless Access point, via the Sharing option in System Preferences, it works fine if i am trying to connect a PC, other MAC or iPhone to the internet, but devices such as Nintendo DS or Kindle fail (these devices work OK

  • Blocked Invoice history reporting

    Hi Folks, We are currently in the process of moving to Central AP processing and a report on the history of the invoice blocking reasons is required. Our ABAPer is using the CDHDR and CDPOS as source but we have found that any invoice, manually block

  • Problem emptying Trash despite following every tip and trick I could find..

    Hi there, I have a small number of very large folders I can't delete from my Macbook, which I believe is caused by a problem with the external disk I originally copied them from. I had a problem with a disk because a colleague didn't eject it properl