Field conversion.
Hi,
im using an integer to increment a counter and i need to move it in to a char. what if i need a zero '0' before the count if the number is less than 10 in my char field.
Regards,
ravi.
Dear Ravi,
Go through the following chunk of code:
DATA: GV_IDX1 TYPE I,
GV_IDX2(2) TYPE N.
DO.
GV_IDX1 = GV_IDX1 + 1.
GV_IDX2 = GV_IDX1.
WRITE: / GV_IDX1,
GV_IDX2.
IF GV_IDX1 GT 10.
EXIT.
ENDIF.
ENDDO.
The O/P will be:
1 01
2 02
3 03
9 09
10 10
Use Data Type NUMC inorder to carry out this type of operation.
Regards,
Abir
Don't forget to award Points *
Similar Messages
-
Quantity field conversion problem in SAP script
Hi experts,
I have problem with sap script quantity field conversion.
In purchase order the actual value of field( MDPM-ERFMG) is 3,500.
But in Print preview it is showing only 3.5
Any one Please help me in this problem
thanks in advance
muraliHello,
check this:
Number of Decimal Places
A program symbol of one of the data types DEC, QUAN, and FLTP can contain decimal place data. Use the option below to override the Dictionary definition for the number of decimal places for the formatting of this symbol value.
Syntax
&symbol(.N)&
The EKPO-MENGE field contains the value 1234.56. The Dictionary definition specifies 3 decimal places and an output length of 17.
&EKPO-MENGE& -> 1,234.560
&EKPO-MENGE(.1) -> 1,234.6
&EKPO-MENGE&(.4) -> 1,234.5600
&EKPO-MENGE&(.0) -> 1,235
REgards,
Vasanth -
Hi,
can any body give me a brief introduction about Item Field Conversion.. When we need to go for this.. and how can we do this.. please suggest me..
Thanks
babuHi,
Itemfield Conversion :
Adds functions to SAP NetWeaver for converting data to and from XML. It can process unstructured, semi-structured, and structured data. The Conversion Agent can be called using an adapter module in the Adapter Framework of SAP Exchange Infrastructure.
You can find SAP Conversion Agent by Itemfield in the SAP Software Distribution Center on SAP Service Marketplace at service.sap.com/swdc.
A partnership with Itemfield aims to introduce complex data transformation capabilities to SAP's offering. But the partners will face significant integration and support challenges.
On 5 December 2005, Itemfield, a provider of data transformation software, announced a partnership agreement with SAP. Under the terms of the agreement, SAP will embed the Itemfield Conversion Agent for SAP NetWeaver in its NetWeaver suite. This is an adaptation of Itemfields ContentMaster technology that is designed to plug into the latest release of NetWeaver Exchange Infrastructure (XI), SAPs application integration platform.
The addition of SAP to the list of Itemfield partners which includes IBM, Informatica, Oracle, Microsoft, webMethods and Software AG moves the company much closer to its goal of positioning ContentMaster as the de facto standard for independent data transformation technology. SAP's NetWeaver XI is achieving growing adoption, with 1,600 installed customers to date, but has somewhat limited transformation features. This combination of factors gives Itemfield an opportunity to substantially boost its own customer base. However, success will require a robust marketing effort, and the ability to scale up quickly to support a growing number of global customers.
The partnership will also help SAP make up for the lack of complex data transformation capabilities in XI a limitation that SAP customers have had to work around, either by developing custom code or by stretching the use of the XI business process management facility. The Itemfield Conversion Agent for SAP NetWeaver provides XI users with a proven and powerful option to address even the most complex unstructured, semistructured and structured data transformation issues. However, SAP will face a major challenge in effectively supporting, and keeping in a coherent state of integration, the growing number of third-party products in the XI platform (which include iWay and Seeburger adapters, IDS Scheer process-modeling tools, and now Itemfield's technology).
XI customers with complex data transformation requirements: Evaluate whether the Itemfield Conversion Agent for SAP NetWeaver meets your technological and financial needs. Demand contractual guarantees of adequate long-term support from SAP (which offers full support for the product) before making a commitment.
XI customers adopting XI in conjunction with other Itemfield partners' platforms: Consider using Itemfield as a "unified" transformation utility across multiple integration products (but remember that the Itemfield Conversion Agent for SAP NetWeaver is an additional-cost item, subject to the controversial XI volume-based pricing schema).
I hope this will clarify you.
Regards
Aashish Sinha
PS : reward points if helpful -
hi gurus! can someone give me a tip on a date field conversion.
I have a field that comes YYYYMMDD but i want to convert to DD.MM.YYYY
Can someone help me on this
Thk, RegardsREPORT Z_82235_TEST4 .
data: date1(8) type c,
date2(10) type c.
date1 = 'YYYYMMDD'.
CONCATENATE date1+6(2) date1+4(2) date1(4) INTO date2 separated by '.'.
you pass your date to date1 in place of 'yyyymmdd' and you will gate ur desired output on date2. -
Hi,
somebody has written mv45afzz program. now I am modifying that.
last week i included a field in vbap table as field1 (CHAR, 18).
num1 field has CHAR(10).
FORM USEREXIT_MOVE_FIELD_TO_VBAP.
if vbap-matnr <> *vbap-matnr.
clear vbap-field1.
select single t1~num1 into vbap-field1
from mara as t1 inner join zcust as t2
on t1num1 = t2num1
where matnr = vbap-matnr
and mtart = 'NSTK'
and delet = ''.
endif.
this user exit is related to Contracts(va41). when i am giving material number in va41, it is checking with mara table and saying that number is not valid.
for example i entered 1001 number as matnr which is exist in the mara table.
In debug mode, i added 14 zeros in field1, then it is working perfectly.
shall i need to call the field conversion function module like...
CONVERSION_EXIT_MATN1_INPUT...
anybody has idea...
Thanks in advance,
Yad.Hi,
I have written like this..still not getting...padding zeros to vbap-field1 is my solution..but how can i do that...
FORM USEREXIT_MOVE_FIELD_TO_VBAP.
Data: num1 like zcust-num1,
field1 like vbap-field1.
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING
INPUT = num1
IMPORTING
OUTPUT = field1
if vbap-matnr <> *vbap-matnr.
clear vbap-field1.
select single t1~num1 into vbap-field1
from mara as t1 inner join zcust as t2
on t1num1 = t2num1
where matnr = vbap-matnr
and mtart = 'NSTK'
and delet = ''.
endif.
Thanks in advance,
Yad. -
Issue with Varchar2 field conversion for report output generated in EXCEL
Hello All,
I have an unique problem with one of my new reports for the User. The user wants the report output generated in excel data only(delimited data) format *(reports builder 10g)* .
Everything was fine until i encountered this problem, there was this field which has unique ID's(alphanumeric and numeric), when i tried to run the report and generate output in Excel the numeric ID's say for example *(41593497999679354429)* is converted in excel and displayed like *(2.5881E+19)* and after format cells in excel it displays *(41593497999679300000).*
The issue is only with 20 digits numeric ID's , if i append any special character to the end say '#' or '..' it shows the exact value along with the appended character. But the user insist they need only the value that is in the table. I am finding it hard to figure out, if any one of you have encountered the same issue or if any of you have any suggestions to overcome this excel conversion thing please do advice me.
Thanks in advance :)Thanks for you response, but i already tried what you suggested, instead of appending single quote in front of ID, i did at the end prior with '#', it preserves the value if i add any character to the id but the appended value shows up too :(.
Well, i just got the solution and it did work, thanks to [Brian Hill|https://forums.oracle.com/forums/thread.jspa?threadID=651632] for the post, i did what exactly he said and it worked. I was so very happy and wanted to share with everyone. -
Middleware-Error of Field conversion from R/3 to CRM
Hello Friends,
I am getting the below error when we tried replicating pricing condition objects from R/3 to CRM. Kindly help me if you have any solution on this.
Funct. CND_MAP_CONV_FUNC_T682Z_QUSTR cannot convert content KOMP of field T682Z-QUSTR to field /SAPCND/T682Z-QUSTR
Message no. CND_MAP141
Diagnosis
Conversion of the source field into the target field cannot be implemented. Possible causes may be:
No conversion is defined for the current contents of the source field in the system tables for condition exchange.
There is no conversion rule for converting the current field content in the system tables for condition exchange.
Conversion according to the defined conversion rule was not correct for the current contents of the source field.
The reason for this os often problems that result from putting together an R/3 System with a CRM System. These problems are, for example:
not paying attention to the restrictions in CRM for data values or supporting applications and objects,
incorrect exchange objects or exchange objects with the wrong selection values,
an inconsistent data structure from the R/3 OLTP System.
Thanks & Regards,
YogeshHello Yogesh
I have just noticed the message you placed on SDN re condition customising download errors. Did you ever get to the bottom of this problem ?
The reason I ask is that I am getting similar errors. I actually started with two errors which I believe are related, these being:
Funct. CND_MAP_CONV_FUNC_T682Z_FNAME cannot convert content AUBEL of field T682Z-QUFNA to field /SAPCND/T682Z-QUFNA
and
Funct. CND_MAP_CONV_FUNC_T682Z_QUSTR cannot convert content KOMP of field T682Z-QUSTR to field /SAPCND/T682Z-QUSTR
I have since read OSS Note 319636 and looked at maintaining the separate
conversion rules in CRM Customizing table CND_MAPM_CNV_FLM by adding an
entry for AUBEL into view V_CND_MAP_CNVFLD using SM30. This I saved to
a transport.
I then looked to add AUBEL to the field catalog within the IMG however I received a
message stating that :
"Entry is in SAP name space. Message no. /SAPCND/CUSTOMIZING403".
So it won't let me.
Did you have similar problems and did you resolve them ?
Regards
Ian
[email protected] -
Hello,
I'm doing an Access 97 -> Oracle 8.1.6 migration using OMWB 1.2.5.0.0.
After having done a complete successful migration including
modification of the source database, we notice that the Memo to CLOB
conversion apparently was not completely successful: special
characters such as the German umlauts are not displayed correctly, not
within Access nor in plain SQL queries.
"Normal" fields do not show that effect, but have been converted
correctly.
Is this a known issue?
Any hint appreciated.
Regards, Thomas Meyer
nullHello again Thomas,
I hate to be harbinger of bad news but there is no official workaround available. My only suggestion would be to avoid the CLOBS and use varchar but this in itself causes problems if the CLOB data is too large to for the varchar type to hold.
As for estimating the timescale for the next release of the Oracle server.. sorry but yet again I cannot help there.
As this is an RDBMS issue, contact Oracle support and have the bug's priority escalated.
Not much help really. I do apologise.
Regards
Brian. -
Overflow field conversion type P
The MM is a problem with the transaction MB1C.
When she tells convert to KG / TN is the following message:
An overflow field during the conversion. Possibly, the User defined parameters transfer very small. (This is probably the case of fields type P and I).
Someone has gone through this?
Thank you.Dear,
It occurs if the n alternative unit of measure which is a smaller unit than the base unit of measure (for example, base unit of measure = kg, alternative unit of measure = g). Same case in your error also.
Regards,
R.Brahmankar -
Hi All,
I have created IDOC conversion rules for customer master data under segment E1KNA1M in BD79.
One of the conversion rule is to add a "P" in front of the customer numbers in the target client. For example - source client: cust num = 1234567, target client: cust num = P1234567
How do I add this conversion rule? Which rule type should I use?
Appreciate any help!
Thanks,
CharleneHi Charlene,
You can create a new conversion routine and associate it to the field kunnr.
For example, to create conversion routine ZEDG, create the following functions:
FUNCTION conversion_exit_zedga_input.
*"*"Interface local:
*" IMPORTING
*" REFERENCE(INPUT) TYPE KUNNR
*" EXPORTING
*" REFERENCE(OUTPUT) TYPE KUNNR
DATA: l_input TYPE kunnr.
l_input = input.
replace 'P' in l_input WITH '0'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = l_input
IMPORTING
output = output.
ENDFUNCTION.
FUNCTION conversion_exit_zedga_output.
*"*"Interface local:
*" IMPORTING
*" REFERENCE(INPUT) TYPE KUNNR
*" EXPORTING
*" REFERENCE(OUTPUT) TYPE KUNNR
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = input
IMPORTING
output = output.
CONCATENATE 'P' output INTO output.
ENDFUNCTION. -
Date field conversion in Import Manager
Hi,
I am getting the source Date field as 'Text' type and want to convert it to Date type.
Is it possible in import Manager?
What are the best way to manage the issue.
Appreciate your reply
regards,
reoHi Reo,
The data types of source data values are automatically
converted within the Source Values grid based on the data type of the
destination field to which the source field is mapped, even when stored
in the source data as text values.
Original source values appear with their original data type in the Value
column, and the converted values appear in the Converted Value
column with the data type of the mapped destination field and the
proper grid cell type for editing (e.g. text, numeric, measurement,
currency, date, time, Boolean).<i> If necessary, individual values can then
be manually edited to override errors or omissions in the source data.</i>
Regards
Neethu Joy. -
Word form to pdf form fields conversion
Does anyone have any expereince with converting form Word
form with active
x controls to pdf form fields - any help would be appreciated
Ann SteerNo. What you can do, though, is after you edit your file create a new static PDF from it, open your old PDF and then use the Replace Pages command, selecting the new PDF file as the one to insert. This will replace the underlying PDF content while keeping all the form fields in tact. You then might need to adjust them a bit, but it's much less work then re-doing the entire form.
-
Field conversion downloading conditions from R/3
I have created a new condition table in R/3 which I need to replicate to CRM. However, when I do so I get an error because the condition table in R/3 contains the vendor number, whereas the replicated table contains the Vendor GUID.
Does anybody know where I implement the conversion routine to convert the vendor number to the vendor guid during replication?
Cheers,
StuartI should add that LIFNR is in structure CND_MAPT_ACS_REM and there is a mapping rule in table CND_MAPC_CNV_FLM so I believe that this should work.
-
HI,
I NEED TO CONVERT FROM FISCPER(OR\AND)FISCYER TO CALQUARTER,
COULD ANY ONE TELL THE FOURMULA FOR THAT CONVERSION.
REGARDS,
SATYAHi,
here you go:
this is during URules; replace comm_structure by tran_structure if in TRules.
DATA: calq TYPE C.
IF COMM_STRUCTURE-FISCPER+4(3) GT '012'.
CONCATENATE
COMM_STRUCTURE-FISCPER(4)
'4'
INTO RESULT.
ELSE.
calq = TRUNC( ( COMM_STRUCTURE-FISCPER+5(2) - 1 ) / 12 * 4 ) + 1.
CONCATENATE COMM_STRUCTURE-FISCPER(4) calq INTO RESULT.
ENDIF.
This assumes that all fiscal periods are calendar months and all periods over 12 will be posted to quarter 4
hope this helps...
Olivier. -
Field conversion from char .
Dear member ,
Is there any way to reduce the prefix zero from sale order 10 digit char .
EG: if 0053549980 is the so no I want to make it 53549980 . I have transfered the vale into integer variable but error is coming data overflow .
Help me to find out the solution .
Regards ,
Joy .Hi Joy,
Try using the PACK keyword to remove the leading zeros.
PACK <var1> TO <var2>.
CONDENSE <var2>.
Here var1 and var2 both are Character Type variables.
Hope it helps.
Regards,
Himanshu
Maybe you are looking for
-
How to get Database name/IP address of the database server from forms10g
Hi everybody, How do I get the database instance name and IP address of the database server? I am using Foms 10g and the database server is Oracle 10g. Sukanta
-
Dropped iPod, white screen 60gb model.
Hello, First let me say I have done extensive research and have not found any viable solution to my problem. I dropped my iPod from about 5 feet off the ground. After I picked it up it had a white screen. I immediately tried to reset it, and it reset
-
Need Help regarding payroll ASAP
Hi Friends.. i m new to hr-abap and i have installed IDES in my system. i want to know Can we work out on payroll and Time management programs with IDES data for practice or anything extra need to configure?? Please guide me as i need to start practi
-
Listener suddenly looses connection to database reporting ORA-12518
Hi all, This has been causing me endless problems for two days now and I desperately need to leave our database running before the weekend. I cloned our database and moved it to a new server following the instructions in this guide, after a quite a f
-
Shared Services User Directory
Hi Gurus, I was wondering if there is a way of hiding the groups from the Microsoft Active Directory. For example, we want the users from Active directory, but when we check the properties of the users in shared services, it shows the user belonging