Function module CF_UT_UNIT_CONVERSION bdc_field_overflow error
Hi All,
the data type length is 13 for one of our fields. however the same is being passed onto function module CF_UT_UNIT_CONVERSION, the import parameter data type length is 9 due to which the system is giving error BCD_field_overflow error.
due to above, we are not able to create and save sales order in VA01. basically when we put too large a qty of let's say 45 lacs units, the system gives the above error. the function module is used in a Zsmartform which is called when we saves the sales order.
how to correct or is there any other FM .
regards
sachin
Hi,
Simplest would be you always pass say Qty of 100 ( fix, irrespective of the sales order qty ) & once FM returns the qty after conversion , you can always mathematically determine what would be the converted qty for aq given sales order qty.
I hope this helps,
Regards
Raju Chitale
Edited by: Raju Chitale on Apr 13, 2009 11:10 AM
Edited by: Raju Chitale on Apr 13, 2009 11:14 AM
Similar Messages
-
Function module to read error message provided message class and mssg no.
Hi experts,
I am trying to populate my database table with the error message.
The error message as comming form standard code in an ITAB.
I am getting the error class and message number.
Can any body please tell me any function module to read the error.
Or is there any way to populate the database table with the error message.
Regards,
Sandipan.Hi,
You can use the Function module mentioned below.
call transaction 'VA42' using bdcdata mode w_mode
update w_synch
messages into it_mesgtab.
loop at it_mesgtab into wa_mesgtab where msgtyp ca 'EA'.
endloop.
if sy-subrc <> 0.
read table it_mesgtab into wa_mesgtab index 1.
endif.
call function 'MESSAGE_TEXT_BUILD'
exporting
msgid = wa_mesgtab-msgid "Messg class
msgnr = wa_mesgtab-msgnr "Messg No.
msgv1 = wa_mesgtab-msgv1
msgv2 = wa_mesgtab-msgv2
msgv3 = wa_mesgtab-msgv3
msgv4 = wa_mesgtab-msgv4
importing
message_text_output = it_err-sapmessage.
Append it_err.
Regards,
Srinivas -
Function module to read errors ?
Hi all,
i have requirement where i have to check that if there are errors at the view then it should not be saved and for that i have to read that if there are errors or not.
i need function module that can read if there are errors.
kindly help if anyone knows.
thanks and regards.
raman.Hi,
I would try the global message container.
For an example have a look at method: CL_CRM_UIU_BP_TOOLS->ERROR_HANDLING().
cheers Carsten -
"Function module not allowed" error message
Hi,
We created a special FM to be processed when the INVOIC is in inbound processing. We link the FM to the process code and the process code to the partner functions. We get the error message; "Function module not allowed: & name of our FM". However, when we reprocess the idoc via WE19, it goes through.
Did somebody ever face that situation?
Thanks
MartinHi
is it for MRM . If it is ,I faced the same Problem Martin .go to EDIFCT table give ur basic type and execute and check for entries .if there no issue other wise goto we57 and maintain the entry for basic type . -
Hi There,
I have BDC, in return it gives me message number, message ID, msgv1,...... etc. I want to get the original message using these values.
Please can you tell me which function module should I use.Hii
Call the FM
<b>FORMAT_MESSAGE</b>
<b>Reward if Helpful</b> -
Error in function module ARCHIVOBJECT_GET_TABLE
Hi experts,
We are using the function module ARCHIVOBJECT_GET_TABLE to retreive
the archived scanned image and then we will attach this image in
emails.It was working previously .Suddenly this function module is giving error and I have tested the above function module in DEBUG mode.The error is due to " no entry exists in table 'SDOKPROF'.
we are able to see the archived scanned dcoument through OAAD .Why this
function module is giving error suddenly?How the entries are maintained
in table SDOKPROF?
We checked that all archiving settings are fine in OAC0 and OAC3 and RFC from SAP to IXOS also working correctly.
This function module ARCHIVOBJECT_GET_TABLE has status Not released.
the error is from the function module "SDOK_PROFILE_READ " inside the FM ARCHIVOBJECT_GET_TABLE.SDOK_PROFILE_READ also not release.Error raised is from the select query inside SDOK_PROFILE_READ.Is the problem due to the function module status not released?
Kindly suggest Me.
Best Regards,
Veena.I have actually passed this information to our IXOS admin guy, he is still looking at it though.
In the mean time can you please pass me the <b>sample code</b> on how you guyz are actually doing this through report. I tried couple of things but I'm sure I wasn't right in framing the correct process, since you have a proved report already, it would be of a great help if you can share.
You can aswell mail it to my personal id <u>[email protected]</u>.
Thanks in advance. -
Error on SAPLZ001 program after deletion of Function Module
Hi,
I got some problem with my datasource (processed by a function module), this error occurs after I delete the FM in D because this will not be used in Q.
Below is the details of my problem, Hope you can help me soon. thank you very much
Includes LSVIMFTX
Field "FORBIDDEN_FUNC_NAME_CHARS" is unknown
History of the problem:
After Q refresh, we need to retransport all TR that are existing to Q01
before the refresh.
The Error occurs when retransporting existing Datasource process by a
function module to Q01
Error Message:
Program SAPLZ001, Include LZ001UXX: Syntax error in line 000011
INCLUDE report 'LZ001U07' not found
this is because 1 function module is missing in the Q but the FM name
exist in the LZ001UXX under LZ001U07.
But since the missing FM is no longer needed, I decided to delete this
FM in Dev and transport the changes done to Q, hoping that the failed
datasource transport will be successful after retransport.
After I did the deletion, a new error occurs when releasing the TR, it
says:
Includes LSVIMFTX
Field "FORBIDDEN_FUNC_NAME_CHARS" is unknown
I check manualy the program LSVIMFTX and it says there is no syntax
error.
But when I check SAPLZ001 program the error occurs.The FM is for data extraction, I created a Datasource that processed by a FM.
Yes, I get this error in Dev originally, but before I deleted the FM in D, this work fine and when I deleted and transported the action "delete FM" to Q it fails, then when I check it in Q the Q now is having the same problem with D.
I am trying to change the version in D and transported to Q, but transport always fails.
changing version didnt fix the problem with.
Thank you very much for your time... -
Function module to convert unit of meause
Hi. I am using a function module 'CF_UT_UNIT_CONVERSION' to convert UoM for material. But it's output field 'VALUE_NEW_EXP' is smaller (length 9 including 3 decimals). So I am getting a overflow error when the value crosses the limit. Is there any substitute function module available for this? Please let me know ASAP. Thanks in advance for your kind help.
Hi.
Now my error has gone. i.e. not getting the overflow shortdump but quantity is not getting converted into required units of measure... Can you please guess what should be the problem...
Appreciate your help.
Thanks. -
Invoking Remote Function Module.
Hi
I am invoking a remote function module from a web dynpro application(External Appln ).
The FM contains the following code snippet
first it inserts the parameters passed into a table
and then the code is
SUBMIT <report name > with parameter passing.
when i comment out the Submit statement and invoke the function module the parameters get populated in the table..but when i enable the SUBMIT statement the same set of parameters dont even get populated in the table. and i get the following exception in the logs of SAP J2ee appln server .
WDDynamicRFCExecuteException: Screen output without connection to user. , error key: RFC_ERROR_SYSTEM_FAILURE
i am not able to find a solution to this problem .
Please help.
regards
Nilesh Taunk.HI
GOOD
GO THROUGH THIS LINKS,THEY MIGHT HELP YOU TO GIVE YOU SOME MORE IDEA.
Re: RFC Error While Invoking A Remote Function Module.
RFC Error While Invoking A Remote Function Module.
http://sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5303c390-0201-0010-e0b2-bfae018377f0
THANKS
MRUTYUN -
Doubt in export, import and table para when creating Function Module
Dear fellow ABAPers,
I have a doubt in defining export, import and table parameter while creating a function module.
I am calling a function module inside a user exit. Now in the user exit the SAP fills an internal table called i_lfa1 with all the data user has eneterd.
Now I want to pass this whole internal table to function module and the perform some checks on the values of internal table.
After that function module fills an error structure with values depending on some check.
1)
How do I pass this internal table to function module ?
When I am creating function module in se37 where do I define this iternal table type ? Is it in Import or Table parameter during function module creation?
2)
Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
Please clear my doubt..
Relevant points will be awarded.
Regards,
Tushar.Hi Tushar,
1. How do I pass this internal table to function module ?
I assume u are creating your own Y/Z FM.
Pass it thru TABLES parameter.
2. When I am creating function module in se37 where do I define this iternal table type
Define this in TABLES interface.
What Type ?
THE SAME TYPE WHICH HAS BEEN DEFINED
WHILE PASSING IN THE USER-EXIT FUNCTION MODULE.
IF U SEE THE FM OF THE USER-EXIT,
U WILL COME TO KNOW.
3.
Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
Define it in TABLES interace. (not in export, import)
(Since what u are going to return is an internal table)
U can take for eg. BDCMSGCOLL.
OR u can create your own Y/Z structure
for the same purpose.
(or u can use the structure type T100)
I hope it helps.
Regards,
Amit M. -
Remote Enabled function module of SAP working - debug mode but not run mode
Hi,
When a remote function module is called from Java a message should get thrown from the function module which the FM is throwing but Java is not able to fetch the error. This problem is coming in execution mode but if we are in debugging mode and go to the function module remotely the error is getting triggered.
Please suggest the solution to the problem.
Thanks,
AbhishekHello
try something like this
try {
JCO.Client.execute(myFunction)
} catch (JCO.AbapException ex) {
System.out.println ("ABAP Exception: " + ex.getKey() + " " + ex.getMessage());
the problem is, that JCo ABAP Exceptions are subclasses of java.lang.RuntimeException so the Java Compiler doesn't force you to catch them
regards franz
reward points if useful -
Debugging customized function module when Idoc is triggered via ALE
Hi,
Whenever we save the billing document, an outbound idoc is triggered via ALE. The logic for the data to be included in the idoc is written in a customized function module.
However we are making some changes and would like to include some more data in the idoc. But we find that when we put a breakpoint in the function module, on saving the billing document, the flow does not stop at the break point. We are 100% sure that the code in the function module gets executed based on the data in the idoc.
How do we get into debug mode and break the flow in the function module so that we can debug in the function module?
Any help would be greatly appreciated.
Thanks in advance,
MickHi Mick, this might be of some help 4 u.
ALE IDOC
Sending System(Outbound ALE Process)
Tcode SALE - for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 - Create Model View
Tcode BD82 - Generate partner Profiles & Create Ports
Tcode BD64 - Distribute the Model view
Message Type MATMAS
Tcode BD10 - Send Material Data
Tcode WE05 - Idoc List for watching any Errors
Receiving System(Inbound ALE )
Tcode SALE - for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 - Check for Model view whether it has distributed or not
Tcode BD82 -- Generate partner Profiles & Create Ports
Tcode BD11 Getting Material Data
Tcode WE05 - Idoc List for inbound status codes
ALE IDOC Steps
Sending System(Outbound ALE Process)
Tcode SALE ?3 for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 - Create Model View
Tcode BD82 - Generate partner Profiles & Create Ports
Tcode BD64 - Distribute the Model view
This is Receiving system Settings
Receiving System(Inbound ALE )
Tcode SALE - for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 - Check for Model view whether it has distributed or not
Tcode BD82 -- Generate partner Profiles & Create Ports
Tcode BD11 Getting Material Data
Tcode WE05 - Idoc List for inbound status codes
Message Type MATMAS
Tcode BD10 - Send Material Data
Tcode WE05 - Idoc List for watching any Errors
1)a Goto Tcode SALE
Click on Sending & Receiving Systems-->Select Logical Systems
Here Define Logical Systems---> Click on Execute Button
go for new entries
1) System Name : ERP000
Description : Sending System
2) System Name : ERP800
Description : Receiving System
press Enter & Save
it will ask Request
if you want new request create new Request orpress continue for transfering the objects
B) goto Tcode SALE
Select Assign Client to Logical Systems-->Execute
000--> Double click on this
Give the following Information
Client : ERP 000
City :
Logical System
Currency
Client role
Save this Data
Step 2) For RFC Creation
Goto Tcode SM59-->Select R/3 Connects
Click on Create Button
RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles
give the information for required fields
RFC Destination : ERP800
Connection type: 3
Description
Target Host : ERP000
System No:000
lan : EN
Client : 800
User : Login User Name
Password:
save this & Test it & RemortLogin
3)
Goto Tcode BD64 -- click on Change mode button
click on create moduleview
short text : xxxxxxxxxxxxxx
Technical Neme : MODEL_ALV
save this & Press ok
select your just created modelview Name :'MODEL_ALV'.
goto add message type
Model Name : MODEL_ALV
sender : ERP000
Receiver : ERP800
Message type :MATMAS
save & Press Enter
4) Goto Tcode BD82
Give Model View : MODEL_ALV
Partner system : ERP800
execute this by press F8 Button
it will gives you sending system port No :A000000015(Like)
5) Goto Tcode BD64
seelct the modelview
goto >edit>modelview-->distribute
press ok & Press enter
6)goto Tcode : BD10 for Material sending
Material : mat_001
Message Type : MATMAS
Logical System : ERP800
and Execute
7)goto Tcode : BD11 for Material Receiving
Material : mat_001
Message Type : MATMAS
and Execute --> 1 request idoc created for message type Matmas
press enter
Here Master Idoc set for Messge type MATMAS-->press Enter
1 Communication Idoc generated for Message Type
this is your IDOC
Change Pointers
I know how to change the description of a material using ALE Change Pointers.
I will give the following few steps
1) Tcode BD61---> check the change pointers activated check box
save and goback.
2) Tcode BD50---> check the MATMAS check box save and comeback.
3) Tcode BD51---> goto IDOC_INPUT_MATMAS01 select the checkbox save and comeback.
4) Tcode BD52---> give message type : matmas press ok button.
select all what ever you want and delete remaining fields.
save & come back.
5) 5) go to Tcode MM02 select one material and try to change the description and save it
it will effects the target systems material desciption will also changes
6) goto Tcode SE38 give program Name is : RBDMIDOC and Execute
give Message type : MATMAS and Executte
ALE/IDOC Status Codes/Messages
01 Error --> Idoc Added
30 Error --> Idoc ready for dispatch(ALE Service)
then goto SE38 --> Execute the Program RBDMIDOC
29 Error --> ALE Service Layer
then goto SE38 --> Execute the Program RSEOUT00
03 Error --> Data Passed to Port ok
then goto SE38 --> Execute the Program RBDMOIND
12 Error --> Dispatch ok
Inbound Status Codes
50 Error --> It will go for ALE Service Layer
56 Error --> Idoc with Errors added
51 Error --> Application Document not posted
65 Error --> Error in ALE Service Layer
for 51 or 56 Errors do the following steps
goto WE19 > give the IDOC Number and Execute>
Press on Inbound function Module
for 65 Error --> goto SE38 --> Execute the Program RBDAPP01 then your getting 51 Error
cheers,
Hema. -
Reagrding export tab declaration in function module
Hi,
I am populating an error structure in the function module and want to export that error structure
to calling program.
Now I have to create this error structure using data: statement inside the function module.
The error structure has following fields:
REQUI like XFLED,
NON_Unique like XFLED,
FNAME like fieldname,
LIFNR like lifnr.
(Note: I am not creating an error structure skeleton permamnently in DDIC but in the SAP code.)
Now if I am exporting this error structure from function module to main calling program, I guess have to declare it in export tab inside se37 where I create function module.
What do I declare in the reference type for this error structure inside the export tab ?
Please help me out.
Thanks.
Regards,
Tushar.Hi Tushar,
1. U do not want to create a skeleton structure
in DDIC.
2. Then do the following things.
1. In FM declare ITAB as u mentioned.
2. In TABLES parameter declare
mention one parameter as MYITAB
(leave type and other fields as blank)
3. In the FM, last line should be
MYITAB[] = ITAB[].
3. Now in your CALLING Program,
Once Again Declare
an internal table in the SAME FASHION (WITH SAME FIELDS)
as in FM.
Pass this itab to FM.
4. It will work FANTASTIC.
I tried at my end.
Regards,
Amit M. -
SMQ2 SYSFAIL - Function Module not found
Hi All,
When i am trying to push data to cdb i got sysfail - Function module not found error in the smq2. But data inserted in the cdb, the probelm we found was the data object having the dependency cause this error.
The data was there in the cdb, but no distribution entries found.
Please help me to resolve the same.
Regards,
RamkumarHi,
Clear the queue first (delete it), then implement the NOTE 1552255 - 'Parallel load problem for partial association shadow'. Run the report mentioned in the NOTE and do a delta generation.
Then on doin a delta load the queues should run successfully.
regards,
Anil -
Reg: Calling Function Module
Hi to all,
I have created a Function module, Which working fine and giving results which i expected and also i called that function module in programme in SE38, and giving correct results. BUT when i used in Transformation it giving ERROR. Routine not able to call that function module.It giving error as EXCEPTION IN SUBSTEP:RULES and PROCESS TERMINATED. In monitor screen besied this error message, There is a ikon, on cliking that ikon, it taking me to Statement CALL FUNCTION 'Function Module name'. Cursor is not going inside the Function module.
It is Normal Function Module.
Can anybody help in this Regard.
Regards
Mrk ReddyHi,
Were you able to solve this issue? I have exactly the same problem at the moment.
Your feedback would be much appreciated.
Regards,
Edo
Maybe you are looking for
-
HELP!! iPod Classic won't show up in iTunes, and FREEZES when I try
Last night, I hooked my iPod Classic to my computer to sync it. It didn't show up in iTunes, and instead, it froze, quite suddenly. I had to wait until the battery ran down, then charge it up again(luckily, all my music and video were still present).
-
Album art not being displayed when I play music!
I input the album art into my library and the ipod and when I "get info" it will display the artwork but not when I play the songs on the ipod! What am I doing wrong? PC Windows XP
-
I have the below network setup:- 1. Its a simple network at my father's office at a small town called Ichalkaranji (District - Kolhapur, Maharashtra). 2. We are using private network range 192.168.1.xxx with two Windows Server 2003 Enterprise Edition
-
Install Labview DSC Run Time without SQL Express
Hi I have an application of DSC run time that I tested successfully but now must be installed on a server and my client does not allow install an instance of SQL Server Express because he are already using the Enterprise version. What should I do to
-
Lightroom 3 cannot open because another application already has it opened.
Lightroom 3 cannot open because another application already has it opened. I received this confirmation after sending photo files to my E Book. Please help.