Conversion exit for lifnr (Vendor No.)

Hi,
     I am looking for conversion exit to convert vendor No. from xx to 00000000xx.
Thanks for Ur time.
Cheers,
Sam

Hi,
You can use CONVERSION_EXIT_ALPHA_INPUT function module.
CONVERSION_EXIT_ALPHA_INPUT
Exporting.
Filed = LIFNR
Importing
Field = LIFNR
Regards
Sudheer

Similar Messages

  • Conversion exit for BANKN

    Hi all ,
    We have created a conversion exit for BANKN (LFBK-BANKN) field to mask it ; This field is getting masked in most of hthe reports execpt few . When i checked the issue , CDPOS table doesnt contain this field against the change number (say of a particular vendor ) . Any idea , why the field is not present in this table and how to bring the same in it.
    Thanks
    Supriya murudkar

    Yes, You are right. The field is not in the CDPOS table but probably we don''t need that field .
    BANKN (LFBK-BANKN) field  has internally masked with the CDPOS-CHANGENR (Document change number). So whatever the data you required from the CDPOS, You can get by the BANKN (change number).
    plz chk.

  • Custom Conversion Exit for a Custom InfoObject

    Has anyone created a custom conversion exit for an InfoObject?
    I have a requirement to mask the first five digits of the Social Security Number on output only. I created a custom conversion exit ZCONV, for example and added code to the output function module CONVERSION_EXIT_ZCONV_OUTPUT to accomplish the masking. In the CONVERSION_EXIT_ZCONV_INPUT, I just passed INPUT to OUTPUT.
    It works OK for masking the output results but any input variables return an "Invalid Format" error. So I am not able to have a selection screen variable where you enter the SSN number and run the query for it. It tries to convert it to the masked form and then run the query.
    Any pointers. Helpful answers will be promptly rewarded.
    Thanks
    Vineet

    Since the ultimate goal was not to display Social Security Numbers, I changed the custom Conversion exit to display SID values. In case anyone needs to do the same, The output function module CONVERSION_EXIT_ZCONV_OUTPUT  is coded to read the SID value for the SSN number from the SID table of the InfoObject and the input function module CONVERSION_EXIT_ZCONV_INPUT does the reverse by reading the SSN number for the SID.
    Dropdowns on variable values work OK by displaying the SID value and the employee name. The only drawback is that you cannot input a SSN number on the selection variable. You have to do the dropdown and select.
    Thanks
    Vineet

  • Where can i find the conversion exits for date

    hi
    where can i find the conversion exits for date

    Hi,
    Use function modules to convert data into fiscal year and week.once you get week then you can calcute period,
    quarter and half years based on that week.For this the function modules are
    1..UMC_CALDAY_TO_FISCPER
    2..DATE_TO_PERIOD_CONVERT
    Regards,
    swami.

  • Conversion Exit for data type FLTP

    Can someone suggest me a conversion Exit for data type FLTP?

    Hi,
    CHAR_FLTP_CONVERSION
    FLTP_CHAR_CONVERSION
    Have a look at the function module documentation.
    Regards,
    Reema.
    PS. pl. award points to useful answers.

  • Conversion exit for German umlots

    Hello,
         Do we have any conversion exit for changing internal format of German umlots ( ÜÄÖ ) to external formats.
    Regards,
    satya

    Hi,
    CHAR_FLTP_CONVERSION
    FLTP_CHAR_CONVERSION
    Have a look at the function module documentation.
    Regards,
    Reema.
    PS. pl. award points to useful answers.

  • Error in conversion exit for DATE

    Hi 
    I am loading transaction data to Zcube  from a flat file ,for  0CALWEEK
    in excel   I am  unable to type 022007,if I load 22007 I am getting error like
    Error in conversion exit
    CONVERSION_EXIT_PERI6_INPUT
    here 2 is the 2nd week in 2007
    Plz  provide me how to format cell in excel to take 0 as starting number and the file will be saved as CSV format  or any other procedure
    Thanks
    Padmanaha

    Hi,
    Select the column in excel
    Right Click and choose format cells.
    In the pop up window, the first tab is for formatting. A list will be available, there you have to choose "Date" format.
    Within the date format, you will find number of options to set the formatting according to your specifications.
    If that does not work out, just use "Custom" format as "mmyyyy" for all the cells in that particular column.
    With Regards

  • Conversion Exit for MENGE

    Hi,
    I am looking for conversion exit to convert menge (Quantity) from 80.000 to
    0000000080.000.
    regards
    arun

    Hi arun,
    split lv_qty at '.' into lv_qty13
                                     lv_qty3.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                 EXPORTING
                      INPUT  = lV_qty13
                 IMPORTING
                      OUTPUT = lV_qty13.
       concatenate lv_qty13 lv_qty3 into lv_qty
                                            separated by '.'.
    Finally lv_qty will have your required value. plz use the above code. If your problem is solved reward points. don't forget.
    Thanks,
    Suma.

  • Conversion exit for project definition

    Hi
    I have created a generic extractor to get some data of table PRPS. The project-definition number in this table is in field PSPHI. When you display the result of the extractor in the extractor checker (RSA3) the correct number (e.g. PG5707) is showing, however, when it comes into BW, it is showing the internal number (e.g. 000002). In BW I use this field to populate 0PROJECT, but due to the internal number being sent, I cant use it.
    Can anyone please tell me what conversion exit I can call in my extractor to get the external number?
    I also notice in SE16 for this table there is a selection in the user parameters to tick under the "Format" section in the data browser tab. If it is not selected, it shows the internal number, but if selected, the external number is displayed. I want to do this in my extractor.
    Thanks
    Karin

    Hello Karin,  
    Have a look at these OSS
    SAP Note 776990 Conversion exits with string parameters
    SAP Note 756662 RSAR 196:InfoObj. contains val. which is not conversion exit
    SAP Note 925589 P8:SDL:New DS:Possible problems w/
    SAPI conversion exit call
    SAP Note 843164 P27:SDL: Problems with conversion exits in the selection tab
    SAP Note 557148 Executing conversion exits
    SAP Note 497043 P6:SDL:Scheduler selections in fields with conversion exits
    SAP Note 1034798 P13:SDL:New DataSource uses incorrect conversion exit
    SAP Note 681931 Error due to conversion exits during the file upload
    SAP Note 1003431 Error in target fields with conversion exits
    SAP Note 374997 SDL: Conversion exits: ABPSN, ABPRJ, ABPSP and MATN1
    [Thanks|http://chandranonline.blogspot.com/]
    [Chandran|http://chandranonline.blogspot.com/]

  • Wich user-exit  for Creating Vendor I must use?

    Hi, experts
    I have a requiriment on T/C XK01 & XK02 when customer is creating or modifying Vendor; it is when user put value on screen field <i>"Payment Terms"</i> (<b>LFB1-ZTERM</b>) this values must be same on next screen "PURCHASING DATA" on screen field "<i>Terms of paymnt</i>" (<b>LFM1-ZTERM</b>).
    Which user exit do I use for this ( RFKRRANZ/SAPMF02K )?
    Where to check  value on screen field "Payment Terms" ( RFKRRANZ/SAPMF02K )  ?
    I will appreciate any helpfull information, as soon as possible, thanks in advance.
    Regards,
    mgg
    P.D. Points reward

    Hi,
    Why do you need user to input if you can copy automatically the value ZTERM from screen purchasing data into ZTERM in accounting screen? You can also pop up a message if user's selected value in accounting screen is different from  purchasing data.
    DATA: WA_STRUC(100) TYPE C,
          WA_LFB1 TYPE LFB1,
          WA_LFM1 TYPE LFM1.
    FIELD-SYMBOLS: <FS_LFB1>, <FS_LFM1>.
    WA_STRUC = '(SAPMF02K)LFB1'.
    ASSIGN (WA_STRUC) TO <FS_LFB1>.
    WA_LFB1 = <FS_LFB1>.
    WA_STRUC = '(SAPMF02K)LFM1'.
    ASSIGN (WA_STRUC) TO <FS_LFM1>.
    WA_LFM1 = <FS_LFM1>.
    WA_LFB1-ZTERM = WA_LFM1-ZTERM.         "<-- change here
    or
    IF WA_LFB1-ZTERM <> WA_LFM1-ZTERM.
    * pop up message
    ENDIF.
    <FS_LFB1> = WA_LFB1.                   "<-- change here
    UNASSIGN <FS_LFB1>.                   "<-- change here
    Regards,
    Ferry Lianto

  • User Exits for Vendor Transaction

    In Vendor Master Display XK02, for Payment Transactions there is a Checkbox for Double Invoice. If the Invoice is already made, I want to raise a error message. Is there any User Exit for that Vendor Transaction to achieve this functionality.

    Hi
    Find the available exits with the following program:::
    *& Report  ZFINDUSEREXIT
    report  zfinduserexit.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : 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 obligatory.
    select single * from tstc where tcode eq p_tcode.
    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 = '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.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    If there are no available user exits you could go for badi's.
    To search for a badi, go to se 24 display class cl_exithandler. double click on method get_instance, get a break point on case statement. execute and start the required transaction in new session. look for variable exit_name. It would show the available badi's.
    <b>please reward if useful...</b>
    regards
    dinesh

  • Conversion Exit/Routines for Project ID

    Hello All,
    I am from the BI forum.
    I would like to have conversion exit for Project ID, The Problem i am facing in BI is, that in my BI report , the project iD displays in internal format , but i need in External format.
    For Ex the Project ID in Master data is P000291 but it displays as 0002189, which is wrong.
    I have found routines like CONVERSION_EXIT_ABPRJ_OUPUT,.
    I have also written a code in my BI system, also, but it still it shows me the internal format.
    The Source field is PSPID coming from PROJ table.
    I need to know the list of conversion routines for Project ID,,(to Convert Internal to External format).
    Thanks and Regards

    use the below FM "CONVERSION_EXIT_ABPSN_OUTPUT"

  • Example of Conversion exit

    Hi all,
    Can anyone send me a example having 'CONVERSION_EXIT_ALPHA_INPUT' 
    and 'CONVERSION_EXIT_ALPHA_OUTPUT'  functions.So i can understnad how to use it.
    Regards,
    Swati garg

    Hi Swathi,
       I f you go through this report you can get to know the usage of the conversion exit for the asset number field (anln1) in table ANLA.
    *& Report  ZASSET_MASTER                             *
    *& Purpose    : Report to display the master details of Assets  
    REPORT  zasset_master LINE-SIZE 1023
                          NO STANDARD PAGE HEADING.
    TABLES: anla, anlz, zasset_master, zasset_transfer.
    TYPE-POOLS: slis.
    DATA : fieldcat TYPE slis_fieldcat_alv,          " FIELD CATOLOG
           fieldcat_t TYPE  slis_t_fieldcat_alv,     " FIELD CATOLOG
           pos TYPE sy-tabix,                        " POSITION FOR FIELDCAT
           name TYPE sy-repid,                       " NAME OF THE REPORT
           sort TYPE slis_sortinfo_alv,              " SORTING ITAB
           sort_t TYPE slis_t_sortinfo_alv,          " SORTING ITAB
           top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE',
           user_command TYPE slis_formname VALUE 'USER_COMMAND'.
    DATA : BEGIN OF it_main OCCURS 0,
             bukrs     TYPE anla-bukrs,              " Company Code
             anln1     TYPE anla-anln1,              " Asset Number
             txt50     TYPE anla-txt50,              " Asset Description
             anlkl     TYPE anla-anlkl,              " Asset Class
             ktogr     TYPE anla-ktogr,              " Account Determination
             aktiv     TYPE anla-aktiv,              " Capitalization Date
             ord41     TYPE anla-ord41,              " Evaluation Group1
             ord42     TYPE anla-ord42,              " Evaluation Group2
             lifnr     TYPE anla-lifnr,              " Vendor Code
             menge     TYPE anla-menge,              " Quantity
             meins     TYPE anla-meins,              " Unit of measure
             invnr     TYPE anla-invnr,              " Inventory No.
             sernr     TYPE anla-sernr,              " Serial No.
             ernam     TYPE anla-ernam,              " Created By
             erdat     TYPE anla-erdat,              " Created Date
             aenam     TYPE anla-aenam,              " Changed By
             aedat     TYPE anla-aedat,              " Changed Date
             gsber     TYPE anlz-gsber,              " Business Area
             kostl     TYPE anlz-kostl,              " Cost Center
             bondno    TYPE zasset_master-bondno,    " Master Bond No.
             boeno     TYPE zasset_master-boeno,     " Bill of Entry No.
             grnno     TYPE zasset_master-grnno,     " GR No.
             zeile     TYPE zasset_master-zeile,     " GR Line Item No.
             pono      TYPE zasset_master-pono,      " PO No.
             prno      TYPE zasset_master-prno,      " PO No.
             currplant    TYPE zasset_transfer-currplant,   " Curr Plant
             currloc      TYPE zasset_transfer-currloc,     " Curr Location
             currseatid   TYPE zasset_transfer-currseatid,  " Curr seatID
             curruser     TYPE zasset_transfer-curruser,    " Current UserID
             sbondno      TYPE zasset_transfer-sbondno,     " Shift Bond No.
             transferdate TYPE zasset_transfer-transferdate," Transfer Date
             anlgr        TYPE anlb-anlgr,                  " Group Asset
           END OF it_main.
    DATA: it_anlz TYPE anlz OCCURS 0 WITH HEADER LINE,
          it_zasset_transfer TYPE zasset_transfer OCCURS 0 WITH HEADER LINE,
          wa_zasset_master TYPE zasset_master.
    DATA: asset_no TYPE zasset_master-assetno.
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE  text-001.
    SELECT-OPTIONS : s_anln1  FOR anla-anln1,
                     s_anlkl  FOR anla-anlkl,
                     s_bukrs  FOR anla-bukrs,
                     s_gsber  FOR anlz-gsber NO INTERVALS NO-EXTENSION,
                     s_kostl  FOR anlz-kostl NO INTERVALS NO-EXTENSION,
                     s_bondno FOR zasset_master-bondno NO INTERVALS
                                                         NO-EXTENSION,
                     s_boeno  FOR zasset_master-bondno NO INTERVALS
                                                         NO-EXTENSION,
                     s_plant  FOR zasset_transfer-currplant NO INTERVALS
                                                        NO-EXTENSION,
                     s_loc    FOR zasset_transfer-currloc NO INTERVALS
                                                        NO-EXTENSION,
                     s_seat   FOR zasset_transfer-currseatid,
                     s_user   FOR zasset_transfer-curruser NO INTERVALS
                                                        NO-EXTENSION,
                     s_ord41  FOR anla-ord41 NO INTERVALS NO-EXTENSION,
                     s_ord42  FOR anla-ord42 NO INTERVALS NO-EXTENSION,
                     s_lifnr  FOR anla-lifnr,
                     s_ernam  FOR anla-ernam NO INTERVALS NO-EXTENSION,
                     s_erdat  FOR anla-erdat,
                     s_aenam  FOR anla-aenam NO INTERVALS NO-EXTENSION,
                     s_aedat  FOR anla-aedat.
    SELECTION-SCREEN END OF BLOCK block1.
    START-OF-SELECTION.
      SELECT * FROM anla INTO CORRESPONDING FIELDS OF TABLE it_main
                             WHERE bukrs IN s_bukrs
                               AND anln1 IN s_anln1
                               AND anlkl IN s_anlkl
                               AND ord41 IN s_ord41
                               AND ord42 IN s_ord42
                               AND lifnr IN s_lifnr
                               AND ernam IN s_ernam
                               AND erdat IN s_erdat
                               AND aenam IN s_aenam
                               AND aedat IN s_aedat.
    LOOP AT it_main.
       select single anlgr from anlb into it_main-anlgr
                  where anln1 eq it_main-anln1.
       SELECT * FROM anlz INTO TABLE it_anlz
                  WHERE anln1 EQ it_main-anln1.
         SORT it_anlz DESCENDING BY adatu.
         READ TABLE it_anlz INDEX 1.
          IF it_anlz-gsber IN s_gsber AND it_anlz-kostl IN s_kostl
             AND it_anlz-werks IN s_plant AND it_anlz-stort IN s_loc
             AND it_anlz-raumn IN s_seat AND it_anlz-pernr IN s_user.
             MOVE : it_anlz-gsber TO it_main-gsber,
                    it_anlz-kostl TO it_main-kostl,
                    it_anlz-werks TO it_main-currplant,
                    it_anlz-stort TO it_main-currloc,
                    it_anlz-raumn TO it_main-currseatid,
                    it_anlz-pernr TO it_main-curruser.
             CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
               EXPORTING
                 input         = it_main-anln1
              IMPORTING
                 output        = asset_no.
             SELECT SINGLE pbondno pboeno pgrnno pzeile ppono pprno
                           fsbondno ftransferdate
                           INTO  CORRESPONDING FIELDS OF it_main
                     FROM  ( zasset_master   AS p  INNER JOIN
                             zasset_transfer AS f ON passetno = fassetno )
                     WHERE p~assetno EQ asset_no
                       AND f~transferdate EQ it_anlz-adatu.
            IF it_main-bondno in s_bondno and it_main-boeno in s_boeno.
               MODIFY it_main.
            ELSE.
               DELETE it_main WHERE anln1 EQ it_anlz-anln1.
            ENDIF.
          ELSE.
           DELETE it_main WHERE anln1 EQ it_anlz-anln1.
         ENDIF.
    clear : asset_no, it_anlz.
    refresh : it_anlz.
    endloop.
    SORT it_main BY anln1.
      CLEAR : fieldcat_t,pos.
      CLEAR fieldcat.
      fieldcat-fieldname = 'ANLN1'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Asset No'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      fieldcat-no_zero = 'X'.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'TXT50'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Asset Description'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'ANLKL'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Asset Class'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      fieldcat-no_zero = 'X'.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'MENGE'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Quantity'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'MEINS'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Unit'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'ORD41'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Evaluation Group1'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'ORD42'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Evaluation Group2'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'INVNR'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Inventory No.'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      fieldcat-no_zero = 'X'.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'SERNR'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Serial No'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      fieldcat-no_zero = 'X'.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'BONDNO'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Master Bond No'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      fieldcat-no_zero = 'X'.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'SBONDNO'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Shift Bond No'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      fieldcat-no_zero = 'X'.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'BOENO'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Bill of Entry No'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      fieldcat-no_zero = 'X'.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'AKTIV'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Capitalization Date'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'ANLGR'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Group Asset'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      fieldcat-no_zero = 'X'.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'CURRPLANT'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Plant'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'CURRLOC'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Location'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'CURRSEATID'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Seat ID'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'CURRUSER'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Employee ID'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'BUKRS'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Company Code'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      fieldcat-no_zero = 'X'.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'GSBER'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Business Area'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'KOSTL'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Cost Center'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      fieldcat-no_zero = 'X'.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'LIFNR'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Vendor'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      fieldcat-no_zero = 'X'.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'PRNO'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Purchase Requisition'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      fieldcat-no_zero = 'X'.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'PONO'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Purchase Order'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      fieldcat-no_zero = 'X'.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'GRNNO'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Goods Receipt Note'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      fieldcat-no_zero = 'X'.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'ZEILE'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'GR Line Item No'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      fieldcat-no_zero = 'X'.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'ERNAM'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Created By'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'ERDAT'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Created Date'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'AENAM'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Changed By'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'AEDAT'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Changed Date'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
      CLEAR fieldcat.
      fieldcat-fieldname = 'TRANSFERDATE'.
      fieldcat-tabname = 'IT_MAIN'.
      fieldcat-seltext_l = 'Last Transfer Date'.
      fieldcat-just = 'L'.
      fieldcat-col_pos = pos.
      pos = pos + 1.
      APPEND fieldcat TO fieldcat_t.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program             = sy-repid
        i_callback_top_of_page         =
        i_callback_pf_status_set       = pf_status_set
         i_callback_user_command        = user_command
          i_grid_title                  = 'Asset Master Details'
        is_layout                      = layout
          it_fieldcat                    = fieldcat_t
          it_sort                        = sort_t
        TABLES
          t_outtab                       = it_main.
    *&      Form  USERCOMMAND
    FORM user_command USING ucomm LIKE sy-ucomm
                         selfield TYPE slis_selfield.
      CASE ucomm.
        WHEN '&IC1'.
          READ TABLE it_main INDEX selfield-tabindex.
           SET PARAMETER ID 'AN1' FIELD it_main-anln1.
           SET PARAMETER ID 'BUK' FIELD it_main-bukrs.
           CALL TRANSACTION 'AS03' AND SKIP FIRST SCREEN.
      ENDCASE.
    ENDFORM.                    "user_command3
    Reward points if the example is useful.
    Regards,
    Radhu

  • Conversion exit error while activating the transfer rules

    Hello gurus,
    We are doing a function module extraction with 3.X data sources.
    On activating the transfer rules , i am getting a conversion exit error for "0fiscyear", but in the infoobject we don't have the conversion exit for it.
    Points will be awarded for any kind of response.
    Thanks and Regards,
    Anu.

    Hi,
    1. Please check in the transformation, its necessary to provide the fiscal variant mapping as well when ur mapping fiscal year object. as on the basis of that value fiscal period will be derived.
    2 I guess ur doing direct mapping (Time conversion) and there is no routine written for that.  if any u can check that as well for any error.
    Thanks
    dipika
    Edited by: Dipika Tyagi on Jun 25, 2008 7:39 AM

  • Conversion Exits

    Hi all
    In my report program, i am calling a conversion exit dynamically(i.e) the name of the conversion exit for a particular data type is generated accordingly.
    The data is converted by the conversion exit to the specified format( i used MATNR)
    for a value 3 it converted to 000000000000000003 (which is the proper format for MATNR).
    but still i am not able to fetch values on the basis of this.
    But if in my select option i pass the value of MATNR as 000000000000000003 directly, the correct data is fetched.
    Note: For all other fields (such as ebeln, correct data is fetched, so it rules out any problems with the select query)
    Plz help.
    Thanks & Regards
    Ravish Garg

    <b>* select statement to get the conversion exit name for the field *</b>
      select convexit
        into varconv_exit
        from  dd01l
        where domname = vardomname.
      endselect.
    <b>
    if conversion exit found for a field *</b>
        concatenate 'CONVERSION_EXIT_'
                    varconv_exit
                    '_INPUT'
                    into
                    varconv_exit.
        perform f_conversion_exit
                              using p_table
                                    p_field
                                    varconv_exit:
                             changing s_range-low,
                                      s_range-high.
    <b>&----
    *&      Form  f_conversion_exit
          text
         <--P_S_RANGE_LOW  text
         <--P_S_RANGE_HIGH  text
    ----</b>
    form f_conversion_exit  using p_tabname
                                  p_fname
                                  p_convexit
                            changing p_value1.
      call function p_convexit
      exporting
          input        = p_value1
          importing
          output       = p_value1
        exceptions
          length_error = 1
          others       = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    endform.                    " f_conversion_exit
    <b>&----
    *&      Form  get_data
          text
    -->  p1        text
    <--  p2        text
    form get_data .</b>
    select * into corresponding fields of table <dyn_table>
                 from (p_table) where (it_where) .
      if sy-dbcnt = 0.
        write :/  'No Data matching Your Criteria!'.
        leave program.
      endif.
    endform.                    " get_data
    When i put matnr in the filed name and a value for it,
    it gets the right conversion exit name : "CONVERSION_EXIT_MATN1_INPUT" for matnr.

Maybe you are looking for

  • Online Help for Oracle HRMS Self Service System

    I am looking into developing context-sensitive online help for an Oracle HRMS Self Service application. There is currently no online help for the application; all help is provided in printed and online docs, so users are having trouble navigating to

  • How to get rid of spacer.gif?

    Hello there, I have an assignment for class and my teacher hasn't gotten back to me yet. I created a site in fireworks (cs6) and then he says to export it. As I was building it and previewing it in a browser, I see these blank white boxes in certain

  • Email content with newline from R/3 using XI.

    Hi all, I am trying to send email from R/3 using XI mail adapter. For content I am using a String in R/3 but the interpreter does not recognize the new line char \n embedded in the string.When the mail arrives it comes as a single line. What is the r

  • SqlConnection Database Tables not Showing

    I am connecting to my remote server but when I try to view my tables they don't show. I am using DreamweaverCS3, Database is MS SQL. My operating system is Win Vista Ultimate. Thanks.

  • How to prevent embedded images falling off the page

    I have embedded images in a multi-column document. It's great to have the images flow with the text, but sometimes they flow over the edge of the page. Is there a way to set the keep options so that embedded images stay on the page?