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
Similar Messages
-
Where can i find the conversion exits for date
hi
where can i find the conversion exits for dateHi,
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. -
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 murudkarYes, 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. -
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,
satyaHi,
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
PadmanahaHi,
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 -
Hi,
I am looking for conversion exit to convert menge (Quantity) from 80.000 to
0000000080.000.
regards
arunHi 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 lifnr (Vendor No.)
Hi,
I am looking for conversion exit to convert vendor No. from xx to 00000000xx.
Thanks for Ur time.
Cheers,
SamHi,
You can use CONVERSION_EXIT_ALPHA_INPUT function module.
CONVERSION_EXIT_ALPHA_INPUT
Exporting.
Filed = LIFNR
Importing
Field = LIFNR
Regards
Sudheer -
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
KarinHello 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/] -
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 Regardsuse the below FM "CONVERSION_EXIT_ABPSN_OUTPUT"
-
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 -
Hi,
I have an InfoObject ZPRODUCT1 with ALPHA Conversion Exit in RSD1 definition.In the Infosource and in the DataSource/Trans. Structure TAB when i check for the corresponding field it has some other Conversion exit called 'PRID1' and i couldn't change it.
When i load the data i get the error at the PSA level itself and the message is,
InfoObject /BIC/ZPRODUCT1 does not contain alpa-conforming value 80001909.
How to fix this problem?
Thank you
arunThanks,
I already did that and it worked properly.
Can you explain how come the conversion exit in Data source transfer structure and the InfoObject can be different?How did this worked?
Will i be able to modify the Conversion exit assignment in the infoobject or Data Source/Trans. Structure TAB? How do i do this, it looks display only in RSD1?
Thank you
arun -
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. -
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 gargHi 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 -
Time field and domin should have conversion exit
hai exports,
i need time field from any table but it should be having conversion exit in the domin..
my requirement is to add two time field in ztable and it reflects in the one report program......when i was get print out time will shows like hh:mm:ss.......
can any one met this?
award avail for useful reply.......
thanks in advance...
regards,
jai.mHi Jaya
I din't really understand why we need conversion exit for this purpose. Even if we do have then how can you make a time fields data type to hold ':', it is not allowed.
If you want to output to in the format of 'hh:mm:ss', then use the edit mask with edit mask as '__:__:__' in your write statement.
~ ranganath
Maybe you are looking for
-
Support information!!
I sent my iPhone to service last Friday, even though the state of repair is still Diagnosis in-progress.What i can do??Thx
-
Mystery Data and dual libraries.
My MBP is starting to run very slow. I am trying to make more space on the system drive and have found I have two libraries; one slightly larger than the other. One is under MAC HD (25G) and one is under Users (39G)(There is also one in System but th
-
Cannot find Bluetooth Preference Panel to install new Magic Mouse
Tried to install a new Magic Mouse, but the computer does not see it. Bluetooth icon is not in toolbar, and Bluetooth Pane is not in preferences panel. Found bluetooth.prefPane file in HD>System>Library>PreferencesPane, double clicked on it, but got
-
Prior to upgrading to Yosemite, mail search results allowed me to find where a specific email was stored in my folders. When I would click on the folder into in the upper right hand corner the specific folder location would be highlighted. In the exa
-
Which external harddrive best for huge FCP video project?
Hi, i'm editing a massive film, pulling media off 3 1TG external harddrives. The drives I've been using are a Chinese brand that works smoothly with premiere but is way too slow for FCP (can't play through the timeline without getting dropped frame n