MM, Vendor block, FK08 + XK05

Hi,
I have a requirement to block a vendor, not only for payment (in FK08 tcode), but for purchasing as well (XK05 tcode).
I found a BTE event during Vendor save (xk1 / xk02). In my custom code there, I check if sensitive fields were changed (there is a flag for it), and in this time I would like to start a Workflow to be sent to the proper person to accept / deny the change.
In this code I would also run XK05 in the background (BAPI) to block the vendor for purchasing as well.
I have a question about authorizations, is it possible, that when Vendor is in the Workflow, transactions XK05 and FK08 are not possible to be run at all except the Workflow person?
I cannot find any user exit / BADI in FK08 ...
Thank you

try to enque vendor with fm ENQUEUE_E_TABLE for tables lfa1, lfb1 and lfm1
from WF-user
A.

Similar Messages

  • Fetch Vendor block/unblock date and time information in Transaction XK05

    Hi ,
    When user blocked to vendor using transaction XK05,This data stored in the table CDHDR (bloked Date and time).
    My quostion is how will we fetch the bloked DATE and TIME from CDHDR table( i mean which condition i need to fetch).
    This table have the blow key fileds .
    1)  OBJECTCLAS       Object class
    2)  OBJECTID             Object value
    3)  CHANGENR          Document change number 
    Could you please help us to resolve this.. << Please do not offer rewards >>
    Thanks
    Satya.
    Edited by: Rob Burbank on Jun 24, 2010 10:44 AM

    In Development, repeat the block process, then go find what you just put into table CDHDR with SE11 or 16...a little innovation and initiative often allows one to discover precisely what is needed, if you'll pardon an admonition from an old programmer )

  • Vendor block code for release order creation but no purchase order creation

    The client has a vendor block code which when applied to a vendor through vendor block screen should allow release order creations against existing contracts and ARC but it should not allow purchase order creation. However, it is allowing purchase order creation also. Can anyone tell how to achieve this selective treatment that allows RO creation against existing contracts and ARCs' but no PO creation.
    Are there any settings or configurations that have to be made in SPRO and other areas to achieve this.I would appreiate if anyone could give in a detailed and step wise solution.

    Hi
    Take out all the blocks on company code and purchasing organization in XK05.
    Only put block function as 01 (purchase order). It will not allow you to create purchase order but you can create contracts and release orders against contracts.
    Thanks
    Edited by: Praveen Raghavendra on Jan 8, 2009 2:30 PM

  • Vendors block list

    hi
    i need logic to develop vendors block list

    Hi,
      use the below code for vendor block list.
    REPORT ZMMUVEND NO STANDARD PAGE HEADING LINE-SIZE 70
    MESSAGE-ID ZM.
    **--  DATA DECLARATIONS
    DATA: V_PATH LIKE RLGRAP-FILENAME,
          V_MODE VALUE 'N'.
    **- INTERNAL TABLE DECLARATIONS
    DATA: BEGIN OF IT_DATA OCCURS 0,
          LIFNR(10),
          END OF IT_DATA.
    DATA: BEGIN OF BDCDATA OCCURS 0.
            INCLUDE STRUCTURE BDCDATA.
    DATA: END OF BDCDATA.
    DATA: BEGIN OF IT_OUTPUT OCCURS 0,
          LIFNR(10),
          V_TEXT(70),
          END OF IT_OUTPUT.
    **-- SELECTION-SCREEN
      SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
      PARAMETERS: P_PATH LIKE IBIPPARMS-PATH OBLIGATORY.
      SELECTION-SCREEN: END OF BLOCK B1.
      PARAMETERS: P_CHECK AS CHECKBOX.
    AT SELECTION-SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_PATH.
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                PROGRAM_NAME  = SYST-REPID
                DYNPRO_NUMBER = SYST-DYNNR
                FIELD_NAME    = 'P_PATH '
           IMPORTING
                FILE_NAME     = P_PATH.
    **-- START-OF-SELECTION.
    START-OF-SELECTION.
    **- Authorization Check
    AUTHORITY-CHECK OBJECT 'ZMMUVEND'
                ID 'ACTVT' FIELD '16'.
    IF SY-SUBRC NE 0 .
    MESSAGE E398(00) WITH TEXT-012.
    ENDIF.
    **- Read File
      PERFORM READ_DATA.
    IF P_CHECK IS INITIAL.
    **- Update the data
      PERFORM UPDATE_DATA.
    ENDIF.
    **-- TOP-OF-PAGE
    PERFORM WRITE_HEADER.
    **-- END-OF-SELECTION
    END-OF-SELECTION.
    IF  P_CHECK IS INITIAL.
    PERFORM WRITE_OUTPUT.
    ELSE.
    FORMAT COLOR COL_NORMAL ON.
    LOOP AT IT_DATA.
    WRITE:/1 '|',
           2 IT_DATA-LIFNR,
          14 '|',
          70 '|'.
    ENDLOOP.
    ULINE.
    ENDIF.
    *&      Form  READ_DATA
    FORM READ_DATA.
      CLEAR: V_PATH.
      MOVE P_PATH TO V_PATH.
      CALL FUNCTION 'WS_UPLOAD'
           EXPORTING
                FILENAME = V_PATH
                FILETYPE = 'DAT'
           TABLES
                DATA_TAB = IT_DATA.
      IF SY-SUBRC <> 0.
        MESSAGE E001 WITH TEXT-002.
      ENDIF.
    ENDFORM.
    *&      Form  UPDATE_DATA
    FORM UPDATE_DATA.
    LOOP AT IT_DATA.
    CLEAR: BDCDATA. REFRESH: BDCDATA.
    **- Block Vendors
    perform bdc_dynpro      using 'SAPMF02K' '0500'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-LIFNR'.
    perform bdc_field       using 'RF02K-LIFNR'
                                  IT_DATA-LIFNR.
    perform bdc_dynpro      using 'SAPMF02K' '0510'.
    perform bdc_field       using 'BDC_OKCODE'
                                  'UPDA'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-SPERM'.
    perform bdc_field       using 'LFA1-SPERR'
                                  'X'.
    perform bdc_field       using 'LFA1-SPERM'
                                  'X'.
    CALL TRANSACTION 'XK05' USING BDCDATA MODE V_MODE.
    CLEAR: IT_OUTPUT.
    IF SY-SUBRC = 0.
    MOVE IT_DATA-LIFNR TO IT_OUTPUT-LIFNR.
    MOVE TEXT-005 TO IT_OUTPUT-V_TEXT.
    ELSE.
    MOVE IT_DATA-LIFNR TO IT_OUTPUT-LIFNR.
    MOVE TEXT-006 TO IT_OUTPUT-V_TEXT.
    ENDIF.
    **- Vendor -  Mark for deletion
    CLEAR: BDCDATA. REFRESH: BDCDATA.
    perform bdc_dynpro      using 'SAPMF02K' '0500'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-LIFNR'.
    perform bdc_field       using 'RF02K-LIFNR'
                                IT_DATA-LIFNR.
    perform bdc_dynpro      using 'SAPMF02K' '0520'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-LOEVM'.
    perform bdc_field       using 'LFA1-LOEVM'
                                  'X'.
    perform bdc_dynpro      using 'SAPMF02K' '0520'.
    perform bdc_field       using 'BDC_OKCODE'
                                  'UPDA'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-LIFNR'.
    CALL TRANSACTION 'XK06' USING BDCDATA MODE V_MODE.
    IF SY-SUBRC = 0.
    CONCATENATE  IT_OUTPUT-V_TEXT TEXT-007 INTO IT_OUTPUT-V_TEXT.
    ELSE.
    CONCATENATE IT_OUTPUT-V_TEXT TEXT-008 INTO IT_OUTPUT-V_TEXT.
    ENDIF.
    APPEND IT_OUTPUT.
    ENDLOOP.
    ENDFORM.                    " UPDATE_DATA
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = PROGRAM.
      BDCDATA-DYNPRO   = DYNPRO.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
    ENDFORM.
    FORM BDC_FIELD USING FNAM FVAL.
      CLEAR BDCDATA.
      BDCDATA-FNAM = FNAM.
      BDCDATA-FVAL = FVAL.
      APPEND BDCDATA.
    ENDFORM.
    *&      Form  WRITE_OUTPUT
    FORM WRITE_OUTPUT.
    FORMAT COLOR COL_NORMAL ON.
    LOOP AT IT_OUTPUT.
    WRITE:/1 '|',
           2 IT_OUTPUT-LIFNR,
          14 '|',
          15 IT_OUTPUT-V_TEXT,
          70 '|'.
    ENDLOOP.
    ULINE.
    FORMAT COLOR OFF.
    ENDFORM.                    " WRITE_OUTPUT
    *&      Form  WRITE_HEADER
    FORM WRITE_HEADER.
    FORMAT COLOR COL_TOTAL ON.
    WRITE:/2 TEXT-009.
    FORMAT COLOR OFF.
    FORMAT COLOR COL_HEADING ON.
    ULINE.
    WRITE:/1 '|',
           2 TEXT-010,
          14 '|',
          15 TEXT-011,
          70 '|'.
    ULINE.
    ENDFORM.                    " WRITE_HEADER
    if this code is useful to u please reward points.
    Regards,
    Koti

  • Mass Vendor Block

    Hello experts
         XK05 is use for  vendor block one at a time. Is there any way we can block Mas vendor in one time?

    ok you are talking abbount account group, the forth field from top in XK01 transaction
    A block can be set at general level or for a spcific purchasing organisation.
    If you want set the block at general level, then you have to choose LFA1 table in XK99, for the purchasing org specific block you need to choose LFM1 table.
    Example for general level block:
    go XK99,
    select table LFA1 and execute.
    Then you come to the selection screen, which shows only the vendor number, but you can add many more fields as selection fields by clicking the button for selection fields below the selection.
    Select the fields of your choice  and copy.
    Then enter your selections and execute.
    you now get the found records with some columns. you probably will not directly see the field for blocking  there. Hence click the button "choose fields" and copy the field to the display.
    Now enter the new value above the list. then click the header of this field to select the filed as relevant to be changed.
    then click button change field values.
    Finally save.

  • Vendor block on goods receipt

    When trying to do a goods receipt, i get a vednor block error message. I have checked the vendor master.. there are no blocks and i also checked the MP02 to see if there were any QI blocks... none. I am thinking this is the  QI inf record...
    Where else colud I check for a vendor block.
    Thanks in advance

    thanks for the response.
    But here is the solution i found out. The po's were created on the MPN part numbers and the vendor in tcode MP02 for this part number was different from the vendor on the PO.
    I was checking the blocks on the vendor on the PO, it was the vendor on the MPN number that need to be blocked

  • Vendor Blocked for Local Purchase Organization

    Hi,
    I have checked the vendor details in SRM and ECC. The vendor is not locked in SRM & ECC, still the User is getting the Error message that Vendor Blocked for Local Purchase Organization.
    Please suggest.
    Regards,
    Lovkesh

    Hello,
    To prevent a shopping cart being created with blocked vendors, you shall
    make an implementation in BBP_DOC_CHECK_BADI. This badi is called for
    each refresh of ITS screen. Here
    Call FM BBP_ITEM_GETDETAIL by supplying IV_DOC_GUID
    The FM will return among others a table E_PARTNER.
    select  the corresponding partner related to E_PARTNER from table BUT000
    Check weather the BUT000-XBLCK and E_PARTNER are matching
    If yes, Fill ET_MESSAGES with an error message.
    I hope this information help.
    Thanks and regards,
    Gaurav

  • Vendor Blocks in SRM

    Hi Guru's.
    Please can someone explain what system changes we need to make so that a errror message is displayed during Cart creation to tell user that a Vendor is Blocked. The message only appears on the PO screen and it is our requirement to make the user aware during the Cart creation process.
    Our vendor blocks are maintained in R/3 and sync'ed across to SRM 5.0
    Please advise.
    Thank you.
    Viju

    Hi Viju,
    You can check the table BUT000. Here if the field XBLCK is set then that indicates that the vendor is blocked.
    Now use the BAdI BBP_DOC_CHECK_BADI to generate the error message when you are trying to create the Cart.
    Do the coding under the object type BUS2121.
    Thanks,
    Pradeep

  • Vendor block in SRM

    Dear experts,
    I currently do not have a system available, therefore I need an answer to a basic question:
    Which vendor blocks (Company code, Purchasing or both) do affect the visibility of the vendor in SRM in SRM 7.0 classic scenario?
    Appreciate your help.
    Cheers, T.

    Hello Toppika,
    Only vendor purchasing blocks (for all purchasing organizations or only selected purchasing organization) are relevant in SRM.
    No relation exist in SRM between supplier and company code (R/3 Posting block).
    Regards.
    Laurent.

  • Vendor blocking scenario in QIR-EWM Integration

    Hi ,
    We have the following scenario with QM and EWM Integration , So could you pleas let me know for any suggestions
    1. Create two materials for ex. 259 and 581 with same vendor with control key Z100
    2. Create a purchase order for both the materials 259 and 581  and create the inbound delivery for the same so that It passes to EWM…mean while the vendor loses license for one material i.e. 259
    3. Go to QI02 (T Code) change info record for 259 material and make it as total block
    4. Now the EWM shouldn’t post the document and it should give the error for quality
    5. Second material 581 should get posted without quality reasons
    Thanks
    Bala

    Sorry.. to the best of my knowledge, standard SAP checks on the vendor block ends at the PO creation and release.  You'll have to identify a user exit to check on the vendor block at GR in EWM.
    Craig

  • Vendor block list

    Hi,
    1. When new vendor transfer to GTS system, for SPL which scenario need to run A1 or B1,
    2. I want to get all vendor block list due to result of B1 scenario, it has to go User mail Id
    regards
    satish

    Hi Satish,
    When business partners are transferred to GTS, the first screen must be A1.  This can be configured to happen automatically or manually.  The system should not allow a B1 screening on "new" master data.
    Easiest way to get result you need in item 2 of your question is to execute the report "Display Audit Trail for Business Partners". Select "Check Scenario" = 'B1' and select a variable for "Outcome of System Check" that will show blocked partners.  When the report displays, you can export it in excel format.  If you want to automate that process and email it to someone, you can execute the report in a batch mode, then use the suggestion provided by Tobias with transaction SUGR.
    Cheers !
    -Greg

  • Vendor marked as purchasing Block after confirmation of Vendor through FK08

    Hi ,
    We  are having SRM 5.0 Add On System. While Creation of Vendor In ECC system it goes for Confirmation First.
    So in SRM Vendor Remains as Blocked for Purchasing in Table BBPM_BUT_FRG0061 as Vendor in ECC system also remains as blocked for Purchasing.
    Confirmation FK08 is done by different user. After Confirmation in ECC system vendor get unblocked for Purchasing but in SRM it remains as blocked for purchasing.
    So Purchasimg Blocked is not removed in SRM.
    If we are removing the block tick by Changing the Vendor(XK02)  then in SRM Vendor get unblocked automatically.
    Expecting reply at the earliest.
    Thanks & Best Regards,
    GK

    Hello GK,
    Behavior you describe is the standard one.
    FK08 is to confirm vendor modification regarding accounting data, that is at company level.
    So, purchasing organization data being not concidered, vendor is unblocked for posting (all companies or selected company) but not for purchasing.
    Regards.
    Laurent.

  • Vendor Blocked for posting

    Hi Freinds,
    Vendor exists in two company codes A and B.
    Vendor is blocked for posting only in Company A. But when try to clear open items in Company B via F-44, Error saying Vendor is blocked in company A.
    As we dont have any open items and in F-44 we entered company B, Why does system still cheks Blocking indicator for other company code?
    Thanks,
    Edited by: Balajiblessed on Feb 1, 2011 6:19 AM

    Hi,
    Use T.Code: FK05 / Xk05 and Give Vendor (dont give Comp Code) and press enter from next screen you De - select All Company Codes Check Box.
    Regards
    Viswa

  • Vendor Blocking - XK01

    Hi,
      We have the following workflow:
       1.  Vendor is created using XK01
       2.  Vendor is blocked for Selected Company Code(posting block) and Selected
            Purchasing Org. using a BADI.
       3.  Workflow is triggered (LFM1 object) and the vendor is to be unblocked by the approver.
       I have created a subtype for LFM1 object which calls the XK05 event so that the approver can unblock the vendor.
      The problem I am facing is that the company code is not part of the LFM1 object and so the approver is not getting the option of unblocking the vendor posting block.
       Appreciate anyone's response if they have faced a similar problem and if so how they were able to solve the same.  This is really urgent!!
    Thanks & Regards,
    Aravinda M.

    Hi,
    I do not have too much know-how in XK01 but,
    the problem that your new parameter is not filled as the standard does not fill it, you have to do it on your own, somewhere you have to give company code to your container:
    I think you have following options:
    1. SWE2 you add your paramater - here is the issue to find out which company code is involved, here is the question how you find the appopriate company code
    2. look for exit/badi/... to trigger your own event by filling the parameter
    You may look in XK01 for an exit/badi/BTE where you can trigger your workflow so that you fill the parameter -> this would be the easiest one.
    XK01 -> SAPMF02K -> if you look for OPEN_FI_PERFORM you will find 2 bte-s
    'OPEN_FI_PERFORM_00001421_E'
    'OPEN_FI_PERFORM_00001440_E'
    both of them include LFB1 and LVM1 -> LFB1 still includes company code what you need and LFM1 is the object...
    Here you set the container values so that you fill LFB1 + company code parameter then SWE_EVENT_CREATE (or SAP_WAPI...).
    Of course you need to check wheter your BTE really is called during your transaction.
    3. Modify standard:
    If you look at the note 134604 you find the place where event is created:
    include MF02KFMC and FORM CALL_SWE_EVENT_CREATE.
    Than click on where-used-list button you will get: SAPLWR11 and
    SAPMF02K for example in FORM WF_BLOCKED_PURCHASING_EBENE the system sets some container values in the following way:     
    SWC_SET_ELEMENT KRED_CONTAINER 'VendorSubRange'   
    "Name des Param. im Workflow XLFM2-LTSNR.
    here you can put your company code as well...
    Of course SAP does not recommend to modify standard...
    If I were you I would use solution 2.
    Regards
    Tibor

  • Vendors blocking

    I know this is a general question and not ABAP realted but I thought an ABAP'er is would be just as likely to know the answer.
    When creating cendors via a custom BDC, they all automatically block.  Is there a setting that can undo this or do I have to just add another step to my BDC to unblock them via XK05.

    hi Showthousand,
    I was searching for a customizing transaction which would automatically set vendors to blocked status, right after they are created, but I did not find. So I guess it is done through some customer development. Either you search for that and change it, or I think you have to create an unblock BDC through XK05.
    hope this helps
    ec

Maybe you are looking for

  • I have Photoshop elements 12 installed and Premiere elements 10 not yet installed

    Hallo, I have Photoshop elements 9 upgraded to photoshop elements 12. I also have a package of photoshop elements 10 with premiere elemnts 10 included. This package has not been used yet. As i now start filming, i would like to install premiere eleme

  • Appraisal Template catalog

    Hi all , There is custom appraisal template has been created and also SPRO configuration is also done , but i am unable to display that custome appraisal template over a Talent Assessment portal . what would be the problem . If any one came accross s

  • Adobe premiere pro cs4 capturing issue.

    The camera that I have is a sony hdv cam £1200, my pc is a quad core system with a firewire port on the back of the motherboard (new system).  My friend who used it previously used it on his apple mac and had no problems in capturing. This is the fir

  • Logging for remote dialup users

    We currently have a 3725 router that controls our remtoe dialup service. It is only used by a few remote users that do not have internet access. They currently authenticate via radius against our AD. Is there a way on the router to look at all incomi

  • 10.6.2 - Major issue with 8800gt

    Hi, I've got a Mac Pro Early 2008 with 8800gt. I just updated to 10.6.2 and I have been experiencing major issues with nvidia 8800gt: my mac don't boot. When I push the power button, nothing appears on my monitor and I can hear the 8800gt fan @ maxim