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

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

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

  • To trigger output type

    Hi Experts,
    I have to trigger an output type upon PGI when an inbound IDOC changes the delivery.
    please guide me.
    Thanks,
    Nithya

    Hi,
    Had a similar issue a few weeks ago...IDOC does not seem to call MESSAGING FM in WS_DELIVERY_UPDATE.
    Might be worth taking a look at note 393096...
    Can you check the 'NoOutputDet' parameter in transaction VL10CUC to see what it is set to?
    Before I found this note I ended up writing a simple BDC that I called from the IDOC exits (starting new task) to simply wait 5 seconds then open the delivery in edit mode and then save. This obviously will trigger the output determination routines and trigger the print if it's applicable.
    Regards
    Stu.

  • Trigger output types

    Hi all,
    How to trigger delivery output types thru print program.
    I know there's a BAPI for this but dont know which one.

    Hi,
    By doing config in NACE for delivery output type u can use different o/p types for diff delivery types etc..
    but can trigger only one o/p type at a time which will in turn trigger its relevant print program & print sapscript/smartforms.
    Regards,
    Amit

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

  • 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

  • Trigger Output type upon releasing credit block

    Dear SD Gurus,
    I have a requirement, where the output type needs to be generated automatically, after releaing the credit block (via VKM1) is performed.
    Any tips will be appreciated.
    Thanks,
    Ced

    Hi,
    This requirment can be achieved via requirment in NACZ for the output determination procedure "V10000" and your condition type.
    Check the requirements "9" and "12".
    See the standard Output type "KRML" for reference.
    regards

  • Good receipts output type

    Hi,
    I am trying to trigger Output type for EDI to generate IDOC - while doing Good receipt against Purchase order.
    Steps followed to do this -
    Vendor Parnter functions maintained.
    Created a PO.
    NACE for Application 'ME' - Condition record maintained for the Partner which I am using.
    WE20 Partner Profile is maintained with properly port and RFC destination.
    MIGO - Enter the PO number
    Checking the box - 'Print via output control' in the header - with 'Collective Slip'
    After executing above steps once I save the GR, the message Output type give me an error - 'Document is not valid for this IDOC'
    I am just confused that IDOC is not yet created then also the system gives then error.
    Although my aim is generate the IDOC for this GR.
    Please help me rectifying the issue.
    Thanks much
    SV

    Your process steps are correct.Are you able to post the document ?.If yes then it seems what you are using Idoc messge is incorrect.Could you please tell me what is the message type is are you using to generate Idoc.
    I hope you are able to post the document in this case just debug why system is throwing error.

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

  • 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 is generating for each spilt batch in the delivery

    Hi All,
    We are using Z output type for COA - EDI processing which uses standard program RSNASTED. I observed that  output type is triggered for each individual batch in the delivery . I want to know how can I restrict to trigger output type only for item instead of each barches. Can I get some solution in the output type configuration (NACE) to trigger output type for item level.
    Regards,
    Uday

    Udaya,
    I got the fix. There was wrong output procedure maintained to the output type.
    What was the reason for different output behavior for output type ZXYZ?
    1.Output type-ZABC- Triggering for both item and batch
    10 - Main Material - 30 EA - ZTAN- contains output determination in V/73
    90001 - Batch-001 - 10 EA - ZBAT
    90002 - Batch-002 - 20 EA - ZBAT
    2.Output type-ZXYZ- Triggering only for Item
    10 - Main Material - 30 EA - ZTAN
    90001 - Batch-001 - 10 EA - ZBAT
    90002 - Batch-002 - 20 EA - ZBAT
    Thanks!

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

Maybe you are looking for

  • Songs will only play one at a time

    After updating iTunes, using the last update 7.6.2, it will only play one song at a time and stops. It will not play continuously through a playlist. Am I missing something in the setting? Any suggestions?

  • Ipod wont work at all, it wont charge, show up on itunes

    I allowed my friend to borrow my iPod touch 2g 8gb , and he reported it just shutdown unexpectedly in the middle of his use. So I got home, put it on charge, and restarted it, then left it to charge overnight *7pm-6am , and when I checked on it , it

  • How can I make a brush that starts and ends in a thin line?

    I am looking to make a brush that I can use for cartooning in CS6 that starts out thin, gets thicker with pressure (I have a cintiq), and ends in a thin line. Does anyone have the expertise to make one? Thank you.

  • Displaying a total sum value in the af:table - footer

    Hello everyone, I have seen various threads on how to calculate a summary column based on a af:column in an af:table. I would like the value of this column to be displayed in the af:table -> footer (right undernead the af:column) I'm having trouble p

  • ISE WLC Integration issues

    We are in the process of integrating ISE into our WLC and are planning on implementing HReap (Flexconnect) local switching.  We have setup the ISE server as a Radius entry in the WLC and added WLC to ISE, same shared secret.  We have a test SSID conf