Equipment Number Conversion Exit
Hello,
I am using the Coversion Exit "CONVERSION_EXIT_ALPHA_INPUT", but it is not giving me the desired output (not converting the equipment number into an 18 char).
Please help me to resolve this, or suggest any other method.
Regards,
Pankaj Agarwal.
Hi!
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = lv_eq_number
IMPORTING
OUTPUT = lv_eq_number
With this code, the output can be the following, depending on the input:
- if the input contains only numbers (123456789): the output will be 000000000123456789
- if the input contains characters also (A123456789): the ouput remains unchanged A123456789
Regards
Tamá
Similar Messages
-
FM for Material number conversion from R/3 to APO in R/3
Hi,
Can anybody tell me conversion exit (function module) for Material number conversion from R/3 to APO in R/3 system. I mean i have 18 digit R/3 material number which i have to convert to 40 digit APO material number in R/3 system.
Please suggest to win full points.
Thaniks in Advance,
Chandan DubeyDear Chandan,
Conversion Exits:
CONVERSION_EXIT_MATN1_INPUT ....... If you are storing Material With Zeros
Then concatenate it with 22 zeros. i.e. '0000000000000000000000000000'.
For example:
data : v_matnr type matnr, "R/3 Material
v_apo_matnr(40) type c, "APO Material with 40 length
v_zeros(22) type c. value '0000000000000000000000000000'.
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING INPUT = v_matnr
IMPORTING OUTPUT = v_matnr.
concatenate e_mantr v_zeros into
v_apo_matnr.
Regards,
Naveen. -
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
VineetSince 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 -
Issue during Equipment Number through IE01
Hi,
When we create an Equipment Number through IE01, then An Asset number is also created with that...
Now issue is that automatically created Asset Number Description, is picking as Company Code number... How can we change the Asset Number Description during Equipment Number generation...
We don't want change description after Asset number generated through AS02...
Please guide...HI
Assignment of SHTXT(PM) to TXT50(AA) is also OK. However please check that the setting Specify Conditions for Synchronization of Master Data is set to synchronised or not.
Please go through the documentation
Assign Master Data Fields of Assets and Equipment
Use
In this IMG activity, you assign fields from Asset Accounting (FI-AA) to fields in Plant Maintenance (PM) for the synchronization of asset and equipment master data.
If you made appropriate settings in the Specify Conditions for Synchronization of Master Data IMG activity, then for example, when you create an asset master record, the system automatically creates an equipment master record, and sychronizes the fields of the equipment master record, based on the field assignments.
On the other hand, the system can also (depending on the settings you make) automatically create an asset master record when you create an equipment master record.
Example
You assign the cost center field of Asset Accounting to the cost center field of Plant Maintenance. When you create an asset, the cost center entered in the asset master record is automatically adopted in the equipment master record, which is created automatically.
Standard settings
SAP provides certain standard assignments for master data fields.
Activities
1. Deactivate assignments that you do not need. You can re-activate them easily at a later point if you need them, without having to set them up again.
2. You can make additional field assignments, by choosing additional fields from Asset Accounting and assigning them to fields in Plant Maintenance. The available Asset Accounting fields are found in the SAAPM1 DDIC structure, while fields for Plant Maintenance are found in the SAAPM2 DDIC structure.
3. Activate the assignments, if you have made new ones.
If you want to make your own, even more specific assignments, you can create an enhancement project for customer exit AAPM0001. Using this project, you can add additional fields to the SAAPM1 and SAAPM2 structures, for which you can then make your assignments.
Notes
The system does not perform a check on the assignments you make. You have to check to ensure that the assignments you make are logical.
For more information, refer to SAP Note 370884 (and possibly related SAP Notes).
Shakti -
"Settings for material number conversion not found" occurs when ...
After I run an initial load data into the InfoCube 0PUR_C01, I want to check the InfoCube Content by the following path:
RSA1 -> pick up the InfoCube 0PUR_C01, right click it and select Manage -> Get to Content tab -> Click InfoCube Content button -> Deselect all selection, only tick the 1st column checkbox next to 0Material, then hit enter, get a small window titled as "Cancel" with a red STOP msg sysing "Settings for material number conversion not found" with an "Exit" button and a question mark button, click Exit button leads to SAP Easy Access screen, if clicking the question mark button, another window pops up with the msg showed above, click Technical Information button causes the original window short dump and the short dump msg shows below in between two dashed lines:
Runtime Errors RPERF_ILLEGAL_STATEMENT
Date and Time 11/28/2005 14:43:13
ShrtText
Statement "CALL SCREEN" is not allowed in this form.
What happened?
Error in ABAP application program.
The current ABAP program "SAPLSHL2" had to be terminated because on
statements could not be executed.
This is probably due to an error in the ABAP program.
Error analysis
There is probably an error in the program
"SAPLSHL2".
The program was probably called in a conversion exit
or in a field exit. These are implemented by
function modules called CONVERSION_EXIT_xxxxx_INPUT/OUTPUT or
USER_EXIT_xxxxx_INPUT.
Conversion exits are triggered during screen field transports or
WRITE statements, field exits during field transports from the
screen to the ABAP/4 program.
In this connection, the following ABAP/4 statements are not allowed:
- CALL SCREEN
- CALL DIALOG
- CALL TRANSACTION
- SUBMIT
- MESSAGE W... and MESSAGE I...
- COMMIT WORK, ROLLBACK WORK
- COMMUNICATION RECEIVE
- STOP
- REJECT
- EXIT FROM STEP-LOOP
Moreover, conversion exits for output conversion
(implemented by function modules called
CONVERSION_EXIT_xxxxx_OUTPUT) do not allow
- MESSAGE E...
to be used.
Trigger Location of Runtime Error
Program SAPLSHL2
Include LSHL2F19
Row 3
Module type (FORM)
Module Name TECHNISCHE_INFO5
rce Code Extract
e SourceCde
1 ***INCLUDE LSHL2F19 .
2 form technische_info5.
>> call screen 1900 starting at 5 8.
4 endform.
5
6 &----
7 *& Form SHRINK_VALUES
8 &----
9 * text *
10 ----
11 * --> p1 text
12 * <-- p2 text
13 ----
14 form shrink_values.
15
16 loop at dynpselect.
17 clear checktable.
18 if dynpvaluetab-lowvalue ne space and dynpvaluetab-lowvalue na '*'.
19 move 'EQ' to checktable-op.
20 move dynpvaluetab-lowvalue to checktable-low_value.
21 append checktable.
22 endif.
What could cause the problem by selecting only 0Material when checking the InfoCube 0PUR_C01 content? What does that mean by this STOP msg "Settings for material number conversion not found"?
ThanksHi Kevin,
Set the length of 0MATERIAL and change conversion to alpha:
Re: Error Installing 0MATERIAL from Business Content
Best regards,
Eugene -
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 ,
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. -
Capturing of Equipment Number Listed in Objects Tab of PM Order
Hi All,
I wanna to use User EXIT IWO10009 for Checking Some Values prior to save a order. inOrder there are some equipmens are mentioned in Objects tab page. now prior to saving the Order , i want to check whether Asset number is available in Equipment Master for the Equipments mentiones in Objects Tab Page. If it found the value then it should allow to save the Order otherwise it should POP up a message showing " The Equipment &EQUNR& is Not Having Asset Number, Kindly Get it update First" Order Save is Not Possible."
Regards
RajHi,
Get the equipment number from importing parameters of the exit CAUFVD_IMP-EQUNR .....
now fetch the data from master data of euipment table EQUI ....wrt that equipment number ......
if for the same record does not exits pop up the message using ...
POPUP_DISPLAY_MESSAGE
function module .....
call function 'POPUP_DISPLAY_MESSAGE'
exporting
titel = 'This is a popup message'
msgid = '00'
msgty = 'E'
msgno = '001'
msgv1 = 'Message Variable 1'
msgv2 = 'Message Variable 2'
msgv3 = 'Message Variable 3'
msgv4 = 'Message Variable 4'.
Thanks,
Shailaja Ainala. -
Conversion exit ALPHA, external- internal
What does the below Alpha Conversion do :
<b>Conversion exit ALPHA, external->internal</b>
An example wud help me understand better!!Hi,
A conversion routine is identified by its five-place name and is stored as a group of two function modules. The function modules have a fixed naming convention. The following function modules are assigned to conversion routine xxxxx:
CONVERSION_EXIT_xxxxx_INPUT
CONVERSION_EXIT_xxxxx_OUTPUT
The INPUT module performs the conversion from display format to internal format. The OUTPUT module performs the conversion from internal format to display format.
E.g. If you specify ALPHA conversion for Material number then when user enters the value for MATNR as 123; internally it is converted to 0000123 and is stored in that format in the database. In this case, conversion is done from external format to internal format and the other way if you are reading value from database; it is converted from internal to external format and value is shown as 123, instead of 0000123.
Hope this helps.
PB -
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 -
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 -
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/] -
Force an IDoc status from a conversion exit
Hi,
I have created a conversion exit (FM CONVERSION_EXIT_*_INPUT / tcode BD79) for outbound IDoc FIDCC2. It converts in-values into other out-values by using a z-table. If the in-value is not found in the z-table, the IDoc should not go into status 03 (Data passed to port OK) but remain in error status instead. How/where can this error status be forced?
Regards, JanI got you.
From the report, I'll go to IDoc(AAAA) display and will change it. Once I saved he IDoc, I'll have a new number xxxx with status 70. I cannot process it. But the status of original IDoc will turn from 51 to 69(Yellow - Can be processed). I have to process this IDoc from here.
But As soon as i save the IDoc, it's kicking me out of the IDoc and report.
From the program, I am not sure where I'll be in the program at this point.
Any inputs aRs.
Thanks,
Matt
Edited by: Creasy Matthew on Sep 16, 2009 11:13 PM -
IE01 fetching the value of referenced equipment number
Hi
in ie01 transaction i created a screen exit and placed one filed in that screen now i want to fetch the referenced equipment number(initial screeen) and placed that value into that field in the screen.
i used get parameters but no use ,
can any one tell me the procedureHi,
What is the screen exit you used? it seems you have simply designed a screen with just that single field.
Screen exit means it have some link with the original transaction and some data fields are available in that screen when we use that exit.
with the help of those fields we will get the extra data into the new fields what we kepp on the screen.
Check and see.
You can try the following BADi's for the screen exit
EQUI_SCR_CC
EQUI_SCR_06
EQUI_SCR_05
EQUI_SCR_04
EQUI_SCR_03
EQUI_SCR_02
EQUI_SCR_01
reward if useful.
Regards,
Anji
Message was edited by:
Anji Reddy Vangala -
Currently for our RMA process we, have an equipment number, Serial number, material number. We convert the RMA to a repair sales order. I would like this data from the RMA to populate the vbap table. I see that vbap has field equnr but this field never has any data.
Is there some way to get the equipment number, with copy control or something into vbap-equnr? Is there a way to see the vbap-equnr field from va01,va02,or va03, I do not see the field from the transaction, only from the table.Hi,
Is 'equnr' part of 'vbap' table?
Serial number is related to equipment number and you can assign serial no for material in Sales Order using Extras-->Technical Objects
Regards,
Sameer
Maybe you are looking for
-
How to send an email with an automatic signature which includes a logo?
Thanks for a hands on answer!
-
Insert chinese big5 characters into database
database: mysql default charset of web page: utf-8 (specified in apache, all pages are in utf-8) if I enter english, database insert is ok but if I enter chinese, error = "You have an error in your SQL syntax; check the manual that corresponds to you
-
What are the new gestures for touch screens?
According to the help file with the Windows 10 Technical Preview for Enterprise build 9879 the same gestures that work on Windows 8.1 are supposed to work on Windows 10. I cannot get swiping down from the top of the screen or the bottom of the screen
-
I keep on getting this error message on my Yahoo mail all of a sudden; You're almost there, but your web browser doesn't support the newest version of Yahoo! Mail The links it gives to upgrade are blocked I have latest version of FireFox 19 and Snow
-
Want to unsync iphone from Outlook but keep my Contacts on my iphon, how???
Hi All, Can someone be so kind in helping me answer my query??? I have synced my iphone to my Outlook, but now i want to remove the Outlook (Mail for Exchange) account from my iphone, but in that process it will remove all my contacts from my phone b