ASSIGN_TYPE_CONFLICT runtime error in CRM in program "SAPLZSMOUTIL"
Hi,
We have made some mapping of BP fields from ECC to CRM and used the exit "SAPLZSMOUTIL".
As per the requirement we have created a FM Z_MW_CRM_SMOUTIL3 which contains the following Field symbol assignment:
FUNCTION z_mw_crm_smoutil3.
""Local Interface:
*" IMPORTING
*" VALUE(I_OBJNAME) TYPE SMO_OBJNAM
*" VALUE(I_OBJCLASS) TYPE SMO_OBJCLA
*" VALUE(I_SENDER_TYPE) TYPE SMW1STID
*" VALUE(I_SENDER_SITE_ID) TYPE SMO_SITEID
*" VALUE(I_TARGET_SITE_ID) TYPE SMO_SITEID
*" EXPORTING
*" VALUE(E_DO_NOT_CALL_FLOW) TYPE XFELD
*" TABLES
*" TI_BAPIMTCS STRUCTURE BAPIMTCS
*" T_MESSAGES STRUCTURE BAPICRMMSG
*" TI_KEY_INFO STRUCTURE BAPICRMKEY
*" TI_OTHER_INFO STRUCTURE BAPIEXTC
*" TI_BAPIIDLIST STRUCTURE BAPIIDLIST
*" TI_HEADER_MASS TYPE MASSDATA_HEADER_T
*" CHANGING
*" REFERENCE(HEADER) TYPE SMW3_FHD
*" VALUE(MESSAGE)
*" VALUE(MESSAGE_EXT) OPTIONAL
*" VALUE(ERROR_SEGMENTS) TYPE SMW_ERRTAB
*" VALUE(OBJECT_LINKS) TYPE TRL_BORID
*" VALUE(E_BAPICRMDH2) TYPE BAPICRMDH2
DATA:
ls_bapimtcs TYPE bapimtcs,
bus_ei_extern TYPE bus_ei_extern,
ls_txt TYPE c LENGTH 100,
lv_lin TYPE i.
FIELD-SYMBOLS: <fs_msg_bupa> TYPE bus_ei_main,
<fs_msg_bpext> TYPE bus_ei_extern,
<fs_r3a_main> TYPE r3a_main.
CASE i_objname.
WHEN 'BUPA_MAIN' OR 'CUSTOMER_MAIN'.
FIELD-SYMBOLS: <source> TYPE x,
<target> TYPE x.
ASSIGN message_ext TO <fs_msg_bupa>.
We are getting a dump in production system at the line ASSIGN message_ext TO <fs_msg_bupa>.
The error analysis states that "You attempted to assign a field to a typed field symbol,
but the field does not have the required type."
Does anyone has any suggestion as to resolve this issue.
We are not facing issue in our quality system.
Regards,
PP
Hi,
I also wrote a Function Module which handled the data from the Message_ext and Message Data Objects. Those doesn't have any types and hence assigning them directly will always be a risk. So, you can have a look at the following module:
Product Material : Adapter Object : PRODUCT_MAT. Mapping Module : COM_MAP_BAPIMTCS_TO_PRODUCT.
In the code below, you will notice the Direct Assignment is avoided and in the assignment of the Field Symbols are done using the Reference Method.
* create reference to classical part:
CREATE DATA ref_message TYPE (lv_string_classic).
ASSIGN ref_message->* TO <classic>.
<classic> = <classic_work>.
* create reference to messaging Bdoc:
CREATE DATA ref_message_ext TYPE (lv_string_bdoc_tab).
ASSIGN ref_message_ext->* TO <ddic>.
<ddic> = <bdoc_tab>.
You need to follow a similar approach in your code.
One more thing. In order to avoid dumps in the production system, you need to handle the exceptions in all the assign operations.
Try using the TRY - CATCH Block. [Handling Exceptions|http://help.sap.com/saphelp_nw04/helpdata/en/a9/b8eef8fe9411d4b2ee0050dadfb92b/content.htm]
The ASSIGN Catchable Exceptions are as follows:
Catchable Exceptions
CX_SY_ASSIGN_CAST_ILLEGAL_CAST
CX_SY_ASSIGN_CAST_UNKNOWN_TYPE
CX_SY_ASSIGN_OUT_OF_RANGE
Hope this helps.
Thanks,
Samantak.
Similar Messages
-
Hello,
I tried to run my application on LM3S8962.
The build succeeded. All LEDs are green,
but the application doesn't run.
The error message appears in the status window:
[17:06:21] Status: Build Succeeded.
LV runtime error in file C:\Program Files\National Instruments\LabVIEW 2010\CCodeGen\libsrc\os\rtx\LVThreads_rtx.c at line 141: 2 19
This message isn't really enlightening to me.
Doesn't anyone know how to solve the problem?Hi Peter,
i tried to modify the code to isolate the problem.
With the attached code the new error message appears:
LV runtime error in file C:\Program Files\National Instruments\LabVIEW 2010\CCodeGen\libsrc\blockdiagram\CCGClusterSupport.c at line 141: 2 13
What are the limits of clusters in LV ARM?
My Toolchain:
Tool Version Numbers:
Toolchain: RealView MDK-ARM Version: 4.11
Toolchain Path: BIN40\
C Compiler: Armcc.Exe V4.0.0.728
Assembler: Armasm.Exe V4.0.0.728
Linker/Locator: ArmLink.Exe V4.0.0.728
Librarian: ArmAr.Exe V4.0.0.728
Hex Converter: FromElf.Exe V4.0.0.728
CPU DLL: SARMCM3.DLL V4.11
Dialog DLL: DLM.DLL V1.19a
Target DLL: BIN\UL2CM3.DLL V1.63
Dialog DLL: TLM.DLL V1.19a
Thanks
Marco
Attachments:
ICUA4_SOURCE_DISTRIBUTION.zip 463 KB -
Runtime errors in module pool programming
HI all,
I have done a module pool program for invoice tracking level wise.
I am encountering a runtime error, LIST_TOO_MANY_LPROS, while execution ie., for two and more than two updations of the database.
The error analysis says that "At present, the maximum permitted number of nested screen levels is restricted to 50".
Short Text :- "No further list processing possible".
Can anyone please come out with a solution for this problem.
regards
samarendra.
Edited by: samarendra penugonda on Nov 5, 2008 5:03 AMHi
U should replace the comand CALL SCREEN with LEAVE TO SCREEN.
The command CALL SCREEN create an internal mode to link the calling screen to called screen automatically: in this way when it needs to back to calling screen it doesn't need to specify the screen number but only to use:
- LEAVE TO SCREEN 0.
or
- SET SCREEN 0. LEAVE SCREEN.
Now if you use LEAVE TO SCREEN, u need to indicate the screen when it needs to back to calling screen:
- Go from 100 to 200
LEAVE TO SCREEN 200. (Instead of CALL SCREEN 200)
- Back to 100.
LEAVE TO SCREEN 100. (Instead of LEAVE TO SCREEN 0)
Max -
Portal Runtime Error : in CRM BP iview
Hi
I installed Business package for crm in portal and assigned the role sales manager to an user xyz and when I go to analytics -> incentives and commissions -> My Teams Commisions-> the first iview "Closed Deals by Sales Office/Rep" shows the error
Portal Runtime Error
An exception occurred while processing a request for :
iView : pcd:portal_content/com.sap.portal.migrated/ep_5.0/roles/com.sap.pct.crm.SalesManager/Analysis_2/IncentivesCommissions/MyTeam/com.sap.pct.crm.salesmgrlistdeals
Component Name : com.sap.pct.crm.salesmgrlistdeals.default
The exception was logged. Inform your system administrator..
Exception id: date/........
See the details for the exception ID in the log file
and when i referred the log file, it shows the following trace.
pcd:portal_content/com.sap.portal.migrated/ep_5.0/roles/com.sap.pct.crm.SalesManager/Analysis_2/IncentivesCommissions/MyTeam/com.sap.pct.crm.salesmgrlistdeals
Component class : com.sap.pct.crm.incentivescommissions.salesmgrdeals.SalesMgrDealsDyn
user: xyz
at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:343)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:154)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:392)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
Caused by: java.lang.NullPointerException
at java.text.StringCharacterIterator.<init>(StringCharacterIterator.java:58)
at java.text.StringCharacterIterator.<init>(StringCharacterIterator.java:47)
at sun.text.Normalizer.setText(Normalizer.java:1537)
at java.text.CollationElementIterator.setText(CollationElementIterator.java:469)
at java.text.RuleBasedCollator.compare(RuleBasedCollator.java:401)
at java.text.Collator.equals(Collator.java:322)
at com.sap.pct.crm.incentivescommissions.salesmgrdeals.SalesMgrDealsCreation.createTableView(SalesMgrDealsCreation.java:383)
at com.sap.pct.crm.incentivescommissions.salesmgrdeals.SalesMgrDealsCreation.createReport(SalesMgrDealsCreation.java:159)
at com.sap.pct.crm.incentivescommissions.salesmgrdeals.SalesMgrDealsDynPage.retrieveData(SalesMgrDealsDynPage.java:182)
at com.sap.pct.crm.incentivescommissions.salesmgrdeals.SalesMgrDealsDynPage.doProcessBeforeOutput(SalesMgrDealsDynPage.java:167)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:123)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
... 29 more
AFAIK i could see the null pointer exception, but donno the reason, as it is standard iview by SAP. did someone face this problem. if so, could you please lemme know how did u resolve it
or any other suggestions seeing the error??
Thank youhi
sorry for the delay..yep i configured it already with BW system with alias SAP_BW, ofcourse i dont have any crm data loaded in bw.
what i expect to see is a form giving a criteria for searching (for ex: startdate and enddate). but i see this error there.
any suggestions -
Catch CONVT_NO_NUMBER runtime error in OO ABAP Program
Hi all,
In our abap proxy program, sometimes the CONVT_NO_NUMBER will happen and cause the program dump. I noticed that this error cannot be caught by CX_ROOT exception class.
Some told me I can use the CATCH SYSTEM-EXCEPTIONS sentence to catch this runtime error, but it is a old-way syntax and cannot be used with the "try" and "catch".
So, how can I catch this runtime error and avoid the dump of our program?
Thanks,
YiNingHi,
You are not checking for conversion.
You are checking ofr logical expression.
Try below code, it works
DATA error_ref TYPE REF TO cx_sy_conversion_no_number.
DATA err_text TYPE string.
DATA a TYPE i.
TRY.
MOVE 'A' TO a.
CATCH cx_sy_conversion_no_number INTO error_ref.
err_text = error_ref->get_text( ).
WRITE err_text.
ENDTRY.
Regards,
Atish -
Runtime error when running sample program VS8, occi10
Please, help!
When running a sample program (VS2005 v8, oraocci10.lib, oraocci10.dll, both downloaded from the recommended Oracle site http://www.oracle.com/technology/tech/oci/occi/occidownloads.html for Oracle release 10.2.0.3.0 )
I receive the following runtime error:
R6034 An application has made an attempt to load the C runtime library incorrectly.
When I build the program with VS 7 or VS 7.1 libraries, I receive env->CreateConnection errorHi,
Can you just give more explanation on what you are trying to do, like conditions.
Are doing first time init.
Reg
Pra -
When trying to go from Organizer to Editor, I receive a Ryntime Error. It reads: Microsoft Visual C++ Runtime Error. Runrime Error Program c:\(x....
I kept getting the same error message too! Thank goodness I'm not alone in this!
-
Runtime error in Power set program
I don't understand what's wrong here so if anyone could help, I'd appreciate it.
Thanks.
Runtime error:
Exception in thread "main" java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
at java.util.HashMap$KeyIterator.next(Unknown Source)
at PowerSetGenerator.generatePowerSet(PowerSetGenerator.java:36)
at PowerSetGenerator.generatePowerSet(PowerSetGenerator.java:28)
at PowerSetGenerator.main(PowerSetGenerator.java:10
Line 10: generatePowerSet(setA);
Line 36: Set2.add(iter.next());
Line 28: generatePowerSet( (Set<E>) v);
Code:
import java.util.*;
public class PowerSetGenerator<E> {
public static void main(String[] args)
Set<Integer> setA = new HashSet<Integer>();
setA.add(3);
setA.add(2);
setA.add(1);
generatePowerSet(setA);
System.out.println(setA);
public static <E> Set<Set <E>> generatePowerSet(Set<E> v){
Set<E> result = new HashSet<E>();
if (v.isEmpty())
Set<E> tempSet = new HashSet<E>();
v.addAll(tempSet );
return (Set<Set <E>>) v;
else {
Iterator<E> iter = v.iterator();
E x = iter.next();
v.remove(x);
generatePowerSet( (Set<E>) v);
v.add(x);
while (iter.hasNext())
Set<E> Set2 = new HashSet<E>();
Set2.add(iter.next());
Set<E> Set3 = new HashSet<E>();
Set3.add(x);
result.addAll(Set2);
result.addAll(Set3);
return (Set<Set <E>>) result;
}okay I removed the x in it...I noticed that
It still doesn't run right though
Exception in thread "main" java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
at java.util.HashMap$KeyIterator.next(Unknown Source)
at PowerSetGenerator.generatePowerSet(PowerSetGenerator.java:36)
at PowerSetGenerator.generatePowerSet(PowerSetGenerator.java:28)
at PowerSetGenerator.main(PowerSetGenerator.java:10) -
Runtime error when executing driver program
when im executing my report after passing smartform to it , by giving invoice number in selectionscreen,it's generating runtime error as
the call to the function module '/1BCDWB/SF00000032' is incorrect:
in the function module interface, u can only specify fields of a specific type and
length under "s_final".although the currently specified field " " is the correct type,
it's length is incorrect.
i declared s_final in forminterface->tables as s_final like zform1.
i defined zform1 with fields which are in t_final.
please suggest where im going wrong.
TYPES : BEGIN OF TY_FINAL,
VBELN TYPE VBRP-VBELN,"INVOICE NO
ADRNR TYPE KNA1-ADRNR, "ADDRESS FOR CONSIGNEE
BSTKD TYPE VBKD-BSTKD, "PO NUMBER
BSTDK TYPE VBKD-BSTDK, "PO DATE
ARKTX TYPE VBRP-ARKTX, "DESCRITION
PACK TYPE I, "NO OF PACKAGES
UMREZ TYPE SMEINH-UMREZ, "AVG. CONTENTS PER PACKAGE IN KGS
FKIMG TYPE VBRP-FKIMG, "TOTAL QTY IN KGS
KNUMV TYPE KONV-KNUMV,
KBETR TYPE KONV-KBETR, "SELLING RATE/KG
KBETR1 TYPE KONV-KBETR,
KWERT TYPE KONV-KWERT,
TARIFF TYPE ZFORM1-TARIFF,
DUTY TYPE ZFORM1-DUTY,
AMOUNT TYPE ZFORM1-AMOUNT,
END OF TY_FINAL.
TYPES : BEGIN OF TY_ITEM,
VBELN TYPE VBRP-VBELN,"INVOICE NO
POSNR TYPE VBRP-POSNR,
ARKTX TYPE VBRP-ARKTX, "DESCRITION
FKIMG TYPE VBRP-FKIMG, "TOTAL QTY IN KGS
BSTKD TYPE VBKD-BSTKD, "PO NUMBER
BSTDK TYPE VBKD-BSTDK, "PO DATE
AUBEL TYPE VBRP-AUBEL,
AUPOS TYPE VBRP-AUPOS,
END OF TY_ITEM.
DATA : FM_NAM TYPE RS38L_FNAM VALUE '/1BCDWB/SF00000032'.
DATA :IT_ITEM TYPE TABLE OF TY_ITEM,
W_ITEM TYPE TY_ITEM,
W_FINAL TYPE TY_FINAL,
T_FINAL TYPE TABLE OF TY_FINAL,
P TYPE I VALUE 250, "total quantity.
TOTALDUTY TYPE I VALUE 0,
CESS TYPE I,
EDCESS TYPE I,
VAT TYPE I,
FREIGHT TYPE I,
GROSSTOTAL TYPE I,
TOTAL TYPE I,
PONUMBER TYPE VBKD-BSTKD, "PO NUMBER
PODATE TYPE VBKD-BSTDK, "PO DATE
ZTERM TYPE VBKD-ZTERM, "PAYMENT TERMS
INVOICENO TYPE VBRP-VBELN.
PARAMETERS : XVBELN TYPE VBELN.
SELECT VBELN
POSNR
ARKTX
FKIMG
AUBEL
AUPOS
FROM VBRP
INTO CORRESPONDING FIELDS OF TABLE IT_ITEM
WHERE VBELN = XVBELN AND UEPOS = '000000'.
LOOP AT IT_ITEM INTO W_ITEM.
*INVOICE NO
MOVE W_ITEM-VBELN TO INVOICENO.
*DESCRIPTION
MOVE W_ITEM-ARKTX TO W_FINAL-ARKTX.
**TOTAL QUANTITY IN KGS
MOVE W_ITEM-FKIMG TO W_FINAL-FKIMG.
*PO NUMBER
SELECT SINGLE BSTKD FROM VBKD
INTO W_ITEM-BSTKD
WHERE VBELN EQ W_ITEM-AUBEL.
MOVE W_ITEM-BSTKD TO PONUMBER.
*PO DATE
SELECT SINGLE BSTDK FROM VBKD
INTO W_ITEM-BSTDK
WHERE VBELN EQ W_ITEM-AUBEL.
MOVE W_ITEM-BSTDK TO PODATE.
SELECT SINGLE KNUMV FROM VBRK INTO W_FINAL-KNUMV WHERE VBELN = W_ITEM-VBELN.
**SELLING RATE/KG
SELECT SINGLE KBETR FROM KONV INTO W_FINAL-KBETR WHERE KNUMV = W_FINAL-KNUMV
AND KPOSN = W_ITEM-POSNR AND KSCHL = 'PR00'.
**TOTAL TARIFF VALUE
W_FINAL-TARIFF = W_FINAL-KBETR * W_ITEM-FKIMG.
SELECT SINGLE KBETR FROM KONV INTO W_FINAL-KWERT WHERE KNUMV = W_FINAL-KNUMV
AND KPOSN = W_ITEM-POSNR AND KSCHL = 'JEXT'.
*TOTAL DUTY PAYABLE
W_FINAL-DUTY = W_FINAL-KWERT / 10.
**AMOUNT
W_FINAL-AMOUNT = W_FINAL-TARIFF + W_FINAL-DUTY.
*TOTAL DUTY FOR CESS&EDCESS
TOTALDUTY = TOTALDUTY + W_FINAL-DUTY.
APPEND W_FINAL TO T_FINAL..
CLEAR W_FINAL.
*WRITE : /10 W_ITEM-ARKTX,
30 W_ITEM-FKIMG,
60 W_FINAL-KBETR,
90 TARIFF,
120 DUTY,
160 AMOUNT.
ENDLOOP.
*SELECT SINGLE KBETR FROM KONV INTO W_FINAL-KWERT WHERE KNUMV = W_FINAL-KNUMV
AND KPOSN = W_ITEM-POSNR AND KSCHL = 'ZECS'.
*MOVE W_FINAL-KWERT TO CESS.
*SELECT SINGLE KBETR FROM KONV INTO W_FINAL-KWERT WHERE KNUMV = W_FINAL-KNUMV
AND KPOSN = W_ITEM-POSNR AND KSCHL = 'ZECX'.
*MOVE W_FINAL-KWERT TO EDCESS.
*CESS
CESS = TOTALDUTY * 2 / 100.
*EDCESS
EDCESS = TOTALDUTY * 1 / 100..
*TOTAL VALUE AT FOOTER
TOTAL = W_FINAL-AMOUNT + CESS + EDCESS.
*VAT
VAT = TOTAL * 4 / 100.
*FREIGHT
*GROSS TOTAL
GROSSTOTAL = TOTAL + VAT.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZSF_SD_INVOICE1'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAM
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION FM_NAM
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
TOTALDUTY = TOTALDUTY
CESS = CESS
EDCESS = EDCESS
TOTAL = TOTAL
PONUMBER = PONUMBER
PODATE = PODATE
GROSSTOTAL = GROSSTOTAL
VAT = VAT
INVOICENO = INVOICENO
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
S_FINAL = T_FINAL
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.Hi,
U need to fill the ref_fieldname and ref_tabname or the cfieldname, ctabname for currency fields and qtabname and qfieldname for quantity fields in fieldcatalog.
santhosh
Message was edited by:
Kaluvala Santhosh -
Runtime error ITAB_ILLEGAL_SORT_ORDER_BLK in standard program
Hi Friends ,
I am getting dump itab_illegal_sort_order_blk i main program RBDAPP01in method CHECK_EXistence. please help.hi Chitra,
typical question you have to make a search on OSS, if there is no result you have to ask them, chances are better that you get the answer you need, than here.
ec -
Okay. I've just upgraded to labview 8.0 last week and have been using it without error until the program hung when I opened it one day. To remedy the situation and after waiting a while, I "ctrl+alt+del"ed it and forcebly closed the application. From then on, the main lab view program will not function. I get a runtime error saying that the program (c:\program files\...\labview.exe) was shutdown adnormally and to consult with the software manufacturer. Other NI applications function without error (ie: Measurement and Automation Explorer, Previous versions of labview, etc).
I tried to reinstall the upgrade to no avail. Leason learned: ctrl+alt+del is evil. If you have any ideas, I would greatly appreciate any input and I will relay the results. Thanks in advance.Hi Wiztrek,
This does indeed sound like an odd error/situation. We'll do our best to get it sorted out for you though! A few questions for you:
1. What kind of computer is this? Laptop, server, desktop, etc?
2. What OS? Service Pack (if applicable)?
3. When does it happen? You mentioned the splash screen -- is that as far as it gets?
Something you could try (and this is a shot in the dark) is to rename or delete the LabVIEW.ini file (it's in the same directory as LabVIEW.exe). If that doesn't work, I think a reinstall is best to try to fix it. Remove LabVIEW 8.0 from your computer via Add/Remove Programs. Then completely delete the "LabVIEW 8.0" folder from "Program Files/National Instruments" on your harddrive.
When you run the installer again (after rebooting of course), make note of any errors you receive (if any). Try following the steps outlined in this KnowledgeBase -- we might get something useful out of the install log:
How Do I Generate an Error Log File for a Software Installation?
I hope this helps shed some light on the issue - let us know what you find out!
Charlie S.
Visit ni.com/gettingstarted for step-by-step help in setting up your system -
While trying to change a BOM with transaction CS02, a runtime error appears
While trying to change a BOM with transaction CS02, a runtime error appears.
In intial screen he entered material ,plant BOM usage and date valid from after executed then id displayed item list in that he wantu2019s delete one item, he has been deleted selected item after that when he was saving he is getting runtime error
Developer trace
ABAP Program SAPLKED1_WRITE_CE4_BPS1 .
Source LKED1_WRITE_CE4_BPS1U01 Line 30.
Error Code SAPSQL_ARRAY_INSERT_DUPREC.
Module $Id: //bas/640_REL/src/krn/runt/absapsql.c#17 $ SAP.
Function HandleRsqlErrors Line 775.
RABAX: level LEV_RX_STDERR completed.
RABAX: level LEV_RX_RFC_ERROR entered.
RABAX: level LEV_RX_RFC_ERROR completed.
RABAX: level LEV_RX_RFC_CLOSE entered.
RABAX: level LEV_RX_RFC_CLOSE completed.
RABAX: level LEV_RX_IMC_ERROR entered.
RABAX: level LEV_RX_IMC_ERROR completed.
RABAX: level LEV_RX_DATASET_CLOSE entered.
RABAX: level LEV_RX_DATASET_CLOSE completed.
RABAX: level LEV_RX_RESET_SHMLOCKS entered.
RABAX: level LEV_RX_RESET_SHMLOCKS completed.
RABAX: level LEV_RX_ERROR_SAVE entered.
RABAX: level LEV_RX_ERROR_SAVE completed.
RABAX: level LEV_RX_ERROR_TPDA entered.
RABAX: level LEV_RX_ERROR_TPDA completed.
RABAX: level LEV_RX_PXA_RELEASE_RUDI entered.
RABAX: level LEV_RX_PXA_RELEASE_RUDI completed.
RABAX: level LEV_RX_LIVE_CACHE_CLEANUP entered.
RABAX: level LEV_RX_LIVE_CACHE_CLEANUP completed.
RABAX: level LEV_RX_END entered.
RABAX: level LEV_RX_END completed.
RABAX: end RX_RFC
In sm21
Perform rollback
Run-time error "SAPSQL_ARRAY_INSERT_DUPREC" occurred
Short dump "090618 110101 donalda 11557 " generated
Runtime Error SAPSQL_ARRAY_INSERT_DUPREC
Exception CX_SY_OPEN_SQL_DB
Occurred on 18.06.2009 at 11:01:01
The ABAP/4 Open SQL array insert results in duplicate database records.
What happened?
Error in ABAP application program.
The current ABAP program "SAPLKED1_WRITE_CE4_BPS1" had to be terminated because
one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
What can you do?
Print out the error message (using the "Print" function)
and make a note of the actions and input that caused the
error.
To resolve the problem, contact your SAP system administrator.
You can use transaction ST22 (ABAP Dump Analysis) to view and administer
termination messages, especially those beyond their normal deletion
date.
Error analysis
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
neither
caught nor passed along using a RAISING clause, in the procedure
"RKE_WRITE_CE4__BPS1" "(FUNCTION)"
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
If you use an ABAP/4 Open SQL array insert to insert a record in
the database and that record already exists with the same key,
this results in a termination.
(With an ABAP/4 Open SQL single record insert in the same error
situation, processing does not terminate, but SY-SUBRC is set to 4.)
How to correct the error
The exception must either be prevented, caught within the procedure
"RKE_WRITE_CE4__BPS1"
"(FUNCTION)", or declared in the procedure's RAISING clause.
To prevent the exception, note the following:
Use an ABAP/4 Open SQL array insert only if you are sure that none of
the records passed already exists in the database.
You may able to find an interim solution to the problem
in the SAP note system. If you have access to the note system yourself,
use the following search criteria:
"SAPSQL_ARRAY_INSERT_DUPREC" CX_SY_OPEN_SQL_DBC
"SAPLKED1_WRITE_CE4_BPS1" or "LKED1_WRITE_CE4_BPS1U01"
"RKE_WRITE_CE4__BPS1"
If you cannot solve the problem yourself, please send the
following documents to SAP:
1. A hard copy print describing the problem.
To obtain this, select the "Print" function on the current screen.
2. A suitable hardcopy prinout of the system log.
To obtain this, call the system log with Transaction SM21
and select the "Print" function to print out the relevant
part.
3. If the programs are your own programs or modified SAP programs,
supply the source code.
To do this, you can either use the "PRINT" command in the editor or
print the programs using the report RSINCL00.
4. Details regarding the conditions under which the error occurred
or which actions and input led to the error.Hi ,
you are getting beacuse u are trying to do mass update to database.
Please check that below note are applicable to your system.
Note 453313 - DBIF_RSQL_ERROR_INTERNAL for mass insert
Note 869534 - AFS MRP doesn't work properly with all BOM item categories
Thanks Rishi Abrol -
Crystal report runtime error on print preview
Hi everybody
I've built a CR report based on a 'SAP B1' connection type
I pick my tables from the DBO menu and not from the B1 tables menu (not the one which is organized like the SAP main menu)
I open CR application and the report
I click on the print preview button
I enter the parameter
I enter the Company user password in the "Enter connection details below' window
After this step, I've often have a C++ runtime error
Detail of the error message :
TITLE : MS Visual C++ Runtime library
Runtime error !
Prgram : C:\Program files (x86) \business...
Problem signature:
Problem Event Name: APPCRASH
Application Name: crw32.exe
Application Version: 12.2.0.290
Application Timestamp: 4a365bb5
Fault Module Name: MSVCR80.dll
Fault Module Version: 8.0.50727.3053
Fault Module Timestamp: 4889d619
Exception Code: 40000015
Exception Offset: 000046b4
OS Version: 6.0.6001.2.1.0.16.7
Locale ID: 1033
Additional Information 1: fbca
Additional Information 2: 4dd03cfc2bbb8ba75251d9b6c3496254
Additional Information 3: 81d9
Additional Information 4: 759284bec319ee7a483715cbc8f2c898
this erreor does not appear every time
I do not understand what makes tihs error to appear or not.
The only solution I've found so far :
Re open the report
Go to DATABASE Manue / Set Datasource location
I change the location of all the table to a new connection source.
environnement : win XP SP3 and CR 12.2.0.290 or Win 2008 serv and CR 12.2.0.290
Have you met the same problem in your editions ? Have you found any solutions ?
Thks for all answers
Edited by: Antoine TESSIER on Apr 19, 2010 11:58 AMI am having the same problem, reloaded Crystal, tried changing database, still getting error message. I am running in Windows 7 Professional.
Description
Faulting Application Path: C:\Program Files (x86)\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\crw32.exe
Problem signature
Problem Event Name: APPCRASH
Application Name: crw32.exe
Application Version: 12.1.3.1028
Application Timestamp: 4991a897
Fault Module Name: MSVCR80.dll
Fault Module Version: 8.0.50727.4927
Fault Module Timestamp: 4a2752ff
Exception Code: 40000015
Exception Offset: 000046b4
OS Version: 6.1.7600.2.0.0.256.48
Locale ID: 1033
Additional Information 1: cd41
Additional Information 2: cd416236504bbf90e1e977a0426bc2fe
Additional Information 3: 671e
Additional Information 4: 671eefc7db4b2a40792acc9f378ae3f4 -
ABAP runtime error while doing ME21N, ME22N, ME23N, ME51N,ME52N, ME53N
Dear All Expert,
I am facing problem while doing ME21N, ME22N, ME23N, ME51N,ME52N, ME53N,
Please find the below ABAP Runtime Error.
Runtime Errors LOAD_TYPE_VERSION_MISMATCH
Date and Time 10.02.2011 11:13:07
Short text
Change of a Dictionary structure at runtime of a program.
What happened?
Runtime error
The current ABAP program "CL_IM_WRF_MM_PROC_PO==========CP" had to be
terminated because one
of the statements could not be executed at runtime.
What can you do?
Restart the program.
If the error persists, contact your SAP administrator.
You can use the ABAP dump analysis transaction ST22 to view and manage
termination messages, in particular for long term reference.
Error analysis
The ABAP runtime system detected that the Dictionary-type "WRF_POHF_KOMP_STY"
changed
during the flow of the transaction.
As the type was already used in the old version
and in the new type should be used in the same transaction in the new
version, the transaction had to be cancelled to avoid inconsistencies.
How to correct the error
Try to restart the program.
System environment
SAP-Release 700
Application server... "iqe"
Network address...... "172.25.0.85"
Operating system..... "Linux"
Release.............. "2.6.9-55.ELsmp"
Hardware type........ "x86_64"
Character length.... 16 Bits
Pointer length....... 64 Bits
Work process number.. 0
Shortdump setting.... "full"
Database server... "iqe"
Database type..... "ORACLE"
Database name..... "IQE"
Database user ID.. "SAPSR3"
Terminal................. "MUMJML5727"
Char.set.... "C"
SAP kernel....... 700
created (date)... "Dec 26 2010 20:17:07"
create on........ "Linux GNU SLES-9 x86_64 cc3.3.3"
Database version. "OCI_102 (10.2.0.2.0) "
Patch level. 285
Patch text.. " "
Database............. "ORACLE 10.1.0.., ORACLE 10.2.0.., ORACLE 11.2...*"
SAP database version. 700
Operating system..... "Linux 2.6"
Memory consumption
Roll.... 16192
EM...... 25139088
Heap.... 0
Page.... 40960
MM Used. 8038136
MM Free. 4528408
User and Transaction
Client.............. 600
User................ "JKMM"
Language key........ "E"
Transaction......... " "
Transactions ID..... "4D524AD1FD7A42F9E1000000AC190055"
Program............. "CL_IM_WRF_MM_PROC_PO==========CP"
Screen.............. " "
Screen line......... " "
Information on where terminated
The termination occurred during generation of the ABAP/4 program
"CL_IM_WRF_MM_PROC_PO==========CP".
The termination occurred in line 213
of the source code of program "CL_IM_WRF_MM_PROC_PO==========CM007" (when
calling the editor 2130).
Source Code Extract
Line SourceCde
183 DATA: l_flag TYPE wrf_pbas_boolean.
184
185 CALL FUNCTION 'WRF_POHF_MSG_READ_PREVIEW_FLAG'
186 IMPORTING
187 e_preview_flag = l_flag.
188
189 IF NOT l_flag IS INITIAL.
190
191 DATA: l_header TYPE REF TO cl_po_header_handle_mm.
192
193 MOVE im_header ?TO l_header.
194
195 CALL METHOD l_header->if_output_mm~preview( ).
196
197 CALL FUNCTION 'WRF_POHF_MSG_RESET_PREV_FLAG'.
198
199 ***$ Widening Cast for printing information.
200 ** CALL FUNCTION 'WRF_POHF_STORE_PRINT_INFO_SET'
201 ** EXPORTING
202 ** im_header = l_header.
203
204 * Printing Preview
205 * IF NOT gv_preview IS INITIAL.
206 * CALL METHOD l_header->if_output_mm~overview( ).
207 * CALL METHOD l_header->if_output_mm~preview( ).
208 * clear gv_preview.
209 ENDIF.
210
211 * ENDIF.
212
>>>>> ENDMETHOD.
Internal notes
The termination was triggered in function "ab_RxDdicStruShareFailed"
of the SAP kernel, in line 2539 of the module
"//bas/700_REL/src/krn/runt/abtypload.c#11".
The internal operation just processed is " ".
Internal mode was started at 20110210111306.
Name of the changed type......: "WRF_POHF_KOMP_STY"
New version of the type.......: 20070508193207
Old version of the type.......: 20070508193207
New user......................: "Type" "WRF_POHF_KOMP_STY"
Version of the new user.......: 20070508193207
Old user......................: "???" "???"
Version of the old user.......: "???"
Active Calls in SAP Kernel
Lines of C Stack in Kernel (Structure Differs on Each Platform)
(CTrcStack2+0x78)[0x6cbb78]
(CTrcStack+0xb)[0x6cc17b]
(ab_rabax+0x3be5)[0xb8d985]
(_Z24ab_RxDdicStruShareFailedPKtm4RUDIS0_S1_S0_+0x163)[0xb16823]
(_Z19ab_GetDdicTypeIndexPKtm4RUDI+0x1f6)[0xb0dbb6]
(_Z11ab_LoadViewPtjPKtPK11PROGRAMHEADPj+0x27e)[0xb16ede]
(_Z18ab_GetDdicTypeLoad4RUDI+0x6e)[0xb1705e]
(ab_GetView+0xc1d)[0xb0ee1d]
(_Z20CompressInitRcByDatajPK6CG_DIRjjS1_jj4RUDIPKhj+0x60d)[0xe32b2d]
(_Z21cg_CompressStackFrameP4TRIGjj+0x169)[0xe33399]
(_Z8cg_blkleP3ENV+0x75f)[0xe4779f]
(_Z9sc_cblklePKt8ENV_KINDP7SC_INFO+0x394)[0xe90024]
(sc_blkle+0xdd)[0xec6e4d]
(rs_oper_abap1729+0x37)[0x10eb237]
(rs_expan_abap+0xa1996)[0xfd7a2a]
(_Z8sc_expanj+0x76d)[0xe1d55d]
(_Z5parsejPi+0x258)[0xe19998]
(sc_check+0xb9c)[0xe1857c]
(sc_inclu+0x5fa)[0xe0d50a]
(rs_oper_abap2160+0x3a)[0x1115d6a]
(rs_expan_abap+0xcd41d)[0x10034b1]
(_Z8sc_expanj+0x76d)[0xe1d55d]
(_Z5parsejPi+0x258)[0xe19998]
(sc_check+0xb9c)[0xe1857c]
(sc_checkStart+0x41)[0xe1ac51]
(cg_generate+0xb65)[0xe57755]
(ab_gabap+0x14a)[0xb01a5a]
(dy_gen_abap+0x63c)[0x74428c]
(ab_genprog+0x13d3)[0xb03d13]
(_Z17ab_LoadProgOrTrfoPKtjPj+0xb56)[0x8f9ab6]
(_Z11ab_LoadProgPKtj+0x11)[0x8f9ca1]
(_Z15LoadGlobalClassPKtjjj9ClasState+0x24c)[0x958c2c]
(_Z11FillCfixIntPK4CREFP4CFIXjj9ClasState+0x214)[0x957404]
(_Z11ab_FillCfixtj+0x65)[0x957ae5]
(_Z26ab_CrefToCladId_ActivateOKtPh+0x7d)[0x957b6d]
(_Z8ab_jaboov+0x623)[0x959793]
(_Z8ab_extriv+0x607)[0x8ba9c7]
(_Z9ab_xeventPKt+0x1c1)[0xa1c021]
(_Z8ab_triggv+0x9c)[0xa1c77c]
(ab_run+0x97)[0xbde5c7]
(N_ab_run+0x9)[0x736359]
(dynpmcal+0x669)[0x7333b9]
(dynppai0+0x8eb)[0x734d9b]
(dynprctl+0x3e9)[0x733db9]
(dynpen00+0x4a5)[0x726eb5]
(Thdynpen00+0x359)[0x541bd9]
(TskhLoop+0xc49)[0x54d999]
(ThStart+0x20f)[0x55b29f]
(DpMain+0x2da)[0x4bd49a]
(nlsui_main+0x9)[0x4910c9]
(main+0x33)[0x491103]
/lib64/tls/libc.so.6(__libc_start_main+0xdb)[0x3cde51c3fb]
Please help me to resolve the issue.
Thanks & Regards
SKKread this part again: The ABAP runtime system detected that the Dictionary-type "WRF_POHF_KOMP_STY" changed during the flow of the transaction. As the type was already used in the old version and in the new type should be used in the same transaction in the new version, the transaction had to be cancelled to avoid inconsistencies. How to correct the error Try to restart the program
how often had you restarted ME21N before you posted this message?
In best case this message appears only once, because the program / or dictionary was changed while you executed ME21N
If many times, then contact your ABAPer, because then he probably did not transport all objects that were changed, or the objects have to be regenerated in your system. -
Runtime error while trying to convert script to pdf and sending in mail
Hi all,
I m trying to convert the standard script into pdf using convert_otf fm and trying to send it as an attachment using 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
I m using fm 'SSF_FUNCTION_MODULE_NAME' to get the function module name.
But i m getting a runtime error while executing the program..
Can anyone help me in this issue please.
Thanks in advance,
AshokHi Ramesh,
I m getting an runtime error function module not found. I ll paste the code here.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = lf_formname
IMPORTING
fm_name = lf_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc = 0.
error handling ent_retco = sy-subrc.
perform protocol_update_i.
ENDIF.
ls_control_param-getotf = 'X'.
DATA: l_document_output_info TYPE ssfcrespd,
l_job_output_info TYPE ssfcrescl,
l_job_output_options TYPE ssfcresop.
check ent_retco eq 0.
CALL FUNCTION 'lf_fm_name'
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = ' '
zxekko = l_doc-xekko
zxpekko = l_doc-xpekko
zxaend = l_doc-xaend
IMPORTING
document_output_info = l_document_output_info
job_output_info = l_job_output_info
job_output_options = l_job_output_options
TABLES
l_xekpo = l_doc-xekpo[]
l_xekpa = l_doc-xekpa[]
l_xpekpo = l_doc-xpekpo[]
l_xeket = l_doc-xeket[]
l_xtkomv = l_doc-xtkomv[]
l_xekkn = l_doc-xekkn[]
l_xekek = l_doc-xekek[]
l_xaend = l_doc-xaend[]
l_xkomk = l_xkomk
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = v_len_in
TABLES
otf = l_job_output_info-otfdata
lines = tb_pdf
EXCEPTIONS
err_max_linewidth = 0
err_format = 1
err_conv_not_possible = 2
OTHERS = 3.
Maybe you are looking for
-
Can't get duplex printing to work
I have a HP Color LaserJet 4650 which is a duplex unit. Before 10.5 I would print regularly selecting in the Layout "Two-Sided" and it would work fine. Now, in 10.5 it seems that no matter what I try it will not print on both sides... help? or is thi
-
Cant connect my mac mini to my tv
i have a mac mini but when i connect it to my tv it says change the resolution but i cant because i dont have another display that takes hdmi please help
-
SQL 2008 R2 Backups (Backup Exec) are failing with SQLVDI error
Hi We are experiancing Backup failures with SQL 2008 R2 DB with Backup Exec 2012, below are the errors Event ID 18210: BackupVirtualDeviceFile::RequestDurableMedia: Flush failure on backup device 'MSQ_00__2efc94bd_289f_4866_8dcb_3f3fde91416d_'. Oper
-
Lov Values are not showing for Discoverer Reports in Application
Hi, I developed some discoverer reports, those reports having parameters with LOV. Those LOV values are showing in Discoverer Desktop, but after registering those reports in Oracle applications those LOV values are not showing. Pls let me know how re
-
Canceled AOL - lost purchased songs
I used my aol account credentials when I first started purchasing songs through the iTunes store. Eventually canceled the AOL account and established a new iTunes account. The songs I purchased through AOL are no longer accessible to me on my PC! Not