Vendor master text to PO

Hi experts,
How to bring vendor master text to purchase order headre text.

I am assuming that by text, you mean long text.
If you want it to come automatically in the PO, you will need to maintain it in customizing. Decide in which text field you want the vendor master text to be copied. Go to configuration under Purchasing --> Purchase Order --> Text for Purchase order --> Define copying rules for header texts and maintain it there.
I would recommend creating a new text field in the header instead of using a standard one.
Lakshman

Similar Messages

  • Header Text copy to PO from vendor master

    Dear all,
    I am trying to pull data storeed in vendor master to PO for header text so that we don't need to repeat to each PO for the vendor.
    I tried to link this in "Texts for Purchase Orders" in SPRO ,But not able to link it
    B'coz it's not allowing me to add the object of vendor master
    so pl guide me how i link vendor master text to PO
    Regards,
    Vimlesh

    Hi,
    In customizing ->material management -> purchasing -> purchase order -> texts for purchase orders -> define copying rules for header texts, choose "header text" and click on text linkages. Here you can enter for source object "vendor master", and for source text choose vendor master header text.
    And in the FIX INDICATOR for text you have to maintain blank. then it will copy text
    This will copy text from vendor master to PO header text.
    Please check this and revert back if you need further details
    thanks,
    santosh

  • PO texts from vendor master

    Hi,
    when I create a PO using a vendor, after filling field Purchasing Org., Purch. Group and Company code, system copies a text but I don't know from where.
    In PO down the header texts I can read "Text adopted from Vendor Master (Purch.org.-spec.test text )", I cannot find it in vendor master....
    Could You help me ?
    Regards

    Hi,
    In MK03 please open your vendor go to purchasing data and  click on extras on the menu bar, and select text, here you will find purchase order texts, hope this is what you were looking for.
    Also check the PIR.
    Regards
    Shailesh
    Edited by: Shailesh Rajan on Jun 28, 2011 3:07 PM

  • How Can I add/change text/description in accounting view of Vendor master ?

    /nxk02 --> (give vendor, company code ) 
    then check the check box of 'Accounting info' under Company code data block -->  then hit 'Enter'
    --> it goes to next screen.  Then in this screen, click menu 'Extras' --> then press "Texts" under that menu. 
    So that popup screen appears with the Description.
    I need to know from where these descriptions are coming or where these descption  can be maintained ? Because I need to add/change these  descriptions to my vendors
    YOUR HELP IS HIGHLTY APPRECIATED.  Please help....
    THANKS IN ADVANCE.

    Hi Aman,
    Because these texts are maintained at Company Code level for the Vendor, they are part of the Accounts Payable configuration in the SAP IMG. 
    SPRO > Financial Accounting > Accounts Receivable and Accounts Payable > Vendor Accounts > Master Data > Preparations for Creating Vendor Master Data > Define Text IDs for Accounting Texts (Vendors)
    Transaction OBT5
    Regards, 
    Monika

  • Header Text PO from Vendor master automatically

    Dear Friends
    This is regarding automatically adoption of header text in PO from vendor master. I am following these steps
    - Maintained customizing as MM>purchasing > PO>texts for PO >define copying rules for header texts .
    in this , select the text type ( this is the PO header text ) and click on text linkage and maintain source obj as vendor master and maintain the fixing as blank ( ie text automatically adopt in the target obj)
    -Then I wrote text (needed in FR lanugage) to respective vendor in purchasing view
    Now When I create a PO, system does not propose any thing under header text
    Did I miss anything.
    Please respond
    Regards
    SG

    Hi,
    1. First I assume the configuration settings are correct
    MM- Purchasing -- PO --Texts for PO --Define Copying rules for header text
    Here the target text type (in this case the PO text type ) i.e. sequence no. is assigned to the correct source object and text (in this case the vendor text type)
    2.If you logon to the system using the language option. i.e. logon id, password and language you get the SAP screens in that language. Now if you try to maintain vendor text in FR and create a PO, the FR Text would get copied to the PO. Now if you go back to the EN logon you ll still find the vendor text in FR. So it is definitely linked to the logon language.
    There should be another way for this too.
    This is an observation and may help you resolve your issue.

  • Retrieving text from Vendor Master data

    Hi All,
    Please go through the navigation and query next to that...
    Vendor Master Change/ Display(XK02/XK03) --> Provide any Vendor number already created --->
    select the General Data ---> select Payment Transactions --> press enter to view the data -->
    Goto Menu Extras --> select texts  --> a window will pop up giving 2 rows for entering text as mentioned below.
    Accounting note
    Purchasing memo         
    We can enter the text beside the provision 1st line  else we can double click any one of them so that we will enter into a window to enter the long text or anything necessary.
    Now that in this concern my requirement is that i want to retrieve the text entered under the 1st line  or in the window which comes after double clicking Accounting note or Purchasing memo option basing on Vendor number or any other parameter or if any table where this data gets stored.
    Is there any program required to retrieve this text or any Function Module which retrieves this text or any coding avaliable please do send me as it is a very urgent requirement ....
    regards
    PSNG

    Could you please let me know, How to check through that FM as the parameters are confusing me when i went through them?
    regards
    PSNG

  • Purchase Order Text in Vendor Master

    Hello.  Does anyone have information on how to use the Purchase Order Text field in the vendor master?  Everything I have read so far is in reference to SRM.  We are currently running ECC6.0.  I entered information into the PO Text field of the Purchasing screen on the vendor master, but cannot figure out how to get it to input to the PO header text.  Any information would be greatly appreciated.

    In customizing ->material management -> purchasing -> purchase order -> texts for purchase orders -> define copying rules for header texts, choose "header text" and click on text linkages. Here you can enter for source object "vendor master", and for source text choose vendor master header text.
    This will copy text from vendor master to PO header text.

  • Upload vendor master data long texts to CRM

    Hi
    I do have the same problem of this thread:
    [CRM Middleware - R3 to CRM - Long Text transfer |CRM Middleware - R3 to CRM - Long Text transfer]
    Does anyone know how to upload long texts of Vendor master data to Business Partner mater data?
    Thanks in advance for any help
    Pierluigi

    By learning the basics of BDC recording and the use of GUI_UPLOAD

  • Upload program for vendor master

    Hi Friends,
    Could you please help me in this.
    actually i have a program like this:
    i have to download the data from an excel sheet and reformat it and output into a text file so that the data can be uploaded into vendor master using standard progarm
    <b>"RFBIKR00".</b>
    i have written the program like this:
    but in the middle when formatting the data...i'm facing the problem....
    plz help me in solving that...
    thnx very very much...........
    the program i wrote is like this:
    <b>
    tables: lfa1,             
            lfb1,             
            lfm1,             
            lfbk,             
            bnka,             
            bgr00,            
            blf00,            
            blfa1,            
            blfb1,           
            blfbk,           
            blfm1,           
            blfb5,           
            blfbw,           
            blfei,           
            blfza,           
            blflr,           
            blfm2,           
            bwyt3,           
            bwyt1,           
            blfat.           
    *--- Internal table for spread sheet.
    data: t_filedata like alsmex_tabline occurs 0 with header line.
    *--- Internal table for Vendor Master Data in Spread Sheet.
    data: begin of t_sheet occurs 0,
            name1 like lfa1-name1,           "vendor name1
            name2 like lfa1-name2,           "vendor name2
            altkn like lfb1-altkn,           "previous master record number
            bukrs like lfb1-bukrs,           "company code
            ekorg like lfm1-ekorg,           "purchase organization
            ktokk like lfa1-ktokk,           "account group
            stras like lfa1-stras,           "street
            street4 like lfa1-name4,         "street4
            pfach like lfa1-pfach,           "po box
            ort01 like lfa1-ort01,           "city
            regio like lfa1-regio,           "region
            pstlz like lfa1-pstlz,           "postal code
            land1 like lfa1-land1,           "country
            telf1 like lfa1-telf1,           "first telephone number
            telfx like lfa1-telfx,           "first fax number
            stcd1 like lfa1-stcd1,           "fed tax ID#
            brsch like lfa1-brsch,           "commodity code
            akont like lfb1-akont,           "reconciliation account
            mindk like lfb1-mindk,           "monitory indicator
            zwels like lfb1-zwels,           "payment method
            reprf like lfb1-reprf,           "check double invoice
            banka like bnka-banka,           "bank name
            stret like bnka-stras,           "house number and street
            city  like bnka-ort01,           "city
            provz like bnka-provz,           "bank state
            banks like lfbk-banks,           "bank country
            swift like bnka-swift,           "swift code
            bankl like lfbk-bankl,           "aba#
            bankn like lfbk-bankn,           "bank account no
            zterm like lfb1-zterm,           "payment terms
            terms like lfm1-zterm,           "terms of payment key
          end of t_sheet.
    *--- Internal table for Vendor Master data in Text File.
    data: begin of t_file occurs 0,
            s_session type bgr00,
            s_header  type blf00,
            s_blfa1   type blfa1,
            s_blfb1   type blfb1,
            s_blfbk   type blfbk,
            s_blfm1   type blfm1,
            s_blfbk   type blfbk,
            s_blfb5   type blfb5,
            s_blfza   type blfza,
            s_blfm1   type blfm1,
            s_blfat   type blfat,
            s_bwyt1   type bwyt1,
            s_bwyt3   type bwyt3,
            s_blfm2   type blfm2,
            s_blfei   type blfei1,
            s_blfbw   type blfbw,
            s_blflr   type blflr,
         end of t_file.
                       SELECTION SCREEN                          *****
    *---Selection Parameters.
    selection-screen begin of block b1 with frame title title1.
    parameters: p_xlfile like rlgrap-filename.
    parameters: p_txfile type rlgrap-filename.
    selection-screen end of block b1.
                       INITIALIZATION                            *****
    initialization.
    *---Initialize text fields for selection-screen.
      title1 = 'Selection Parameters'.
                       AT SELECTION-SCREEN                       *****
    at selection-screen.
    at selection-screen on p_xlfile.
       perform check_file using p_xlfile.
    at selection-screen on value-request for p_xlfile.
       perform select_file using p_xlfile.
                       START-OF-SELECTION                        *****
    start-of-selection.
       clear t_sheet.
       refresh t_sheet.
    *---Upload Spreadsheet.
       perform read_file using p_xlfile.
    *---Process data into formatted internal table.
       perform format_data.
            append t_file.
         clear t_file.
       endloop.
    *---Download data to Text file.
       perform download_data.
                       TOP-OF-PAGE                               *****
    top-of-page.
       perform top_of_page.
                       S-U-B-R-O-U-T-I-N-E-S                     *****
           Form TOP_OF_PAGE
          Calling the Standard Report Header
    form top_of_page.
       perform header using 'CREATE FILE FOR'
                            'VENDOR MASTER UPLOAD'
                            132.
       skip 2.
    endform.                        "TOP_OF_PAGE
         Form check_file                                              **
         Checking the File entered                                    **
    data: p_filename type string.
    form check_file using p_filename.
    *---The entered File must be Excel spreadsheet.
      data: l_length type i,
            l_ext(4) type c.
      l_length = strlen( p_xlfile ).
      subtract 4 from l_length.
      l_ext = p_xlfile+l_length(4).
      translate l_ext to upper case.
      if l_ext <> '.XLS'.
         message e009 with 'Only Excel spreadsheets are supported'.
      endif.
    *---Check if File exits and not empty.
      data: l_return(10) type c.
      CALL FUNCTION 'WS_QUERY'
           EXPORTING
                FILENAME             = p_filename
                QUERY                = 'FL'
           IMPORTING
                RETURN               = l_return
           EXCEPTIONS
                INV_QUERY            = 1
                NO_BATCH             = 2
                FRONTEND_ERROR       = 3
                OTHERS               = 4
      IF l_return = space or l_return = '0'.
         message e530(pj) with p_filename.
      ENDIF.
    endform.                        "CHECK_FILE
         Form select_file                                              **
    form select_file using p_filename like rlgrap-filename.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
           EXPORTING
              PROGRAM_NAME        = SYST-REPID
              DYNPRO_NUMBER       = SYST-DYNNR
              FIELD_NAME          = ' '
                STATIC              = 'X'
                MASK                = ',MS Excel (.xls),.xls.'
           CHANGING
                FILE_NAME           = p_filename
           EXCEPTIONS
                MASK_TOO_LONG       = 1
                OTHERS              = 2
    IF SY-SUBRC <> 0.
      MESSAGE e838(29) with p_filename.
    ENDIF.
    endform.                        "SELECT_FILE
         Form read_file                                                **
    form read_file using p_filename like rlgrap-filename.
    *---Display status message for User.
    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
           EXPORTING
                TEXT             = 'Uploading Spreadsheet'
    *---Upload spreadsheet.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           EXPORTING
                FILENAME                      = p_filename
                I_BEGIN_COL                   = 1
                I_BEGIN_ROW                   = 1
                I_END_COL                     = 256
                I_END_ROW                     = 65536
           TABLES
                INTERN                        = t_filedata
           EXCEPTIONS
                INCONSISTENT_PARAMETERS       = 1
                UPLOAD_OLE                    = 2
                OTHERS                        = 3
    IF t_filedata[] is initial.
    message i009 with 'NO DATA FOUND IN FILE' p_filename.
    stop.
    ENDIF.
    sort t_filedata by row col.
    endform.                        "READ_FILE
         Form format_data                                              **
    form format_data.
      data: l_index type i.
      field-symbols: <fs1>.
    *---Display status message for user.
    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
           EXPORTING
                TEXT             = ' Processing Data...'
      loop at t_filedata.
        l_index = t_filedata-col.
        assign component l_index of structure t_sheet to <fs1>.
        <fs1> = t_filedata-value.
        at end of row.
           append t_sheet.
           clear t_sheet.
        endat.
      endloop.
        refresh t_filedata.
        free t_filedata.
    endform.                        "FORMAT_DATA
         Form download_data.
    form download_data.
    OPEN DATASET p_txfile for OUTPUT.
      LOOP at t_file.
         TRANSFER t_file to p_txfile.
      ENDLOOP.
    CLOSE DATASET p_txfile.
    IF SY-SUBRC = 0.
      WRITE: / 'Excel to Textfile for Vendor Master Upload: ', P_TXFILE.
    ENDIF.
    endform.                    "DOWNLOAD_DATA</b>

    Hi!
    You don't need to program the 'translation' from a file into input data for RFBIKR00 yourself. SAP has done this, so that you can do this (nearly) without programming. If you need some special conversion rules, then you can add some coding, but most is possible without.
    Have a look at transaction LSMW. It's not so complicated it looks at the first time. Just look at <a href="http://help.sap.com/saphelp_erp2004/helpdata/en/ad/2d54a41d7011d2b42e006094b944c8/frameset.htm">help</a> for the way to use LSMW.
    Regards,
    Christian
    P.S.: sorry for lost your efforts, but you should switch to LSMW

  • Time-dependent Vendor Master & Handling Special Characters

    Hi,
    I need to extract time-dependent Vendor Master.
    1. The data source for <b>0VENDOR</b> does not have fields to hold the valid date range.
    2. Does the Master data in R/3 for Vendors will hold the valid date range?
    3. The text for <b>0VENDOR</b> provides time-dependent, but how to map the <b>valid from</b> and <b>valid to</b> fields?
    Handling Special Characters:
    We are trying to extract data from Legacy system via DB Connect. The item text field consists of special characters. Of course in BW customization we can specify all the special characters to consider. But the special character we observed is 'square' symbol i.e. 'new line character' in Oracle. We are updating this to an ODS object. When looked at error log, observed that green light for the number of records transferred and updated, but finally when it load into ODS object and activates popping up the error message saying 'could not recognize special character'.
    Please help me getting the 2 issues resolved.
    Thanks in advance.
    Regards,
    Sudhakar.

    Hi Everyone,
    Thanks for inputs on Special characters issue...
    Finally resolved with below piece of code in the start routine:
    DATA: FLAG,
          OFF TYPE I,
          LEN TYPE I VALUE 1,
          ALLOWED_CHAR(95) VALUE
    '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ`~!@#$%^&*()-_=+ ' &
    'abcdefghijklmnopqrstuvwxyz:;<>,.?/|\{}[]"'''.
    CONSTANTS: C_CHAR VALUE '-'.
      LOOP AT DATA_PACKAGE WHERE NOT /BIC/ZI_DESC IS INITIAL .
        DO.
          IF DATA_PACKAGE-/BIC/ZI_DESC CN  ALLOWED_CHAR.
            REPLACE SECTION OFFSET SY-FDPOS LENGTH LEN OF
                    DATA_PACKAGE-/BIC/ZI_DESC WITH C_CHAR.
            FLAG = SPACE.
          ELSE.
            FLAG = 'X'.
          ENDIF.
          IF FLAG = 'X'.
            EXIT.
          ENDIF.
        ENDDO.
        MODIFY DATA_PACKAGE.
      ENDLOOP.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    I have seen the link sent by 'Eugene Khusainov' today. Thought putting my piece of code that may help others...
    Regards,
    Sudhakar.

  • Vendor Master Update

    Hi,
    My requirement is to interface with leagacy system the vendor master data . For this i am using RFBIKR00 in my z-prg. The structures that are getting passed are BGR00, BLF00, BLFA1, BLFB1... In structure BLF00 I am getting the T-code & the Vendor number ... The inputfile is coming with t-code XK01... My program changes t-code to XK02 if vendor is already pressent in LFA1 & LFB1 ... but my program is failing when the vendor num exists in LFA1 but not in LFB1...because the t-code remains XK01 & when the session is created at that it throws an error saying "XK01" ... Vendor already exists... & If I check for vendors only in LFA1... the t-code chages to XK02 ... but in SM35 it gives an error saying Vendor -
    has not being created for company -
    .... Please help me to figure out how do I handle this type of situation... Also please tell me that in real time can there be a reverse situation ??... means Vendor present in LFB1 but not in LFA1 ?? ... I am also encloing my code below :-
    Select vendors number from LFA1 & then from LFB1
    FORM GET_VENDOR_NUMBER .
      SELECT LIFNR
             KTOKK
        INTO TABLE T_VENDOR
        FROM LFA1 CLIENT SPECIFIED
        WHERE MANDT = SY-MANDT AND
              KTOKK = C_KTOKK.
      IF SY-SUBRC <> 0.
        MESSAGE I010.    " No vendor found
      ELSE.
        SORT T_VENDOR BY LIFNR KTOKK.
        IF NOT T_VENDOR[] IS INITIAL.
          SELECT LIFNR
                 BUKRS
             INTO TABLE T_CCVENDOR
             FROM LFB1 CLIENT SPECIFIED
             FOR ALL ENTRIES IN T_VENDOR
             WHERE MANDT = SY-MANDT   AND
                   LIFNR = T_VENDOR-LIFNR AND
                   BUKRS = C_BUKRS.
          IF SY-SUBRC = 0.
            SORT T_CCVENDOR BY LIFNR BUKRS.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.                    " GET_VENDOR_NUMBER
          Perform to process the logic
    FORM PROCESS_FILES .
    Open the file
      LOOP AT T_LISTFILES.
        CONCATENATE C_DIRFILES
                    T_LISTFILES-NAME
               INTO V_FILEPATH.
        OPEN DATASET V_FILEPATH FOR INPUT IN TEXT MODE ENCODING DEFAULT
                                                  MESSAGE V_MSG.
       WRITE: V_FILEPATH.
        IF SY-SUBRC <> 0.
          MESSAGE I008.              "'File cannot be opened.
          EXIT.
        ENDIF.
    Reading the file.
        DO.
          READ DATASET V_FILEPATH INTO T_INPUTFILE.
          IF SY-SUBRC <> 0.
            EXIT.
    Capture session name.
          ELSEIF T_INPUTFILE+0(1) = '0'.
            V_SESS_NAME = T_INPUTFILE+1(12).
    Get Vendor account group info
          ELSEIF T_INPUTFILE0(1) = '1' AND T_INPUTFILE1(4) = 'XK01'.
            READ TABLE T_RECACC WITH KEY Z_INTERFACE = 'RB'.
            IF SY-SUBRC = 0.
              T_INPUTFILE+39(4) = T_RECACC-Z_KTOKK.
            ENDIF.
    Check for vendor number.
            READ TABLE T_CCVENDOR WITH KEY LIFNR = T_INPUTFILE+21(10)
                                           BUKRS = C_BUKRS.
            IF SY-SUBRC = 0.
              T_INPUTFILE+1(4) = 'XK02'.
            ENDIF.
          ENDIF.
          APPEND T_INPUTFILE.
          CLEAR  T_INPUTFILE.
        ENDDO.
    Close the file.
        CLOSE DATASET V_FILEPATH.

    Hi Rob,
      It gave an error for the 1st record where t-code got changed to XK02 as Vendor -
    has not been created for company code -
      The second record gave an error saying that "No batch input data for screen SAPMF02K 0111" , which means it could not find the general data ... I inquired here & they told me that I should pass the input file as :-
    0Sessname  210usernam       00000000X/
    1XK01                00001000151001/
    2BLFB1                                   /
    But my incoming flat file will have the records in this format:-
    0Sessname  210usernam       00000000X/
    1XK01                00001000151001/
    2BLFA1                         /
    2BLFB1                                   /
    Currently I want to know that if my record pointer is in record 1XK01 line ... how should it skip directly to 2BLFB1 line ...
    If I follow the below code ... it errors saying that general data it not found "No batch input data for screen SAPMF02K 0111"
    Check for the condition vendor number present in LFA1 but not in LFB1
            READ TABLE T_VENDOR WITH KEY LIFNR = T_INPUTFILE+21(10)
                                         KTOKK = C_KTOKK.        "check LFA1
            IF SY-SUBRC = 0.
              READ TABLE T_CCVENDOR WITH KEY LIFNR = T_INPUTFILE+21(10)
                                            BUKRS = C_BUKRS.    "check LFB1
              IF SY-SUBRC <> 0.
                APPEND T_INPUTFILE.
                CLEAR T_INPUTFILE.
                READ DATASET V_FILEPATH INTO T_INPUTFILE.
                  IF SY-SUBRC = 0.
                   IF T_INPUTFILE0(1) = '2' AND T_INPUTFILE1(5) = 'BLFA1'.
                     CONTINUE.
                   ENDIF.
                  ENDIF.
              ENDIF.
            ENDIF.
    So i believe I should not do a read instea directly skip the line of 1BLFA1 & directly go to 2BLFB1 record line...
    Can you help me please....
    Thank you,
    SB.

  • Stop defaulted from vendor master.

    Dear All Forum mates,
    When entering invoices, the payment method supplement is defaulted from the vendor master record.
    We need to stop defaulting payment method supplement to Invoice Document .And Even though the payment supplement has been removed or blank in Invoice document, the proposal list of Invoices & IDOC needs to show the PM supplement from the vendor master.
    Please guide me how can I achieve the above client requirement. 
    Best Regards,
    Shekar.

    Hi,
    In MK03 please open your vendor go to purchasing data and  click on extras on the menu bar, and select text, here you will find purchase order texts, hope this is what you were looking for.
    Also check the PIR.
    Regards
    Shailesh
    Edited by: Shailesh Rajan on Jun 28, 2011 3:07 PM

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

  • Additional Field in Vendor Master for PF Number and ESI Number

    Hi Experts,
    I have to maintain ESI Number and PF Number in Vendor Master, but no such field is available in vendor master or J1ID. Kindly suggest me the fields which I can use. We have to capture the ESI and PF Number of the vendor in case He is a subcontractor to us.
    Regards
    GR

    Hi
    You can looks for customer fields (ABAP developed fields). You have standard development available in SAP. See the below config path. It will help you and your abaper
    spro>logistics General->bussiness partner->vendors->control--->adoption of customer's own master data fields.
    With the help of help text available there you and your abaper can develop it with flow logic easily with minimum effort.
    Hope it helps you
    Regards
    Antony

  • Vendor Master Payment Terms and Reconcillation account

    Pls tell me In SPRO where Payment Terms and Reconcillation account's are maintained for Vendormaster

    HI Vinay,
    Your question isn't clear. You want to define Payment terms and Reconciliation account for Vendor Master record ?
    If this is correct then go through the below path for payment terms & Reconciliation Account.
    MAINTAIN TERMS OF PAYMENT:
    SPRO –> REF IMG –> Financial Accounting –> Accounts Receivable and Accounts Payable –> Business Transactions –> Incoming invoices/Credit memos –> Maintain terms of payment (or) OBB8
    RECONCILIATION ACCOUNT
    Accounting –> Financial Accounting –> General Ledger –> Master Records   –> Individual processing –> Centrally (or) FS00
    Enter G/L Account No. – XXXXXX
    Company Code – AAAA and select CREATE   button. 
    Under Type/Description tab
    Account Group – LIABILITIES
    • Balance sheet
    Short text – A/P (or) SUNDRY CREDITORS A/C
    G/L acct long text – A/P A/C
    Under Control data tab
    Account currency – INR
    Reconciliation account for A/C type – Vendors
    Under Create/bank/interest tab
    Field status group – G067 and SAVE.
    Rams.N
    If this is helpful, assign me points

Maybe you are looking for