Problem in conversion routine in CGPL_PROJECT and CPGL TEXT Tables
Hi experts...
I have a requirement in Project planning module for audit monitor report...
Based on the External ID (is nothing but a CAPA Number)in CGPL_PROJECT i need to display description(CAPA Description) from CPGL_TEXT Table..
But there is a One conversion routine in CPGL_TEXT Table i.e CONVERSION_EXIT_CGPLP_INPUT
here input is COR-08-0000000291( CAPA number) and i am getting output as 48D9ED5BE8430069E10080000A8C681D.
In CPGL_TEXT table fields are GUID , TEXT_GUID,TEXT1.....
If i give the guid as COR-08-0000000291 out put is
GUID TEXT_GUID TEXT
48D9ED5BE8430069E1008000 48D9ED81E8430069E10080000A8C681D CAPA - Review of Requests
1) IF we compare GUID value here and conversion out put last 8 digits are missing.....(coz in domain of that field len gth and conversion lenght are difff)
2) IF we compare TEXT_GUID and conversion out put both values are entirely diff .....
In select query how can i get text Value......
Can any body please solve me out........
Regards,
Praveena.
solved
Similar Messages
-
I was in a conversation with a colleague and a text (identical) came to both of our phones, when he researched it, it said it was blocked and I thought I might see where it came from through my phone. Is it possible to get a spam like that to our phones at the same time.If the text came to my number marked from him, it could only have been from him?. Is there a possibility that someone else sent it to both of us at the same time?
Yes, it could be spam. I get spam text from time to time. Yes, you both could have gotten the same spam at the same time. Spammers re sending out thousands and thousands of messages.
-
Problem with reading data from screen and inserting in table
hi ther,
im new to abap-webdyn pro. can anyone suggest how to read data from screen and insert into table when press 'ADD' button.
i done screen gui , table creation but problems with action. what the content of acton add.
is ther any link that helps me or tut??
thankx in advance!
regardsHi,
Create a context node for the screen fields for which you want to enter the values with cardinality 1.1.....
Now in the layout of your view bind the screen input fields to that context node(attributes) to the value property of the input fields...
Now in the action of ADD button....
--> go the wizard and select the read node button and select the node which you have created it generates the auto code for you.....
for example if the node is contains aone attribute like MATNR
reading the node from wizard will generate the code as....
DATA lo_nd_matnr TYPE REF TO if_wd_context_node.
DATA lo_el_matnr TYPE REF TO if_wd_context_element.
DATA ls_matnr TYPE wd_this->element_matnr.
DATA lv_matnr TYPE wd_this->element_matnr-matnr.
* navigate from <CONTEXT> to <MATNR> via lead selection
lo_nd_matnr = wd_context->get_child_node( name = wd_this->wdctx_matnr ).
* @TODO handle non existant child
* IF lo_nd_matnr IS INITIAL.
* ENDIF.
* get element via lead selection
lo_el_matnr = lo_nd_matnr->get_element( ).
* @TODO handle not set lead selection
IF lo_el_matnr IS INITIAL.
ENDIF.
* get single attribute
lo_el_matnr->get_attribute(
EXPORTING
name = `MATNR`
IMPORTING
value = lv_matnr ).
here the variable lv_matnr will contain the entered value......
now you can use this value for further process.
Thanks,
Shailaja Ainala. -
Problem in enabling constraint - after disabling and truncation of table .
Hello Friends,
I have a table called DRR_TABLES that has list of table names . The requirement is to truncate the tables present in DRR_TABLES except KEY_IDS table and table_name like '%TYPE%' table.
written a procedure . successfullly truncating the tables from DRR_TABLES but while enabling constraints after truncation , I am getting problem in enabling constraints .
ERROR at line 1:
ORA-02270: no matching unique or primary key for this column-list
ORA-06512: at "schema123.TRUNCATE_DRR_TABLES ", line 49
ORA-06512: at line 1
Heres is the code .
PROCEDURE TRUNCATE_DRR_TABLES is
x varchar2(200);
v_tablecount number := 0;
cursor c is select TABLE_NAME from DRR_TABLES where population_source='PUBLISHING' and TABLE_NAME != 'KEY_IDS' and TABLE_NAME NOT LIKE '%TYPE%';
BEGIN
DBMS_OUTPUT.PUT_LINE (' TRUNCATING DRR TABLES ...........');
OPEN c ;
LOOP
FETCH c INTO x ;
EXIT WHEN c%NOTFOUND;
for c1 in (select table_name, constraint_name from user_constraints where TABLE_NAME = x and status ='ENABLED' ORDER BY CONSTRAINT_TYPE DESC )
loop
begin
execute immediate ('alter table '||c1.table_name||' disable constraint '||c1.constraint_name|| ' cascade');
NULL;
end;
end loop;
EXECUTE IMMEDIATE 'TRUNCATE TABLE ' || x ;
v_tablecount := v_tablecount + 1 ;
DBMS_OUTPUT.PUT_LINE('TABLE TRUNCATED :'|| x );
END LOOP ;
DBMS_OUTPUT.PUT_LINE (' TOTAL TABLES TRUNCATED ' || v_tablecount );
CLOSE c;
OPEN c ;
LOOP
FETCH c INTO x ;
EXIT WHEN c%NOTFOUND;
for c2 in (select table_name, constraint_name from user_constraints where TABLE_NAME = x and status = 'DISABLED' ORDER BY CONSTRAINT_TYPE)
loop
begin
execute immediate ('alter table '||c2.table_name||' enable constraint '||c2.constraint_name);
NULL;
end;
end loop;
END LOOP ;
CLOSE c ;
END TRUNCATE_DRR_TABLES ;
LINE 49 is the line corresponding to enable constraint statement.
Edited by: kumar73 on 3 Sep, 2012 11:44 PMIt is such a pity that a user having 321 posts till date is unaware of basics of Posting a Question.
1. You need to provide us with your Oracle version
select * from v$version;2. You need to understand and get accustomed to using tags before and after Code or SQL's for better readability.
3. You need to provide us with the Table Structure and the Constraints Definition.
There are many things that looks like Bad Coding practices:
<font face="Times New Roman" size=2>
1. Avoid RBAR (Loops).
2. Implement Bulk Collect.
3. Why do you need to disable the constraints before truncating? Are you kind of handling the Referential Integrity Constraints?
4. Duplicate checking of Disabled Constraints.
5. When the procedure is being executed at Production Environment, are you going to Monitor the DBMS_OUTPUT? Why not Log the Statements into a LOG Table?
6. Why use a TableCount variable? Would the TableCount Variable be not equal to the Number of Records returned by Cursor C?
7. What is the need to use a NULL statement after every Execute Immediate?
8. What is the Need to surround each execute Immediate with Begin .. End block?
9. Where is your Exception handling Block? Forgot to write?
</font>
What has been your effort in finding which Constraint/Table is causing you the trouble? -
How to "Custom conversion routine" in BW
Hi team,
The R3 table level field has converion routine which stores the value as "A" .
When you display this in application (or) using ALV, it shows as "AB". There are custom function modules behind this conversion routine.
In BW, when we extract until PSA, we are getting "A".
I see the option at Info object level to write" conversion routine" but how and where to start this conversion routine in BW.
In BW, we want to show "AB"
Thanks
AngeloHi,
this problem is solved in transformation PSA to InfoObject using formula or routine.
Regards,
Conrado
www.forosap.com
Spanish SAP Forum Administrator
Edited by: Conrado Linquet on Mar 29, 2010 5:54 PM -
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 -
Give me details about conversion routine like alpha
give me details about conversion routine like alpha and how many conversion routines are ther and their uses give detail
Hi Deba,
There are many Conversion routines...
ALPHA Conversion Routine
BUCAT Conversion Routine
EAN11 Conversion Routine
GJAHR Conversion Routine
ISOLA Conversion Routine
MATN1 Conversion Routine
NUMCV Conversion Routine
PERI5 Conversion Routine
PERI6 Conversion Routine
PERI7 Conversion Routine
POSID Conversion Routine
PROJ Conversion Routine
REQID Conversion Routine
IDATE Conversion Routine
Conversion Routine RSDAT
SDATE Conversion Routine
WBSEL Conversion Routine
Check this link for conversion routines and its types...
http://help.sap.com/saphelp_nw04s/helpdata/en/2b/e9a20d3347b340946c32331c96a64e/frameset.htm
Hope this helps u...
Regards,
KK. -
PO Header Texts and item texts
Dear Experts
PO header texts and item texts are stored in which table. please tell me the table name.
Here i have configured PO version management. in that i want to control some sensitive fields change only version management will get triggered. it is done through for this i have configured the sensitive fields in PO Print relevant changes. in that config the PO header texts and item texts table and field name is not exist.
Now i have change the PO through me22n in header texts version management is triggered for this. i want to control this if some body change the po header texts and item texts version management should not triggered.
is it possible.
Regards
Anand.Hai,
Try this table STXH.
Get the required information(input) for the function module 'READ_TEXT'.
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = 'ST'
LANGUAGE = sy-langu
NAME = thead-tdname
OBJECT = 'TEXT'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
LINES = lines
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
if sy-subrc eq 0.
loop at lines.
wa_HEADER_TEXTS-TEXT_FORM = lines-TDFORMAT.
wa_HEADER_TEXTS-TEXT_LINE = lines-TDLINE.
append wa_HEADER_TEXTS to lt_tmp_HEADER_TEXTS.
endloop.
Better take the help of abaper.
With Regards,
Jaheer -
Hi,
In one of the info object there is a conversion routine. So, when the query is executed in BeX Query Analyzer the result is comming correct i.e. if in the database the value of info object is 0001234 then at display it is coming as 1234.
However, in case if its value is "STEP" in database , at output "Not Assigned" is comming. Dont know what is happening. If anybody already encouter this problem please help.Hi,
It is not in the hierarchy.
I am using alpha routine so as to remove the leading zeros at the time of display.
There are two info objects, both are same, the only difference between them is one info object is having alpha routine and another one is without it.
The one info object without any routine is displaying values correctly but the another one with aplha routine is displaying 00123 as 123 but also displaying STEP as Not Assigned.
Edited by: megamin79 on Feb 9, 2012 7:43 PM -
Conversion Routines - R3 and BW
I need to create a custom InfoObject in BW to map to an R3 field in an InfoSource. The R3 field has the ABPSP converions routine applied to it. As a rule of thumb is it always best to apply the same conversion routine to the matching BW InfoObject? Is there a time that I wouldn't want to match the conversion routine of the R3 field to the matching BW InfoObject? Your help is appreciated.
Hi David,
Conversion routines in BW will aid in eliminating the technical differences of data format to be acceptable by the BW system. You cannot directly map R/3 Conversion routine to BW Conversion routine as far as my knowledge goes. Please map the infoobject in BW with the R/3 field directly and check if the converted data is directly coming into BW from the R/3 system as you said there is a conversion already existing in R/3. If this doesnot solve your problem, then you can create your own conversion routines using SM37 t.code wherein you will create your conversion rule specifying CONVERSION_EXIT_XXXXX_INPUT and CONVERSION_EXIT_XXXXX_OUTPUT. Where XXXXX is a 5 letter user-specified name of the Conversion. INPUT code is written for converting sourcesystem data to be acceptable into BW tables. OUTPUT is written to converting the BW data into acceptable reporting display. You need to activate both the function modules created in order to use them during infoobject property settings. While using them you can directly see the XXXXX (user-specific) conversion during infoobject conversion settings.
Hope this might be helpful to you. Award points if useful.
Thanks
Kishore Kumar -
Conversion Routines and Function Modules
Hi All,
I have to write the Conversion Routines and Transformation Process for below Fields,
I have a situation, where am having text files with the data having below fields, and before uploading the data to Database i have to do conversion.
So anybody Plz help me regarding this conversion topic how to write the process and how to write the code.
Table Field Name Type Length Short Text
BKPF BLART CHAR 2 Document Type
BKPF BUKRS CHAR 4 Company Code
BSEG BUKRS CHAR 4 Company Code
BSEG HKONT CHAR 10 General Ledger Account
BSEG KOSTL CHAR 10 Cost Center
BSEG VERTN CHAR 13 Contract Number
KNA1 KUNNR CHAR 10 Customer NumberHi Bala
Supposing all the fields exist in internal table itab. You can add the code simple as below:
loop at itab.
perform conv_fld changing: itab-bukrs,
itab-blart,
itab-hkont,
itab-kostl,
itab-vertn,
itab-kunnr.
endloop.
*& Form conv_fld
FORM conv_fld CHANGING fld.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = fld
IMPORTING
OUTPUT = fld.
ENDFORM. " conv_fld
So for each field depending on its length the conversion routine acts and gives the right output. Please make sure, that your internal table if defined with the right field references or length.
Kind Regards
Eswar -
I've got big problem. i have iphone 4 for a few day (it was new and packed) and now i realised that the screen during the conversation don't block and turn up black. please help me, i don't knwo what to do!
Connect to the Computer you Usually Sync with and Follow the Steps Here...
Recovery Mode
http://support.apple.com/kb/HT1808 -
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 -
Conversion Routine... plz help
Dear Gurus,
There is a text field in R3 called as SGTXT related to some finance table... some of the records in this field directly start with '#' character and then the details.. Well here is the problem.. I m loading to ODS 0FIAR_O04 and it ends up in error due to the above mentioned problem.. the infoobject which carry the data from SGTXT field is 0POSTXT...
I decided to go for a conversion routive in transfer rule for this field.. but i dont know how to write routines.. can you plz help me with the steps as well as the code to remove '#' from SGTXT.... Thanks.
For more help i m attaching the conversion routine with is automatically generated by system... only i hv to add code to remove '#' character... kindly go thru it and suggest me where to add and what to add...
here it is
PROGRAM CONVERSION_ROUTINE.
Type pools used by conversion program
TYPE-POOLS: RS, RSARC, RSARR, SBIWA, RSSM.
Declaration of transfer structure (selected fields only)
TYPES: BEGIN OF TRANSFER_STRUCTURE ,
InfoObject 0POSTXT: CHAR - 000050
SGTXT(000050) TYPE C,
END OF TRANSFER_STRUCTURE .
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 -
FORM COMPUTE_POSTXT
Compute value of InfoObject 0POSTXT
in communication structure /BIC/CS0FI_AR_4
Technical properties:
field name = POSTXT
data element = /BI0/OIPOSTXT
data type = CHAR
length = 000060
decimals = 000000
ABAP type = C
ABAP length = 000120
reference field =
Parameters:
--> RECORD_NO Record number
--> TRAN_STRUCTURE Transfer structure
<-- RESULT Return value of InfoObject
<-> G_T_ERRORLOG Error log
<-- RETURNCODE Return code (to skip one record)
<-- ABORT Abort code (to skip whole data package)
FORM COMPUTE_POSTXT
USING RECORD_NO LIKE SY-TABIX
TRAN_STRUCTURE TYPE TRANSFER_STRUCTURE
G_S_MINFO TYPE RSSM_S_MINFO
CHANGING RESULT TYPE /BI0/OIPOSTXT
G_T_ERRORLOG TYPE rssm_t_errorlog_int
RETURNCODE LIKE SY-SUBRC
ABORT LIKE SY-SUBRC. "set ABORT 0 to cancel datapackage
$$ begin of routine - insert your code only below this line -
DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
RESULT = .
returncode 0 means skip this record
RETURNCODE = 0.
abort 0 means skip whole data package !!!
ABORT = 0.
$$ end of routine - insert your code only before this line -
ENDFORM.
FORM INVERT_POSTXT
Inversion of selection criteria for InfoObject 0POSTXT
This subroutine needs to be implemented only for SAP RemoteCubes
(for better performance) and for the Report/Report Interface
(drill through).
--> I_RT_CHAVL_CS Ranges table for current InfoObject
--> I_THX_SELECTION_CS Selection criteria for all other InfoObjects
<-- C_T_SELECTION Selection criteria for fields of
transfer structure
<-- E_EXACT Flag: Inversion was exact
FORM INVERT_POSTXT
USING I_RT_CHAVL_CS TYPE RSARC_RT_CHAVL
I_THX_SELECTION_CS TYPE RSARC_THX_SELCS
CHANGING C_T_SELECTION TYPE SBIWA_T_SELECT
E_EXACT TYPE RS_BOOL.
$$ begin of inverse routine - insert your code only below this line-
DATA:
L_S_SELECTION LIKE LINE OF C_T_SELECTION.
An empty selection means all values
CLEAR C_T_SELECTION.
L_S_SELECTION-FIELDNM = 'SGTXT'.
Selection of all values may be not exact
E_EXACT = RS_C_FALSE.
$$ end of inverse routine - insert your code only before this line -
ENDFORM.It has been solved.. thanks everyone for inputs.. points awarded to concerened.. thanks.
-
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.
Maybe you are looking for
-
Error while enhancing a view for bt115qh_slsq
Hello Iam unable to enhance a view for bt115qh_slsq component. When i right click a view and click Enhance. It throws an error stating that "Choose a change request with target system C07". Please someone provide me a solution.
-
Add BI System in Solution manager
Hi All, I need to add BI DEV, BI PRD Systems to solution manager. As per my understanding first i need to create logical systems, after wards i have to add this system in SMSY. I will be glad if some one can post ur suggestions and procedure to add t
-
Trying to use BPEL Transform activity to pass the value of a non-message type (element type variable) xml node values to a message type xml variable. Payload perfectly populates in element type variable but when transformed to message type, Message T
-
It simply does not update to the latest software, I tried removing memory card, SIM (required for update), restarting the handset and still no luck. Here is the screenshot of the screen i get when I update: http://img25.imageshack.us/my.php?image=fai
-
Inputting multiple languages in the command prompt
I'm trying to write a program that requires input in Japanese and English. I really would like to make it as simple as possible and use a command line interface. Currently I'm working on an English version of Windows XP with Japanese support enabled.