Block Output Type in MB02

Hi,
In Material Document MB02, I have mvt types 503 & 505 and Output types ZGR2 for generating an IDOC.
My Requirement is
if Mvt type
  503 - Output type ZGR2 can be given in Material document Output screen( Through Message button) and while saving Idoc can be created.
  505 - if i enter Output type ZGR2 & while saving Idoc shouldn't be generated.
Analysed with UserExits and I think it cant be done .
Request your advice & Many Thanks.
Regards,
Anbalagan

Hi,
My query is that " the output type which is processing IDOC should not come automatically when material document is created during material movement for movement type 505.
Regards
Bapu

Similar Messages

  • 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

  • Blocking delivery output types

    Hi All,
    I am doing my coding in user exit MV50AFZ1 for checking transportation data for the line items in STO. If it is not maintained then we should block that delivery. For that we are changing likp-lifsk and xlikp-lifsk value to 01(Block). Now client has added some new functionality to this. Now he is able to issue the delivery output with output types. We should be able BLOCK this also. Any pointers to do this will be of great help. We tried changing value lips-kvgr1 and xlips-kvgr1 to NDO, But it is not working.
    Regards,
    Vinod.

    Hi,
    Create a VOFM requirements routine for the output..And then assign that VOFm routine to the output type in the output determination procedure..
    In that VOFM routine have the following code..
    SY-SUBRC = 0.   " Propose the output type.
    IF XLIKP-LIFSK = '01'.   " Don't propose the output type if the delivery block is set.
    SY-SUBRC = 4.
    ENDIF.
    ***If XLIKP-LIFSK is not available then try using
    KOMKBV2-LIFSK.
    Thanks
    Naren

  • 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

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

  • Output Type MLGR, 'Report Goods Receipt to Buyer' not proccessed correctly

    Hi
    We are using output type MLGR to send a doc 'Report Goods Receipt to Buyer' which is defined
    under->Output Types->Mail title and texts.
    Its 'Proccessing Routine' is: RSNASTSO
    Form Routine is: SAPOFFICE_AUFRUF
    All is well when we use MB02 MLGR,'Simple Mail',MP, UserName
    It sends the email to SAPConect.
    BUT the form comes with the definitions not with the actual values.
    Like so:
    INCLUDE MMIM_SE71_NEUER_EDITOR_MAIL2 OBJECT DOKU ID TX LANGUAGE EN
                                             $DATE$, $TIME$
    $SGF$ oder $SGH$ $EKKO-ERNAM$ !
    A goods receipt for your purchase order $MSEG-EBELN$
    item $MSEG-EBELP$ has just been entered.
    Material:           $MSEG-MATNR$ $EKPO-TXZ01$
    Quantity delivered: $MSEG-ERFMG$
    Vendor:             $MSEG-LIFNR$, $AM07M-NAME1$
    Posting date:       $MKPF-BLDAT$
    $MFG$
        $MKPF-USNAM$
    Reg's
    Edan

    1. use variables '&' instead of '$'
    2. In transaction M706 for output type MLGR, make sure you have maintained the include by going in the long text, Choose Goto -> Change Editior, and maintain the form here :
    "A goods receipt for your purchase order &MSEG-EBELN&
    item &MSEG-EBELP& has just been entered.
    Material: &MSEG-MATNR& &EKPO-TXZ01&
    Quantity delivered: &MSEG-ERFMG&
    Vendor: &MSEG-LIFNR&, &AM07M-NAME1&
    Posting date: &MKPF-BLDAT&
    &MFG&
    &MKPF-USNAM&"
    Then in MN22, delete the earlier condition record and create a new condition record in MN21
    Here in the Communication in the MENU select
    Goto -> Execution Parameter. You reach the dialog box Change Execution Parameter. Here you maintain the following data for mail processing:
    Execution type        U   Transaction with memory
    Execution element     MB03
    Memory ID                  MBN
    Par name: RM07M-MBLNR      Parameter value: MSEG-EBELN
    Save
    Then create a PO (please remember to click on the GR message in the header), and create a GR against the PO.
    In SBWP, you will get the values and not definitions this time for the message created.

  • Output type issue

    Hello,
    I have created new Z* output type and done all confirguration related to this.
    When trying to save this output type for one of the material doc.  in transaction  MB02 - >  Details & Messages, am getting below message
    "Express Document "  Update was terminated " received from author "User id" "
    When checked the same in SM13 transaction, following error message found :
    Class : J3R_LEGAL_FORMS
    Number : 022
    " Number range error: number could not be generated for number range J3R FORMS (01). "
    Is this realted to number range issue ? If so, how can i resolve this ?
    Appreciate your help.
    Thanks
    Nag

    Hi,
    Please check with ABAP , seems output Form assignment error , not sure
    Thanks
    Diwakar

  • JJ Form - Output type issue

    Hi Friends,
    I've created a JJ Form(Smartform) and it's to be called by material document number thru tcode MB02 or MB90.
    For this, My MM consulatnat has also created a new output type in ME-inventory management with my calling print output program 'RLE_DELNOTE' and my form name.
    But when calling the output thru Tcode MB02/MB90, the Form is not coming out and it saying output could not be found....and also in log, it says,
    Note: Log not from current processing run
    Processing log for program RLE_DELNOTE routine ENTRY
    There were no deliveries that matched the criteria you specified.
    FYI...
    If i assign my inventroy management calling program, it says the output could not be found and Processing routine in program ZMMSS0002 does not exist.
    (my smartform working fine while executing thru FM)
    Pls advise me, where i did the mistake and how to assing my calling print program and form routine.
    thanks & regards
    sankar.

    Hi,
    The print program: RLE_DELNOTE which you are refering is the right one? In mysystem it is been assigned to different output types like LD00 etc, which all comes under application V2 which is related to Sales.
    Where as Mateial document does not comes under Sales.
    Please check with your functional consultant, whether your have assigne the correct program, under correct application type.
    Cheers,
    Ashok

  • Enter Output Type Each Type while Printing Invoice

    Dear All,
    Have searched in the forum already for a proper answer but could not find one.
    The issue is, while printing the invoice, the system is not automatically determining the output type even though all the output determination configurations have been made.
    I have to manually enter the output type by entering into the billing document header data.
    Kindly let me know if I have missed on any configuration during output determination.
    Thanks and Regards
    Adithya

    I hope you did what mentioned you.
    If you have doubt, whether the output type is getting determined properly or not.
    Use Tcode VF02.
    If Header Output Type -
    select Goto option from Menubar - Then Header - Choose Output.
    Accordingly, If the output type is Item related then
    select Goto option from Menubar - Then Item - Choose Output.
    Then Change: Output screen in your billing doc(VF02), in menubar select Goto - then choose Determin. Analysis.
    In output determination procedure in Analysis Output screen, track your desire output type and its determination status.
    Check routine for requirement against output type in:
    1. Output determination procedure
    2. In access sequence for the output type, check routine against access/condition table.
    Finally, accordinly determine output condition record by using TCode VV31 for the desired output type.
    Further, check routine for requirement like 62 is assigned against output type in:
    1. Output determination procedure
    2. In access sequence for the output type, check routine against access/condition table.
    Also, have look on one my recently discussed SD thread:
    - Re: Output to be blocked for Billing documents, if not released to Accounting
    Regards
    JP

  • Output type MLGR

    hello, friends.
    i have set up output type MLGR, medium 7 for sending via SAP mail to an internal user account, for goods receipt.
    i execute the transaction and manually include the output type during change mode MB02 for the material document.
    the system sends a message to the user account, but there are no text messages despite entering the text.  the system issues message nr VN333.
    how do i go about solving this?  or could anyone refer me to the proper thread?
    many thanks.

    hello, friend!  i figured it out. 
    for those who sent in their ideas, many thanks just the same.

  • Std output type for 311 movement type

    hi friends,
    I am very new in SAP MM.
    could you tell me what is the standard output type for taking print of 311 inventory document

    I created 311 document with MB1B.
    now i want to assign output type either while creating document or in MB02.I dont know what is the Output type i should assign.
    i tried WA01.WE01 but it doesnt show the FROM and TO storage location

  • How/ where to  check output type while saving sales order for confirmation

    Hi All,
    Could you anyone pls let me know How/ where to  check output type while saving sales order for confirmation.
    Present scenario : when the Sales Order is created the Order confirmation is sent irrespective of credit block of the sales order.
    Requirement : Order confirmation “ZA00” sent to the partner only for those Sales orders which does not have credit block and ZCLE sent to the partner if the order has credit block.
    Now i want to know where exactly to check the output types "ZA00" and 'ZCLE' based on the credit block to send the confirmation to partener.
    Quick help highly appreciated......
    Preetham

    Hi Santosh,
    Thanks for the info. But here in this case I have to send the confiramation based on credit limit check. If credit limit check exceeds "ZCLE' should go as confirmation else 'ZA00' should go as confirmation.
    Where can we check the credit limit whether it exceeded or not. My doubt is whether it is config issue or do we need to write code user exit or routine to send the specific output type for confirmation.
    Thanks & Regards,
    Preetham

  • Blocking output

    Hi,
    I got a requirement where I need to block sale order output if pricing is in incompletion log.
    We create sale order through IDOCs. We use outputs for sales order and the output medium is 'External send'. i.e. output sent to respective partner function's mail id in PDF format.
    And now the issue....When we have a pricing error on one of the sale order item, the order output is send as PDF without pricing in its item. So the customer is receiving PDF without prices. As the order is created through IDOC, we have no control on sale order output. Even if I create sale order manually without pricing and if I save it, it will allow me to save with pricing is in incompletion.
    Pls let me know is there any SAP standard solution, where I can put a routine for Output type in output determination to block processing of output of pricing is in incompletion log?
    Thanks in Advance...
    Srikky

    Hello,
    Go to
    IMG - Sales and Distribution - Basic Functions - Output Control - Output Determination - Output Determination Using the Condition Technique - Maintain Output Determination for Sales Documents - Maintain Output Determination Procedure
    Here select your Output Procedure & go to Control Data (Details).
    Here against your Output Type (Output Condition Type) assign requirement 20 - Order (Hdr) incompl. or requirement 21 - Order (Itm) incompl.
    I believe requitement 21 will be best suitable in your case.
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • Change "SAPScript" email subject/body for External Send(5) for output type?

    Hello,
    I'm emailing a SAPscript form (converted to PDF) generated via Transmission Medium 5 (External send) for output type (EK00) and need to change email's subject and body of email created by SAP code.  Any suggestions on how to change email's subject and body?
    Thanks,
    Billy

    Also if u want to add a body to the mail.  See the below form (sub routine) which needs to be mentioned in NACE.  Either u can keep this routine in the driver program or u can put in separate report program.  All thing u need to is see the below code and mention the name of the program and form name in nace.  Double click on output type in nace. u will find a tab stripped screen in right.  In the screen u can see the first tab as 'General data'  and at the bottom a block with title 'Replacement of text symbols' can be seen.  There u need to pass this program name and form name.
    Execute ur program and test the result.
    FORM text_symbol_replace TABLES pt_lines  STRUCTURE tline
                              USING ps_thead  STRUCTURE thead
                                    ps_nast   STRUCTURE nast.
      DATA:
        lv_kunnr LIKE vbak-kunnr,          " AN0465 Add AKKUMA1 02/19/07
        lv_new_cursor_column LIKE sy-tabix," Cursor column
        lv_new_cursor_line   LIKE sy-tabix," Cursor row
        lv_changed,                        " Indicator
        lv_matnr     LIKE vbap-matnr,
        lv_vkorg     LIKE vbak-vkorg,
        lv_vtweg     LIKE vbak-vtweg,
        lv_desc(20),
        lv_name      TYPE thead-tdname,    " Name
        lt_lines     LIKE tline OCCURS 0 WITH HEADER LINE,
        lv_currentprogram LIKE sy-repid.   " Program Name
      DATA :
        ps_lines LIKE tline.               " Structure
      CONSTANTS:
        lc_int TYPE nast-nacha VALUE '5',  " External Send
        lc_comma TYPE c VALUE ','.         " Comma Separater
      DATA: BEGIN OF ls_fname,
              dsnam TYPE nast-dsnam,       " Spool Name
              dsuf1 TYPE nast-dsuf1,       " Spool Suffix1
              dsuf2 TYPE nast-dsuf2,       " Spool Suffix 2
            END OF ls_fname.
      FIELD-SYMBOLS: <lfs_nast> TYPE vnast.
      IF ps_nast-kschl EQ gc_zj17.
    Fetching vbak-kunnr.
        SELECT SINGLE kunnr                " Customer
                      vkorg
                      vtweg
                 INTO (lv_kunnr,lv_vkorg,
                       lv_vtweg)
                 FROM vbak
                WHERE vbeln EQ ps_nast-objky.
        IF sy-subrc EQ 0.
          SELECT SINGLE matnr INTO lv_matnr
           FROM vbap
             WHERE vbeln EQ ps_nast-objky.
        ELSE.
          IMPORT xvbak-kunnr TO lv_kunnr FROM MEMORY ID 'YSOLDTO'.
          IMPORT xvbak-vkorg TO lv_vkorg FROM MEMORY ID 'YSALESORG'.
          IMPORT xvbak-vtweg TO lv_vtweg FROM MEMORY ID 'YDISTCH'.
          IMPORT xvbap-matnr TO lv_matnr FROM MEMORY ID 'YMATERIAL'.
        ENDIF.
        IF sy-subrc EQ 0.
          CONCATENATE lv_matnr lv_vkorg lv_vtweg
           INTO lv_name.
          CALL FUNCTION 'READ_TEXT'
               EXPORTING
                    id                      = '0001'
                    language                = ps_nast-spras
                    name                    = lv_name
                    object                  = 'MVKE'
               TABLES
                    lines                   = lt_lines
               EXCEPTIONS
                    id                      = 1
                    language                = 2
                    name                    = 3
                    not_found               = 4
                    object                  = 5
                    reference_check         = 6
                    wrong_access_to_archive = 7
                    OTHERS                  = 8.
          IF sy-subrc = 0.
            CLEAR lv_desc.
            LOOP AT lt_lines.
              CONCATENATE lv_desc lt_lines-tdline
                     INTO lv_desc
                SEPARATED BY space.
            ENDLOOP.                       " LOOP AT lt_desc
            CONDENSE lv_desc.
          ENDIF.
        ENDIF.                            " AN0465 Add AKKUMA1 02/26/07
    Fetch Region.
        SELECT SINGLE name1 ort01               " City
          INTO (gv_name1, gv_ort01)
          FROM kna1
          WHERE kunnr EQ lv_kunnr.
        IF sy-subrc EQ 0.
          CONDENSE gv_ort01.
          CONCATENATE ':OC:'
                      gv_name1
                      gv_ort01
                      lv_desc
                 INTO ps_lines-tdline SEPARATED BY space.
          LOOP AT pt_lines.
            pt_lines-tdline =  ps_lines-tdline.
            MODIFY pt_lines.
            CLEAR pt_lines.
          ENDLOOP.
        ENDIF.                             " IF ps_nast-kschl EQ gc_z..
      ENDIF.                               " AN0465 Add AKKUMA1 02/19/07
    IF NO TEXT IS PROVIDED READ TEXT USING HEADER INFO
      IF pt_lines[] IS INITIAL AND NOT ps_thead IS INITIAL.
        CALL FUNCTION 'READ_TEXT'
             EXPORTING
                  id       = ps_thead-tdid
                  language = ps_thead-tdspras
                  name     = ps_thead-tdname
                  object   = ps_thead-tdobject
             TABLES
                  lines    = pt_lines
             EXCEPTIONS
                  OTHERS   = 1.
        IF sy-subrc NE 0.
        ENDIF.                             " IF sy-subrc NE 0.
      ENDIF.                               " IF pt_lines[] IS INITIAL
    REPLACE VARIABLES USING DATA FROM PROGRAM   YVADOR01
      IF NOT pt_lines[] IS INITIAL.
        lv_currentprogram = 'SAPMV45A'.
        CALL FUNCTION 'TEXT_SYMBOL_REPLACE'
             EXPORTING
                  endline = sy-tabix
                  header  = ps_thead
                  program = lv_currentprogram
             IMPORTING
                  changed = lv_changed
             TABLES
                  lines   = pt_lines.
    Subrc Check not required.
        CALL FUNCTION 'FORMAT_TEXTLINES'
             IMPORTING
                  new_cursor_column = lv_new_cursor_column
                  new_cursor_line   = lv_new_cursor_line
             TABLES
                  lines             = pt_lines
             EXCEPTIONS
                  OTHERS            = 2.
        IF sy-subrc NE 0.
          EXIT.
        ENDIF.                             " IF sy-subrc NE 0.
      ENDIF.                               " IF NOT pt_lines[] IS INITIAL
    SPLIT ORDER NUMBER AND PUT THEM INTO SPOOL REQUEST NAME & SUFFIX FIELD
    SAP USES THESE FIELDS TO CONSTRUCT FILENAME
    FOR THE PDF ATTACHMENT IN EMAIL
      IF ps_nast-nacha EQ lc_int OR ps_nast-nacha = '2'.
        IF ps_nast-dsnam IS INITIAL AND ps_nast-dsuf1 IS INITIAL.
          ls_fname = ps_lines-tdline.
          ps_nast-dsnam = ls_fname-dsnam.
          ps_nast-dsuf1 = ls_fname-dsuf1.
          ps_nast-dsuf2 = ls_fname-dsuf2.
        ENDIF.                             " IF ps_nast-dsnam IS INITIAL...
      ENDIF.                               " IF ps_nast-nacha EQ lc_int
    ENDFORM.                               " TEXT_SYMBOL_REPLACE
    Venkat.

  • IDoc output type not getting configured in IDoc-File scenario

    Hello
    I am having IDoc to file scenario where I want to post Delivery Document to legacy system. For this I have configured following EDI configuration for Delivery through NACE transaction
    1] Created output type
    2] Created partner function as EDI LS for this output type
    3] Configured RSNASTED as Processing Routines for output type
    4] Included this output type in the Header output procedure
    5] Configured XI system as the partner in partner profile with appropriate Message control
    Still when I attempt to include this output type in the Delivery it gives me "Output for partner could not be configured". The detail message says "In Customizing, the 'CannotBeChanged' indicator has been set for output type".
    I checked in SPRO but could not find such flag.
    Does anyone had came across such output type configuration.
    Thanks in advance.
    I know this question might be not appropriate in XI forum as it comes under EDI but it has become necessary for XI profs -:)
    Regards
    Rajeev

    Hi,
    Please check the following
    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
    Copy NEU to ZNEU or YNEU
    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 ZNEU or YNEU.
    G.Ganesh Kumar

Maybe you are looking for

  • Send email with pre-calculated Excel

    Hello everybody. I'm trying to send an email with a pre-calculated Excel worksheet, generated by an Agent Reporting job. But, I don't know how to attach the last generated XLS file, using ABAP. We have BW vers. 3.1 so I can't use Information Broadcas

  • SQL 2008 R2 cluster installation failure - Failed to find shared disks

    Hi, The validation tests in the SQL 2008R2 cluster installation (running Windows 2008 R2) fails with the following error. The cluster has one root mount point with multiple mount points : "The cluster on this computer does not have a shared disk avai

  • Printing using FM REUSE_ALV_GRID_DISPLAY

    Hi experts, how to set the printing option using funtion module 'REUSE_ALV_GRID_DISPLAY'. i know we need to pass information to the structure ls_print.i am passing html_top_of_page,field catalog and sort table. 1.  i don't want to print the grid info

  • My new Nano won't show all the album artwork when playing

    When i'm listening to music on the nano, some album artworks will show and others won't. All my songs on iTunes have artwork so i don't understand why they won't show up on the iPod. This isn't a drastc problem, just really gay. If anyone knows how t

  • Trying to go all DRM free itunes plus...

    Hi, I am trying to upgrade my entire library, and have successfully upgraded thousands of songs so far. I have about 600 songs left, and most have yet to be updated, so that will wait. I do however have a chunk of files that are my wife's and I do no