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

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

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

  • Output type mot triggered

    Hi,
    The process is that
    A sales orders are getting created with the batch job once the sales order has been generate a Output type is triggers
    and mail sents to customer about the order confirmation.
    The medium os output type is "Send external" and dispatch type is "3 - Send with application own transaction"
    Our problem is this output type has not getting triggered it in Yellow only.
    if we change the dispatch time form 3 to 4 - Send immidetiatly then its working fine.
    why this is happening?
    how to resolve this so that there will be smooth operation with dispatch time as 3?
    regards,
    anup

    See, you can process a message immediately by updating the application document or you can process it at a later time. For later processing you must use the report program RSNAST00 or a corresponding application function.
    Thus there are some individual possibilities are:
    Time 1: The message is processed through report program RSNAST00. This report program can be scheduled periodically or started manually.
    Time 2: As in time 1, but the message contains an earliest processing date and a requested processing time. The message is ignored by report program RSNAST00 before the requested date.
    Time 3: The message is selected and processed by application specific programs. Processing can take place online or in the background.
    Time 4: The message is processed when the application document is saved. No further processing of the message is necessary.
    So, check your communication method & transmission medium for dispatch time 3 for your requirement : A sales orders are getting created with the batch job once the sales order has been generate a Output type is triggers and mail sents to customer about the order confirmation. Check the output condition record maintained.
    Also you can use user exit MV45AFZZ for automatic generation of email.
    Hope this can assist you.
    Thanks & Regards
    JP

  • 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

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

  • Same output type getting triggered twice upon saving the document

    Dear SDNers,
    I have a shipment Document.
    Upon saving it the same Output type gets generated twice. ( in a gap of 1 second)
    Clarification needed:
    1. Please guide as to where i need to look for the error as to why same output is getting triggered twice  simultaneously( gap of 1 second).
    2. i have checked in the processing routine associated with it. Is it the right place?
    P.S. I had posted another similar thread. Closed it since i felt it lacked clarity.
    Regards,
    SuryaD.

    Hi,
    Fetch the data from Nast table for that document number
    Check the vstat  . if it is 0 then use the below function module.
    CALL FUNCTION 'RV_MESSAGE_SET_PROCESS_STATE'.
    Then it will update the existing single record for the first time .
    Next time on wards you will get the multiple records for te document in the Nast table.
    For that you need to change the VSTAT status as per the requirement.
    Hope this might solve your problem.
    With Regards,
    Sumodh.P

  • 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

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

  • 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

  • Output type not triggering

    Hi,
    I have maintained a condition record for the output type in my billing document. It should be triggered automatically.What are settings that I should check?
    NOTE:- I am using an already existing o/p type and o/p procedure.Only the differentiation factor this time is that the sales organization is different than the previous one.So, have maintained only the condition record for the new sales organization.
    After maintaining the condition record, the o/p type should get trigger automatically in my billing document which doesn't happen.Kindly throw some light on it.

    >
    Amit Yadav wrote:
    > Dear Christino,
    >
    > Check with Condition record in T. Code: VV31/ 32.
    >
    > Key-in your Sales Org and Billing Type
    >
    > Maintain row-entry as:
    >
    > Bill Type-----FunctionMedium--
    Date/time
    >
    > once maintained, click tab: Communicaion
    >
    > within this, Maintain Output device and check box: Print immediately (if, medium is 1).
    >
    > Best Regards,
    >
    > Amit
    Hi Christino,
    Along with Amit's points pls check that in further data whether option 4(Saving the applaication) is maintained or not.
    Regards,
    Mohan.

  • 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

  • Ability to block file types from websites

    Hi All,
    Seeming the knowledge base wasnt much help and I cant get through to support.
    I was hoping someone here could help.
    I am trying to create a policy which will block downloads only for webmail sites. I do not want any users able to download any attachments from webmail sites.
    Any help would be appreciated.

    Hi Josh,
    Thanks for the reply.
    Couldnt get hold of support as my S160 gives this error message
    The Critical message is:
    Internal SMTP giving up on message to [email protected] with subject 'IronPort S160 Support Request for ironport.domain.com.au [Ability to\n\tblock filer type downloads]': Unrecoverable error.
    Product: IronPort S160 Web Security Appliance
    Model: S160
    Version: 5.6.0-623
    Serial Number: ##
    Timestamp: 02 Apr 2009 16:56:55 +1100
    obviously I have removed my real domain name and serial number.
    Obviously email works as the unit itself was able to email me the error and I have checked the settings are correct.
    Can someone provide a link in the KB for how to setup a poicy to block all downloads from a web site.
    Thanks

  • Output type not triggered during Delivery Order - pls help

    Hi,
    Need some help.
    I'm trying to setup output determination for delivery. It's a new output type for delivery.
    There are some checking that I want to build in to determine whether the output type is to be generated. Therefore I have to make sure of requirement (routine). However, after putting in the configuration, coding the requirement and creating the condition record, the output type still cannot be generated. When I go to VL02N to check the Output Determination Analysis it says the requirement " " is not fulfilled. It's not even calling out the requirement number that I assigned in the access sequence.
    Any idea what could be wrong? 
    This is what I've done :
    1. Creating condition tables
    2. Creating access sequence & assigning the condition tables to the access sequence
    3. In the access sequence, assign requirement number 999. The "Exclusive" indicator is not ticked.
    4. Ensure that the requirement 999 is activated in tcode VOFM.
    5. Create output type, assign the access sequence to the condition type.
    6. Assign the condition type to the output determination procedure. Make sure the "Manual" checkbox is not ticked.
    7. Assign the delivery type to the output determination procedure.
    8. Create condition record. 
        Note : when i created the condition record, I am not able to assign a Partner Function (for eg. SH) to the record. However in the config for the output type I've already configured for that Partner Function "SH" to be allowed for that output type.
    Appreciate suggestions & feedback.
    Thanks
    Rgds,
    L

    Hi,
    When I go to VL02N to check the Output Determination Analysis it says the requirement " " is not fulfilled. It's not even calling out the requirement number that I assigned in the access sequence.
    This is because in requirement you put certain conditions should be fulfill then out put should trigered,
    Example - if you maintained condition in requirement that user must maintain loading point
    Now when creating delivery user not maintained loading point then output will not trigered, so user must maintain that then only it will trigered output.
    Same problem just now solved, check which data maintenance conditions in routine and try to maintain that.
    Kapil

Maybe you are looking for