BAdi for Vendor Master Creation XK01

Hello All ,
I want to have a new subscreen in XK01 transaction .
So i include it by implementing the Badi VENDOR_DATA_CS
Now i can get a subscrenn in my transaction .
But i couldn't transfer the value of the field from my subscreen to my main program ...
Could someone guide me how i can proceed ...
If the you know the exact coding what should be done and where should be done , Kinldy guide me
DO i need to set some customization also ?

Hi,
Go thru this thread, this will help u with example...
BADI ME21N
Reagrds,
Kumar

Similar Messages

  • BAPI for Vendor Master Creation

    Hi,
    I've seen alot of messages regarding Vendor Master Creation but I didnt find any clear answer.
    What Bapi can we use for Vendor Master Creation?
    I saw the BAPI_VENDOR_CREATE (for online) but there are no parameters given.
    Pls help.
    Thanks!

    Hi Donna.
    I would like to suggest my opinion,
    1. Go To Transaction BAPI.
    2. In the Alphabetical (Window).
    3. Vendor.
    4. Click the Node, Go To Create.
    5. Click the Create Node.
    6. Vendor and return will be seen.
    7. Check the dictionary references for both Vendor Node and Return node.
    8. Fields of the structures will be observed.
    Hope this works out well.
    Good Luck & Regards.
    Harsh Dave

  • I want IDOC for Vendor master updation ( XK01 &XK02 )

    Hi
    I want to do LSMW in IDOC method for this vendor updation.
    So I want IDOC for Vendor master updation ( XK01 & XK02 ).
    I want to do both create vendor and change also.
    Regards,
    Ravi
    Edited by: kandukuri ravi on Dec 1, 2008 2:56 PM

    Hi,
        For Vendor Master using IDoc's for LSMW,Use Message Type = CREMAS and Basic Type = CREMAS05.
    For Basic type 01,02,03...05 are versions which includes more fields in basic type so better use latest version.
    Hope it will help you.
    Regards,
    Sudhakar Reddy.A

  • Vendor master creation (XK01)

    Dear Experts
                         At teh time of vendor master creation i have entered company code as AAA and purchase org is CCCC and accounting group. and all i have created the vendor master.
    Here my problem is CCCC purchase org is not Assigned to AAA company code.
    CCCC purchase org is belongs to other company code . but it is allowing as per derivation
    AAA company code belongs to BBBB purchase org only
    and CCC company code is belongs to CCCC Purchase org.
    I want to control this as per purchase organization to company code assignment CCCC purchase org is not assigned with AAA company code but it is allowing to create vendor master with AAA company code and purchas org is CCCC.
    is it possible to control standard configuration
    Regards
    Anand

    Hi,
    Please check the following standard rules:
    1. If the P Org is assigned to a company code, then that Porg is responsible for all the plants assignesd to that company code only provided Plant - Porg assignment is done. This is company code specific
    2. If the P Org is not assigned to a company code, At the time of vendor master creation, system will ask for the company code and you have enter the same assignesd to that company code provided Plant - Porg assignment is done for the Porg you are working with. This is cross company P .Org.
    3. Assignment of POrg with Plant is must.
    REgards
    Ram

  • Need exit to add new fields for Vendor master creation

    Hi All,
            I have to add a new screen with some fields in Vendor master (Xk01) creation. Can any one suggest me
    any screen exit / user exit through which I can add these fields.
           Please explain the procedure to add the fields through exit.This will be of great help.
    Thanks
    Vinod.

    run the following program which ggives available exits for tcode
    REPORT z_find_userexit NO STANDARD PAGE HEADING.
    *&  Enter the transaction code that you want to search through in order
    *&  to find which Standard SAP User Exits exists.
    *& Tables
    TABLES : tstc,     "SAP Transaction Codes
             tadir,    "Directory of Repository Objects
             modsapt,  "SAP Enhancements - Short Texts
             modact,   "Modifications
             trdir,    "System table TRDIR
             tfdir,    "Function Module
             enlfdir,  "Additional Attributes for Function Modules
             tstct.    "Transaction Code Texts
    *& Variables
    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
    DATA : field1(30).
    DATA : v_devclass LIKE tadir-devclass.
    *& Selection Screen Parameters
    SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP.
    PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK a01.
    *& Start of main program
    START-OF-SELECTION.
    Validate Transaction Code
      SELECT SINGLE * FROM tstc
        WHERE tcode EQ p_tcode.
    Find Repository Objects for transaction code
      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 = enlfdir-area.
            MOVE : tadir-devclass TO v_devclass.
          ENDIF.
        ENDIF.
    Find SAP Modifactions
        SELECT * FROM tadir
          INTO TABLE jtab
          WHERE pgmid    = 'R3TR'
            AND object   = 'SMOD'
            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:/(95) sy-uline.
          FORMAT COLOR COL_HEADING INTENSIFIED ON.
          WRITE:/1 sy-vline,
          2 'Exit Name',
          21 sy-vline ,
          22 'Description',
          95 sy-vline.
          WRITE:/(95) sy-uline.
          LOOP AT jtab.
            SELECT SINGLE * FROM modsapt
            WHERE sprsl = sy-langu AND
            name = jtab-obj_name.
            FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
            WRITE:/1 sy-vline,
            2 jtab-obj_name HOTSPOT ON,
            21 sy-vline ,
            22 modsapt-modtext,
            95 sy-vline.
          ENDLOOP.
          WRITE:/(95) sy-uline.
          DESCRIBE TABLE jtab.
          SKIP.
          FORMAT COLOR COL_TOTAL INTENSIFIED ON.
          WRITE:/ 'No of Exits:' , sy-tfill.
        ELSE.
          FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
          WRITE:/(95) 'No User Exit exists'.
        ENDIF.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(95) 'Transaction Code Does Not Exist'.
      ENDIF.
    Take the user to SMOD for the Exit that was selected.
    AT LINE-SELECTION.
      GET CURSOR FIELD field1.
      CHECK field1(4) EQ 'JTAB'.
      SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
      CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.

  • Remote Function Module for Vendor Master creation

    Dear Forum Members,
    There is a BAP function module BAPI_VENDOR_CREATE which calls SAP transaction XK01. Due to this, this Remote Function Module (RFM) cannot be called from a Java Application that uses SAP Java Connector.
    Is there any other remote function module available in SAP for creating vendor master record so that it can be called from non-SAP development tools such as Java using SAP Java Connector or Microsoft Visual Studio .NET tools using SAP .NET Connector?
    Eagerly expecting favourable reponse.
    Regards,
    K. Rangarajan
    SAP ABAP & Java Programmer

    Hi Prakash,
    you can use FM 'VENDOR_INSERT' , However its not remote enabled you need to copy to Custom BAPI and make it as remote enabled. 
    Apart from the Vendor creation BAPI, you may need to use some other BAPI's for Adress updation and Bank details Updation.
    Please refer the link for some more information [Re: Create Vendor;.  The same problem is mentioned there and was solved.

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

  • User Exit for Vendor Master creation

    Hi SAP Gurus,
    We need to stop to create vendor using MK01 if there is no general data exist for it. I don't see any standard way for it.
    Does any one knows any user exit for it ?
    Thanks for your help.
    Regards,
    Manoj

    Hi Manoj, that's a very simple question. Before you save data, that record will not even exist in LFA1 table. so, you just need to check that table for the record. In case it doesn't exit, just give an error message.
    inclue some code in the user exit. something like
    if sy-tcode eq 'MK01'.
    select single from lfa1 where lifnr eq ???-lifnr. "check field name in exit
        if not sy-subrc eq 0.    "record doesn't exist
           message E 'Record ..........'
        endif.
    endif.
    if you want to use authorization, just include a mandatory field in a field group, like name1 (vendor name, you can create a vendor without a name) and that will only be open for maintenance for those who have the corresponding authorization value. Therefore, those who have authorization to create a vendor can create it using XK01/MK01/FK01, but those who can only maintain purchasing data cannot create a new vendor record.

  • Reg the BDC for vendor master

    Hi All,
      Currently i have a requirement for the RFC where i need to create vendor. Currently iam using a BDC recording inside the RFC to create a vendor. But there are 5 account groups for my business where the vendor customizations are done. So the screen flow is getting changed. So how can i handle this scenario . There is no standard BAPI for vendor master creation. Please suggest on this

    Hello,
    First identify what are the fields available and those not avaliable in the screens for each of the 5 account groups you use. After you identify them, in the BDC you can control whether the field should be updated or not based on the checks on account group
    Vikranth

  • Validation for vendor master data creation

    Dear All,
    Can anybody suggest how to apply validation while creation of vendor master data. As this can not be done through GGB1 as it is ment for document level validation. Please suggest any user exit or badi or validation path for this.
    Thanks & Regards

    hi,
    the enhancement for vendor master is SAPMF02K, you can easily add your own check, pls. check in tcode SMOD!
    hope this helps
    ec
    >
    Srinivasa Maruvada wrote:
    > Hi
    >
    > Check TCode for validation OB28, for substitution OBBH
    > and also OKC9 which may helps you.
    > Cheers
    > Srinivas
    your post is rubbish, substitutions and validations are in use in document posting, not for master data creation. Even the OP told this, when he asked his question...

  • Regarding vendor master creation using xk01,fk01,mk01.

    hi
    i have created vendor master using xk01.what is the diffeerence between creation of vendor master using xk01 and FK01,MK01.

    Hi
    You can split vendor master data into two parts - purchasing (MK01) and accounting (FK01).
    Purchasing veiw (MK01) is important if you want to create purchase documents like PO on vendor. This veiw is created for purchase organization with bank details and partner functions.
    Accounting view (FK01) is important for finance people to post invoice and pay to vendor. This view is created for company code. The terms of payment which purchase dept specifies will be entered in accounting view again and bank details entered by purchasing people will be confirmed by accounting team.
    You can create collectively these two views in XK01.
    Thanks

  • LSMW for Vendor Master (t-code XK01)

    Hi guys,
    I'm creating a LSMW for Vendor Master (t-code XK01) using direct input but the following error message appears:
    In the step "Create batch input session", I get the following error:
    FB012 Session 1 : Special character for 'empty field' is /
    FB007 Session 1 session name VENDOR was opened
    FB112 Trans. 1 : No transaction code was transferred
    FB016 ... Last header record ...
    FB014 ... BLF00-STYPE 1
    FB014 ... BLF00-TCODE /
    FB014 ... BLF00-LIFNR DETES998
    FB014 ... BLF00-BUKRS /
    FB014 ... BLF00-EKORG /
    FB014 ... BLF00-KTOKK 0001
    FB013 ....Editing was terminated
    I mapped the TCODE filed using xk01 and the same error still displays; in the first step I select Object 0040, method 0002 and the program is RFBIKR00, is this correct?
    Some of the fields are stored ina different table; How can I mapped this fileds?
    Any you can provide will be great......

    Hi,
    Are you getting this error immediatly or later half?
    1. This could be with same Vendor number which would be existing in the system.
    2. Data inconsistencies.
    What are the flat files that you have is it a single file or more than one?
    Thanks,
    Prashanth

  • Error in the LSMW for vendor master using standard batch/direct input

    I am facing the problem in the LSMW for the Vendor master data. The vendor is initially created for the company code 350 by using LSMW. NOw when I try to uploasd the same vendor using the same LSMW for the company code 450 then I get the error in the Bach input creation as follows:
    Batch Input Interface for Vendors
    FB012                    Session 1 : Special character for 'empty field' is /
    FB007                    Session 1 session name VNDR_CREATE_ was opened
    FB104                    Trans. 2 XK01 : Acct already exists; general area not being processed
    FB125                    ... Data in table BLFA1 cannot be processed
    FB016                    ... Last header record ...
    FB014                    ... BLF00-STYPE 1
    FB014                    ... BLF00-TCODE XK01
    FB014                    ... BLF00-LIFNR 300951
    FB014                    ... BLF00-BUKRS 402
    FB014                    ... BLF00-EKORG /
    FB014                    ... BLF00-KTOKK VEND
    FB017                    ... Last data record ...
    FB014                    ... BLFA1-STYPE 2
    FB014                    ... BLFA1-TBNAM BLFA1
    FB014                    ... BLFA1-ANRED /
    FB014                    ... BLFA1-NAME1 SAVOIE AUTOMATISME DEXIS
    This is because when we use XK01 to create the vendor by using the

    Please check this answered link:
    Re: LSMW for Vendor Master
    LSMW Upload vendor master data
    Edited by: Afshad Irani on May 5, 2010 12:42 PM

  • Customer Master / Vendor master Creation

    Hi Folks,
    I have a requirement that the whenever Customer / vendor is created or changed, then there needs to be a mail sent for the same.
    We are currently using the user exit : EXIT_SAPMF02D_001  for customer creation and user xit : EXIT_SAPMF02K_001 for vendor.
    The issue :
    When the new Cust / Vend is created, the user exit is called. The issue is that the "Customer number" / "Vendor number " is blank as the number is generated by the system after the user exit is over. So the mail sent is having Blank Ven / Cust number which is not desired.
    IF anyone knows any other User exit / Badi that can be used for this purpose. Or if there is a business object for the Customer abd vendor master, whose event is raised by the SAP transaction when Cust / vendor is created with the customer number passed to the event, then kindly let me know. I can then create a workflow for the same.
    P.S: There is no issue when the customer is changed as the customer number comes in the above exit.
    Thanks and Regards,
    Anuj.

    Hi,
    I think you can use Business transaction events for this.
    BTE 1320 and 1321 for Customer Master
    BTE 1420 and 1421 for Vendor Master
    And FYI,
    http://help.sap.com/saphelp_46c/helpdata/en/63/ed2c7dd435d1118b3f0060b03ca329/frameset.htm
    Hope this helps..
    Sri

  • Diff. Tcodes for Vendor Master Data

    Hi,
    We create the Vendor Master through XK01 Tcode...In which 3 window comes...General Data, Company Code Data and Purchasing data...
    In General Data, 4 checkbox are there....Address, Control, Payment Transactions and Contact Persons...
    Now requirement is this, we want a separate Tcode for Vendor Address which includes Address and Control data only...Also when we save this data, an Request Number should be create for Vendor Number Creation...
    Is there any solution for it...

    Hi,
    If you want to control use of check box itself under General Data, then one way is to use of screen variant using SHD0.
    Refer the below link
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a070bfbb-d34a-2d10-b092-ecbe0b0d4a4c?QuickLink=index&overridelayout=true
    Regds,
    CB
    Edited by: Channabasappa.K on Jan 16, 2012 11:46 AM

Maybe you are looking for

  • To RE-USE (display) the common REGION in all of the Pages

    I have a Common REGION (It's a Select criteria with lot of lov's) and I want to display the same Region with every items on the TOP of all the Pages (1,2,3, .....) within same Application ID. One of the way is I should copy the REGION in all the page

  • How do I merge three director files into one?

    Hi! So I'm doing a school project. We're making a program. We have a startpage with two buttons. Then we have two other pages. One of the pages is a quiz, so it has different questions and you move along in the quiz when you click on one of the three

  • E-signature with photo goes out as an attachment

    I am very new to MacBook. I recently created e-mail signature with a photo. When an e-mail is sent to Mac, it shows the signature with a photo in the body of the text and also shows the signature as an attachment. But when the same e-mail is sent to

  • How to delete other files in phone memory

    i had a problem that other files in my phone are rapidly increasing in size they have increased from 60 mb to 103 mb in two days and now my phone take so many time to process any application that i open. Please help me i want to set memory card as de

  • Convert a Mac Pro Server from January 2007 with OS 10.4 Server to Snow Leopard 6.0 (NON SERVER)

    I have a Mac Pro Server from January 2007 with OS 10.4 Server installed. I want to convert from OS 10 Server OS to just using Snow Leopard 6.0 (NON SERVER). I have two hard drives installed. What is the best way to do this? Can I just install Snow Le