Run time error on collapsing the catalog tree node
Hi Experts,
Scenario is of SAPCRM 7.0.
On the Catalog page we get a tree in the left pane with all the poducts listed.
We can expand/close the tree and see the products.
While i select - (minus) and close the node, the system throws a run time error.
Trace shows a run time error at SetItemPageSizeAction.
Please help if any of you have faced a similar issue.
Thanks,
Rohit
Hi Ashok,
We have B2B webshop with ECC and CRM. Product catalog are all maintained in CRM.
Where do i exactly need to check the xcm settings ?
I went thru a bit with XCM but couldnt find the field mentioned by you.
Thanks in anticipation,
Rohit Sharma
Similar Messages
-
ABAP Run time Error whle executing the Balance sheet report in FGI0
Hi,
I am getting the below ABAP Run time error while executing the Balance Sheet report in FGI0.It was working before but now it is giving the error.Kindly help me in solving this.
Runtime Errors MESSAGE_TYPE_X
Date and Time 06/12/2009 15:17:17
Short text
The current application triggered a termination with a short dump.
What happened?
The current application program detected a situation which really
should not occur. Therefore, a termination with a short dump was
triggered on purpose by the key word MESSAGE (type X).
Error analysis
Short text of error message:
RAISE RKD_CONDITION_READ (internal error)
Long text of error message:
Diagnosis
The program was terminated because a situation occurred which
should not have arisen.
Procedure
Analyze the situation and contact SAP.
Technical information about the message:
Message class....... "KH"
Number.............. 299
Variable 1.......... "RKD_CONDITION_READ"
Variable 2.......... " "
Variable 3.......... " "
Variable 4.......... " "
Trigger Location of Runtime Error
Program SAPLKYPR
Include LKYPRU31
Row 36
Module type (FUNCTION)
Module Name RKD_CONDITION_READ
Thanks
SupriyaHello,
Please refer SAP
Note 971535 - dump when deleting characteristic with hierarchy
Regards,
Ravi -
ABAP Run time error when display the Customs Export declarations
Hi,
I'm receiving ABAP Run time error when display the Customs Exp. Declarations Under SAP Customs Processing -> Customs Processing - Import / Export -> Monitoring.
Error messaging point to Function Module - /SAPSLL/CUHD_LOAD_SELECTION.
While debugging we found that Primary Key of the below structures are not the same
lt_corpar type /sapsll/corpar_t
lt_corpar_ht type /sapsll/corpar_k02_ht
Does anyone has the SAP Notes or solution to this issue other than changing the structures manually. I'm not sure about the impact if i change manually
Error message short details
Termination occurred in the ABAP program "/SAPSLL/SAPLCUHD_SELECTION" - in
"/SAPSLL/CUHD_LOAD_SELECTION".
The main program was "/SAPSLL/CULO_DISPLAY_CUS_EXP ".
In the source code you have the termination point in line 144
of the (Include) program "/SAPSLL/LCUHD_SELECTIONU01".
We are on GTS Release 8.0 and Support Package SAPK-80014INSAPSLL (Support pack level 14).
Regards,
Pradeep MaddiHi,
I have implemented SAP Note 1531799, but it hasn't resolved the current issue.
For Our GTS instance, there are 2 Feeder Systems (ECC) attached, but document transfer in one of the system has not been activated. Both having the same partner functions ( We copied the sandbox into 2 different instances for different business Testings and now these 2 instances attached to GTS for testing). These feeder systems have different Logical system names and Logical system groups.
Recently i have implemented SAP Corrections manually for one the issue, Please see below thread for the detail information
Proforma Invoice not transferred to GTS
After implementing the corrections, i have created Pro-forma invoice in ECC system. When i tried to display, i'm facing the ABAP Dump issues.
Error details
Runtime Errors ITAB_DUPLICATE_KEY
ABAP Program /SAPSLL/SAPLCUHD_SELECTION
Application Component SLL-LEG
You tried to insert an entry into table "\FUNCTION=/SAPSLL/CUHD_LOAD_SELECTION\DATA=LT_CORPAR_HT". However, updating the unique table key "PRIMARY_KEY" resulted in a duplicate entry. The key concerned may be either the primary key or a secondary key.
Regards,
Pradeep -
Run time error while closing the CRM Order using BAPI
Hi Experts,
Need your invaluable suggestions here.Apologies for the lengthy mail, intention is to give clear idea of the issue.
I am facing an issue while closing the CRM orders. According to our business process, when an issue is solved we will keep the order in resolved status only. We will not directly close the order from the CRM tool, instead we have created a custom program for the same purpose.
For the custom program we will give input as the order number and execute it, this will close the order.
Here close the order means assigning it to Close status as well assign the reason code.
We have created some reason codes for closed status.
So when the program is run the Order moves from resolved status to closed status along with reason code.
But of late we are facing some problems with this program, it is giving run time error for some CRM orders.
Run time error message : The ABAP/4 Open SQL array insert results in duplicate database records.
The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught in procedure "CRM_SERVICE_OS_UPD_OST_DU" "(FUNCTION)", nor was it propagated by a RAISING clause.
Please find my code which have used in the custom program
Closing the resolved SOs in the system
CALL FUNCTION 'CRM_STATUS_CHANGE_EXTERN_OW'
EXPORTING
objnr = iv_guid
user_status = lc_status_closed
EXCEPTIONS
object_not_found = 1
status_inconsistent = 2
status_not_allowed = 3
OTHERS = 4.
IF sy-subrc <> 0.
WRITE : 'Error at maintaining status'.
ENDIF.
Set reason code
build lt_subject
ls_subject-ref_guid = iv_guid.
ls_subject-katalogart = 'A2'.
ls_subject-codegruppe = 'ZR000003'.
ls_subject-code = 'ZR33'. " Reason code
ls_subject-mode = 'A'.
APPEND ls_subject TO lt_subject.
build lt_ossset
ls_osset-ref_guid = iv_guid.
ls_osset-subject_profile = 'ZREASON03'.
ls_osset-profile_type = 'G'.
ls_osset-subject = lt_subject.
APPEND ls_osset TO lt_osset.
build lt_service_os
ls_service_os-ref_guid = iv_guid.
ls_service_os-ref_kind = 'A'.
ls_service_os-osset = lt_osset.
APPEND ls_service_os TO lt_service_os.
build lt_input_fields
REFRESH: lt_input_fields, lt_field_names.
CLEAR : ls_input_fields, ls_field_names.
ls_field_names-fieldname = 'CODE'.
APPEND ls_field_names TO lt_field_names.
ls_field_names-fieldname = 'CODEGRUPPE'.
APPEND ls_field_names TO lt_field_names.
ls_field_names-fieldname = 'KATALOGART'.
APPEND ls_field_names TO lt_field_names.
ls_field_names-fieldname = 'SERVICE_PROFILE'.
APPEND ls_field_names TO lt_field_names.
ls_input_fields-ref_guid = iv_guid.
ls_input_fields-ref_kind = 'A'.
ls_input_fields-objectname = 'SERVICE_OS'.
ls_input_fields-field_names = lt_field_names.
APPEND ls_input_fields TO lt_input_fields.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
it_service_os = lt_service_os
CHANGING
ct_input_fields = lt_input_fields
EXCEPTIONS
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
OTHERS = 5.
IF sy-subrc <> 0.
WRITE : 'Error at maintaining reason'.
ENDIF.
CALL FUNCTION 'CRM_ORDER_SAVE'
EXPORTING
it_objects_to_save = lt_header_guid
iv_update_task_local = lv_update_task_local
IMPORTING
et_saved_objects = lt_saved_objects
EXCEPTIONS
document_not_saved = 1
OTHERS = 2.
IF sy-subrc <> 0.
WRITE : 'Error at saving'.
ELSE.
WRITE : 'Successfully Closed'.
COMMIT WORK AND WAIT.
ENDIF.
Run time error is coming at COMMIT WORK AND WAIT statement.
Please let me know any corrections are required in the above program.
When I analyzed the run time error I have found that it trying to insert the record in CRMD_SRV_OSSET for that CRM order, but already one record is present in the table for the same CRM order number.
For most of the CRM orders there is no entry in this table so they are closing successfully but for a few orders for which there is an entry we are getting the above run time error.
There is nothing wrong with the orders which have an entry already in the table CRMD_SRV_OSSET, I need to close these kind of orders with out run time error.
Kindly provide your feedback.Hi Dinakar,
You posted this in APO PPDS forum. This question should go to PP forum where someone could answer it.
Please close this thread and open a new thread in PP forum so that you could get help quickly from the relevant experts.
Regards - Pawan -
Run time error while activating the Transfer Rules
Hi,
Error when activating Transfer rules for Infosource :
0FI_GL_1 -
(General ledger: Transaction figures)
Run time error : ASSERTION FAILED
Transfer rules traffic light is in Green. But when i am trying to activate the Transfer rules, its giving Run time error.
Thanks,
KishoreHi,
As mentioned in the note 939383 , either Import Support Package 08 for SAP NetWeaver 2004s BI (BI Patch08 or SAPKW70008) into your BI system or do correction instructions given in the note.
It is always better to import the latest patches avialble in service market to avoid this type of problems.
Also see tha note 1010672 amd check whether it is applicable to your problem.
With rgds,
Anil Kumar Sharma .P
Message was edited by:
Anil Kumar Sharma -
Getting run time errors while executing the copied SAP programs
Hi folks,
i want to copy an sap program.after coping i need to change some coding there.then i have to create a new transaction for that.
i am just copying the sap program RQEEAL10(transaction-QA32) to Z_RQEEAL10. it has 4 include programs.i am copying them to z programs like
RQ00MF10 copied to z_RQ00MF10
RQALVF14 copied to z_RQALVF14
RQALVF16 copied to z_RQALVF16
RQALVTOP copied to z_RQALVTOP.
now i am executing that program Z_RQEEAL10.but i am getting run time errors as given below.
<b>runtime error---</b>
The termination occurred in the ABAP program "Z_RQEEAL10" in
"SELECT_FIELDS_MANIP2_F16".
The main program was "Z_RQEEAL10 ".
The termination occurred in line 257 of the source code of the (Include)
program "RQALVF16"
of the source code of program "RQALVF16" (when calling the editor 2570).
--Error in ABAP statement when processing an internal table.
--When changing or deleting one or more lines of the internal table
"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS" or when inserting in the table
"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS", 0 was used as
the line index. An index less than or equal to zero is not
allowed.
The error can occur when using the following options:
1. "INDEX idx" for specifying the line number in the table
"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS"
where you want to change, insert or delete.
2. "FROM idx" for specifying the start index when deleting a line
area from or inserting a line area into the table
"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS".
3. "TO idx" for specifying the end index when deleting a line
area from or inserting a line area into the table
"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS".
When the program terminated, the table had 2 lines.
these r the runtime errors what i am getting.where is the problem?i have activated all interface & includes.plz advice.
Thanks & regardsHi Madhu,
I will give you one more check point where you have to give your concentration while copying the standard programs....
Call Customer-Function (Function Exists) if any in the Program when copied will not get executed. Instead you need to call the FM Directly.
one more is also here
You are likely to have some problems with the text-elements and translation that may have been maintained for the original report.
~~Guduri -
Run time error when loding the WEB clint
Dear
All
I am in sap ides 4.0 I am trying to login the web Clint thru the BSP application in the se80 t code I got in to that code select the BSP application after that cic_ic and F8.
New internet explore opened and asked for user id password after that. The page is loding after that no action but I refresh the page it is saying that ending the section.
I find that i am getting two types of run time errors when page loding i find this thru st22 list of run time errors.
that are 20.10.2008
1.09:26:15 gopinath SAPUSER 800 C SYNTAX_ERROR CRM_MKTTG_PROC_TG_FEXP_BATCH 1
2.18.10.2008 14:05:55 gopinath 000 C DBIF_RSQL_INVALID_REQUEST SAPMSYST 1
and i check in event viewer also in that it is showing that.
SAP-Basis System: Transaction Canceled 00 671 ( SYNTAX_ERROR 20081020092615gopinath SAPUSER 8001 )
with Regards,
Prakesh.Hi
I would suggest you to create a OSS request using service.sap.com and ask SAP to help on this
Regards
Madhan -
Run Time error while activating the cube 0pp_c03
Hi All,
I encountered this error while activating the info cube 0pp_c03
An exception occurred which is explained in detail below.
The exception, which is assigned to class 'CX_RSR_X_MESSAGE', was not caught
and
therefore caused a runtime error.
The reason for the exception is:
No text available for this exception
Regards
RohitHi,
Please check in ST22 for any relevant short dump. the error message is not of much help in anlyzing the problem
or
Perform the consistency test with 'RSRV' -->All Elementary Tests --> Master Data --> 'Compare Number Range and Maximum SID for the characteristic 0REQUID'. and correct the error
Regards,
Marasa. -
Run Time Error when trying to select hierarchy node
Hy all,
the situation is the following:
i attempt to create a variable of type "hierarchy node" (for cost center cha) in my planning area, i used the replacement type "user defined value", check on "input allowed by user" and then i create the user entry, in selection condition i run match code and when i try to select a single cost center (not a hierarchy node) expanding the hierarchy tree the system goes dump with the following message:
Runtime Errors MESSAGE_TYPE_X
Error analysis
Short text of error message:
Program is inconsistent -> see long text
Technical information about the message:
Diagnosis:
An inconsistent program status has occurred. The program cannot be continued.
System response:
The system crashes.
Procedure
1. Look in OSS for a note under the error message UPC099.
2. When you open a problem message, send the first pages of the
system crash message including the section 'Source code excerpt
' with the message.
Procedure for System Administration
Message classe...... "UPC"
Number.............. 099
Selecting a hierarchy node (not a single cost center but a text node grouping more cost conter) this problem does not occur.
I appreciate (and reward) any hints.
Thanks in advance
FabioHi,
Go through the oss notes with error message UPC099
Dump during hierarchy selection:<b>536694</b>
Dump when reading a hierarchy with intervals :<b>423953</b>
Regards-
Siddhu
Message was edited by: sidhartha -
Portal Run time error after changing the logon screen
Hi all,
I am running an EP7 SP08 and I try to change the logon screen as described on:
http://help.sap.com/saphelp_nw2004s/helpdata/en/23/c0e240beb0702ae10000000a155106/frameset.htm
I copied the 'com.sap.portal.runtime.logon.par.bak' file, renamed it to 'my.new.logon.par'. after that I extracted the file with winzip. I opened the directory 'PORTAL-INF\lib\' and there I extracted the file 'umelogonbase.jar' with winrar. I opened the file 'logonLabels_en.properties' and changed the entry 'xtit_WELCOME=Welcome' to 'xtit_WELCOME=blablabla'.
I repacked the umelogonbase.jar with winrar again and after that I repacked the 'my.new.logon.par' with winzip again.
Then I placed the par file back at '<J2EE_Engine_Instance>\j2ee\cluster\server<X>\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\deployment\pcd' and changed the authscheme.xml with the new par file and changed the 'login.authschemes.definition.file' all described on the help.sap.com url mentioned above.
However, when I restart the portal and open the logon screen I see the error message:
Portal Runtime Error
An exception occurred while processing a request for :
iView : N/A
Component Name : N/A
The exception was logged. Inform your system administrator..
See the details for the exception ID in the log file
The default trace shows the following message:
An error occured during authscheme computation.
[EXCEPTION]
com.sapportals.portal.prt.component.PortalComponentException: Error in init method
Component : my.new.logon.certlogon
Is there anyone who knows what goes wrong? The description on help.sap.com is very straightforward but still it doesn't work for me...
Any help would be appreciated.
Kind Regards,
Nico van der Linden...Hi,
Check if you did the following steps pertaining to the authschemes.xml file:
--> Download the authschemes.xml to local drive. Rename the file to,say, authschemes_new.xml
--> In authschemes_new.xml, did you change <b>all</b> entries of com.sap.portal.runtime.logon with the name of modified logon par file?
-->Upload the authschemes_new.xml file using configtool; and, change the property login.authschemes.definition.file to authschemes_new.xml in configtool.
-->Finally,restart your portal. Hope it helps.
Regards,
M.Subathra -
Category ABAP Programming Error
Runtime Errors CONVT_NO_NUMBER
Except. CX_SY_CONVERSION_NO_NUMBER
ABAP Program ZMM_MIGO_GOODS_ISSUE
Application Component Not assigned
Date and Time 26.05.2014 14:28:30
Short Text
"C:\Users\SAP\Desktop\MIGO\MIGO.xlsx" cannot be interpreted as a number
What happened?
Error in the ABAP Application Program
The current ABAP program "ZMM_MIGO_GOODS_ISSUE" had to be terminated because
it has
come across a statement that unfortunately cannot be executed.
Error analysis
An exception has occurred which is explained in more detail below. The
exception is assigned to class 'CX_SY_CONVERSION_NO_NUMBER' and was not caught
in procedure
"%_SEL_SCREEN_P_FNAME_V" "(FORM)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated thisHI CHIRUI,
I have changed and tried but still i a getting the same thing..
otherwise please check this i am using some class method i am not getting short dump,but excel file is not getting uploaded.
REPORT ZMM_MIGO_GOODS_ISSUE NO STANDARD PAGE HEADING.
DATA : BEGIN OF IT_DATA OCCURS 0,
ID(10),
BLDAT(10), " Document Date
BUDAT(10), " Posting Date
REF_DOC_NO(16), " Material Slip No
DEL_NOTE(16), " delivery note
MATNR TYPE MSEG-MATNR, " Material Number
ERFMG(13) TYPE C, " Quantity
BWART TYPE RM07M-BWARTWA, " Movement Type
SOBKZ(1), " Special Stock
WERKS TYPE RM07M-WERKS, " Plant
LGORT TYPE RM07M-LGORT, " Storage Location
PS_POSID TYPE PS_POSID, " WBS Element
COST_CENTER TYPE KOSTL, " cost center
ORDER TYPE AUFNR, " order number
SERNR TYPE RIPW0-SERNR, " Serial Number
END OF IT_DATA,
BEGIN OF IT_HEAD OCCURS 0,
ID(10),
BLDAT(10), " Document Date
BUDAT(10), " Posting Date
REF_DOC_NO(16), " Reference document number
"HEADER_TXT(25), " Header Text
BWART TYPE RM07M-BWARTWA, " Movement Type
END OF IT_HEAD,
BEGIN OF IT_ITEM OCCURS 0,
ID(10),
"ID1(10),
WERKS TYPE RM07M-WERKS, " Plant
LGORT TYPE RM07M-LGORT, " Storage Location
VAL_TYPE TYPE BWTAR_D,
MATNR TYPE MSEG-MATNR, " Material Number
ERFMG(13) TYPE C, " Quantity
CHARG TYPE MSEG-CHARG, " Batch
BWTAR TYPE BWTAR_D,
PS_POSID TYPE PS_POSID, " WBS Element
ERFME TYPE MSEG-ERFME, " Unit
COST_CENTER TYPE KOSTL, " cost center
ORDER TYPE AUFNR, " order number
CUSTOMER TYPE EKUNN, " Account Number of Customer
SERNR TYPE RIPW0-SERNR, " Serial Number
AMOUNT_LC TYPE BAPI_EXBWR,
SOBKZ(1),
END OF IT_ITEM,
HEADER LIKE BAPI2017_GM_HEAD_01,
CODE LIKE BAPI2017_GM_CODE,
ITEMS LIKE BAPI2017_GM_ITEM_CREATE OCCURS 0 WITH HEADER LINE,
SERIAL LIKE BAPI2017_GM_SERIALNUMBER OCCURS 0 WITH HEADER LINE,
RETURN LIKE BAPI2017_GM_HEAD_RET,
RET LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE,
TESTRUN LIKE BAPI2017_GM_GEN-TESTRUN,
IT_TAB TYPE FILETABLE,
GD_SUBRC TYPE I,
L_FILE TYPE RLGRAP-FILENAME,
IT_RAW TYPE TRUXS_T_TEXT_DATA,
COUNT(2) TYPE N,
TEXT_C(30).
DATA: DATA LIKE TABLE OF IT_ITEM WITH HEADER LINE.
DATA: IT_TEMP LIKE TABLE OF IT_ITEM WITH HEADER LINE.
DATA: IT_TEMP1 LIKE TABLE OF IT_ITEM WITH HEADER LINE.
DATA: IT_ITEM1 LIKE TABLE OF IT_ITEM WITH HEADER LINE.
SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS : P_FILE TYPE RLGRAP-FILENAME.
* p_test AS CHECKBOX.
SELECTION-SCREEN: END OF BLOCK B1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
EXPORTING
WINDOW_TITLE = 'SELECT FILE'
CHANGING
FILE_TABLE = IT_TAB
RC = GD_SUBRC.
READ TABLE IT_TAB INTO P_FILE INDEX 1.
START-OF-SELECTION.
PERFORM GET_EXCEL_DATA.
PERFORM GET_HEADER_ITEM.
PERFORM UPDATE_DATA.
*& Form GET_EXCEL_DATA
* text
* --> p1 text
* <-- p2 text
FORM GET_EXCEL_DATA .
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = P_FILE
IMPORTING
OUTPUT = L_FILE.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
I_LINE_HEADER = 'X'
I_TAB_RAW_DATA = IT_RAW
I_FILENAME = L_FILE
TABLES
I_TAB_CONVERTED_DATA = IT_DATA
EXCEPTIONS
CONVERSION_FAILED = 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.
ENDFORM. " GET_EXCEL_DATA
*& Form GET_HEADER_ITEM
* text
* --> p1 text
* <-- p2 text
FORM GET_HEADER_ITEM .
DATA : FLAG(1).
LOOP AT IT_DATA.
CLEAR FLAG.
IF IT_DATA-ID IS NOT INITIAL.
AT NEW ID.
FLAG = 'X'.
ENDAT.
ENDIF.
IF FLAG = 'X'.
MOVE-CORRESPONDING IT_DATA TO IT_HEAD.
APPEND IT_HEAD.
ENDIF.
MOVE-CORRESPONDING IT_DATA TO IT_ITEM.
APPEND IT_ITEM.
ENDLOOP.
DATA[] = IT_ITEM[].
IT_TEMP[] = IT_ITEM[].
IT_TEMP1[] = IT_ITEM[].
ENDFORM. " GET_HEADER_ITEM
*& Form UPDATE_DATA
* text
* --> p1 text
* <-- p2 text
FORM UPDATE_DATA .
DATA : COUNT1(10),
L_QTY TYPE I,
DAT(10).
CONCATENATE SY-DATUM+6(2) '.' SY-DATUM+4(2) '.' SY-DATUM(4) INTO DAT.
LOOP AT IT_HEAD.
ON CHANGE OF IT_HEAD-ID.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
DATE_EXTERNAL = IT_HEAD-BUDAT
ACCEPT_INITIAL_DATE = 'X'
IMPORTING
DATE_INTERNAL = HEADER-PSTNG_DATE.
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 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
DATE_EXTERNAL = IT_HEAD-BLDAT
ACCEPT_INITIAL_DATE = 'X'
IMPORTING
DATE_INTERNAL = HEADER-DOC_DATE.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
MOVE : '2' TO HEADER-VER_GR_GI_SLIP,
'X' TO HEADER-VER_GR_GI_SLIPX.
* IF r1 EQ 'X'.
MOVE '05' TO CODE-GM_CODE.
HEADER-REF_DOC_NO = IT_HEAD-REF_DOC_NO.
"HEADER-HEADER_TXT = IT_HEAD-HEADER_TXT.
* ELSEIF r2 EQ 'X'.
* MOVE '04' TO code-gm_code.
* ELSEIF r3 EQ 'X'.
* MOVE '04' TO code-gm_code.
* ENDIF.
* IF p_test = 'X'.
* MOVE 'X' TO testrun.
* ENDIF.
ENDON.
IT_ITEM1[] = IT_ITEM[].
*delete it_item[] where werks = '' and id = it_head-id.
DELETE ADJACENT DUPLICATES FROM IT_ITEM COMPARING ID MATNR.
LOOP AT IT_ITEM WHERE ID = IT_HEAD-ID.
* ON CHANGE OF it_item-id1.
COUNT1 = COUNT1 + 1.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = IT_ITEM-MATNR
IMPORTING
OUTPUT = ITEMS-MATERIAL.
MOVE : IT_ITEM-WERKS TO ITEMS-PLANT,
IT_ITEM-LGORT TO ITEMS-STGE_LOC,
* it_item-lgort1 TO items-move_stloc,
IT_ITEM-CHARG TO ITEMS-BATCH,
* IT_ITEM-VAL_TYPE TO ITEMS-VAL_TYPE,
'FRESH' TO ITEMS-VAL_TYPE,
IT_HEAD-BWART TO ITEMS-MOVE_TYPE,
IT_ITEM-SOBKZ TO ITEMS-SPEC_STOCK,
IT_ITEM-ERFMG TO ITEMS-ENTRY_QNT,
IT_ITEM-ERFMG TO ITEMS-ENTRY_QNT,
* it_item-erfme TO items-entry_uom,
* it_item-sgtxt TO items-item_text,
* it_item-exbwr TO items-amount_lc,
IT_ITEM-PS_POSID TO ITEMS-WBS_ELEM,
IT_ITEM-PS_POSID TO ITEMS-VAL_WBS_ELEM,
"IT_ITEM-CUSTOMER TO ITEMS-CUSTOMER,
IT_ITEM-ERFMG TO L_QTY,
IT_ITEM-AMOUNT_LC TO ITEMS-AMOUNT_LC,
IT_ITEM-COST_CENTER TO ITEMS-COSTCENTER,
IT_ITEM-ORDER TO ITEMS-ORDERID.
* items-SPEC_MVMT = 'R'.
CALL FUNCTION 'CONVERSION_EXIT_ABPSN_INPUT'
EXPORTING
INPUT = ITEMS-WBS_ELEM
IMPORTING
OUTPUT = ITEMS-WBS_ELEM.
CALL FUNCTION 'CONVERSION_EXIT_ABPSN_INPUT'
EXPORTING
INPUT = ITEMS-VAL_WBS_ELEM
IMPORTING
OUTPUT = ITEMS-VAL_WBS_ELEM.
* CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
* EXPORTING
* input = it_item-lifnr
* IMPORTING
* output = items-vendor.
APPEND ITEMS.
* ENDON.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM IT_TEMP COMPARING ID MATNR.
DELETE IT_TEMP1 WHERE ID <> IT_HEAD-ID.
DELETE IT_TEMP WHERE ID <> IT_HEAD-ID.
DATA: MAT_ITM TYPE MBLPO,
SERNP TYPE SERAIL.
MAT_ITM = '0001'.
LOOP AT IT_TEMP.
SELECT SINGLE SERNP FROM MARC INTO SERNP WHERE MATNR = IT_TEMP-MATNR.
IF SERNP IS NOT INITIAL.
LOOP AT IT_TEMP1 WHERE ID = IT_TEMP-ID AND MATNR = IT_TEMP-MATNR.
* MOVE : it_item1-id TO serial-matdoc_itm,
* MOVE : mat_itm TO serial-matdoc_itm,
SERIAL-MATDOC_ITM = MAT_ITM .
SERIAL-SERIALNO = IT_TEMP1-SERNR.
APPEND SERIAL.
CLEAR IT_ITEM1.
ENDLOOP.
MAT_ITM = MAT_ITM + 1.
ENDIF.
CLEAR IT_TEMP.
ENDLOOP.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = HEADER
GOODSMVT_CODE = CODE
TESTRUN = TESTRUN
* GOODSMVT_REF_EWM =
IMPORTING
GOODSMVT_HEADRET = RETURN
* MATERIALDOCUMENT =
* MATDOCUMENTYEAR =
TABLES
GOODSMVT_ITEM = ITEMS
GOODSMVT_SERIALNUMBER = SERIAL
RETURN = RET
* GOODSMVT_SERV_PART_DATA =
* EXTENSIONIN =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
* IMPORTING
* RETURN =
IF NOT RETURN IS INITIAL.
WRITE :/ 'Material Document Number Generated: ' ,RETURN-MAT_DOC,RETURN-DOC_YEAR.
ELSE.
LOOP AT RET.
WRITE : RET-TYPE, RET-MESSAGE.
* log-index = sy-index.
* log-matnr = header-material.
* log-message = ret1-message.
* APPEND log.
ENDLOOP.
ENDIF.
REFRESH : ITEMS,RET.
CLEAR : HEADER,RETURN.
CLEAR: TESTRUN ,
RETURN,
ITEMS[],
SERIAL[],
RET[],
HEADER,
IT_TEMP[] ,
IT_TEMP1[].
IT_TEMP[] = DATA[].
IT_TEMP1[] = DATA[].
ENDLOOP.
ENDFORM. " UPDATE_DATA
Regards,
Suresh bheema -
Run time error while saving the production order in CO02
HI Experts,
While i am releasing and saving the production order the system is giving the runtime error. Please help.
Runtime Errors UNCAUGHT_EXCEPTION
Exception CX_SLD_API_EXCEPTION
Error analysis is
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SLD_API_EXCEPTION', was not
caught in
procedure "GET_ACCESS_DATA" "(METHOD)", nor was it propagated by a RAISING
clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
Internal error in method
A Quick response is required.
Regards
Dinakar SarmaHi,
Please check below link for your issue , it may useful
http://forums.sdn.sap.com/thread.jspa?messageID=10815298#10815298
Regards,
Ram -
Run time error while displaying the list of km folders
hi
i am trying to display the list of contents in the km folder using km api but the application is displaing an runtime error
package com.sap.test;
error in init method component
any body know the solution for this problem .
thankshi there
public class kmportalcomp extends AbstractPortalComponent
public String outtxt;
int depth;
int rowid = 0;
int counter = 0;
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
IUserContext userCtx =request.getUser();
IResourceFactory factory;
IPortalComponentContext compContext = request.getComponentContext();
IPortalComponentProfile profile = compContext.getProfile();
try {IUser serviceUser = WPUMFactory.getServiceUserFactory().getServiceUser("ccadmin_service");
String webpath = request.getWebResourcePath();
IResourceContext resourceContext = new ResourceContext(serviceUser);
response.write(webpath);
String fpath;
fpath = profile.getProperty("path").trim();
depth = Integer.valueOf(profile.getProperty("depth").trim()).intValue();
RID rid = RID.getRID(fpath);
ICollection folder = (ICollection)ResourceFactory.getInstance().getResource(rid, resourceContext);
IResourceList fileList = folder.getChildren();
response.write("d.add(0,-1,'"folder.getName()"');\r\n");
rowid = 0;
scan_km(response, fileList,0);
response.write("document.write(d);\r\n");
response.write("//--></script>");
response.write("</div>");
} catch (Exception e) {
response.write("Error Occured<br>");
response.write(e.toString());
public void scan_km(IPortalComponentResponse response,IResourceList list,int level) {
int currentrowid = rowid;
if (level>depth&&depth!=0) {
return ;
String rid = " ";
IResourceList tmpreslist;
ICollection tmpcollection;
level++;
for (int i = 0; i < list.size(); i++) {
IResource tmpres = list.get(i);
try {
if (tmpres.isCollection() && tmpres.getLinkType() == LinkType.NONE ) {
//&& tmpres.getLinkType() == LinkType.NONE
tmpcollection = (ICollection) tmpres;
tmpreslist = tmpcollection.getChildren();
if (tmpreslist.size()>0) {
rowid++;
response.write("d.add("rowid","currentrowid",'");
response.write(tmpres.getName());
response.write("','');\r\n");
scan_km(response,tmpreslist,level);
else {
rowid++;
String dispname;
dispname = tmpres.getDisplayName();
if (dispname==null||dispname.equals(""))
dispname = tmpres.getName();
rid = "/irj/go/km/docs"+tmpres.getAccessRID();
response.write("d.add("rowid","currentrowid",'"dispname"','"rid"');\r\n");
} catch (Exception ex) {
the error is am getting is
com.sapportals.wcm.repository.enum.LinkType and com.sapportals.wcm.repository.enums.LinkType kmportalappproject/src.core/com/sap/test kmportalcomp.java
thanks -
Run time error while creating a sales order by va01
hi ,
while i am creating a sales order a runtime error occurs as i fill entry for sole to party and then material and quantity and as i press enter. the run time error is:
error in current abap program "saplv61z" had to be terminated because it has come across the statement that unfortunately can not be executed.
kindly solve my problem.
thanks.Hi Agrawal
As you are getting run-time error after entering the sold to party and material and the error is in SAPLV61Z ,
close the session for sometime and open again and then create sales order and then enter sold to party and material and then check wheather you are getting or not. If you are still facing the problem then take the help of the ABAP & BASIS consultant's.
Regards
Srinath -
Run time Error while Creating Expense request
Dear Friends ,
In E-Payment ( Expense Claim ) creation , While clicking on Enter Receipts application is going to run time error for only one user.
Run time Error Info :
Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED
Exception CX_SY_REF_IS_INITIAL
Short text
Access via 'NULL' object reference not possible.
What happened?
Error in the ABAP Application Program
The current ABAP program "CL_WDR_P13N_UTILITIES=========CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
caught in
procedure "PRESET" "(METHOD)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
You attempted to use a 'NULL' object reference (points to 'nothing')
access a component (variable: "LR_CONTEXT_ELEMENT").
An object reference must point to an object (an instance of a class)
before it can be used to access components.
Either the reference was never set or it was set to 'NULL' using the
CLEAR statement.
How to correct the error
Probably the only way to eliminate the error is to correct the program.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"OBJECTS_OBJREF_NOT_ASSIGNED" "CX_SY_REF_IS_INITIAL"
"CL_WDR_P13N_UTILITIES=========CP" or "CL_WDR_P13N_UTILITIES=========CM002"
"PRESET"
Information on where terminated
Termination occurred in the ABAP program "CL_WDR_P13N_UTILITIES=========CP" -
in "PRESET".
The main program was "SAPMHTTP ".
In the source code you have the termination point in line 60
of the (Include) program "CL_WDR_P13N_UTILITIES=========CM002".
The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in
procedure "PRESET" "(METHOD)", but it was neither handled locally nor declared
in the RAISING clause of its signature.
The procedure is in program "CL_WDR_P13N_UTILITIES=========CP "; its source
code begins in line
1 of the (Include program "CL_WDR_P13N_UTILITIES=========CM002 ".
Regards,
Suresh .Hi Agrawal
As you are getting run-time error after entering the sold to party and material and the error is in SAPLV61Z ,
close the session for sometime and open again and then create sales order and then enter sold to party and material and then check wheather you are getting or not. If you are still facing the problem then take the help of the ABAP & BASIS consultant's.
Regards
Srinath
Maybe you are looking for
-
Hello, I issued manage-bde -Forcerecovery c: command to test BitLocker Recovery. Now i have to enter Bitlocker Recovery Key on Every single restart. Does any body tested this, what is the default behaviour of manage-bde -forcerecovery c: , Also how i
-
Confirmation and consumption of milestone and its prceedings
Example: Operation - Control key definition 0010 - Confirmation not possible 0020 - Confirmation possible,not neccessary 0030 - Milestone confirmation 0040 - Confirmation possible,not neccessary 0050 - Confirmation required While i do confirm th
-
When I clip on an Mpeg movie I get a message that the file cannot play because it is being used by the OS X operating system. What does that mean and how do I get rid of it so the movie will play.
-
Light room export DNG ?????
is there any way to export what ever the RAW file you are working on and export it to DNG with an option (compress or noncompress)? I do not see this option from light room. I see it just compress it by default. thanks
-
Why doesn't FF take me to my email program when I click on an email address on a web page?
In the last two weeks, when I click on an email address link on a web page, instead of taking me to my email program (gmail), my FF browser opens up all my bookmark tabs--as many as 400--and essentially crashes. I use Mac OSX, version 10.6.6. I notic