Calling output types from BAPI

Dear All,
I am creating PO using IDOC.
A function module is used for creating PO from IDOC.
The moment PO is created SO should also get created.For that i have used OUTPUT type and connected output type to
application EF.
can anybody guide me if routine for SO creation ie output type for SO will get triggered from BAPI/Function module for postiing PO application?
thanks.

Hello,
The PDF Files of the Output are stored onto the spool. To retrieve these documents you will need some custom development both on the Java and ABAP stack.
ABAP : Refer to this link: http://wiki.sdn.sap.com/wiki/display/ABAP/GettingSpoolRequestNumberfortheOutput+type
Java:
1. Put up a link on a JSP where you want to show the download option for the output type.
2. Develop custom action, bo, backend objects
3. Call a custom RFC in the SAP system from backend class which retrieves the PDF document based on the above link.
4. Return PDF doc back to Java as a byte stream.
5. Provide option to save/open  on the client.
Hope this helps.
Pradeep

Similar Messages

  • Triggering output type from VL02N

    Hi,
    I need to attach some kind of routine to VL02n.
    The requirement is that in VL02N, on goods issue, an output type is supposed to be triggered.
    Please suggest me as to how to trigger this output type on goods issue.
    The functionality is like this.......on triggering the output type, idocs are generated. SO i need to write a routine sort of from where i can trigger and then write the idoc related code

    Hi,
    just follow this link..it might be useful...
    [Automatic Output Type from VL01|http://wiki.sdn.sap.com/wiki/x/BY-jBw]
    Regards
    Kiran

  • Calling output type

    Hi All,
    Could you please help in an issue where i need to call output type by clicking on button in adobe form to show preview of form.
    Regards,
    Mohammed Quddus.

    Hi Shweta,
    A button on the Adobeform needs to be provided, which when pressed will call the default output type of the PO and show the preview.
    Regards,
    Mohammed Quddus.

  • Deleting completed output type from a PO

    How do you delete a completed output type from a PO?
    Thanks,
    John

    Cannot be done.  You have archive the PO itself.
    Albert

  • Copy output type from client 000?

    How can I copy output types from client 000?
    Sincerely,
    Ketan

    Hello Ketan
    What do you mean with output types??, is it a data element?, a parameter? Im lost!!
    Hope I can help you with any ideas....
    Bye
    Gabriel P-

  • How to retreive and display output list from BAPI

    Hello
    I am making an applcation using SUP 2.0, and this application make an user to get leave history using a Mobile System from SUP.
    I've created the MBO as Attributes using the BAPI: BAPI_LEAVE_HISTORY.
    This BAPI has some parameters IN and OUT.
    Input parameters are Employee Id and date.
    The parameter OUT is a List that retreives the employee leave history.
    Anyone has an Idea or example how to retreive the output from BAPI and displaying the output on a screen.
    Any tips or blogs that can help me?
    Thanks all!
    Satish

    Hi David Brandow,
    I have tried your solution where I just created a MBO for my 'operation' and I'm using sync parameters to execute the RFC.
    The problem I'm facing is, for example, if I create a record it gets saved in the MBO table and the record successfully gets created in SAP as well after a sync. But when I create another record and sync, the previously saved record in MBO table also gets executed so I'm getting duplicate entries in SAP.
    Have you or anyone faced this problem?
    Any response is appreciated. Please let me know if I'm not clear, I realized its a complicated scenario.
    Thanks,
    Sandeep

  • Calling a Report from Bapi

    Dear  all,
    I am trying to create a customer from external system through bapi. For this is i have to follow these steps.
    1)  I am trying to call a report from external system through bapi.
    2)  I want to pass data from bapi to a bdc program and run it to create a customer.
    3) After creating a customer I need to send the  ceated customer no again to the bapi from where i passed the data to bdc.
    is it possible .
    Give me a good idea on this how to work with it.
    Regards,
    Madhu.

    Hi Madhu,
    SAP has already given standard BAPI to create customer creation "BAPI_CUSTOMER_CREATEFROMDATA". So there is no need for you to create any thing new. Jut test this BAPI first whether this suit your requirement or not. If it satisfy your requirement then call it directly from external system. On how to call this BAPI or other BAPis searc google or SDn you will definetaly find something.
    second approach is if nothing works for you( No BAPI satisfy your requirement) then only go for BDC aapproach. To do that, create a RFC function module( BAPi and RFC FM are diff thing, they looks same  but they are not ). Inside your RFC FM directly write the BDC code to create customer.
    Regards
    Anurag

  • Create IDOC by output type from delivery

    Hello,
    I have an output type that comes out by a delivery, what I create this delivery from any plant
    beside a new one, the output is created and sent as it should be to the XI as an IDOC,
    But when I'm trying to do so from a new plant that was created here, this output is not created.
    Do anyone know if there is any link between an output type and a plant (werks) ?
    Thank you,
    Kind Regards,
    Amit Berku

    hi,
    >>>Do anyone know if there is any link between an output type and a plant (werks) ?
    I don't think so - as plant it always on line level in the delivery
    and access sequence usually works only on header fields
    but there might be a custom made requirement attached to your output type
    which checks the plant - this is for sure possible
    but it's pretty easy to check in TCODE NACE and access sequence can be checked
    from the delivery - header output tab
    Regards,
    Michal Krawczyk

  • Blocking Output types from Triggering.

    Client has a requirement that if overall credit status of delivery is 'B' ( Blocked ) then all output types Automatic or Manual associated with the delivery should be blocked.
    I added following lines of code in requirements for all output types associated with deliveries
      IF   KOMKBV2-CMGST CA 'B'.
        SY-SUBRC = 4.
        EXIT.
      ENDIF.
    But we are still able to attach output types to deliveries with credit status blocked, any pointers ?

    hi Saket,
    This can be the issue you are facing.
    you are exiting from the current event with the 'EXIT' statment, but the validation is not applicable in the subsequent event.
    in the subsequent event, may be 'END-OF-SELECTION',
    insert the following statement, as the first statement:
    CHECK NOT KOMKBV2-CMGST EQ 'B'.
    hope this helps

  • Change of Output type from WE01 to WE03

    Hi,
    I have assigned the GR with collective slip WE03,when I use Tcode MB90 i m not able to list all the material documents eventhough collective slip and print is active.I checked in MIGO transaction,output type was WE01.
    How to change the ouput type of already posted GR's  from WE01 to WE03.
    Pls advise
    Regards,
    Shrini

    MB02 select your mat document and click the message tab and maintian your out put type.
    If you want always this output type MN21 maintain the output type.
    NACE also assign your smartform to your output type.'
    Pls check it this will resolve your problem

  • 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

  • Error Message in calling output type

    Has anyone encountered an error " Processing routine ENTRY_TEST in program ZTEST does not exist" when calling an output type? The output type has already been configured and in the print program ZTEST, subroutine ENTRY_TEST is there.

    hi,
    Go to TCODE /nNACE
    if ur output type is related to order then choose V1 , billing V3
    choose  output types button in the application tool bar
    then choose the output type which u r using...
    in the left side u can see processing routines...
    double click that
    there u can give the program name which u want to call..
    Program           ZLS_TEST                                        
    FORM routine      ENTRY                                                                               
    then go to SE38
    ur logic should be within the form ENTRY...
    REPORT zls_proforma_invoice.
    INCLUDE rvadtabl.
    DATA: retcode   TYPE sy-subrc.         "Returncode
    FORM entry USING return_code type any us_screen type any."#EC CALLED
      CLEAR retcode.
        data: v_update(1) type c.
    clear v_update.
    ENDFORM
    Edited by: Sumi Vasu on May 14, 2008 8:49 AM

  • Need to trigger output type when BAPI is run

    I need to trigger an output type which generates an idoc when material group is updated using a BAPI.....Can anyone tell me is there a bapi which does this ?

    I just want to know whether there is any BAPI which triggers the output also when we make an update ?

  • Creating/Triggering Output Type from program

    Hi,
    When I am creating Inbound Delivery using VL31N tcode, an Output type associated with it triggers automatically.  But my problem is that I have stopped the triggering of Output type automatically while saving Inbound delivery. and want to create mannually through program.
    Is there any FM or any other way to do through program.
    best regards
    bobby

    Hi
    Below link is for your reference
    [create output type reference|http://www.interfax.net/en/help/sap_sd_mm_module.html]
    hope it will help you.
    Regards
    Natasha Garg
    Edited by: Natasha Garg on Feb 5, 2009 7:25 AM

  • Problem in getting Output Values from BAPI

    hi,
    When i call BAPI 'BAPI_REQUISITION_GETITEMS' with Input parmaters 'Material Number' like '1000' from xMII BLS.
    While executing from xacute query im not getting any output.
    Please suggest me how can achieve using this BAPI, what are all inputs to be passed?.
    Regards,
    Raj

    Hi Sachin,
    Thanks for your reply.
    not only OPEN_ITEMS and also need to add the following fields in BLS.
                                     ASSIGNED_ITEMS,
                                    CLOSED_ITEMS,
                                     DELETED_ITEMS,
                                    PARTIALLY_ORDERED_ITEMS,
                                     ONLY_NON_MATERIAL_ITEMS
    now its working fine.
    Thanks.

Maybe you are looking for

  • Error while loading transauction data

    Dear Masters While loading Transauction data, Im notb getting following error. In RSA3 data is there for corresponding datasource Could u please help me Request still running Diagnosis No errors could be found. The current process has probably not fi

  • Windows Folder icon instead of Officejet 6500a Plus E710n icon in Devices and Printers

    Can anyone help me to get the OfficeJet 6500a Plus e710n printer icon to display properly in Devices and Printers? I recently reinstalled Windows 8.1.  However, when I installed my printer, instead of the printer icon appearing in Devices and Printer

  • FCPX is doing funny things to PNGs with alpha channel.

    I am currently working on a video that requires lots of compositing using PNGs with transparency. Everything was fine, until I decided to render. Then this happened: Some of the PNGs turned into a bunch of pink blocks, as if the file were corrupted.

  • Ability to sort by image similarity.

    Ability to sort by actual image similarity.  This is the only way I can think of to identify duplicates in the catalog.  I know I have perhaps 5,000 dupplicate RAW images in my catalog and I can think of no other way to find them (so I can delete the

  • PDFs cause crash     (Finder, Mail, Safari)

    TrueType fonts (.ttf) used in InDesign documents can create PDFs that cause Mac OS X applications to crash. It seems that Finder, Mail, Safari etc. can't render inline preview images and crash Outline the fonts in your InDesign documents and that "sh