BDC for deleting vendors at plant level

Hi experts..
  I have query regarding BDC. Please read  below.
Go to  MK02 T-code , select valid combination of vendor and purchase organiation -> select 2 check boxes in general data
-> select 2 check boxes in purchase oraganization data -> press ' Enter ' -> again press ' Enter '-> again press 'Enter '-> select  ' Alternative Data ' in Tool bar -> There you will see all the plant descriptions belongs to vendor under purchase oraganization .
   Now i have to delete some  plants (  based on certain condition  )  here,this i can do by  selecting plant   and press delete line .
   This procedure i have to repeat many vendors. i wanted to implement this through BDC .
     My question is , through BDC how can i select some plant descriptions ( there in the last screen )  . Dynamically i have to select some plant descriptions .
   Thanks much !!!
    Radhika

Hello dear Srinivas,
I want to inform you that your question is not in the most appropriated spot for the experts. It is related to FI area but was posted in the logistic area.
Please close this thread and open a new one in the following spot (ERP FI)
-SAP ERP Financials
Best Regards,
Christian Rosa

Similar Messages

  • Help for bdc for transfer of asset plant wise stock transfer(urgent)

    hi all,
    if anyone has done BDC for this scenario ie.,
    bdc for transfer of asset plant wise stock transfer
    then plz share its code with me.and if someone has done any modification regarding this scenario then plz let me know that what modification he/she has carried out in this & share the code for the same.
    i will be grateful to u for this and promise that i will give points to all ur effort.
    Thanks & regards
    Sanjeev

    Hi Sanjeev,
    Do a recording for the transaction using SHDB. Once you are done with the recording save the recording into a zprogram. You have the code.
    Regards
    Arun

  • BDC for deleting delivery

    hi All,
       I am writing a BDC for removal of outbound delivery from manifest as
    **--Record the BDC for deleting deliveries from Manifest
            REFRESH bdcdata.
            CLEAR   bdcdata.
            REFRESH messtab.
            PERFORM bdc_dynpro      USING 'SAPMV56A' '1011'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'VTTK-TKNUM'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=MM_TKAL'.
            PERFORM bdc_field       USING 'VTTK-TKNUM'
                                           w_manifest.
            PERFORM bdc_dynpro      USING 'SAPMV56A' '1020'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=MM_UETP'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'VTTK-TDLNR'.
            CALL TRANSACTION 'VT02N' USING bdcdata
                                     MODE  ws_mode
                                     UPDATE ws_update
                                     MESSAGES INTO messtab.
    but if i run this the delivery is not getting deleted.
    Please help.....
    Thanks ,
    Ruchi Tiwari

    REFRESH bdcdata.
    CLEAR bdcdata.
    REFRESH messtab.
    PERFORM bdc_dynpro USING 'SAPMV56A' '1011'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'VTTK-TKNUM'.
    PERFORM bdc_field USING 'VTTK-TKNUM'
    w_manifest.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=MM_TKAL'.
    PERFORM bdc_dynpro USING 'SAPMV56A' '1020'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'VTTK-TDLNR'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=MM_UETP'.
    CALL TRANSACTION 'VT02N' USING bdcdata
    MODE ws_mode
    UPDATE ws_update
    MESSAGES INTO messtab.
    try this code

  • Want to restrict the vendor at plant level

    Hi Experts,
    As per standard SAP, once the vendor is extended to comapny code then buyer can place order in any plant of same company code. My client wants to restrict the use of vendor at plant and after some business approval, will allow to use the vendor for specifc that plant. Could you please help me, how can I acheive this ?
    Thanks in advance,
    Regards,
    Ajit

    There is no solution for you in standard you have to develop something yourself.
    It is even possible to create purchase orders before a company code view is created for a vendor master, hence it cannot be controlled via company code blocks. The block at company code will have an effect on goods receipt and invoice receipt, which is too late.
    Purchasing blocks can only be set at purchasing organisation level. Even you can create a vendor with a plant level , it is not possible to set a block at this level. If this purchasing organisation serves many plants then a block will affect all plants.
    only with a  purchasing organization specific responsible for a single  plant you can meet your requirement in standard with a procurement block at purchasing org level.

  • Vendor master plant level PI partner func. can't be defaulted on contract

    Hi Experts,
    I set up partner functions at plant level on a vendor master.  How do I make the PI function populated for the contract's invoice party field.  Contract is at plant level.
    Thanks a lot

    Hello Jürgen!
    Thanks!
    Do you know of any user exit which will help on this.
    Best Regards

  • BDC for ME22n vendor confirmation

    i am facing problem while doing BDC for ME22N . i am going for itemwise vendor confirmation.
    for first line item it is happening. but for 2nd line item it is not going.
    any help?
    this is my code. i guess some loop i have to add but where? can any body give idea?
    REPORT  ZMM_VC_UPLOAD.
    TABLES :  t100.
           Internal table declaration                                    *
    DATA : BEGIN OF it_upload OCCURS 0,
                  index(4),      "Index
                  EBELN(10),     "PO number
                 EBELP(5),      "line item PO
                  LIST(1),       "item number
                  BSTAE(4),      "Confirmation control key
                  EBTYP(2),      "Confirmation Category
                 BSTAE(4),      "Confirmation control key
                  LPEIN(1),      "Category of delivery date
                  EEIND(10),     "delivery date
                  MENGE(13),     "QTY Quantity as per vendor confirmation
                  XBLNR(20),     "ext doc
                  ERDAT(10),     "doc date
                  er_message(100),
           END OF it_upload.
    DATA: BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
          MSGDATA LIKE BDCMSGCOLL  OCCURS 0 WITH HEADER LINE.
    *Selection Screen
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETER: P_FILE LIKE IBIPPARMS-PATH OBLIGATORY.  "to select a file.
    SELECTION-SCREEN END OF BLOCK B1.
    *Initialization
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE .
      PERFORM GET_FILENAME.
    start-of-selection
    START-OF-SELECTION.
      PERFORM MAKE_FILE_NAME .
      PERFORM UPLOAD_FILE.
        PERFORM BDC_PROCESS.
    perform read_messages.
    *&      Form  UPLOAD_FILE
    FORM UPLOAD_FILE .
      CALL FUNCTION 'WS_UPLOAD'
        EXPORTING
          FILENAME                = P_FILE
          FILETYPE                = 'DAT'
        TABLES
          DATA_TAB                = IT_UPLOAD .
            IF SY-SUBRC <> 0.
      ENDIF.
    ENDFORM.                    " UPLOAD_FILE
    *&      Form  bdc_process
    FORM BDC_PROCESS .
    loop at it_upload.
    LOOP AT IT_header.
    refresh bdcdata.
      perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MECHOB'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  'NB'.
    perform bdc_field       using 'DYN_6000-LIST'
                                  it_upload-list.    "'   1'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO1319-MATKL'.
    perform bdc_field       using 'MEPO1319-SPINF'
                                  'X'.
    perform bdc_dynpro      using 'SAPLMEGUI' '0002'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MEOK'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO_SELECT-EBELN'.
    perform bdc_field       using 'MEPO_SELECT-EBELN'
                                  it_upload-EBELN.              "'4500195517'.
    perform bdc_field       using 'MEPO_SELECT-BSTYP_F'
                                  'X'.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=TABIDT14'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO_TOPLINE-BSART'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  'NB'.
    perform bdc_field       using 'DYN_6000-LIST'
                                  it_upload-list.    "'   1'.
    perform bdc_field       using 'MEPO1319-SPINF'
                                  'X'.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'             "first time
                                  '/00'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  'NB'.
    perform bdc_field       using 'DYN_6000-LIST'
                                 it_upload-list.    " '   1'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO1334-BSTAE'.
    perform bdc_field       using 'MEPO1334-BSTAE'
                                  it_upload-BSTAE  .                "'0005'.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  'NB'.
    *loop at it_item where ebeln = it_upload-ebeln.
    perform bdc_field       using 'BDC_CURSOR'
                                  'DYN_6000-LIST'.
    perform bdc_field       using 'DYN_6000-LIST'
                                  it_upload-list.    "'   1'.
    perform bdc_field       using 'MEPO1334-BSTAE'
                                  it_upload-BSTAE.                 "'0005'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'EKES-ERDAT(01)'.
    perform bdc_field       using 'EKES-EBTYP(01)'
                                  it_upload-EBTYP.                 "'vc'.
    perform bdc_field       using 'RM06E-LPEIN(01)'
                                  it_upload-LPEIN.                 "'D'.
    perform bdc_field       using 'RM06E-EEIND(01)'
                                  it_upload-EEIND.                 "'15.02.2009'.
    perform bdc_field       using 'EKES-MENGE(01)'
                                  it_upload-MENGE.                 "'10'.
    perform bdc_field       using 'EKES-XBLNR(01)'
                                  it_upload-XBLNR.                 "'inv 9'.
    perform bdc_field       using 'EKES-ERDAT(01)'
                                  it_upload-ERDAT.                 "'15.02.2009'.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MESAVE'.
    CALL TRANSACTION 'ME22N' USING BDCDATA MODE 'A' UPDATE 'A' MESSAGES INTO MSGDATA. 
        CLEAR: BDCDATA,BDCDATA[].
        refresh BDCDATA.
      ENDLOOP.
    ENDFORM.                    " bdc_process
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = PROGRAM.
      BDCDATA-DYNPRO   = DYNPRO.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
    ENDFORM.                    "BDC_DYNPRO
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
      IF FVAL <> ''.
        CLEAR BDCDATA.
        BDCDATA-FNAM = FNAM.
        BDCDATA-FVAL = FVAL.
        APPEND BDCDATA.
      ENDIF.
    ENDFORM.                    "BDC_FIELD
    *To get file name                                                      *
    FORM GET_FILENAME .
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          PROGRAM_NAME  = SYST-CPROG
          DYNPRO_NUMBER = SYST-DYNNR
        IMPORTING
          FILE_NAME     = P_FILE.
      IF SY-SUBRC NE 0  .
        WRITE : / 'Enter File Name'.
      ENDIF.
    ENDFORM.                    "GET_FILENAME

    Hi Dude,
      When ur looping the item information , in your code ur
    loop at it_item where ebeln = it_upload-ebeln.
    perform bdc_field using 'BDC_CURSOR'
    'DYN_6000-LIST'.
    perform bdc_field using 'DYN_6000-LIST'
    it_upload-list. "' 1'.
    perform bdc_field using 'MEPO1334-BSTAE'
    it_upload-BSTAE. "'0005'.
    perform bdc_field using 'BDC_CURSOR'
    'EKES-ERDAT(01)'.
    perform bdc_field using 'EKES-EBTYP(01)'
    it_upload-EBTYP. "'vc'.
    perform bdc_field using 'RM06E-LPEIN(01)'
    it_upload-LPEIN. "'D'.
    perform bdc_field using 'RM06E-EEIND(01)'
    it_upload-EEIND. "'15.02.2009'.
    perform bdc_field using 'EKES-MENGE(01)'
    it_upload-MENGE. "'10'.
    perform bdc_field using 'EKES-XBLNR(01)'
    it_upload-XBLNR. "'inv 9'.
    perform bdc_field using 'EKES-ERDAT(01)'
    it_upload-ERDAT. "'15.02.2009'.
    perform bdc_dynpro using 'SAPLMEGUI' '0014'.
    perform bdc_field using 'BDC_OKCODE'
    '=MESAVE'.
    ->(01) you have to replace to variable , and every loop pass increment the varialbe value with 1.
    ex : -
    V1 = 1.
    loop at item.
    perform bdc_data using 'xyz(V1)' 
                                   it_upload-variable.
    V1 = V1 + 1.
    endloop.
    This is called as index , the table control fields are differ the field name by index only...

  • Function module/ program for deleting Vendor purchasing org. in BBPMAININT?

    Hi,
    Is there any function module or program available by which i can delete purchasing org. maintained  for SRM vendors in BBPMAININT.
    Regards
    Bharat M

    Hi
    Please use the Standard SRM function module
    *BBPPORG_DELETE*_
    to delete the Purchasing organizations ->
    Sample code - >
        CALL FUNCTION 'BBP_PORG_DELETE' IN UPDATE TASK
          TABLES
            IT_FRG0060 = LT_FRG0060
            IT_FRG0061 = LT_FRG0061.
        COMMIT WORK.
    Hope this will help. Do let me know.
    Regards
    - Atul

  • How to create BDC for Deletion of Records in Table Control in BDC for PFCG

    I have transcation PFCG and have to go to roles of users there.We will upload the users who has to be deleted and it should delete it from the PFCG in one go .Howcan I create a program to delete from the table .If i delete directly from DB table it doesnt show in SAP log how or Who deleted it  and the client wants this log which is needed for accountability.
    Pls HELP.
    George

    Hi
    You can only indicate the user and all profiles of the user will be deleted.
    DATA: BEGIN OF T_DEL_USR OCCURS 0,
                     USERNAME LIKE  BAPIBNAME-BAPIBNAME,
          END   OF T_DEL_USR.
    DATA T_RESULT TYPE STANDARD TABLE OF BAPIRET2
    WITH HEADER LINE.
    After loading the users to be deleted:
    LOOP AT T_DEL_USR.
      CALL FUNCTION 'SUSR_BAPI_USER_PROFILES_DELETE'
        EXPORTING
           USERNAME = T_DEL_USR-USERNAME
        TABLES
            RETURN =  T_RESULT.
    ENDLOOP.
    I'm not sure but perhaps u have to use bapi for commit too: BAPI_TRANSACTION_COMMIT
    Max

  • How to create the Access sequence for the Vendor+material+plant combination

    Hi all
    Please let me know How to create the Access sequence for the Vendormaterialplant combination..
    Whats the use? What its effect in purhcase and taxe..
    brief me please

    Hi,
    you are asked to maintain the access sequence for the tax condition for which you are putting 7.5%.
    goto OBQ1 or img..financial accounting new...global settings.... taxes on sales and purchases ......basic settings.....
    find the tax condition type. see in it which access sequence is attached.
    if there is none then use JTAX used for taxes in India.
    or you can create the similar one for your.
    to create the same goto OBQ2.
    new entry or copy JTAX.
    and assign the access sequence to condition type.
    this will resolve your problem if you just need to assign the access sequence.
    regards,
    Adwait Bachuwar

  • Vendor master Plant relevant data problem

    Hi ,
    I have a peculiar problem,
    I need to set a alternate currency for a vendor at plant level ,So I activated data retention at plant level and at plant level I gave the vendor master a different currency and saved,after saving when I tried raise PO for the plant with a vendor system gives me warning message receiving and supplying plant are same and does not allow to enter condition prices.
    Kindly clarify me.
    Regards
    kantha
    Edited by: Jeyakanthan A on Dec 17, 2011 1:06 AM

    you assigned your vendor to a plant in XK02 via menu EXTRAS > additional data
    this is needed if you do STOs
    Right below is the check box for data retention at plant level.
    If you want data retention at plant level, then you have to flag this box.
    Then you go back to the organisation screen and you will find a new button activated. if you click this button, then you can enter the plant number for which you want maintain specific purchasing data..
    I guess you mixed those 2 different things  and thought you have to assign your vendor to the plant directly in the first pop-.up.
    Remove it from there.

  • Flag Material master for deletion at plant level using MM17

    Hello Everybody,
    Here is the issue.
    We are trying to flag materials for deletion using MM17.
    When we try to set deletion flag at client level everything looks good.
    But when we try to set deletion flag at plant level we are getting the following error message.
          Messages have been issued: number MASS172234000587
          Message no. MK101
          Diagnosis
          During inbound processing for the IDoc, messages have arisen while checking material data.
          System Response
          The system has filed these messages in the form of an application log with the number        
    Any thoughts..
    Regards
    Pravin

    If you get such red message in MM17, then you can select it and click the button for detail.
    This will get you into the application log where you can review the detailed error cases.
    Alternative, you can access the log with transaction SLG1, enter as object: MASS and as sub object: BUS1001
    Execute.
    Double click the message text "Messages have been issued: number MASS172234000587
    You get a pop-up from where you can disply the application log (hyperlink Execute at the very end of the text)

  • Quality checks at level of vendor's plant (in GR)

    Dear all,
    we have a problem with quality checks during GR. Our client wants to be able to check the his vendors at plant level.
    The dynamic modification rules have to consider not only the vendor but also the plant of the vendors from wich the materials were send.
    How can I do it?
    Thanks

    Please delete this duplicate thread. There is already one thread for same query.

  • Material for deletion at different level

    Hi,
    Below is our requirement.
    As the Mill 3007 is no longer into existence following changes are required.
    1)All the materials for Mill 3007 should be marked for deletion on Plant level (MARC).
    2)All the materials which are connected to Mill 3007 only, should be marked for deletion on General data level (MARA).
    3)And all material which comes under condition 2 should set to Block for use.
          MARC-MMSTA u2013 Status 03.
    Can any1 plz explain how to go abt this? How to get list of material in all cases? and How to set for deletion in mass?
    Regards

    Thanks for the quick reply.
    But what u r saying is for Individual material. As I said 1 mill is no more into existence so I want to block all materials for that mill to set for deletion at Plant Level.
    And also is there a way to find the list of material which belongs to only spec plant?
    bcoz even if u try MM60, it gives u list of material associated to particular plant but it might possible that materil is maintained in some other Plant also. So how to find list of matrl in ONLY particular palnt and nt maintained in any other plant?
    Regards

  • Bdc code for transfer of asset plant wise stock transfer (urgent)

    hi all,
    if anyone has done BDC for this scenario ie.,
    bdc for transfer of asset plant wise stock transfer
    then plz share its code with me.and if someone has done any modification regarding this scenario then plz let me know that what modification he/she has carried out in this & share the code for the same.
    i will be grateful to u for this and promise that i will give points to all ur effort.
    Thanks & regards
    Sanjeev

    Hi Sanjeev,
    Do a recording for the transaction using SHDB. Once you are done with the recording save the recording into a zprogram. You have the code.
    Regards
    Arun

  • Bdc for bom from  plant to plant

    Hi Experts,
    We need to do bdc for bom from existing plant 1102 to new plant 1103. I have searched the forum regarding this but it suggest bapi or function module for it. Can anyone guide is bdc possible for my issue?
    Regards,
    Pawan.

    Hi.,
    As you got BAPI for that go for BAPI only since BAPI is preferable that BDC.. and ., Yes you can create BDC for any transaction except for new enjoy transactions (like ME51n ) .,
    Go to SHDB  transaction.,
    click on new recording.,
    Enter Recording name and transaction., and press Enter.
    now do copy for plant bom .,
    save recording.,
    then select the recording and click on program button.,
    Enter program name and description. and click on source code.,
    With little modification you can use that program.
    Hope this helps u.,
    Thanks & Regards,
    Kiran

Maybe you are looking for

  • Cannot see data or enter data in pdf forms

    I am an elementary school teacher, and use an application to maintain student information.  I am able to navigate thru the app to select various student data, but when I click to display a students information, a blank PDF form is displayed.  Borders

  • Change Slideshow Size Dynamically

    Wanted to see if I can change the Slideshow size while it plays using: http://labs.adobe.com/technologies/spry/articles/element_selector/index.html The factory script shows an error; (I added div.content and then copied and changed the content class)

  • MY Facebook Page appears distorted with all of the data listed vertically

    Starting a few days ago my Facebook page altered appearance drastically. All of the text and images are spread out vertically on the page and a long downward scroll is needed to even get to the first post. The Facebook Photo viewer now drops the imag

  • How ro export small (compressed) files (.mpg) with sound from FCP or compr.

    I have some dv pal footage that I need to store in in very small files. Then I need to convert it back to dv, for editing. The quality (regarding artefacts and all that) is not important. The stuff was ripped from DVDs originally and are only to be u

  • ITunes won't re-install in the correct drive

    We recently "cleansed" our computer, and in the process ended up deleting most of the music library. We then tried to re-install iTunes into a new hardrive with a lot more space, which appeared to be successful. However, when importing songs back int