Output Determination for Credit Block/Release

Hi All,
I have a very strange problem with my Output Determination in SD.
I have created several of these in the past and this is really, really becoming frustrating now!
The scenario ...
We need a requirement to send a form via email to a customer if the credit is released or blocked in VA02. I have set this up in SPRO and VOFM (as I have said I did this before hence I  know it's correct thus far) and my code in the output determination is as follows:
FORM kobed_994.
  sy-subrc = 4.
* Not from the release or recheck transaction
  CHECK sy-tcode+1(2) NE 'KM'.
*can use komkbv1 for further info
  IF   komkbv1-cmgst EQ 'D' " released by credit responsible
  AND *komkbv1-cmgst NE 'D'.
    sy-subrc = 0.
  ELSE.
    sy-subrc = 4.
  ENDIF.
ENDFORM.
*       FORM KOBEV_994                                                *
FORM kobev_994.
  PERFORM kobed_994.
ENDFORM.
However, even when Subrc is set to 4, the email is sent with the Form!! I am really frustrated at this and has gave me problems for a while ... I also have searched for similar scenario to no avail
We are running 4.6c if that helps

Also forgot to mention ... The routine does get run!

Similar Messages

  • Regarding work flow for credit block release in sales order

    Dear Experts,
    Kindly help me with work flow-
    my scenario is if customers credit limit of 5000$ exceeds in sales order it should be blocked and notification should go to authorize person through simple mail to release this block.
    for this i have done settings in out control i have used output type krml and determined partner as employee responsible to release block in customer master but mail is not triggered to authorized person for credit block and how i can create work flow for this so that authorized person should get notify for credit block as well he releases block also.
    Regards
    Supriya

    Dear supriyaparimal,
    Please find the below points to fix your issue.
    1. Configure the out put determination by using the condition type KRML.(Hope oyu have done it already).
    2.Maintain the condition records in VV11 for condition type "KRML"
    3.Then select the condition record and click the communication tab .
    4. If you want to give any information you can use "Note for recipient".
    5. If the information has to be sent to relevant person you recipient name in the recipient column.
    Save the documnet.
    If you raise the sales order and if it is blocked then system automatically send the information to respective person.
    You can get this in formation in ""SBWP" transaction code.
    Check the in box, the information what you have mentioned in the condition records will be appeared.
    Please let me know if you have any clarifications
    Thanks&Regards
    raghu.k

  • RFC/BAPI For Sales Order Credit Block Release like vkm3 (very urgent )!!

    hi experts,
    I need the RFC/BAPI For Sales Order Credit Block Release like vkm3 function ,please help
    thanks
    Godspeed

    hi
    can get the list of all the bapis..
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    Reward if USeful
    Thanx & regards.
    Naren..

  • Credit Block released Sales order report

    Hi Experts,
    My client is given few sales orders (around 4)no and requesting us, to prepare the credit block released sales orders report (include released person user ID).
    *.No change logs is existing for all sales order and deliveries.
    For above requirement I am using CDHDR table data but I am not getting credit block released sales order report.
    Below fields I am using in CDHDR Table.
    Change doc.Object (objectclas) : VERKBELEG
    Document No (CHANGENR): Sales order no XXXXXXX
    Transaction no (TCODE) : VKM1,VKM2,VKM3
    Date(UDATE) : 25.09.2011 to 09.11.2011
    Experts, Can you please help me out for this.
    Thanking you!!!!
    Regards,
    Vijaykumar Kola
    *.I'm already aware of this is a new development.

    Try this, simple report... Here we check the new value of credit  status field VBUK-CMGST and if it is 'D' we know that someone used VKM* transaction to release the document. Also you need to format the sales order number with leading zeros so it occupies all 10 digits and pass it to CDHDR-OBJECTID field (and not CHANGENR field). In the below code I am using select option for sales order number, so I know it will be formatted with leading zeros and so select on CDHDR will be successful.
    *& Report  ZTV_TEST
    REPORT  ztv_test.
    TABLES: vbak, cdhdr.
    SELECT-OPTIONS: s_saldoc FOR vbak-vbeln OBLIGATORY,
                    s_udate FOR cdhdr-udate.
    RANGES: r_objid FOR cdhdr-objectclas.
    DATA: ls_cdhdr TYPE cdhdr,
          ls_cdpos TYPE cdpos.
    IF NOT s_saldoc IS INITIAL.
      LOOP AT s_saldoc.
        MOVE-CORRESPONDING s_saldoc TO r_objid.
        CONDENSE: r_objid-high, r_objid-low.
        APPEND r_objid.
      ENDLOOP.
    ENDIF.
    CHECK NOT r_objid[] IS INITIAL.
    SELECT *
      INTO ls_cdhdr
      FROM cdhdr
            WHERE objectclas = 'VERKBELEG' AND
                  objectid IN r_objid AND
                  udate IN s_udate AND
                  tcode LIKE 'VKM%'.
      SELECT SINGLE *
        INTO ls_cdpos
        FROM cdpos
          WHERE objectclas = ls_cdhdr-objectclas AND
                objectid = ls_cdhdr-objectid AND
                changenr = ls_cdhdr-changenr AND
                tabname = 'VBUK' AND
                fname = 'CMGST' AND
                value_new = 'D'.
      IF sy-subrc = 0.
        WRITE:/ ls_cdhdr-objectid(10), ls_cdhdr-username,
                ls_cdhdr-udate, ls_cdhdr-utime.
      ENDIF.
    ENDSELECT.

  • Output type for credit note

    Hi Gurus
    Can any one explain me to configure the output type for credit note
    Explain with the steps 
    Thanks in advance
    Regards
    Ramesh

    Hi
    SPRO-IMG-Sales and Distribution-Basic Functions-Output Control-Output Determination-Output Determination Using the Condition Technique-->Maintain Output Determination for Billing Documents
    -Maintain Condition Tables -Maintain Output Types -Maintain Access Sequences -Assign Output Types To Partner Functions -Maintain Output Determination Procedure
    Hope this will work.
    Hari
    Edited by: hari mukku on Apr 15, 2009 4:27 PM

  • Output determination for P45 form...

    I had a quick look at OSS 1230107 in regards to the new P45 A4 form. All seems to have been installed and is working, although all three pages print to the same printer tray at the moment.
    I have made a copy of sapscript HR_GB_P45_A4_D (ZHR_GB_P45_A4_D) and have added the appropriate tray information for each of the three pages. However, I am familiar with output determination for SD/MM but have no idea where I can substitute SAP's form for my Z form?.
    Jas

    Subject: Re: Output determination for P45 form...
    Message: We know have everything printing, however, neither of the new SAP supplied P45 forms align correctly, they are both around 5 or 6 mm out, especially when printing on the HMRC pre-printed stationary. The form which prints the boxes etc. onto plain paper (HR_GB_P45_A4) seems to miss the heading off, "P45 Part 1A",  for example, it's almost as though it has printed off the top of paper with the last 1mm of the heading showing. The form for pre-printed stationary is exaxtly the same with all fields about 5 or 6 mm out, vertically.
    We have a Lexmark 630 and our basis team have checked that we have the right driver for it. We also have am HP laserjet as well, but that behaves exactly the same.
    Has anyone encountered this problem before?.
    At first I thought it may be because the printer itself is configured for Letter rather than A4, but I've checked the front panel menu of the printer and it's set to use A4.
    I know that I can correct this problem bu changing every field for all three pages, but should I have to modifiy this. Does anyone know if SAP have released a fix for this?.
    Jas
    Hi Jas,
    Yes we have faced this problem before, now I am not sure what has been done in the system to resolve it, but my Basis Consultant configured a separate Local printer in the system called ZP45 or something. It will work exactly like a local printer and print to the default printer assigned to the PC, but the alignment becomes spot on. Instead of choosing LOCAL, the user selects ZP45 when running the P45 program. We did not need to do anything to the sapscript form itself.
    Hope this helps.
    Edited by: Harish Krishnan on May 19, 2009 9:48 AM

  • How to restrict/hide  the CREDIT BLOCK RELEASE LINK AT ITEM LEVEL of Servic

    Hi,
    We are using CRM2007 Stack 4.
    In WEB UI Change Service Order  screen for a credit service order which
    is blocked for credit, at item level a link is available for release of
    credit block. This link is currently accessible by all users.
    Please advise us how to prevent users accessing this link for order
    credit block release.
    Regards
    Achuthanandan

    I am looking for this answer as well. Has this been answered or resolved?
    Thank you,
    Carolyn

  • Sales order are going for credit block once the re-scheduling  is executed.

    Created a sales order where Qty is not confirmed order went for credit block (dynamic credit check block) and order has released through VKM3 and Executed the re-scheduling (V_V2) later qty is confirmed for the sales order but again the order went for credit block.
    Note: Configuration setup is already done in the Define Automatic Credit control
    Released documents are still unchecked.
    Deviation in % : 0
    Number of Days 60
    With the above configuration in Define Automatic Credit control once released order should not go for credit block till further  60 days once it is released.
    Can someone kindly share with me possibilities

    hi subramanyam,
    credit control will not accure, if you dont change anything intresting for the credit block.
    Intresting means :
        - change of price
        - change of quantity
        - change of deliverydate  ===>  in my company that was the problem.
    We did a useerexit - condition for new credit-block-checks.
    In this userexit, you can decide, in which scenario you will suspend a additional check by saving your document  for example while V_V2.
    loock in customizing for chredit check in the first fields in the left upper sinde of the display - i guess to remember .
    hans

  • Sales Order Confirmation when sales order goes for Credit Block

    want Sales Order to be Confirmed , i e Schedule line Confirmation , when sales order goes for Credit Block
    How i can Achieve this?
    Even when set for Sales Document typpe credit check as 'D' and credit group as ;03; ie at Goods Issue still order is not getting confirmed.

    I am not sure, why you want schedule line to be confirmed for credit blocked sales orders. Re-confirm with the client.
    There are controls when defining delivery blocks.
    Goto IMG - Log.Execution-Shipping - Deliveries- Define delivery blocks( check menu path in system, may not be same as shown here).
    Select 01- credit block " untick" from "Confirmation" Column.
    Now test with & see how ti works.
    Regards,
    Reazuddin MD

  • Output determination for PO

    Hi, I don't have much knowledge,waht are the steps and settings  required to maintain output determination for purchase order and material document.
    Thank you.

    Hi,
    PO Output
    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
    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.
    GR Output
    Output of GR
    After setting table, access sequence and output type for GR,run MB02 transaction, enter material document number. Double click one line item and select messages. Separate screen will be opened to configure outputs. Give the required fields and save the document. Now Run MB90, you can take printout. Output Type: WE03 or WE01 or WE02
    Regards,
    Biju K

  • Output determination for Customer Account group - A brain teaser

    At the place of configuration for Account groups, there is a field called Output Determination which has values like DB001, DB002 etc which says output for sold to, ship to and so on...
    What is the purpose of maintaining output determination procedure at the account group level?
    And also, where can i do the complete output determination for it? Like i could see Output determination for sales activities, sales documents, billing documents and shipping...But no where in the img screen, i found a place where i can configure these? Any ideas?

    In SAP, we send different output types(read documents) for Inquiries, quotations, orders etc. to relevant partners (read contact persons) sold-to party, ship-to party etc. thru various transmission mediums like ex. Print, Fax, e-mail etc.
    Output can be determined by using component output determination procedure. System should know from where the output is to be determined whether from IMG or from customer A/C group.  This is depended upon the control that we can activate or deactivate in "Check access for condition type" in definition of the output type (T.Code: NV03)
    Output Determination:
    IMG > Sales and Distribution > Basic Functions > Output Control > Output Determination  Output Determination Using the Condition Technique > Maintain Output Determination for Sales activities/ Sales Documents etc.
    Regards
    AK
    Reward points if helpful

  • Output determination for PO and MIGO

    HI,
    Please provide me complete config of output determination for PO and MIGO.
    PO print out.
    GR, GI,TP, cancellation and return   print out
    Uts

    Hi,
    Please go through these steps you can get the GRN Printout
    1. Maintain the Printer Name in SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Printer Setting
    Enter the local printer where you want to print your Goods posting document
    2. Ensure that in SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Item Print Indicator, 1 stands for Matl Doc print out
    3. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Print Version, maintain Print Version 2
    4. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Maintain Print Indicator for Goods Receipt/GI/Transfer Posting Documents
    Here for Particular mvt type 101,201,121,311 etcu2026 Maintain the Print item as 1--Material document printout
    5. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Output Determination->Maintain Output Types, for the Output types WE01, WE02 and WE03, ensure the following--
    Select the particular Output type then goto Details
    a. Default Values: Dispatch Time is 3 or 4 as per reqmt. and Transmission medium is 1
    b. Print Parameter is 7
    6. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Output Determination->Printer Det->Printer Determination by Plant/Str Loc, Maintain the Output device for all your Plants
    7. Go to MN21, for Tr Type WE, Print Version 3, maintain Print Item as 1.
    Now the settings are ready for Printing Material doc
    8. While doing MIGO, ensure that in General Tab, you get "3 Collective Slip" beside the Print Indicator and you tick mark the field.
    9. Now depending on the setting in 5a, the Matl doc is printed. If it is 3, you have to print it using MB90. If it is 4, it is printed immediately.

  • Output Determination for Sales Documents distributed by fax/email

    Hi Experts,
    Can some one guide me regarding what all need to be done to maintain output determination for Sales documents to be distributed by fax/email.
    Thanks in advance...
    Regards
    Vamsi

    Hi Vamsi,
    Please go through this link it will help you about Output process in SAP R/3 for sales documents and billing documents.
    http://help.sap.com/saphelp_47x200/helpdata/en/93/745017546011d1a7020000e829fd11/frameset.htm
    I hope it will help you,
    Regards,
    Murali.

  • Output determination for Reservations

    Hi,
    Is there any who is having any idea about the output determination for Reservation.
    Once the reservation is created through MRP, user gets the print out.
    Please help
    Sheetal

    you can list all reservations in MB25
    And display in MB23..
    But not possible to take print...take help from abap person..
    Regards
    Priyanka.P

  • Output determination for Invoice

    Hi
    Pls help me with the configuration details for setting message/output determination for Invoice.

    Hi Vijay,
    Please have a look at the link
    <a href="http://www.erpgenie.com/sap/sapedi/messagecontrol.htm">Invoice Message Control Configuration</a>
    Hope this Help you,
    Regards,
    Lijo Joseph

Maybe you are looking for