Use Conversion Routine in Infopackage
Hello friends,
I would like to know whats the purpose and function of 'Use Conversion Routine' in the Infopackage under 'Data Selection' tab. I wasnt able to get any data as long as that box was checked.As soon as I unchecked the box, i was able to get data.Please explain in detail.
Points will be assigned.
Thanks.
Hi,
The function of "Use Conversion Routine" is to convert the data that user enter in the field (is called external format) into internal format (database format).
example Alpha Conversion (general used): in the field ABC (assume this char is 8 characters long) you enter value '1234' and you check that box, this will look up into your data source with value ABC = '00001234' and match then data will be extracted, but if <u>in your data source</u> the value of field ABC is '1234' the data won't be extracted.
in your case, please check in your data source at field you selected whether the data format match or not with value that you have entered(with condition checked or unchecked).
I hope it helps
Cheers
IR
Similar Messages
-
Hi,
I use SAP netweaver2004s, when I create an infopackage the Use conversion routines is in grey and I can select it.
Do you have any idea why?
Thanks,
EricHi,
My problem is that I don't have the choice to check it or not, this option is in grey.
Thanks,
Eric -
What is use of routine in Infopackage screen
Hi,
What is use of routine in Infopackage screen.
can anyone provide me a scenerio.
Thanks,
cheta.Yes they are very helpful...
I will explain you one scenario....
Because of certain irregularities in the system, I have to take a full upload everyday from 1st Apr 2007 to the current date...earlier I was extracting that data manually because I have to give the current date in the "TO" field....now my From date is 1st April 2007 and From Date is Sy-Datum...now this package is scheduled and I have removed the manual intervention.
Hope this clears you.
Regards
Gajendra -
How to delimit leading zero in vendor number in OO ABAP ALV without using conversion routine
Hi,
How to delimit leading zero in OO ABAP ALV without using conversion routine, because I have many fields like vendor, customer, material number etc..
How to address this leading zero.
I appreciate your quick response.
Regards,
Nalini S.Hi Nalini,
Delimiting leading zeros in fields has to be done via conversion routines, as suggested by Vadamalai you need to pass on the conversion routine name in you field catalog variable.
Now as to which object oriented approach are you using to have your table contents display in ALV as it matters -
Using FACTORY method of CL_SALV_TABLE class, or
Using SET_TABLE_FOR_FIRST_DISPLAY method of CL_GUI_ALV_GRID class.
Using FACTORY method of CL_SALV_TABLE will do your own work, no need to apply any conversion routines or set long/medium/short text for columns as we do in field catalogs!
Cheers,
Varun -
What are the commonly used conversion routines apart from alpha conversion?
hi all,
Can any one let me know the commonly used conversion routines apart from alpha conversion routines ?
thanxs ina dvance
hariHari
There are lot of conversion routines, like
BUCAT Conversion Routine. eg. The BUCAT conversion routine converts the internal presentation of the budget type
(0BUD_CAT) into the external presentation (0BUD_CAT_EX), using the active entries in the
master data table for the budget type InfoObject (0BUD_CAT).
see the link below for all the routines.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b9119290-0201-0010-69af-96fe3bf00243
assign points if helpful
Kalyan -
How to use conversion routine?
hi,
in my z-table i have a field called matnr for the material number say.
its domain defines it as 18 char.
say i have created an entry say 200.
so it will be saved may be as 000000000000000200.
i want it should be displayed with as 200.
and if i search for say 200.
so it should not look for the proceeding zero's.
it should not give me an error that record doesn't exists.
please tell me how to use exaclty conversion routine.
thanks
ektahi all,
the problem has been solved.
CONVERSION_EXIT_MATN1_OUTPUT this FM module can only be used where the z-table has matnr of the type MATNR the standard matnr of the table mara.
so in my program it was not working.
my data element was not matnr.
i had used a popup for position finder.
so it could not read the material number which had zeros as prefixes.
thanks for all the help
thanks
ekta
below the code is mentioned...................
*******************************C O D E*******************************************
WHEN '&POS'.
popup_title = 'Choose The Material Number'.
CLEAR it_fields.
it_fields-tabname = 'Z10ET_TAB_MAT01'.
it_fields-fieldname = 'MATNR'.
it_fields-field_attr = ' '.
it_fields-field_obl = 'X'.
APPEND it_fields.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
no_value_check = 'X'
popup_title = popup_title
start_column = '5'
start_row = '5'
IMPORTING
returncode = returncode
TABLES
fields = it_fields
EXCEPTIONS
error_in_fields = 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.
IF returncode = ' '.
MESSAGE i036 WITH it_fields-value.
SORT it_material_data BY matnr.
READ TABLE it_material_data INTO wa_material_data
WITH KEY matnr = it_fields-value.
IF sy-subrc = 0.
tab_ctrl1-top_line = sy-tabix.
REFRESH it_fields.
CLEAR returncode.
CLEAR ok_code_0101.
ELSE.
CONCATENATE concat it_fields-value INTO v_matnr.
READ TABLE it_material_data INTO wa_material_data
WITH KEY matnr = v_matnr.
IF sy-subrc = 0.
tab_ctrl1-top_line = sy-tabix.
REFRESH it_fields.
CLEAR returncode.
CLEAR ok_code_0101.
ELSE.
MESSAGE i037 WITH it_fields-value.
REFRESH it_fields.
CLEAR returncode.
CLEAR ok_code_0101.
ENDIF.
ENDIF.
ENDIF. -
Infopackage Conversion Routine option is checked
Hi everyone,
I'm trying to understand the dynamic of the Dataload process in my new client and there is a infopachage where in "Data Selection" tab i have a "Use Conversion Routine" option checked and i don't know where this exact routine is actually is, i mean i want to see the code and what this routine does??
Any ideas?Hi,
In the infopackage selection screen you can enter your selections either directly or through the use of routines.
"Use conversion routine " is selected to enable these routines.
To write the routines click on the "Type(Variable change...)" column,and in its selection screen u hav two options
ABAP Routine
OLAP Variables
Selcet ABAP Routine.
Give a description and click on editor,
it will take u to the routine scree.
Now u can do the required cahnges.
Once it is saved the routine is available in the TYPE column in the selection screen -
ABAP routine in infopackage that runs function in ECC
Hi All
I need to have dynamic filter in the info package
I have program in ECC that brings me the value that I need to filter in my info packege
I want to use ABAP routine in infopackage that runs function in ECC and brings the value that was received from the ECC function
Is that possible?
ThanksHi All
my CTO found the following option
function module that is "remote-enabled module "
then you call CALL FUNCTION 'Y_FM_IDOC_CATSDB' DESTINATION 'SAP4.7E'
you need to define it in SM59
code example
data: BEGIN OF IT_SOBSL OCCURS 0,
SOBSL(2),
END OF IT_SOBSL.
DATA: ls_range type STANDARD TABLE OF rssdlrange WITH HEADER LINE.
SELECT /BIC/ZSPEPROCI FROM /BIC/SZSPEPROCI INTO TABLE IT_SOBSL
WHERE /BIC/ZSPEPROCI NOT BETWEEN 'AA' AND 'ZZ'
AND /bic/zspeproci ne '' .
BREAK-POINT.
LOOP AT IT_SOBSL.
ls_range-IOBJNM = 'SOBSL'.
ls_range-LOW = IT_SOBSL-SOBSL.
ls_range-SIGN = 'I'.
ls_range-OPTION = 'EQ'.
APPEND ls_range .
ENDLOOP.
loop at ls_range.
append ls_range to l_t_range.
endloop. -
How to use Conversion Routines in Production Support?What is Conversion Routine?How it is Working in real time?
hi..
i'm not too sure abt it.. check out if the below helps ya.
you can create customer routines. According to OSS Note 41474 it is safe to create a function module that has the conversion exit naming standard (Begins with CONVERSION_EXIT*). You will get a warning that you can ignore. The important part is to have the first letter of your rountine name begin with Z or Y. That way you won't have a conflict with SAP. An example would be:
CONVERSION_EXIT_Z0001_INPUT .
i browsed n found these details as none had answered ur question. -
Why do u need conversion routine at object level?
hi friends,
what scenerio we use conversion routine at object level, while creating my character , there is option conversion routine, when we use, please give me 1 scenerio with sample code?
regards
ssSuneel,
You can make transformation to the data for specific InfoObjects in the Transfer Rules and / or Update Rules.
Now, when you do that, it will only affect that InfoObject in that particular set of rules.
If you want to process o transform the data for this InfoObject ANYWHERE it is used, without the need of repeating it over and over in the Transfer or Update Rules where it is present, you just do it once, at the Object level.
That's the main purpose.
Sorry, I don't have a sample code.
Regards,
Luis -
What is use of Conversion Routine in Abap dictionary
Hi,
Can any body please tell me the proper use of <b>Conversion Routine in Abap dictionary.</b>
Please give me a practical example where it has been used.
Thanks
prabhuduttahi,
here is help for conversion routine
Conversion takes place when converting the contents of a screen field from display format to SAP-internal format and vice versa and when outputting with the ABAP statement WRITE, depending on the data type of the field.
If standard conversion is not suitable, it can be overridden by specifying a conversion routine in the underlying domain.
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.
If a screen field refers to a domain with a conversion routine, this conversion routine is executed automatically each time an entry is made in this screen field or when values are displayed with this screen field.
regards,
Raghavendra -
USE OF CONVERSION ROUTINES WHILE CREATING DOMAIN
Hi,
Could anyone tell me the use of conversion routines under output characteristics tab while creating a domain ??
Thanks & Regards,
Mounica JCoversion Routines are used to convert field values into internal or external format.
Once you specify the Conversion routines at domain level,it ensures that data conversion into external and internal format is handled automatically .
Please close the post if the question is answered.
Thanks,
Faiz -
Routine in Infopackage selection
Hi,
We are using DB Connect and hence we need to write a routine in Infopackage selections to restrict the data to be extracted.
In the source file, there is a field called " Time stamp".
This is a Char 23 field with mm-dd-yyyy-hh.mm.ss.sssss format.
My requirement is lookinto first 10 char ( only for date) and filter the records. If the date = Sy-datum, then only, i want to extract the data in BI staging.
Is it possible to write a routine in Infopackage ? Can you pls help me ?
Or do i need to take the whole data into PSA and then write a routine in transformation while uploading to Data Target ?
Regds,
BW SmallHi,
See the below code for Including 0FISCPER dynamically, so in that way you can write code to get your selection or change the data formate etc.., show this code to ABAPer ask according to this code implement your logic.
In below code I'm calculating 0FISCPER based on Sy-Datum using FM.
program conversion_routine.
* Type pools used by conversion program
type-pools: rsarc, rsarr, rssm.
tables: rssdlrange.
* Global code used by conversion rules
*$*$ begin of global - insert your declaration only below this line *-*
* TABLES: ...
* DATA: ...
*$*$ end of global - insert your declaration only before this line *-*
* InfoObject = 0FISCPER
* Fieldname = FISCPER
* data type = NUMC
* length = 000009
* convexit = PERI7
form compute_FISCPER
tables l_t_range structure rssdlrange
using p_infopackage type rslogdpid
p_fieldname type rsfnm
changing p_subrc like sy-subrc.
* Insert source code to current selection field
*$*$ begin of routine - insert your code only below this line *-*
DATA: l_idx LIKE sy-tabix,
zzdate LIKE sy-datum,
zzbuper LIKE t009b-poper,
zzbdatj LIKE t009b-bdatj,
zzperiod(7) TYPE c.
READ TABLE l_t_range WITH KEY
fieldname = 'FISCPER'.
l_idx = sy-tabix.
zzdate = sy-datum - 1.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
i_date = zzdate
* I_MONMIT = 00
i_periv = 'V3'
IMPORTING
e_buper = zzbuper
e_gjahr = zzbdatj.
* EXCEPTIONS
* INPUT_FALSE = 1
* T009_NOTFOUND = 2
* T009B_NOTFOUND = 3
* OTHERS = 4
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CONCATENATE zzbdatj zzbuper INTO zzperiod.
l_t_range-low = zzperiod.
l_t_range-option = 'EQ'.
l_t_range-sign = 'I'.
MODIFY l_t_range INDEX l_idx.
p_subrc = 0.
*$*$ end of routine - insert your code only before this line *-*
endform.
Thanks
Reddy -
WBS element conversion routines
Hey guys,
I recently added PS_PSP_PNR to 2LIS_11_VAHDR in order to extract the WBS element from the sales document header. So far so good and everything works fine. In the extractor checker I get the data as expected e.g. 'S-00017.02.09'.
The problem occurs as soon as the data is transferred to BW. In the transfer structure I see that PS_PSP_PNR har conversion routine ABPSP that converts the WBS from external format CHAR(24) to internal NUMC(8). And this is what is causing me the trouble! In the PSA the WBS from above is converted to '00029788'.
I tried several different approaches. If the field is mapped directly to 0WBS_ELEMT the value '00029788' is obviously also written to the DSO and further up the data flow.
I tried coding an ABAP routine in the transfer rules which does not seem to work:
call function 'CONVERSION_EXIT_ABPSP_OUTPUT'
exporting
input = TRAN_STRUCTURE-ps_psp_pnr
importing
output = RESULT.
RETURNCODE = 0.
ABORT = 0.
Since the routine above did not help me at all I tested the FM in SE37 and it does not return any values for '00029788'.
Any clues on this? How to proceed?
BR
Stefan.Well... Didn't want to wait any further for an answer, so I appended PS_POSID to the extract structure and filled this field in ZXRSAU01. In the exit I used 'CONVERSION_EXIT_ABPSP_OUTPUT' to convert to the correct format.
BR
Stefan -
How to write conversion routine for key figure?
Our customer has this requirment:
we need to know the last time of some TV program in BEx report, If a TV program last 500 seconds, we need show the key figure like this: 00:08:20, If a TV program last 100000 seconds, we need show the key figure like 27:46:40 (27 hours and 46 minitues and 27 seconds), If we define a key figure as time, BW system will report a error that say it is not acceptable time. If we want to define a integer, but we need display it like hhmmss format. We know we can write conversion routine for char. but I don't how to write conversion routine for key figure. Please give me any hint if any other solutions?
Edited by: SY DONG on Dec 2, 2010 3:36 AMIf you want to do in Transformation Layer :
You can use routine ...break up the seconds into minute hour and seconds
you will have to handle few cases in this:
let say your variable lv_seconds holds the number of seconds you want to convert to hour min and seconds
DATA: lv_seconds type i,
lv_hrs type i,
lv_sec type i,
lv_min type i.
lv_hrs = lv_seconds / 3600
if lv_hrs >= 1.
lv_min = (lv_hrs - trunc(lv_hrs))*60
here again handle seconds if min >60.
else.
lv_hrs = '00'.
lv_min = lv_hrs*60
It is just hint ..how you can manipulate the seconds to get it...you will have to think about the complete algorithm
Regards,
RK
Maybe you are looking for
-
So I have had an Iphone 5s since April this year. A few weeks ago I was doing the dumb mistake of running down stairs, in flip-flops, while texting on my phone. One little stumble and "Crap" my screen is shattered. I am away at a school is Durham so
-
Getting a XPRESS exception when clicking on add targets in metaview tab
Hi , i am trying to create an identity attribute in Metaview and at that time adding targets i am getting the follwing error XPRESS exception: Can't call method getObjectNames on class com.waveset.ui.FormUtil ==> com.waveset.exception.ItemNotFound: O
-
I have a zen sleek and am using Rhapsody to Go. I managed to load all of my music, including ripped cds, purchased tracks, and Rhapsody to Go subscription tracks without any problems. I've since?downloaded some more subscription tracks and attempted
-
Export To Excel Using Oracle Portal Reports
I am exporting reports to Excel (sylk) using oracle 10g portal application. Example of export link is: http://pens12345.xxxx.yyyy.zzz:1234/pls/portal/SCHEMAPTL.TEST_GR.SHOW?p_arg_names=ccc&p_arg_values=%25&p_arg_names=yy&p_arg_values=%25&p_arg_names=
-
Hi Can anyone help me with some suggestions on a Java project? I have to make an "Web service builder", but the problem is that I' m not familiar on working with web services. Can somebody give some advices? How do I suppose to start? What to use? An