VENDOR_ADD_DATA & VENDOR_ADD_DATA_CS

Hi,
  I am Using VENDOR_ADD_DATA and VENDOR_ADD_DATA_CS to enhance my Vendor Master screen.
It is working fine and I am getting a addition button, clicking on which my custom screen is displayed.
My requirement is this button should only get displayed when user has selected "Payment Transactions" checkbox on XK01/XK02/XK03 transaction. It should not be present when user has selected any other checkbox.
Kindly let em know how can this be achieved.
Regards,
Priya

Hi Priya,
You would have placed a code to activate your tab similar to this in the main BAdI    vendor_add_data
METHOD if_ex_vendor_add_data~check_add_on_active.
  IF i_screen_group = 'ZX' and <payment transaction is checked>.
    e_add_on_active = 'X'.
  ENDIF.
ENDMETHOD.
Replace <payment transaction is checked> with by finding the value of check box..
Should help.
Cheers,
Aabhas...

Similar Messages

  • Problem in add new fields in xk01

    i want to add new customer field in xk01,xk02,xk03, i have append new structure in lfa1.
    i am using badi  VENDOR_ADD_DATA & VENDOR_ADD_DATA_CS .
    when i saved new additional fields using xk02 ,no  additional fields values is coming in lfa1 structure .
    pls help how we save these addtional zfields.

    Well for a start, i can't imagine that this line functions too well for you..
    String query = "INSERT INTO U UPDATE UserInfo SET Password = '"+
    passwd2 +"' WHERE UserID='" + userid +"' AND Password='"+ passwd1 +"'";But in any case, what are the errors... what Exception is being thrown. Is it a SQLException? If so, what's the error message being displayed. Where in the code is the problem. Anyone trying to help you is really going to need to know most of this stuff before we can figure anything out.

  • Badi for xk01 vendor master

    Hi all ,
    My requirement is to add an alphabet 'H' at the start of  vendor number that is posted
    from xk01 .
    I have to implement a badi for this
    can any tell me how to go about this
    Thanx in advance - Hari

    Hi,
      Use the BADI
    VENDOR_ADD_DATA
    VENDOR_ADD_DATA_CS and the Method
    CHECK_ADD_ON_ACTIVE for this
    See the following in the SPRO and do accordingly from there
    FInancial Accounting->Accounts receivables and Account Payable->Vendor Accounts-> Master Data->Preparations for Creating Vendor Master data->Adoption of Customer Own Master data fields..
    Regards

  • Error message in badi VENDOR_ADD_DATA

    Hi ,
        I've a requirement for adding custom fields to vendor master. I successfully added the screen and i'm able to save the data using the badi's 'VENDOR_ADD_DATA' and 'VENDOR_ADD_DATA_CS'. I've a check on some fields on this screen. I've to give an error message if expiration date is empty and license field has data. I did this in the  method 'CHECK_ALL_DATA' of the badi 'VENDOR_ADD_DATA' by passing values into the message variables accessible in the method. Everything looks good, the error message is coming at the bottom but the screen is getting navigated to the 'Partner Functions'. I tried giving the screen group 'E_SCRGR' and tab fcode 'E_FCODE' variables. But didn't work. Can anyone help me how to stop the navigation and keep the user in the same screen?
    -- Venky

    Hi,
            I figured it out, i had to send the screen number to the E_DYNNR variable which is '4000'. I got that value by debugging. The code had a case statement on this variable and i tried some of the screen number and this one worked :).
    -- Venky

  • Vendor Master Data change (VENDOR_ADD_DATA)

    Hi experts,
    I implemented the badi's VENDOR_ADD_DATA_CS and VENDOR_ADD_DATA to create the subscreen
    in XK01 but
    i created the Z table for storing the data based on vendor and company code
    i placed table control on the screen, because  for single vendor i need to create more records thats why i created the ztable
    now i am not getting how to store these details in my ztable for vendor
    please tell me the sequence of methods to implement in the badi.
    Thans&regards,
    srinivas

    Hi Srinivas,
    These are the steps to implement BADI for XK01
    Goto Transaction SPRO---->select SAP reference IMG button on tool bar
    select 'logistics general' node-->select 'business partner' node>'vendors' node>control
    --->'Adoption of customers own master data fields'
    read the documentation of 'Prepare modification free enhancement of vendor master record'
    Besides Execute button.
    There are four node read all the documentation
    Hope solves your problem
    Regards
    Krishna

  • BADI Enhancement VENDOR_ADD_DATA_CS

    Hi,
      I am working on a BADI Enhancement for adding Customer Sub Screen in Vendor master Data. I used standard BADI enhancements  VENDOR_ADD_DATA and VENDOR_ADD_DATA_CS. Using this I am able to call the Z program and it's screens via these BADI's. Can any one help me how to pass the values from the main program ( Ex. Vendor No.(Screen field   RFO02K-LIFNR)) into the called Z Program ?
    Thanks in Advance,
    Bala S

    Dear Bala,
    Instead of helping you i'm asking info from you. i need to implement the screen exit for the same bapi, upto now i never implement the screen exit in badi's. could you please help the how i need proceed for this.
    please provide the sample code how u add screen exit and fields into screen and passing values to it.
    Please provide you code or documentation for this.
    you can mail me at [email protected]
    Regards,
    Vijaya M

  • VENDOR_ADD_DATA for custom LFM2 fields

    I am looking for a way to use the Vendor Maintenance Program SAPMF02K (XK01/XK02/XK03) to update custom LFM2 fields.
    Since there are multiple LFM2 plant(WERKS) Records for a Vendor/Purchasing Org, How can the screen be configured to narrow in on the desired LFM2 record to update? 
    Goal-Have the additional field appear on the SAPMF02K vendor plant purchasing data screen (330) or as separate button on the alternative data plant screen (341).
    Presently I can prompt for the plant and update the existing record, however this is not useful in view mode as the plant field is read only. It also does not look/feel like SAP's XK0x transactions.
    Following SAP Note 580266 I was able to use VENDOR_ADD_DATA and VENDOR_ADD_DATA_CS use the custom screen.

    Hi jim,
    I have a similar requirement.I want to update a custom field in LFM2 table only.I created a screen group and using the badi  VENDOR_ADD_DATA and VENDOR_ADD_DATA_CS added my field in the subscreen.But I am able to display the the custom screen tab at screens (0111)General view and Purchasing view(0310,0320) only.I am not able to display the screen tab at LFM2 level (0330).Is there any other BADI or exit TO ADD a custom field in screen 330.Your help will be appreciated.
    Thanks,
    Naushad.

  • Pushbutton in FK01/FK02 Vendor_add_data_cs

    Hi there
    I try to configure the enhancement "vendor_add_data/_cs" like the same way as described here in this link Re: VENDOR_ADD_DATA_CS  Flow Logic.
    But I've the problem, that I dont have the pushbutton, which I've created in the customizing "Prepare Modication-Free Enhancement in Vendor Master Record".
    I'm not sure, if I've to assign the Function Code in the Application Toolbar ?
    Hope you can help me.
    Thanks

    Thank you all for the help.

  • BADI for vendor master (VENDOR_ADD_DATA)

    Hi,
    am new to BADi. i have one requirement for vender master company data i have to create one additional field in LFB1 this is created by apped structure.
    but now how can i update the value in this field?
    i want to show this field in XK02 screen.
    can you discribe me step by step implement of this BADi.
    Amit

    First you have to search if SAP provides any BADI for a particular transaction/program. You have to find it from SE18.
    Then you have to implement it in SE19.
    You can use the following program to search BADI and userexits.Just run the program and put 'XK02' in the selection screen field P_Tcode and execute.
    report ZTEST.
    TABLES : TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA wa_tadir type tadir.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    *Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    *Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    *For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    endcase.

  • Added new fields in vendor master in xk01 but data is not getting saved

    Hi experts,
    To add new fields in vendor master i have followed the following steps :
    1.) Appended a structure ZRTGS in LFA1 table with required fields and activated
    2.) Added new button in xk01( vendor master ) using spro -> logistics-general -> business partner -> vendors ->
    control ->adoption of customer's owaster data fields -> prepare modification free-enhancement of vendor master record
    Created a screen group ZR and defined label tab pages with function code ZRTGS and saved entries
    3.) Created a implementation for BADIs VENDOR_ADD_DATA and VENDOR_ADD_DATA_CS.
    4.) Created a program with my own subscreen for the required fields
    The button is getting displayed in XK01, XK02 and XK03 respectively. Whenever the button is clicked the subscreen with
    the fields is also displayed. But whenever i try to save the data in either XK01 or XK02 it is not getting saved in to the
    database table LFA1.
    Request your help in this regard.
    Thanks in Advance.

    Hi,
    You may need to check this include .
    EXIT_SAPMM06E_008  -->Import Data from Customer Subscreen for Purchasing Document
    Thanks,
    vamshi

  • Data not Updated in Custom Screen fields-Vendor Master

    Hello,
    I have created a custom screen in vendor master transaction and also implemented the two BADI's below.
    Business Add-In: Processing Master Data Enhancements
    (CUSTOMER_ADD_DATA/VENDOR_ADD_DATA)
    Passed the Custom Program and Screen No in the method GET_TAXI_SCREEN
    Business Add-In: Customer Subscreens
    (CUSTOMER_ADD_DATA_CS/VENDOR_ADD_DATA_CS)
    activate it with the BADI Processing Master Data Enhancements with method CHECK_ADD_ON_ACTIVE.
    I also created a new screen and used few fields from LFA1 (Append structure fields) such that the fields on the screen are : LFA1-ZZFIELD1 etc...
    Now the issue is the screen is displayed, but the data entered on the screen is not updated on the table LFA1 or data from the table is not displayed on the custom screen.
    Am i missing something?
    Regards,
    Shiva

    Solved this problem.
    I built the query against InfoCube and not the characteristic itself. That's why I can't see the update.
    Thanks.

  • Creation of Vendor

    Hi All,
    I enhance the standard screen XK01 using badi 'VENDOR_ADD_DATA_CS'. In that i put a break-point in  method  'GET_DATA'. But  is not triggering while creating Vendor.Please tell in which scenario it will trigger.

    Hi,
    this exit..
    VENDOR_ADD_DATA_CS                      Additional Data for Vendors (Subscreen 4000)
    so try to use following exits..
    VENDOR_ADDRSCR_CHG                      Change Address Screen in the Master Data Maintenance
    VENDOR_ADD_DATA                         Additional Vendor Data
    VENDOR_ADD_DATA_BI                      Additional Data for Vendors (Batch Input and ALE)
    VENDOR_FIELDSTATUS                      Change Field Status in Vendors
    W_VENDOR_REL_REFDATA                    Vendor-Specific Reference Data in Retail System
    Arunima

  • View customization filed label change

    Hi,
    Iam facing some problem with  view customization.  I copied the standard view and changed the field properties like label. I assigned the configuration key to business role. When i test the application it searching for assigned customized configuration key, but it found only default. I could not see the lable change.
    I don't know why system picking up only default( standardone)?. Why it is not picking custom one.**
    appreciate your help.
    Thanks
    Savan

    Hi
    You should not change the field label names as what are defined by SAP. There are lot of other options available. You may choose to use one of the following BADI for enhancing vendor master data
    VENDOR_ADD_DATA_CS
    VENDOR_ADD_DATA
    VENDOR_ADD_DATA_BI
    Refer also SAP Note 580266 for use of these BADI to enhance/add fields as per your requirements in Vendor Master
    Regards
    Sanil Bhandari

  • Add New Fileds in XK01 Plant level and Menu Enhancement

    Hi Experts,
    I want to add a push button in XK01 (vendor ) create and change in the production data and Plant level data .I can add in the Production level using Vendor_add_data and Vendor_add_data_cs . But i want to add that same in the Plant level data.
    Navigation to plant level : in the production data->additional data ->click plant -> choose purchasing.
    Please help me how to add new button and new screen related to this button.
    And in plant level Extras->texts .. This menu item is disabled so can u please tell me how to enable it.
    Thanks In Advance.

    Hi,
    I have added a field to LFB1 with append structure. Activated the BADIs so that I now get the extra tab, and my field in XK01. I can't save the input data though. "No changes were made". Do I need to write some code in "get_Data" method. if so, what should it be like?
    Thanks in advance.
    Edited by: gorkem ozok on Sep 22, 2008 2:20 PM

  • Validate and block vendor master while creating or changing vendor master

    Hi,
    I need to validate the vendor master country against a ztable which has list of restricted countries and block the vendor       (lfb1-sperr = 'x posting block')  if the country is found in ztable. This check should happen while creation or change of vendor master.Also need to send a mail to a distribution list. Any user exit/badi to code ?  If not, what other options ?
    Thanks,
    RK

    Hi,
    For XK01 vendor creation  you can use following badi's or user exit
    S.No   Exit Name           Description
        1   RFKRRANZ            User exits: Accounts Payable Information System
        2   SAPMF02K            User exits: Vendor master data
    S.No   Badi Name             Description
        1   VENDOR_ADDRSCR_CHG    Implementation of VENDOR_ADDRSCR_CHG by Public Sector
        2   VENDOR_ADD_DATA       /NFM/Screen in Vendor Master
        3   VENDOR_ADD_DATA       SCC Implementation of BAdi VENDOR_ADD_DATA
        4   VENDOR_ADD_DATA       MPN:  Additional Fields for Vendor Master
        5   VENDOR_ADD_DATA       US Federal Government Vendor Master Extension
        6   VENDOR_ADD_DATA       Implementation of VENDOR_ADD_DATA by Public Sector
        7   VENDOR_ADD_DATA       IS-Oil Downstream Vendor
        8   VENDOR_ADD_DATA       Retail Addition: Maintenance Authorization of Local Vendors
        9   VENDOR_ADD_DATA_BI    MPN:  Additional fields for vendor master
       10   VENDOR_ADD_DATA_BI    US Federal Government:  BADI Implementation for Add On BI
       11   VENDOR_ADD_DATA_BI    IS-PS Additional Data for Vendors (Batch-Input and ALE)
       12   VENDOR_ADD_DATA_BI    IS-OIL :  Implementation for Add On BI
       13   VENDOR_ADD_DATA_CS    /NFM/VENDOR_DATA
       14   VENDOR_ADD_DATA_CS    SCC Implementation of BAdi VENDOR_ADD_DATA_CS
       15   VENDOR_ADD_DATA_CS    MPN: Additional Fields for Vendor Master
       16   VENDOR_ADD_DATA_CS    US Fed Gov't Vendor Master Data Extensions
       17   VENDOR_ADD_DATA_CS    Implementation of VENDOR_ADD_DATA_CS by Public Sector
       18   VENDOR_ADD_DATA_CS    IS-Oil Vendor Master
       19   VENDOR_ADD_DATA_CS    Retail Enhancement: Maint. Authorization of Local Vendors
       20   VENDOR_FIELDSTATUS    Control of vendor master fields for CCR vendors
    Hope it helps.
    Regards
    Hiren K.Chitalia

Maybe you are looking for

  • Need to replace a file in the application server

    Hello Experts, Through ABAP coding, I need to replace a file which is available in the application server from one path to another. I should not use OPEN DATASET, CLOSE DATASET, DELETE DATASET and all as they deal with the data. I need to replace the

  • When I insert numbers in master it has a "1." next to to A

    When I insert numbers in master it has a "1." next to "A" and it shows in all my pages, how can I hide it?

  • Getting metadata for RFCs using RFC SDK (with position of parameters)

    Hi! I'm currently using the RFC SDK Function "RfcGetFunctionInfoAsTable" to retrieve metadata for RFCs from SAP. What i see is that the "Position" field in the RFC_FIELDS_U structure contains arbitrary values, and so I am not able to determine what i

  • Pop up in PO

    Hi All, When account assigned POs are being made, need a pop-up for entering cost centers & GL codes. This was coming earlier but now it is not. Please suggest. Regards Praveen

  • Internet Explorer is opening itself with blank pages

    About two weeks ago, I was on my laptop when my buddy thought it to be funny when he started pressing a number of random keys on my keyboard. When he did this my computer screen froze and I had to restart the computer. When it came back on I tired to