Run-time Error -2147206463(80043ac1) CR XI - Export Option
Post Author: Brujo
CA Forum: Exporting
Hi,
I got this error when I want to export any document (PDF).
Pls Can anyone help me ¿? I am tired to find information without sucess ...
Thanks and Best Regards
Post Author: Brujo
CA Forum: Exporting
Hi,
I solve it !!
The problem was the destiny folder ( CR XI not advise and gave any description about it !!!! other bugger find ! )
Best Regards
Similar Messages
-
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 -
Getting exporting to excel gives a run time error.
Hi,
I am getting exporting to excel gives a run time error.
<outbind://127/cid:656371011@08092010-11C9>
while exporting a query to excel from bw
Regards
KaranNot sure why this thread bubbled up, but for more recent advice on this topic see Troubleshooting issues with iTunes for Windows updates.
tt2 -
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 executing alv grid report
Hi everyone
I m trying to run a alv grid report it is giving a run time error while executing the statement CALL METHOD V_ALV->SET_TOOLBAR_INTERACTIVE.
Actually i added 2 buttons in the toolbar.after that when i execute the report i m getting errors.
<b>Error Analysis</b>
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 "TOOLBAR_MENUS_INIT" "(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: "ME->M_CL_MENU_BUTTON_VARIANT").
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.Hi Dinesh,
Seems you have not initialised ( Instantiated in OO ) the object and / or the parent container.
Check if you have create object for both the parent as well as the alv object.
So when you instatntiate the object of ALV you pass the object ( instantiated before hand ) in the parent container position.
Also you would have to register the events to the object using method. Then only the buttons will finction.
eg :
IF G_CUSTOM_CONTAINER IS INITIAL.
CREATE OBJECT CUSTOM_CONTAINER_1
EXPORTING CONTAINER_NAME = CONTAINER_1.
CREATE OBJECT GRID1
EXPORTING I_PARENT = CUSTOM_CONTAINER_1.
CALL METHOD ALV_GRID1->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING I_STRUCTURE_NAME = 'VBAK
CHANGING IT_OUTTAB = IT_VBAK.
Reward points if useful. -
ALV issue: when save list using Local File command will get run time error!
help!!!!
report list using ALV method when to save this list using Local File.
i will get GETWA_NOT_ASSIGNED run time error information.
how resolve it?
source code :
REPORT ZIFT0103.
TABLES : MARA,MARC,CDHDR,CDPOS,MAKT.
******DEVK909212****************
****利用工厂来区分不同的SERVER的FTP ADDRESS ,user ,PASSWORD
DATA: FTP_WERKS LIKE MARC-WERKS.
********定义一个RANGE用来抓取MARC的信息
RANGES:R_MATNR FOR MARA-MATNR OCCURS 0.
********定义一个INTERNAL TABLE 来抓取MARC 的信息
DATA:BEGIN OF IT_MARC OCCURS 0,
MATNR LIKE MARC-MATNR,
WERKS LIKE MARC-WERKS,
USERNAME TYPE CDHDR-USERNAME,
UDATE TYPE CDHDR-UDATE,
FLAG_UI TYPE C,
END OF IT_MARC.
*******定义存放北京的数据的变量
DATA : BEGIN OF FTP_BEIJING OCCURS 0 ,
MATNR(25) ,
MATNR1(25) ,
MAKTX(30) ,
END OF FTP_BEIJING .
******定义福清的数据变量
DATA : BEGIN OF FTP_FUQING OCCURS 0 ,
MATNR(25) ,
MATNR1(25) ,
MAKTX(30) ,
END OF FTP_FUQING .
*******DEVK909212*****************
DATA : BEGIN OF FTP_ITEMDOC1 OCCURS 0 ,
MATNR(25) ,
MAKTX(30) ,
END OF FTP_ITEMDOC1 .
DATA : BEGIN OF FTP_ITEMDOC OCCURS 0 ,
MATNR(25) ,
MATNR1(25) ,
MAKTX(30) ,
END OF FTP_ITEMDOC .
DATA: WA_ZMSGTA TYPE ZMSGTA ,
l_ersda like MARA-ERSDA .
***********DEVK909553********************
****用来决定执行FTP还是显示LIST**********
DATA:g_tcode_flag.
***********DEVK909553********************
Error message process ******************************
DEFINE EXPLAIN_MSG.
break soe_richard.
CALL FUNCTION 'BAPI_MESSAGE_GETDETAIL'
EXPORTING
ID = &1 "SY-MSGID
NUMBER = &2 "SY-MSGNO
LANGUAGE = SY-LANGU
TEXTFORMAT = &3
LINKPATTERN =
MESSAGE_V1 = &4 "SY-MSGV1
MESSAGE_V2 = &5 "SY-MSGV2
MESSAGE_V3 = &6 "SY-MSGV3
MESSAGE_V4 = &7 "SY-MSGV4
IMPORTING
MESSAGE = &8 "WA_ZMSGTA-MSE1
RETURN =
TABLES
TEXT =
END-OF-DEFINITION.
DEFINE ERROR_MSG_UPDATA.
CALL FUNCTION 'ZINSERT_MSG' "IN UPDATE TASK
EXPORTING
XZMSGTA = &1 "WA_ZMSGTA
EXCEPTIONS
UPDATE_ERROR = 1
OTHERS = 2.
END-OF-DEFINITION.
IF SY-TCODE = 'ZIFT103' .
g_tcode_flag = 'L'.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = '请耐心等候,系统正在抓数据'.
ENDIF.
l_ersda = sy-datum - 1 . "取前一天产生的物料号码。
DATA:BEGIN OF it_change OCCURS 0,
OBJECTID TYPE CDHDR-OBJECTID,
USERNAME TYPE CDHDR-USERNAME,
UDATE TYPE CDHDR-UDATE,
TABKEY TYPE CDPOS-TABKEY,
END OF it_change.
DATA:BEGIN OF it_cDhdr OCCURS 0,
OBJECTID type CDHDR-OBJECTID,
CHANGENR TYPE CDHDR-CHANGENR,
USERNAME TYPE CDHDR-USERNAME,
UDATE TYPE CDHDR-UDATE,
END OF it_cdhdr.
DATA:search_len TYPE I.
DATA:BEGIN of it_insert OCCURS 0,
MATNR TYPE MARA-MATNR,
WERKS TYPE MARC-WERKS,
END OF it_insert.
DATA:BEGIN OF it_MAKT OCCURS 0,
MATNR TYPE MAKT-MATNR,
MAKTX TYPE MAKT-MAKTX,
END OF it_makt.
DATA IT_MARA TYPE TABLE OF MARA WITH HEADER LINE.
DATA:BEGIN OF IT_OUT OCCURS 0,
MATNR TYPE MARA-MATNR,
WERKS TYPE MARC-WERKS,
MTART TYPE MARA-MTART,
MEINS TYPE MARA-MEINS,
MATKL TYPE MARA-MATKL,
MAKTX TYPE MAKT-MAKTX,
PSTAT TYPE MARA-PSTAT,
BRGEW TYPE MARA-BRGEW,
NTGEW TYPE MARA-NTGEW,
GEWEI TYPE MARA-GEWEI,
FERTH TYPE MARA-FERTH,
KZUMW TYPE MARA-KZUMW,
ERNAM TYPE MARA-ERNAM,
ERSDA TYPE MARA-ERSDA,
END OF IT_OUT.
*-- DECLARE DATA FOR ALV
TYPE-POOLS: slis.
DATA : g_variant LIKE disvariant,
g_save(1) TYPE c,
g_exit(1) TYPE c,
gx_variant LIKE disvariant.
DATA: gt_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE, "
gt_events TYPE slis_t_event,
gt_list_top_of_page TYPE slis_t_listheader,
gs_print TYPE slis_print_alv,
gs_layout TYPE slis_layout_alv .
******只能抓出系统有做更改的数据***************
******而第一次INSERT MARA的数据抓不出来********
START-OF-SELECTION.
SELECT AOBJECTID AUSERNAME AUDATE BTABKEY
INTO TABLE it_change
FROM ( CDPOS AS B INNER JOIN CDHDR AS A ON
AOBJECTCLAS = BOBJECTCLAS AND
AOBJECTID = BOBJECTID AND
ACHANGENR = BCHANGENR )
WHERE A~OBJECTCLAS = 'MATERIAL'
AND A~UDATE = l_ersda
AND B~TABNAME = 'MARC'
AND B~CHNGIND = 'I'.
LOOP AT it_change.
search_len = STRLEN( it_change-TABKEY ).
search_len = search_len - 4.
IF search_len > 0.
IT_MARC-WERKS = it_change-TABKEY+search_len(4).
ENDIF.
IT_MARC-MATNR = it_change-objectid+0(18).
IT_MARC-USERNAME = it_change-username.
IT_MARC-UDATE = It_change-udate.
IT_MARC-FLAG_UI = 'U'.
APPEND IT_MARC.
CLEAR IT_MARC.
CLEAR R_MATNR.
R_MATNR-SIGN = 'I'.
R_MATNR-OPTION = 'EQ'.
R_MATNR-LOW = IT_MARC-MATNR.
APPEND R_MATNR.
ENDLOOP.
****CDPOS is Cluster TABLE 所以没有办法用INNER JOIN******
SELECT OBJECTID CHANGENR USERNAME UDATE
INTO TABLE it_cdhdr
FROM CDHDR
WHERE OBJECTCLAS = 'MATERIAL'
AND UDATE = l_ersda.
AND TCODE = 'MM02'.
LOOP AT IT_cdhdr.
SELECT * FROM CDPOS
WHERE OBJECTCLAS = 'MATERIAL'
AND OBJECTID = IT_CDHDR-OBJECTID
AND CHANGENR = IT_CDHDR-CHANGENR
AND TABNAME = 'MARC'
AND CHNGIND = 'I'.
search_len = STRLEN( CDPOS-TABKEY ).
search_len = search_len - 4.
IF search_len > 0.
IT_MARC-WERKS = CDPOS-TABKEY+search_len(4).
ENDIF.
IT_MARC-MATNR = IT_cdhdr-objectid+0(18).
IT_MARC-USERNAME = IT_cdhdr-username.
IT_MARC-UDATE = IT_cdhdr-udate.
IT_MARC-FLAG_UI = 'U'.
APPEND IT_MARC.
CLEAR IT_MARC.
CLEAR R_MATNR.
R_MATNR-SIGN = 'I'.
R_MATNR-OPTION = 'EQ'.
R_MATNR-LOW = IT_MARC-MATNR.
APPEND R_MATNR.
CLEAR IT_MARC.
ENDSELECT.
ENDLOOP.
IF g_tcode_flag = 'L'.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 20
TEXT = '处理好当天CHANGE的数据'.
ENDIF.
*******抓当天做了INSERT的数据*************
*******不需要***********************
SELECT BMATNR BWERKS INTO TABLE IT_INSERT
FROM MARC AS B JOIN MARA AS A
ON AMATNR = BMATNR
WHERE A~ERSDA = l_ersda.
LOOP AT IT_INSERT.
IT_MARC-MATNR = IT_INSERT-MATNR.
IT_MARC-WERKS = IT_INSERT-WERKS.
IT_MARC-FLAG_UI = 'I'.
APPEND IT_MARC.
CLEAR IT_MARC.
CLEAR R_MATNR.
R_MATNR-SIGN = 'I'.
R_MATNR-OPTION = 'EQ'.
R_MATNR-LOW = IT_MARC-MATNR.
APPEND R_MATNR.
ENDLOOP.
IF g_tcode_flag = 'L'.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 40
TEXT = '处理好当天INSERT的数据'.
ENDIF.
IF g_tcode_flag = 'L'.
PERFORM get_MAKTX.
PERFORM get_mara.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 100
TEXT = '处理好数据,并开始显示数据'.
PERFORM do_data.
PERFORM display_alv.
ELSE.
PERFORM get_MAKTX.
PERFORM do_ftp.
ENDIF.
*& Form get_marktx
text
FORM get_maktx.
SELECT MATNR MAKTX INTO TABLE IT_MAKT FROM MAKT
WHERE MATNR IN R_MATNR AND SPRAS = '1'.
ENDFORM. "get_marktx
*& Form get_mara
text
FORM get_mara.
SELECT * INTO TABLE it_mara FROM MARA
WHERE MATNR IN R_MATNR.
ENDFORM. "get_mara
*& Form do_data
text
FORM do_data.
SORT IT_MARC BY MATNR WERKS.
DELETE ADJACENT DUPLICATES FROM IT_MARC COMPARING MATNR WERKS.
LOOP AT IT_MARC.
CLEAR IT_MAKT.
CLEAR IT_MARA.
READ TABLE IT_MAKT WITH KEY MATNR = IT_MARC-MATNR.
READ TABLE IT_MARA WITH KEY MATNR = IT_MARC-MATNR.
MOVE-CORRESPONDING IT_MARA TO IT_OUT.
IT_OUT-MAKTX = IT_MAKT-MAKTX.
IT_OUT-WERKS = IT_MARC-WERKS.
IF IT_MARC-FLAG_UI = 'U'.
IT_OUT-ERNAM = IT_MARC-USERNAME.
ENDIF.
APPEND IT_OUT.
CLEAR IT_OUT.
ENDLOOP.
ENDFORM. "do_data
*SELECT AMATNR BMAKTX INTO CORRESPONDING
*FIELDS OF FTP_ITEMDOC1 FROM MARA AS A JOIN MAKT AS B
*ON AMATNR = BMATNR WHERE A~ERSDA = l_ersda
*AND B~SPRAS = '1' . "代表为中文说明。
APPEND FTP_ITEMDOC1.
*******DEVK909212****************
*******添加RANGE*****************
CLEAR R_MATNR.
R_MATNR-SIGN = 'I'.
R_MATNR-OPTION = 'EQ'.
R_MATNR-LOW = FTP_ITEMDOC1-MATNR.
APPEND R_MATNR.
CLEAR FTP_ITEMDOC1.
*******DEVK909212****************
*ENDSELECT.
*******DEVK909212****************
****get WERKS information from MARC*******
*SELECT MATNR WERKS INTO TABLE IT_MARC
*FROM MARC
*WHERE MATNR IN R_MATNR.
*******DEVK909212****************
******DEVK909212****************
**MARK**************************
*LOOP AT FTP_ITEMDOC1 .
MOVE : FTP_ITEMDOC1-MATNR TO FTP_ITEMDOC-MATNR,
FTP_ITEMDOC1-MATNR TO FTP_ITEMDOC-MATNR1,
FTP_ITEMDOC1-MAKTX TO FTP_ITEMDOC-MAKTX.
APPEND FTP_ITEMDOC.
CLEAR FTP_ITEMDOC.
*ENDLOOP.
******DEVK909212****************
******DEVK909212***********************************
**根据IT_MARC中信息,往北京和福清的TABLE写数据*****
FORM do_ftp.
LOOP AT IT_MARC.
***福清的
IF IT_MARC-WERKS = '1010' OR IT_MARC-WERKS = '1020'
OR IT_MARC-WERKS = '1023' .
READ TABLE FTP_ITEMDOC1 WITH KEY MATNR = IT_MARC-MATNR.
MOVE : FTP_ITEMDOC1-MATNR TO FTP_FUQING-MATNR,
FTP_ITEMDOC1-MATNR TO FTP_FUQING-MATNR1,
FTP_ITEMDOC1-MAKTX TO FTP_FUQING-MAKTX.
CLEAR IT_MAKT.
READ TABLE IT_MAKT WITH KEY = IT_MARC-MATNR.
MOVE : IT_MARC-MATNR TO FTP_FUQING-MATNR,
IT_MARC-MATNR TO FTP_FUQING-MATNR1,
IT_MAKT-MAKTX TO FTP_FUQING-MAKTX.
APPEND FTP_FUQING.
CLEAR FTP_FUQING.
ENDIF.
***北京的
IF IT_MARC-WERKS = '1041' OR IT_MARC-WERKS = '1042'.
READ TABLE FTP_ITEMDOC1 WITH KEY MATNR = IT_MARC-MATNR.
MOVE : FTP_ITEMDOC1-MATNR TO FTP_BEIJING-MATNR,
FTP_ITEMDOC1-MATNR TO FTP_BEIJING-MATNR1,
FTP_ITEMDOC1-MAKTX TO FTP_BEIJING-MAKTX.
CLEAR IT_MAKT.
READ TABLE IT_MAKT WITH KEY = IT_MARC-MATNR.
MOVE : IT_MARC-MATNR TO FTP_BEIJING-MATNR,
IT_MARC-MATNR TO FTP_BEIJING-MATNR1,
IT_MAKT-MAKTX TO FTP_BEIJING-MAKTX.
APPEND FTP_BEIJING.
CLEAR FTP_BEIJING.
ENDIF.
ENDLOOP.
****清楚重复的数据**********
SORT FTP_FUQING.
DELETE ADJACENT DUPLICATES FROM FTP_FUQING.
SORT FTP_BEIJING.
DELETE ADJACENT DUPLICATES FROM FTP_BEIJING.
***传送数据********
REFRESH FTP_ITEMDOC.
FTP_ITEMDOC[] = FTP_FUQING[].
FTP_WERKS = '1010'.
PERFORM ftp_work.
REFRESH FTP_ITEMDOC.
FTP_ITEMDOC[] = FTP_BEIJING[].
FTP_WERKS = '1041'.
PERFORM ftp_work.
******DEVK909212***********************************
ENDFORM. "do_ftp
*& Form ftp_work
把以前FTP的工作做一个FORM
*******DEVK909212**************************
FORM ftp_work.
*******DEVK909212**************************
CHECK FTP_ITEMDOC[] IS NOT INITIAL.
FTP function *****************************************************
DATA : HDL TYPE I,
L_SLEN TYPE I ,
ERROR,
KEY TYPE I VALUE 26101957,
DEST TYPE RFCDES-RFCDEST VALUE 'SAPFTPA'.
DATA: FTP_RESULT TYPE TABLE OF TEXT.
DATA: P_FILE TYPE RLGRAP-FILENAME.
DATA: L_USER(16) TYPE C VALUE 'SFIS',
L_PWD(16) TYPE C VALUE 'SFIS',
L_HOST(16) TYPE C VALUE '172.16.31.17'.
*******DEVK909212**************************
*****根据不同的工厂来抓FTP的信息
CALL FUNCTION 'Z_FTP_SFIS'
EXPORTING
BLART = 'S'
WERKS = FTP_WERKS
IMPORTING
HOST = L_HOST
USER1 = L_USER
PASS1 = L_PWD.
*******DEVK909212**************************
CONCATENATE l_ersda '.KP' INTO P_FILE.
SET EXTENDED CHECK OFF.
ERROR = 0.
CHECK HDL IS INITIAL.
Connect to server
L_SLEN = STRLEN( L_PWD ).
CALL FUNCTION 'HTTP_SCRAMBLE'
EXPORTING
SOURCE = L_PWD
SOURCELEN = L_SLEN
KEY = KEY
IMPORTING
DESTINATION = L_PWD.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
TEXT = 'Connect to FTP Server'.
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
USER = L_USER
PASSWORD = L_PWD
HOST = L_HOST
RFC_DESTINATION = DEST
IMPORTING
HANDLE = HDL
EXCEPTIONS
NOT_CONNECTED = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MOVE: 'B' TO WA_ZMSGTA-BLART,
l_ersda TO WA_ZMSGTA-REFNUMBER,
SY-MSGTY TO WA_ZMSGTA-MSGTY,
'MARA' TO WA_ZMSGTA-TBMA_VAL.
EXPLAIN_MSG SY-MSGID SY-MSGNO ' ' SY-MSGV1 SY-MSGV2 SY-MSGV3
SY-MSGV4 WA_ZMSGTA-MSE1.
ERROR_MSG_UPDATA WA_ZMSGTA.
EXIT.
ENDIF.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
HANDLE = HDL
COMMAND = 'ascii'
TABLES
DATA = FTP_RESULT
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3.
IF SY-SUBRC <> 0.
EXPLAIN_MSG SY-MSGID SY-MSGNO ' ' SY-MSGV1 SY-MSGV2 SY-MSGV3
SY-MSGV4 WA_ZMSGTA-MSE1.
MOVE: 'B' TO WA_ZMSGTA-BLART,
l_ersda TO WA_ZMSGTA-REFNUMBER,
SY-MSGTY TO WA_ZMSGTA-MSGTY,
'MARA' TO WA_ZMSGTA-TBMA_VAL.
ERROR_MSG_UPDATA WA_ZMSGTA.
EXIT.
ENDIF.
CALL FUNCTION 'FTP_R3_TO_SERVER'
EXPORTING
HANDLE = HDL
FNAME = P_FILE
CHARACTER_MODE = 'X'
TABLES
TEXT = FTP_ITEMDOC
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
EXPLAIN_MSG SY-MSGID SY-MSGNO ' ' SY-MSGV1 SY-MSGV2 SY-MSGV3
SY-MSGV4 WA_ZMSGTA-MSE1.
MOVE: 'B' TO WA_ZMSGTA-BLART,
l_ersda TO WA_ZMSGTA-REFNUMBER,
SY-MSGTY TO WA_ZMSGTA-MSGTY,
'MARA' TO WA_ZMSGTA-TBMA_VAL.
ERROR_MSG_UPDATA WA_ZMSGTA.
EXIT.
ENDIF.
*******DEVK909212**************************
*******CLOSE FTP******************
CHECK NOT HDL IS INITIAL.
CALL FUNCTION 'FTP_DISCONNECT'
EXPORTING
HANDLE = HDL.
CALL FUNCTION 'RFC_CONNECTION_CLOSE'
EXPORTING
DESTINATION = DEST
EXCEPTIONS
OTHERS = 1.
CLEAR HDL.
ENDFORM. "ftp_work
*******DEVK909212**************************
FORM DISPLAY_ALV .
*-- PREPARE ALV DATA
PERFORM EVENTTAB_BUILD USING GT_EVENTS[].
PERFORM COMMENT_BUILD USING GT_LIST_TOP_OF_PAGE[].
*-- LAYOUT SETTING
PERFORM PREPARE_ALV_FIELD USING GT_FIELDCAT[].
*-- ALV DISPLAY
PERFORM CALL_REUSE_ALV_GRID_DISPLAY.
ENDFORM. " display_alv
*& Form eventtab_build
text
-->P_GT_EVENTS[] text
FORM EVENTTAB_BUILD USING PT_EVENTS TYPE SLIS_T_EVENT.
DATA: LS_EVENT TYPE SLIS_ALV_EVENT.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = PT_EVENTS.
READ TABLE PT_EVENTS WITH KEY NAME = SLIS_EV_TOP_OF_PAGE
INTO LS_EVENT.
IF SY-SUBRC = 0.
LS_EVENT-FORM = 'TOP_OF_PAGE'.
MODIFY PT_EVENTS FROM LS_EVENT INDEX SY-TABIX.
ENDIF.
ENDFORM. " eventtab_build
*& Form comment_build
text
-->P_GT_LIST_TOP_OF_PAGE[] text
FORM COMMENT_BUILD USING PT_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
DATA: LS_LINE TYPE SLIS_LISTHEADER,
L_DATE(30),
l_v_BWKEY like T001W-BWKEY, "Valuation area
l_v_BUKRS like T001K-BUKRS. "Firm/Company
Listenerschrift: Typ H
CLEAR LS_LINE.
LS_LINE-TYP = 'H'.
LS_LINE-KEY: not used for this type
select single BWKEY
into l_v_BWKEY
from t001w
where WERKS IN s_WERKS.
select single BUKRS
into l_v_BUKRS
from t001k
where BWKEY = l_v_BWKEY.
SELECT SINGLE butxt INTO LS_LINE-INFO
FROM t001
WHERE bukrs = l_v_BUKRS.
APPEND LS_LINE TO PT_TOP_OF_PAGE.
Kopfinfo: Typ S
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = '报表名称:'.
LS_LINE-INFO = SY-TITLE.
APPEND LS_LINE TO PT_TOP_OF_PAGE.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = '打印日期:'.
WRITE SY-DATUM TO LS_LINE-INFO.
ls_line-info = sy-datum.
APPEND LS_LINE TO PT_TOP_OF_PAGE.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = '打印時間:'.
WRITE SY-UZEIT TO LS_LINE-INFO.
ls_line-info = sy-uzeit.
APPEND LS_LINE TO PT_TOP_OF_PAGE.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = '使用者:'.
LS_LINE-INFO = SY-UNAME.
APPEND LS_LINE TO PT_TOP_OF_PAGE.
ENDFORM. " comment_build
*& Form prepare_alv_field
text
-->P_GT_FIELDCAT[] text
FORM PREPARE_ALV_FIELD USING P_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
DATA: LS_LINE TYPE SLIS_FIELDCAT_ALV.
*-- DEFINE MARCO
DEFINE APPEND_ALV_FIELD.
CLEAR LS_LINE.
LS_LINE-FIELDNAME = &1.
LS_LINE-TABNAME = &2.
LS_LINE-REPTEXT_DDIC = &3.
LS_LINE-SELTEXT_L = &3.
LS_LINE-SELTEXT_M = &3.
LS_LINE-SELTEXT_S = &3.
LS_LINE-QFIELDNAME = &4.
LS_LINE-QTABNAME = &5.
LS_LINE-NO_OUT = &6.
LS_LINE-NO_ZERO = &7.
LS_LINE-OUTPUTLEN = &8.
APPEND LS_LINE TO P_FIELDCAT.
END-OF-DEFINITION.
APPEND_ALV_FIELD: 'MATNR' 'IT_OUT' '料号'
'O' 'X' ''.
APPEND_ALV_FIELD: 'WERKS' 'IT_OUT' '工厂'
'O' 'X' ''.
APPEND_ALV_FIELD: 'MTART' 'IT_OUT' 'MTyp'
'O' 'X' ''.
APPEND_ALV_FIELD: 'MEINS' 'IT_OUT' 'BUn'
'O' 'X' ''.
APPEND_ALV_FIELD: 'MATKL' 'IT_OUT' '物料组\分群码'
'O' 'X' ''.
APPEND_ALV_FIELD: 'MATKX' 'IT_OUT' '物料描述'
'O' 'X' ''.
APPEND_ALV_FIELD: 'PSTAT' 'IT_OUT' '维护状态'
'O' 'X' ''.
APPEND_ALV_FIELD: 'BRGEW' 'IT_OUT' '毛重'
'O' 'X' ''.
APPEND_ALV_FIELD: 'NTGEW' 'IT_OUT' '净重'
'O' 'X' ''.
APPEND_ALV_FIELD: 'GEWEI' 'IT_OUT' 'WUn'
'O' 'X' ''.
APPEND_ALV_FIELD: 'FERTH' 'IT_OUT' '对外机种名'
'O' 'X' ''.
APPEND_ALV_FIELD: 'KZUMW' 'IT_OUT' '高关税标识'
'O' 'X' ''.
APPEND_ALV_FIELD: 'ERNAM' 'IT_OUT' '创建者'
'O' 'X' ''.
APPEND_ALV_FIELD: 'ERSDA' 'IT_OUT' '创建日期'
'O' 'X' ''.
ENDFORM. " prepare_alv_field
*& Form call_reuse_alv_grid_display
text
--> p1 text
<-- p2 text
FORM CALL_REUSE_ALV_GRID_DISPLAY .
gs_layout-f2code = 'DISPLAY'.
gs_print-no_print_listinfos = 'X'.
gs_layout-colwidth_optimize = 'X'. "列宽度自动根据内容优化
gs_layout-f2code = '&ETA'. "double check弹出详细信息
gs_layout-zebra = 'X'. "清单条纹显示
gs_layout-no_vline = ''. "是否显示列间隔线
gs_layout-box_fieldname = ''. "是否显示checkbox
gs_layout-confirmation_prompt = ''. "推出清单是否提示
gs_layout-detail_titlebar = '详细信息'."详细清单的标题
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-CPROG
I_BACKGROUND_ID = 'ALV_BACKGROUND'
I_CALLBACK_PF_STATUS_SET = 'ALV_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'ALV_USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = GT_LIST_TOP_OF_PAGE[]
IT_FIELDCAT = GT_FIELDCAT[]
IT_EVENTS = GT_EVENTS[]
I_STRUCTURE_NAME = 'IT_OUT'
I_SAVE = 'A'
IS_LAYOUT = GS_LAYOUT
IS_PRINT = GS_PRINT
TABLES
T_OUTTAB = IT_OUT
EXCEPTIONS
PROGRAM_ERROR = 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. " call_reuse_alv_grid_display
*& Form PREPARE_ALV_FIELD
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
ENDFORM. "TOP_OF_PAGEHi,
Please check your field catalog and refer field names once again.
Check spelling, or Check strucutre properly.
There are something wrong in your catalog definition
aRs. -
I am using FM - F4IF_INT_TABLE_VALUE_REQUEST on a selection screenf field. After that I do some validation and throw an error message in the at selection screen event.
But this results in DYNPRO_MSG_IN_HELP error.
I need to have the error message. I cannot change it to Info or Success message. (Program doesn't give run time error if i change the message to S or I or W ). How do I get around this ? What is wrong with F4IF_INT_TABLE_VALUE_REQUEST .
Am I not calling it correctly ?
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'CLASS' "Field from it_class
dynpprog = sy-cprog "Program
dynpnr = sy-dynnr "Dynpro number
dynprofield = 'P_FOLD' "Select-options field
value_org = 'S' "Value return: C: cell by cell, "S: structured
display = 'F' "Override readiness for input
TABLES
value_tab = it_class "table with selection values
return_tab = t_return "Return value
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
Error Message: The program attempted to issue a " " message during "F4" processing.
This is an illegal operation.
The program was terminated.
Screen name.............. "ZMMR0010_INFORECORD_UPDT"
Screen number............ 0200
Edited by: Shareen Hegde on Mar 29, 2011 1:47 AMHi,
ther are 3 things you can change.
Parameter dynpprog shouldn't be sy-cprog or sy-repid. Please decalre a variable where you can pass the value of sy-cprog to and give it to that parameter.
Parameter dynpnr shouldn't be sy-dynnr. Please decalre a variable where you can pass the value of sy-dynnr to and give it to that parameter.
Parameter display is of type DDBOOL_D and can have value 'X' or SPACE (see fix values of domain DDBOOL!).
Regards,
Klaus -
Hi,
while runing t,code FBZ5 , i am getting this run time error.
Runtime Errors CALL_FUNCTION_NOT_FOUND
Except. CX_SY_DYN_CALL_ILLEGAL_FUNC
Date and Time 30.05.2009 13:12:34
Short text
Function module "OTF_LIST" not found.
What happened?
The function module "OTF_LIST" is called,
but cannot be found in the library.
Error in the ABAP Application Program
The current ABAP program "SAPLSTXC" 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_DYN_CALL_ILLEGAL_FUNC', was
not caught in
procedure "OTF_SEND_SPOOL" "(FORM)", 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:
The program "SAPLSTXC" contains the CALL FUNCTION statement.
The name of the function module to be called is "OTF_LIST".
No function module exists with the name "OTF_LIST".
All function modules are listed in the Function Library (SE37).
Possible reasons:
a) Wrong name specified. Pay particular attention to
upper/lower case and underscores ("_").
or
b) Transport error
c) In the case of an enqueue/dequeue module,
the lock object may not have been activated
(ABAP/4 Dictionary).
Line SourceCde
241 unknown_font = 2
242 others = 3.
243 if sy-subrc <> 0.
244 perform internal using 'OTF_SOFT_FONT_GET' sy-subrc.
245 endif.
246
247 * insert in otf table before(!) font call, i. e. append
248 check not otf[] is initial.
249 append lines of l_sfont to otf[].
250
251 endform.
252
253
254 form otf_send_spool tables otfdata structure itcoo
255 using param structure itcpp.
256 data: l_parlen type i,
257 l_dummy(1) type c,
258 l_mult type i,
259 l_actmult type i,
260 l_cp type tcp00-cpcodepage.
261
262 * right-to-left conversion
263 if itcpp-tdrtl = true. "RTL
264 if spool_external_print <> true. "RTL
265 perform otf_rtl_layout tables otf. "RTL
266 endif. "RTL
267 endif. "RTL
268 * use old 2.0 ABAP driver or spooler c-routines
269 if param-tdotfcall <> space.
270 check param-tddest <> c_dest_null.
>>>>> call function param-tdotfcall
272 tables otf = otfdata
273 exceptions others = 1.
274 if sy-subrc ne 0.
275 perform fatal.
276 call function 'SAPSCRIPT_MESSAGE'
277 exporting typ = 'A'.
278 endif.
279 else.
280 check param-tddest <> c_dest_null.
281
282 describe field l_dummy length l_mult in byte mode.
283 l_actmult = l_mult.
284
285 loop at otfdata.
286 case otfdata-tdprintcom.
287 when pc_id_string.
288 if c_unicode = false.
289 l_parlen = 7 + otfdata-tdprintpar+5(2).
290 else.
Regards,
baluHi,
Kindly check in debug wht the non existent FM 'OTF_LIST' is getting called?
Probably this seems to be a dynamic call to some FM and the FM name is not getting generated properly.
Regards,
Ankur Parab -
Run time Error : UNCAUGHT_EXCEPTION
Hi Team
Pls reply to resolve the below error
When we are uploaded TB through flexible upload and then Test run for Data Collection for that Cons unit, we got the below Run time error:
Runtime Errors UNCAUGHT_EXCEPTION Except. CX_UCI_NO_CHECK
Short dump has not been completely stored
Short text
An exception occurred that was not caught.
What happened?
The exception 'CX_UCI_NO_CHECK' was raised, but it was not caught anywhere
along
the call hierarchy.
Since exceptions represent error situations and this error was not
adequately responded to, the running ABAP program
'CL_UC_DATASTREAM==============CP' has to be
terminated.
Error analysis
An exception occurred which is explained in detail below.
The exception, which is assigned to class 'CX_UCI_NO_CHECK', was not caught and
therefore caused a runtime error.
The reason for the exception is:
An exception occurred
Missing Handling of Application Exception
Program UCUWB000
Trigger Location of Exception
Program CL_UC_DATASTREAM==============CP
Include CL_UC_DATASTREAM==============CM003
Row 150
Module type (METHOD)
Module Name DTS_READ_TRANSACTION_DATA
Source Code Extract
Line
SourceCde
120
it_hry_field = it_char_node
121
it_hry_field_attr = it_char_attr_node
122
it_hry_node = lt_hry_node
123
it_hry_attr_node = lt_hry_attr_node
124
i_authority_check = l_authority_check
125
i_keydate = i_keydate
126
it_hry_nodename = lt_hry_nodename
127
it_hry_attr_nodename = lt_hry_attr_nodename
128
i_packagesize = i_packagesize
129
i_cursor_mode = i_cursor_mode
130
importing
131
et_hry_data = lt_hry_data
132
e_end_of_data = e_done
133
et_message = lt_message1
134
changing
135
ct_data = ct_data
136
exceptions
137
no_authorization = 1.
138
139
if sy-subrc is not initial.
140
move-corresponding syst to ls_message2.
141
raise exception type cx_uci_no_authorization
142
exporting ds_message = ls_message2.
143
endif.
144
145
if lt_message1 is not initial.
146
loop at lt_message1 into ls_message1.
147
move-corresponding ls_message1 to ls_message2.
148
insert ls_message2 into table lt_message2.
149
endloop.
>>>>>
raise exception type cx_uci_no_check
151
exporting dt_message = lt_message2.
152
endif.
153
154
call method dts_process_hry_result
155
exporting
156
it_hry_node = lt_hry_node
157
it_hry_attr_node = lt_hry_attr_node
158
it_hry_nodename = lt_hry_nodename
159
it_hry_attr_nodename = lt_hry_attr_nodename
160
it_hry_data = lt_hry_data
161
importing
162
et_node_data = et_node_data.
163
164
call method lo_tx_data->read_data_from_infoprov
165
exporting
166
i_comp_s_field = i_comp_s_char
167
i_comp_s_kfig = i_comp_s_kfig
168
it_field = it_char
169
it_kfig = it_kfig
Pls revert me immediately how to resolve the issue, i already do the following functionality as per OSS Note 1074424
thanks & regards
Madhu ylHi Sanjyot,
The solution is resolved by technical team ,
I don't have suport documents to fulfill, they said they added data files and this run time occurs due to space problem
Thanks
Madhu
Edited by: Madhu YL on Jun 10, 2009 1:32 PM -
How to debug a run time error encountered while executing ZFunction Module
Hi all,
My requirement is to create a ZFunction Module that Generated a sales order
for multiple line items and works for both Variant Configurable material and a Normal Material.
I am using BAPI_SLSTRANSACT_CREATEMULTI in my Zfunction Module to create a
Sales order
My ZFunction Module works well if I give normal material as input.
It also works well and generates a sales order if I give all Variant Configurable materials as input.
But if I give both Variant Configurable material and a normal material it throws a run time error.
Can some one tell me what is wrong? can some one suggest me how to debug this run time error
Termination occurred in the ABAP program "SAPLCRM_CONFIG_OW" - in
"CONFIG_TO_CBASE".
The main program was "RS_TESTFRAME_CALL ".
In the source code you have the termination point in line 63
of the (Include) program "LCRM_CONFIG_OWF02".
Source Code Extract
Line SourceCde
| 33| LT_CUXI_CUPRT
| 34| LT_CUXI_CUVAL
| 35| LT_CUXI_CUVK
| 36| LS_CUXI_CUCFG.
37
| 38| PERFORM CREATE_PRICING_CSTIC USING IS_CONFIG-CUCFG-CFGINFO.
39
| 40|* set config to cbase
| 41| CALL FUNCTION 'COM_CUXI_SET_SINGLE_CFG'
| 42| EXPORTING
| 43| I_CFG_HEADER = LS_CUXI_CUCFG
| 44| I_ROOT_INSTANCE = CV_INT_OBJ_NO
| 45| I_LOGSYS = LV_LOGSYS
| 46| IMPORTING
| 47| E_ROOT_INSTANCE = CV_INT_OBJ_NO
| 48| TABLES
| 49| I_TAB_INSTANCES = LT_CUXI_CUINS
| 50| I_TAB_PART_OF = LT_CUXI_CUPRT
| 51| I_TAB_VALUES = LT_CUXI_CUVAL
| 52| I_TAB_VAR_KEYS = LT_CUXI_CUVK
| 53| I_TAB_RESTRICTIONS = LT_CUXI_CURES
| 54| EXCEPTIONS
| 55| INVALID_INSTANCE = 1
| 56| INTERNAL_ERROR = 2
57
OTHERS = 3. 58
| 59| IF SY-SUBRC <> 0.
| 60| if sy-msgno is initial.
| 61| MESSAGE X010 WITH 'COM_CUXI_SET_SINGLE_CFG'.
| 62| else.
|>>>>>| MESSAGE ID SY-MSGID TYPE 'X' NUMBER SY-MSGNO
| 64| WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
| 65| endif.
| 66| ENDIF.
67
| 68|ENDFORM. " CONFIG_TO_CBASEHey Amit...
Can I Create a Sales order for VC and Non VC items using BAPI_SLSTRANSACT_CREATEMULTI
Is it a limitation for BAPI_SLSTRANSACT_CREATEMULTI
I am trying to create a Sales Order using a Zprogram. I have used BAPI_SLSTRANSACT_CREATEMULTI. If I give the input as Normal material I am able to generate a sale order. If I give the input as VC material I am able to generate a sales order. But if I give both VC and Normal material as input, I get a run time error as follows.
Is it a limitation for BAPI_SLSTRANSACT_CREATEMULTI that we cannot create a sales order with both VC and Non-VC items or am I missing some data which I need to pass when I give both VC and Non VC items? I get this error only for my Zprogram. But if I try to create an order on screen manually I donu2019t get any error. This happens only if I create an order with my Zprogram.
Some one please help me u2026I am just stuggling to get this doneu2026
I dint find any posts that gives me information about this error.
CUX1 034 u201CNo root instance found in header datau201D
In the source code you have the termination point in line 63 of the (Include) program "LCRM_CONFIG_OWF02". -
Run-time error "CONVERSION_CODEPAGE_UNKNOWN" occurred in BW SapNetweaver.
Today I have problem with this error dump: Run-time error "CONVERSION_CODEPAGE_UNKNOWN"
I got this problem from rspc chain manager but also from another place as place a filter on table VARI.
I suspect that this include "IMPORT_VARIANT_STATIC" got problem of the (Include)
program "RSDBSPVD".
This is first time that I got this error.
I think problem was linked to VARI tables and include IMPORT_VARIANT_STATIC in this program RSDBSPVD
Runtime Errors CONVERSION_CODEPAGE_UNKNOWN
Date and Time 03.06.2008 14:27:46
|Short text
| Unable to convert from code page ' ' to code page '4103'. |What happened?
Error in the ABAP Application Program
The current ABAP program "RSDBSPVD" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
One of your chosen conversion tables (CODE PAGE) ' ' or '4103'
is unknown to the system.
For a list of conversion tables known to the system, see table
| TCP00. To display this, use Transaction SPAD.
Active Calls/Events
No. Ty. Program Include Line
Name
4 FORM RSDBSPVD RSDBSPVD 119
IMPORT_VARIANT_STATIC
3 FORM SAPLSVAR LSVARF07 522
IMPORT_VAR_SELC
2 FUNCTION SAPLSVAR LSVARU07 80
RS_VARIANT_CONTENTS
1 EVENT RS_VARIANT_VALUES RS_VARIANT_VALUES 22
| START-OF-SELECTIONSorry, but my Sap Netweaver 2004s is a build 700.
I'm manually imported this table, before I exported table VARI from an old database of this istance. (db2 dart /ddel 'table space number' 'table id number')
log about vari import table:
SQL3501W The table space(s) in which the table resides will not be placed in
backup pending state since forward recovery is disabled for the database.
SQL3109N The utility is beginning to load data from file
"D:db2BW2db2dumpDART000025".
SQL3500W The utility is beginning the "LOAD" phase at time "05/29/2008
18:56:04.266758".
SQL3519W Begin Load Consistency Point. Input record count = "0".
SQL3520W Load Consistency Point was successful.
SQL3114W Some data following """" in row "F0-1242" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F0-1243" and column "10" was not
loaded.
SQL3227W Record token "F0-1242" refers to user record number "6536".
SQL3227W Record token "F0-1243" refers to user record number "6537".
SQL3114W Some data following """" in row "F0-1958" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F0-1959" and column "10" was not
loaded.
SQL3114W Some data following "u0178õ o½@: s]ªÂÅúõB'r" in row "F0-1959" and
column "11" was not loaded.
SQL3114W Some data following """" in row "F0-1969" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F0-1974" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-1634" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-1981" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-1982" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-1983" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-1995" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-1996" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-1998" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-2009" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-2010" and column "10" was not
loaded.
SQL3114W Some data following "u0178õ o½@: s]ªÂÅúõB'r" in row "F1-2010" and
column "11" was not loaded.
SQL3114W Some data following """" in row "F1-2012" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-2023" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-2026" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-2037" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-2040" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-2051" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-2052" and column "10" was not
loaded.
SQL3114W Some data following "u0178õ o½@: s]ªÂÅúõB'r" in row "F1-2052" and
column "11" was not loaded.
SQL3114W Some data following """" in row "F1-2054" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-2065" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-2066" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-2068" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-2079" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-2082" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F0-2240" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F0-2243" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F0-2253" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F0-2254" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F0-2255" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F0-2266" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F0-2267" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F0-2269" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F0-2280" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F0-2281" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F0-2282" and column "10" was not
loaded.
SQL3227W Record token "F0-1958" refers to user record number "11636".
SQL3227W Record token "F0-1959" refers to user record number "11637".
SQL3227W Record token "F0-1969" refers to user record number "11647".
SQL3227W Record token "F0-1974" refers to user record number "11652".
SQL3227W Record token "F1-1634" refers to user record number "11661".
SQL3227W Record token "F0-2240" refers to user record number "14014".
SQL3227W Record token "F0-2243" refers to user record number "14017".
SQL3227W Record token "F0-2253" refers to user record number "14027".
SQL3227W Record token "F0-2254" refers to user record number "14028".
SQL3227W Record token "F0-2255" refers to user record number "14029".
SQL3227W Record token "F0-2266" refers to user record number "14040".
SQL3227W Record token "F0-2267" refers to user record number "14041".
SQL3227W Record token "F0-2269" refers to user record number "14043".
SQL3227W Record token "F0-2280" refers to user record number "14054".
SQL3227W Record token "F0-2281" refers to user record number "14055".
SQL3227W Record token "F0-2282" refers to user record number "14056".
SQL3227W Record token "F1-1981" refers to user record number "14068".
SQL3227W Record token "F1-1982" refers to user record number "14069".
SQL3227W Record token "F1-1983" refers to user record number "14070".
SQL3227W Record token "F1-1995" refers to user record number "14082".
SQL3227W Record token "F1-1996" refers to user record number "14083".
SQL3227W Record token "F1-1998" refers to user record number "14085".
SQL3227W Record token "F1-2009" refers to user record number "14096".
SQL3227W Record token "F1-2010" refers to user record number "14097".
SQL3227W Record token "F1-2012" refers to user record number "14099".
SQL3227W Record token "F1-2023" refers to user record number "14110".
SQL3227W Record token "F1-2026" refers to user record number "14113".
SQL3227W Record token "F1-2037" refers to user record number "14124".
SQL3227W Record token "F1-2040" refers to user record number "14127".
SQL3227W Record token "F1-2051" refers to user record number "14138".
SQL3227W Record token "F1-2052" refers to user record number "14139".
SQL3227W Record token "F1-2054" refers to user record number "14141".
SQL3227W Record token "F1-2065" refers to user record number "14152".
SQL3227W Record token "F1-2066" refers to user record number "14153".
SQL3227W Record token "F1-2068" refers to user record number "14155".
SQL3227W Record token "F1-2079" refers to user record number "14166".
SQL3227W Record token "F1-2082" refers to user record number "14169".
SQL3114W Some data following """" in row "F1-9602" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F1-9603" and column "10" was not
loaded.
SQL3114W Some data following "u0178õ o½@: s]ªÂÅúõB'r" in row "F1-9603" and
column "11" was not loaded.
SQL3114W Some data following """" in row "F1-9612" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F2-9374" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F2-9375" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F2-9383" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F2-9397" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F2-9410" and column "10" was not
loaded.
SQL3227W Record token "F1-9602" refers to user record number "66049".
SQL3227W Record token "F1-9603" refers to user record number "66050".
SQL3227W Record token "F1-9612" refers to user record number "66059".
SQL3227W Record token "F2-9374" refers to user record number "66063".
SQL3227W Record token "F2-9375" refers to user record number "66064".
SQL3227W Record token "F2-9383" refers to user record number "66072".
SQL3227W Record token "F2-9397" refers to user record number "66086".
SQL3227W Record token "F2-9410" refers to user record number "66099".
SQL3114W Some data following """" in row "F2-11966" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F2-11969" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F2-12580" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F2-12581" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F3-12270" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F3-12273" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F3-12274" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F3-12283" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F3-12286" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F3-12287" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F3-12295" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F3-12299" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F3-12300" and column "10" was not
loaded.
SQL3114W Some data following """" in row "F3-12308" and column "10" was not
loaded.
SQL3227W Record token "F2-11966" refers to user record number "83492".
SQL3227W Record token "F2-11969" refers to user record number "83495".
SQL3227W Record token "F2-12580" refers to user record number "86221".
SQL3227W Record token "F2-12581" refers to user record number "86222".
SQL3227W Record token "F3-12270" refers to user record number "86232".
SQL3227W Record token "F3-12273" refers to user record number "86235".
SQL3227W Record token "F3-12274" refers to user record number "86236".
SQL3227W Record token "F3-12283" refers to user record number "86245".
SQL3227W Record token "F3-12286" refers to user record number "86248".
SQL3227W Record token "F3-12287" refers to user record number "86249".
SQL3227W Record token "F3-12295" refers to user record number "86257".
SQL3227W Record token "F3-12299" refers to user record number "86261".
SQL3227W Record token "F3-12300" refers to user record number "86262".
SQL3227W Record token "F3-12308" refers to user record number "86270".
SQL3110N The utility has completed processing. "1053698" rows were read from
the input file.
SQL3519W Begin Load Consistency Point. Input record count = "1053698".
SQL3520W Load Consistency Point was successful.
SQL3515W The utility has finished the "LOAD" phase at time "05/29/2008
18:56:18.932604".
SQL3500W The utility is beginning the "BUILD" phase at time "05/29/2008
18:56:18.936928".
SQL3213I The indexing mode is "REBUILD".
SQL3515W The utility has finished the "BUILD" phase at time "05/29/2008
18:56:24.684630".
SQL3107W There is at least one warning message in the message file.
Number of rows read = 1053698
Number of rows skipped = 0
Number of rows loaded = 1053698
Number of rows rejected = 0
Number of rows deleted = 0
Number of rows committed = 1053698
Do you think that convert codepage errore is due to this warning message? -
Run time Errors GETWA_NOT_ASSIGNED at Time of Print Reports.
Hello hy All experts.
I ma trying to print Reports, but at time of preview i got an error message. Run time Errors GETWA_NOT_ASSIGNED.
Please Give me Solutions.
Thnks
Bhavesh Panchal.
BarodaFORM fetch_data.
break mtabap.
SELECT *
FROM vbep
INTO TABLE it_vbep
WHERE edatu IN so_edatu
AND vbeln IN so_vbeln.
IF NOT it_vbep[] IS INITIAL.
SELECT *
FROM vbak
INTO TABLE it_vbak
FOR ALL ENTRIES IN it_vbep
WHERE vbeln = it_vbep-vbeln
AND kunnr IN so_kunnr.
ENDIF.
IF NOT it_vbak[] IS INITIAL.
SELECT *
FROM vbpa
INTO TABLE it_vbpa
FOR ALL ENTRIES IN it_vbak
WHERE vbeln = it_vbak-vbeln
AND posnr = space.
SELECT *
FROM vbap
INTO TABLE it_vbap
FOR ALL ENTRIES IN it_vbak
WHERE vbeln = it_vbak-vbeln.
Select all Customer Data
SELECT * FROM kna1 INTO TABLE it_kna1
FOR ALL ENTRIES IN it_vbak
WHERE kunnr = it_vbak-kunnr .
SELECT *
FROM vbkd
INTO TABLE it_vbkd
FOR ALL ENTRIES IN it_vbap
WHERE vbeln = it_vbap-vbeln.
and posnr = IT_VBAP-POSNR.
SELECT *
FROM vbbe
INTO TABLE it_vbbe
FOR ALL ENTRIES IN it_vbap
WHERE vbeln = it_vbap-vbeln
AND posnr = it_vbap-posnr.
SELECT *
FROM vbup
INTO TABLE it_vbup
FOR ALL ENTRIES IN it_vbap
WHERE vbeln = it_vbap-vbeln
AND posnr = it_vbap-posnr.
SELECT *
FROM konv
INTO TABLE it_konv
FOR ALL ENTRIES IN it_vbak
WHERE knumv = it_vbak-knumv
AND kinak = space .
SELECT *
FROM vbrp
INTO TABLE it_vbrp
FOR ALL ENTRIES IN it_vbak
WHERE aubel = it_vbak-vbeln.
IF NOT it_vbrp[] IS INITIAL.
SELECT * FROM likp
INTO TABLE it_likp
FOR ALL ENTRIES IN it_vbrp
WHERE vbeln = it_vbrp-vgbel.
SELECT * FROM lips
INTO TABLE it_lips
FOR ALL ENTRIES IN it_vbrp
WHERE vbeln = it_vbrp-vgbel
AND posnr = it_vbrp-vgpos.
ENDIF.
ENDIF.
LOOP AT it_vbap.
itab-posnr = it_vbap-posnr.
itab-posar = it_vbap-posar.
ITAB-BRGEW = IT_VBAP-BRGEW.
itab-brgew = it_vbap-brgew.
itab-ntgew = it_vbap-ntgew.
READ TABLE it_vbak WITH KEY vbeln = it_vbap-vbeln.
itab-vbeln = it_vbak-vbeln.
itab-netwr = it_vbak-netwr.
itab-kunnr = it_vbak-kunnr.
READ TABLE it_vbep WITH KEY vbeln = it_vbap-vbeln.
itab-edatu = it_vbep-edatu.
READ TABLE it_kna1 WITH KEY kunnr = it_vbak-kunnr.
itab-name1 = it_kna1-name1.
READ TABLE it_vbkd WITH KEY vbeln = it_vbap-vbeln .
itab-bstdk = it_vbkd-bstdk.
itab-bstkd = it_vbkd-bstkd.
READ TABLE it_vbrp WITH KEY aubel = it_vbap-vbeln aupos = it_vbap-posnr.
READ TABLE it_lips WITH KEY vbeln = it_vbrp-aubel posnr = it_vbrp-aupos.
itab-delivery = it_lips-vbeln.
itab-lfimg = it_lips-lfimg.
READ TABLE it_likp WITH KEY vbeln = it_vbrp-aubel .
itab-lfdat = it_likp-lfdat.
itab-ntgew = it_likp-ntgew.
break mtabap.
READ TABLE it_vbup WITH KEY vbeln = it_vbap-vbeln posnr = it_vbap-posnr.
itab-lfsta = it_vbup-lfsta.
READ TABLE it_vbep WITH KEY vbeln = it_vbap-vbeln posnr = it_vbap-posnr.
itab-wmeng = it_vbep-wmeng .
itab-bmeng = it_vbep-bmeng.
READ TABLE it_vbbe WITH KEY vbeln = it_vbap-vbeln posnr = it_vbap-posnr.
itab-omeng = it_vbbe-omeng .
READ TABLE it_konv WITH KEY knumv = it_vbak-knumv
kposn = it_vbap-posnr
kschl = 'PR00'.
ITAB-KBETR = IT_KONV-KBETR / 10. " CONDITION RATE
itab-kbetr = it_konv-kbetr.
itab-kwert = it_konv-kwert . "CONDITION VALUE
itab-pending_val = ITAB-OMENG * ITAB-KWERT .
itab-pending_val = itab-omeng * itab-kbetr .
APPEND itab.
ENDLOOP.
ENDFORM. "data_retrieval
*& Form build_listheader
text
-->IT_LISTHEADER text
Show quoted text -
FORM build_listheader USING it_listheader TYPE slis_t_listheader.
DATA HLINE TYPE SLIS_LISTHEADER.
DATA: ls_line TYPE slis_listheader.
bhavesh
HLINE-INFO = 'report Developed by Bhavesh'.
HLINE-TYP = 'H'.
Header
Bhavesh
CLEAR ls_line.
ls_line-typ = 'H'.
LS_LINE-KEY: not used for this type
ls_line-info = 'Sales ORDER Report'.
APPEND ls_line TO it_listheader.
bhavesh
***Selection
CLEAR ls_line.
ls_line-typ = 'S'.
ls_line-key = 'Key 1'.
ls_line-info = 'SFEL'.
APPEND ls_line TO it_listheader.
ls_line-key = 'Key 2'.
ls_line-info = 'SFEL'.
APPEND ls_line TO it_listheader.
***Action
CLEAR ls_line.
ls_line-typ = 'A'.
LS_LINE-KEY: not used for this type
ls_line-info = 'Status list'.
APPEND ls_line TO it_listheader.
ENDFORM. "BUILD_LISTHEADER
*ENDFORM. "build_listheader
*& Form display
*& text
FORM display.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_top_of_page = 'TOP_OF_PAGE'
is_layout = alv_layout
it_fieldcat = i_fieldcat
it_events = gt_events[]
i_callback_user_command = 'USER_COMMAND'
i_grid_title = 'BHAVESH REPORT'
TABLES
t_outtab = itab[].
CLEAR : itab .
ENDFORM. "display
*& Form top_of_page
text
FORM top_of_page.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = it_listheader[].
i_logo = 'ENJOYSAP_LOGO'.
I_END_OF_LIST_GRID =
ENDFORM. "TOP_OF_PAGE -
Run time error running Vision Builder AI inspection from TestStand
Hello,
I have TestStand 3.1 and Vision Builder for AI v2.6.1.
I would like to run from TestStand a Vision Builder Program or steps. For to achieve that, I have followed the instructions on Application Note 215, Running a Vision Builder AI Inspection from TestStand.
After installation, the option in TestStand InsertStep>NI Vision Builder AI>Inspection works properly.
But when try to execute a step with that inspection, and whatever operation of that one, the result is the following error:
Run-Time Error
Details: Error executing substep 'Post'.
An error occurred calling 'ExecuteStep' in '_NIVBAITestStandSteps' of 'NIVBAITestStandAPI'.
Error Code: -2147417851; User defined code. Possible System Error: The server sent an exception.
At this point really I don´t know what to do, and I don't find any extra help apart of application note.
I will appreciate some suggestion.
Gonzalo.Hello,
I've found some more information that may help. Since these TestStand steps are simply call a DLL with an exported ActiveX API, path issues may exist. In fact, the overwhelming number of times this error appears, paths seems to be the case. I am not sure why the error is an indication of a path issue, but that seems to be the case. I would recommend that you would reregister the DLL, this time in the same directory as the example sequence. To do this:
- Unregister the current DLL by going to Start Menu>>Run, and typing: regsvr32 /u NIVBAITestStandAPI.dll
- Move the DLL from the system32 folder to the folder in which the example sequence is saved.
- Reregister the DLL from the run command (regsvr32 <folder path>\NIVBAITestStandAPI.dll)
- Restart TestStand if it is open
I apologize for not having any concrete answers, but this one is proving tough without me being able to replicate the issue.
crisR -
ALV GRID Display function module giving Run time error
Hello Experts,
I have ALV report, In which I am using ALV grid dispaly FM to display the report.
But when my out table which I am passing to FM is empty that time ALV grid display shows blank ALV report. but when out table is not empty that time I am getting the Run time error, which shows message "Field symbol has not yet been assigned".
Can any one please help me out in this.
ThanksTYPES: BEGIN OF type_out,
col00 TYPE ytlet-rzzyyproduct,
col01 TYPE ytlet-kslvt,
col02 TYPE ytlet-kslvt,
col03 TYPE ytlet-kslvt,
col04 TYPE ytlet-kslvt,
col05 TYPE ytlet-kslvt,
col06 TYPE ytlet-kslvt,
col07 TYPE ytlet-kslvt,
col08 TYPE ytlet-kslvt,
col09 TYPE ytlet-kslvt,
col10 TYPE ytlet-kslvt,
col11 TYPE ytlet-kslvt,
col12 TYPE ytlet-kslvt,
col13 TYPE ytlet-kslvt,
col14 TYPE ytlet-kslvt,
col15 TYPE ytlet-kslvt,
col16 TYPE ytlet-kslvt,
col17 TYPE ytlet-kslvt,
col18 TYPE ytlet-kslvt,
col19 TYPE ytlet-kslvt,
col20 TYPE ytlet-kslvt,
col21 TYPE ytlet-kslvt,
col22 TYPE ytlet-kslvt,
col23 TYPE ytlet-kslvt,
col24 TYPE ytlet-kslvt,
col25 TYPE ytlet-kslvt,
col26 TYPE ytlet-kslvt,
col27 TYPE ytlet-kslvt,
col28 TYPE ytlet-kslvt,
col29 TYPE ytlet-kslvt,
col30 TYPE ytlet-kslvt,
col31 TYPE ytlet-kslvt,
col32 TYPE ytlet-kslvt,
col33 TYPE ytlet-kslvt,
col34 TYPE ytlet-kslvt,
col35 TYPE ytlet-kslvt,
col36 TYPE ytlet-kslvt,
col37 TYPE ytlet-kslvt,
col38 TYPE ytlet-kslvt,
col39 TYPE ytlet-kslvt,
col40 TYPE ytlet-kslvt,
col41 TYPE ytlet-kslvt,
col42 TYPE ytlet-kslvt,
col43 TYPE ytlet-kslvt,
col44 TYPE ytlet-kslvt,
END OF type_out.
DATA: t_fieldcat TYPE slis_t_fieldcat_alv, "Field catelog table
w_fieldcat TYPE slis_fieldcat_alv, "Field catelog Work area
w_layout TYPE slis_layout_alv, "Layout structure
w_event TYPE slis_alv_event, "Event structure
t_event TYPE slis_t_event, "Event structure
t_sort TYPE STANDARD TABLE OF slis_sortinfo_alv,
t_callback_main_user_command TYPE slis_formname,
v_selfield TYPE slis_selfield.
FIELD-SYMBOLS: <ksl>.
FORM DISPLAY_REPORT .
*Prepare Field Catlog
PERFORM creat_field_catlog.
*Set layout
PERFORM set_layout.
*Get Event
PERFORM get_event.
*Display Report
PERFORM display_alv_report.
ENDFORM. " DISPLAY_REPORT
FORM creat_field_catlog .
PERFORM add_fields_catlog USING:
'01' 'RZZYYPRODUCT' 'IT_OUT' 'MPMs' ' ',
'02' 'KSLVT' 'IT_OUT' 'License Fee' ' ',
'03' 'KSLVT' 'IT_OUT' 'Ad Sales' ' ',
'04' 'KSLVT' 'IT_OUT' 'Promo Fees' ' ',
'05' 'KSLVT' 'IT_OUT' 'Total Ad Sales/Promo' ' ',
'06' 'KSLVT' 'IT_OUT' 'Other' ' ',
'07' 'KSLVT' 'IT_OUT' 'Total' ' ',
'08' 'KSLVT' 'IT_OUT' 'Dom Station' ' ',
'09' 'KSLVT' 'IT_OUT' 'Basic Cable/Free VOD' ' ',
'10' 'KSLVT' 'IT_OUT' 'License Fee' ' ',
'11' 'KSLVT' 'IT_OUT' 'Ad Sales (incl Internet)' ' ',
'12' 'KSLVT' 'IT_OUT' 'Promo Fees' ' ',
'13' 'KSLVT' 'IT_OUT' 'Ad Sales & Promo Fees' ' ',
'14' 'KSLVT' 'IT_OUT' 'Foreign' ' ',
'15' 'KSLVT' 'IT_OUT' 'Pay TV' ' ',
'16' 'KSLVT' 'IT_OUT' 'Other' ' ',
'17' 'KSLVT' 'IT_OUT' 'Total' ' ',
'18' 'KSLVT' 'IT_OUT' 'Home Entertainment' ' ',
'19' 'KSLVT' 'IT_OUT' 'SPTI' ' ',
'20' 'KSLVT' 'IT_OUT' 'All Other Divisions' ' ',
'21' 'KSLVT' 'IT_OUT' 'Total' ' ',
'22' 'KSLVT' 'IT_OUT' 'Total Revenue' ' ',
'23' 'KSLVT' 'IT_OUT' 'PV Net Down & Producers Share' '',
'24' 'KSLVT' 'IT_OUT' 'Total Net Revenue' ' ',
'25' 'KSLVT' 'IT_OUT' 'Development Expense' ' ',
'26' 'KSLVT' 'IT_OUT' 'SOP Deficits' ' ',
'27' 'KSLVT' 'IT_OUT' 'Amortization' ' ',
'28' 'KSLVT' 'IT_OUT' 'Other COS ' ' ',
'29' 'KSLVT' 'IT_OUT' 'Total COS' ' ',
'30' 'KSLVT' 'IT_OUT' 'Profit Before Releasing' ' ',
'31' 'KSLVT' 'IT_OUT' 'Gross Profit %' ' ',
'32' 'KSLVT' 'IT_OUT' 'SPT' ' ',
'33' 'KSLVT' 'IT_OUT' 'Home Entertainment' ' ',
'34' 'KSLVT' 'IT_OUT' 'SPTI' ' ',
'35' 'KSLVT' 'IT_OUT' 'All Other Divisions' ' ',
'36' 'KSLVT' 'IT_OUT' 'Other' ' ',
'37' 'KSLVT' 'IT_OUT' 'Total' ' ',
'38' 'KSLVT' 'IT_OUT' 'Gross Profit' ' ',
'39' 'KSLVT' 'IT_OUT' 'SPT' ' ',
'40' 'KSLVT' 'IT_OUT' 'Home Entertainment' ' ',
'41' 'KSLVT' 'IT_OUT' 'SPTI' ' ',
'42' 'KSLVT' 'IT_OUT' 'All Other Divisions' ' ',
'43' 'KSLVT' 'IT_OUT' 'Other' ' ',
'44' 'KSLVT' 'IT_OUT' 'Total' ' ',
'45' 'KSLVT' 'IT_OUT' 'Net Margin' ' '.
ENDFORM. " CREAT_FIELD_CATLOG
*& Form ADD_FIELDS_CATLOG
Filling of field Catlog
FORM add_fields_catlog USING p_colpos
p_fildname
p_tabname
p_fildtext
p_ndisplay.
w_fieldcat-row_pos = '1'.
w_fieldcat-col_pos = p_colpos.
w_fieldcat-fieldname = p_fildname.
w_fieldcat-tabname = p_tabname.
w_fieldcat-reptext_ddic = p_fildtext.
w_fieldcat-no_out = p_ndisplay.
APPEND w_fieldcat TO t_fieldcat.
CLEAR: w_fieldcat.
ENDFORM. " ADD_FIELDS_CATLOG
*& Form SET_LAYOUT
Set Layout
FORM set_layout .
w_layout-colwidth_optimize = 'X'.
ENDFORM. " SET_LAYOUT
*& Form GET_EVENT
text
FORM get_event .
w_event-name = 'TOP-OF-PAGE'.
w_event-form = 'F_TOP-OF_PAGE'.
APPEND w_event TO t_event.
ENDFORM. " GET_EVENT
*& Form TOP-OF-PAGE
Top of Page
FORM top-of-page.
DATA : t_list_commentry TYPE slis_t_listheader,
w_header TYPE slis_listheader,
lv_text(90) TYPE c,
l_text(90) TYPE c,
lv_rundate(10) TYPE c,
lv_runtime(10) TYPE c.
CONSTANTS: c_space(2) TYPE c VALUE ' ',
c_space2(6) TYPE c VALUE ' '.
w_header-typ = 'S'.
w_header-key = 'Program:'.
w_header-info = sy-repid.
APPEND w_header TO t_list_commentry.
WRITE: sy-datum TO lv_rundate MM/DD/YYYY.
WRITE: sy-uzeit TO lv_runtime USING EDIT MASK '__:__:__'.
CLEAR w_header.
w_header-typ = 'S'.
w_header-key = text-021.
w_header-info = lv_rundate.
APPEND w_header TO t_list_commentry.
CLEAR: w_header.
w_header-typ = 'S'.
w_header-key = 'User Id'.
w_header-info = sy-uname.
APPEND w_header TO t_list_commentry.
CLEAR: w_header.
w_header-typ = 'S'.
w_header-key = 'Run Date'.
w_header-info = lv_rundate.
APPEND w_header TO t_list_commentry.
CLEAR: w_header.
w_header-typ = 'S'.
w_header-key = 'Run Time'.
w_header-info = lv_runtime.
APPEND w_header TO t_list_commentry.
CLEAR: w_header.
w_header-typ = 'H'.
w_header-key = 'order'.
w_header-info = 'MCR Report'.
APPEND w_header TO t_list_commentry.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = t_list_commentry.
ENDFORM. "TOP-OF-PAGE
FORM display_alv_report .
CONSTANTS : gc_save TYPE c VALUE 'A'. "Save Layout
t_callback_main_user_command = c_user_command.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = sy-repid
I_CALLBACK_PF_STATUS_SET = ' '
i_callback_user_command = t_callback_main_user_command
i_callback_top_of_page = 'TOP-OF-PAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
is_layout = w_layout
it_fieldcat = t_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
i_save = gc_save
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = it_out
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
ENDIF. -
Hi,
One of the user is experiencing the error below, while exporting to excel.
Run-time error '53'
File not found
Is this a know issue?
SAP version: SAP Business One 8.8 SP:00 PL:09
Client PC OS: Windows 7
Office 2007
Any suggestion will be appreciated.
Thanks!
MohanHi Gordon,
Thanks for your quick response but your question is not updated in the message..
All the B1 clients got windows 7, but this works for one client.
How about some other B1 clients on different OS?
Thanks,
Gordon
Thanks!
Mohan
Maybe you are looking for
-
Hi We have upgraded from CE 7.2 to Netweaver 7.3. When I installed NWDS 7.3 and tried to import the SC I am facing an issue. it throws an error "Some infrastructure servers cannot be contacted". It is the build server that is not getting connected.
-
Hi All, I'm pretty new to JavaFX, and I'm currently working on a prototype that will hopefully open up some eyes around my work as there seems to be very distinct camps between Flex and GWT here. I'm hoping that I might change a few minds to JavaFX.
-
Questions concerning basic bash scripting
Good evening, at the moment we do bash scripting at university, but I seen to encounter some problems in understanding the functionality of bash. I would be very grateful if you guys could help me out with one or another question. First one: Task to
-
CS4 Matching Metadata to File Properties
Is there a way in Bridge's Metadata to either see or modify Window's File Properties? Specificaly Subject or Comment? I am scanning old family photos and what to document what is written on the back plus who is in the photo. I know I can tag them w
-
Nokia C3-00 wont connect to my wifi
Ive had my phone for 3 months and it used to connect to wifi no problem. but now for some reason it will not. When I try it asks me to get a data package but it never did before and to try again. please help this lost soul.