Custom program problem
Moderator message - please use meaningful subject in future
Hi,
My requirement is :
We get a input file in .XLS format. To load, it has to be converted to .TXT format. But this conversion sometimes creates junk characters in the load file.
so to rectify it we need to build a custom program and then Pass the .XLS file as input file for custom program
then Convert it to .TXT and download it
Then read .XLS cell by cell and compare it with the .txt format which just downloaded.
I am building a custom program but while downloading using gui_download i am getting a dump.
how do i go about it.any pointers will be helpful.The piece of code i am using is:
DATA : it_tab TYPE STANDARD TABLE OF alsmex_tabline.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = p_dpath
i_begin_col = c_begin_col
i_begin_row = c_begin_row
i_end_col = c_end_col
i_end_row = c_end_row
TABLES
intern = it_tab
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
filename = p_dpath
* FILETYPE = 'ASC'
* APPEND = ' '
* WRITE_FIELD_SEPARATOR = ' '
* HEADER = '00'
* TRUNC_TRAILING_BLANKS = ' '
* WRITE_LF = 'X'
* COL_SELECT = ' '
* COL_SELECT_MASK = ' '
* DAT_MODE = ' '
* CONFIRM_OVERWRITE = ' '
* NO_AUTH_CHECK = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* WRITE_BOM = ' '
* TRUNC_TRAILING_BLANKS_EOL = 'X'
* WK1_N_FORMAT = ' '
* WK1_N_SIZE = ' '
* WK1_T_FORMAT = ' '
* WK1_T_SIZE = ' '
* WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
* SHOW_TRANSFER_STATUS = ABAP_TRUE
* IMPORTING
* FILELENGTH =
TABLES
data_tab = it_tab
* FIELDNAMES =
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Please give pointers on this.
Regards,
Rahul
Edited by: Matt on Jan 29, 2009 2:13 PM - added tags
ALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
* I_FIELD_SEPERATOR =
i_line_header = 'X'
i_tab_raw_data = it_raw
i_filename = pfile
TABLES
i_tab_converted_data = lt_excel[].
* 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.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
filename = 'D:\Documents and Settings\chenna.kesava.reddy\Desktop\Book1.txt'
FILETYPE = 'ASC'
* APPEND = ' '
* WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
* TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
* COL_SELECT = ' '
* COL_SELECT_MASK = ' '
* DAT_MODE = ' '
CONFIRM_OVERWRITE = 'X'
* NO_AUTH_CHECK = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* WRITE_BOM = ' '
* TRUNC_TRAILING_BLANKS_EOL = 'X'
* WK1_N_FORMAT = ' '
* WK1_N_SIZE = ' '
* WK1_T_FORMAT = ' '
* WK1_T_SIZE = ' '
* WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
* SHOW_TRANSFER_STATUS = ABAP_TRUE
* IMPORTING
* FILELENGTH = '2000'
tables
data_tab = lt_excel.
* FIELDNAMES =
* EXCEPTIONS
* FILE_WRITE_ERROR = 1
* NO_BATCH = 2
* GUI_REFUSE_FILETRANSFER = 3
* INVALID_TYPE = 4
* NO_AUTHORITY = 5
* UNKNOWN_ERROR = 6
* HEADER_NOT_ALLOWED = 7
* SEPARATOR_NOT_ALLOWED = 8
* FILESIZE_NOT_ALLOWED = 9
* HEADER_TOO_LONG = 10
* DP_ERROR_CREATE = 11
* DP_ERROR_SEND = 12
* DP_ERROR_WRITE = 13
* UNKNOWN_DP_ERROR = 14
* ACCESS_DENIED = 15
* DP_OUT_OF_MEMORY = 16
* DISK_FULL = 17
* DP_TIMEOUT = 18
* FILE_NOT_FOUND = 19
* DATAPROVIDER_EXCEPTION = 20
* CONTROL_FLUSH_ERROR = 21
* OTHERS = 22
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Edited by: Matt on Jan 29, 2009 2:14 PM - added tags
Similar Messages
-
Font problems in Mail sent from a Custom program
Hi,
There is a custom program which retrieves data from spool using function module 'RSPO_RETURN_SPOOLJOB' and the list returned by the above function module is moved to table Objbin and passed to function module 'SO_NEW_DOCUMENT_ATT_SEND_API1' for sending the email. eversince upgrade,we are facing problems with the Font of the mail generated via the above function module. The font is really small. the sample code is given below:
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
put_in_outbox = 'X'
TABLES
packing_list = objpack
contents_bin = objbin
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.this is how the code looks like:
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB' EXPORTING rqident = spool_number IMPORTING real_type = g_doc_type TABLES
buffer = compressed_list
EXCEPTIONS no_such_job = 1
job_contains_no_data = 2
selection_empty = 3
no_permission = 4
can_not_access = 5
read_error = 6
type_no_match = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE e132 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. * move the list to the official table ojbin
MOVE compressed_list[] TO objbin[].
create the document which is to be sent
doc_chng-obj_name = 'list'.
doc_chng-obj_descr = 'Inbound PO Faxes to Jobber'.
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = '0'.
objpack-doc_type = 'RAW'.
APPEND objpack.
DESCRIBE TABLE objbin LINES tab_lines.
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = g_doc_type.
objpack-obj_name = 'Attachment'.
objpack-obj_descr = 'PO Order'.
READ TABLE objbin INDEX tab_lines.
doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
objpack-doc_size = doc_size.
APPEND objpack.
IF sy-sysid NE 'PC2'.
recipient_int-address = ws_dummy_fax.
ELSE.
concatenate int_customer-fax_number
ws_fax_address
INTO recipient_int-address.
ENDIF.
reclist-receiver = recipient_int.
reclist-rec_type = 'U'.
APPEND reclist.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
put_in_outbox = 'X'
TABLES
packing_list = objpack
contents_bin = objbin
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE e133 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
COMMIT WORK. -
Customer statement print print program problem.
Hi All,
I am trying to trigger the customet statement from transaction F.27.
I was configure the correspondence in OB 77 and attache dteh print program RFKORD11. a nd tatche dteh form and print program in
OB96 for specific company code and excuted from f.27 and its working fine.
But my concern is, i have lot of new date to to show on form from logistics so thats why i was trying to
copy the standard program 'RFKORD11' into ZFKORD11 and assigned it to correspondesce as per the above steps.
but when i execute the F.27, But it looking the standard program 'ZFKORD11' only instead of my custom program.
My question:
1. Can we attached Z-program to execute the customer stattement from F.27?
if yes please give me the details. and it wil help me lot..
Correct ans give reward points..
Thanks,.F.27 is a standard transaction code that triggers the t-code SA39 (not available for users to run, use SA38) which runs the program RFKORK00. It is not advisable to change the standard code pointers.
You may try creating a new t-code that runs your program. -
Facing a problem with standard text in custom program
Hi,
As per my requirement i need to create a standard text (transaction code s010 ) in custom program using below code. But when click save button then it needs to be come out of the screen without click back button.
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID = G_THEAD-TDID
FLANGUAGE = G_THEAD-TDSPRAS
FNAME = G_THEAD-TDNAME
FOBJECT = G_THEAD-TDOBJECT
SAVE_DIRECT = 'X'
FFORMAT = '*'
TABLES
FLINES = I_TLINE
EXCEPTIONS
NO_INIT = 1
NO_SAVE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
ELSE.
CALL FUNCTION 'EDIT_TEXT'
EXPORTING
HEADER = G_THEAD
SAVE = 'X'
TABLES
LINES = I_TLINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
LINESIZE = 3
NAME = 4
OBJECT = 5
TEXTFORMAT = 6
COMMUNICATION = 7
OTHERS = 8.
IF SY-SUBRC <> 0.
ENDIF.
ENDIF.
Can you please help me how to do this
Regards
nagBut when click save button then it needs to be come out of the screen without click back button.
can you explain me, what do you mean by that.
~satya -
POSTING G/L account documents through custom program
While posting the documents through the tcode fb01,
when I tick at PA segement button ASSIGNMENT TO
PROFITABILITY SEGMENT screen opens, DERIVATION
BUTTON is activated/enabled . But through a custom program when session is
processed and when PA segement button is ticked on
ASSIGNMENT TO PROFITABILITY SEGMENT screen, DERIVATION BUTTON is not visible. I can only see Continue, Next Page, Delete Assignment, and Cancel buttons. Where do I need to check this problem?Hi,
Nope, in standard SAP you can not do that.
You would need to develop your custom program for it.
Regards,
SDNer -
Object Custom Program Name of class RE and language EN does not exist
Hi All,
We are getting this bbelow error while running a custome program ,
Object <Custom Program Name> of class RE and language EN does not exist
Do any one has faced this similar issue earlier.
Regards,
SenHi,
How did you resolve this problem ?
Re: Object <Custom Program Name> of class RE and language EN does not exist.
I am also encountering the same issue when I am executing the report.
Regards,
SSR. -
ABAP CUSTOM PROGRAMS vs SOX - What is your best approach?
SOX defines you must put in place controls to be sure your users can do only those activities wich are not able to create a risk for your company assets.
You can use GRC AC to get clean and stay clean, but the problem is in your custom developments. Indirectly called transactions are not included in the transaction start check, so I think you must use "authority checks" to validate either stantdard authorization objetcs (sy-tcode, company code...) or custom authorization objects before to call a transacction/BAPI inside a custom program to be sure the user has the right permissions to complete this task.
Should i validate any single authoritation object defined in SU24 for each single transaction called Indirectly?
Any other quick win approach?
thx.Manuel,
There are various types of controls that could be put in place for accomplishing this. Below are some things you could consider to mitigate this risk as I have done in the past which has been sufficent to auditors.
1) Have a solid review process for Functional Design Specs (FDS) reviews of RICEFW objects being developed into your SAP enviroment and be sure to have the process and review documented. This process will allow you to proactively seek out potential issues before they are coded to senstive areas where the potential risk to financial reporting could arise.
2) Implement coding standards for Security such as use of Program Auth Groups, Table Auth Groups, and implement certian SAP notes to secure S_DEVELOP object properly. Refer to https://websmp110.sap-ag.de/securitynotes for security notes.
3) Have a review/monitoring process in place to review access and authorizations to critical objects and transactions. GRC AC is one way to approach this.
You can use abap program "RSABAPSC : Statistical program analysis to find ABAP language commands" to seek out Authority-Checks in custom development as part of a quality review.
Thanks,
Matt -
Oracle11i AP positive Pay customized program setting
Hi
I need to know how to set up a new customized program for Positive Pay file for payment batch where the checkbox is in actions panel so once it is clicked by the user the program will be triggered
ThanksISUTri wrote:
Thank you for your reply Hussein. Those documents don't appear to address the specific problem we seem to be having. Out of the log file that I posted I have been concentrating my search on this error message. Let me know if you have any other tips.
java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character to number conversion error
ORA-06512: at "APPS.IBY_EXTRACTGEN_PVT", line 380
ORA-06512: at line 1
Is there a way I can get additional information that might help me track down what is happening? I have an SR on this but Oracle seems to be as stumped as I am.R12: Troubleshooting Payment Process Request (PPR) Errors: Comprehensive Listing of Errors and Solution Documents [ID 1314118.1]
IBY_FD_PAYMENT_FORMAT_TEXT Format Payment Instructions Errors with ORA-06502 [ID 1073786.1]
Thanks,
Hussein -
Printing Purchase Order from ME9F using custom program and smartform
I was able to use my custom program which calls a smartform to print purchase orders from transaction ME9F. I did this using transaction NACE.
However, when I call "Output Message" from ME9F, the output always fails (shown by an 'X' icon after the checkbox). When I try to put back the standard program in NACE, it does not show an 'X' but a check which indicates that the printing was successful.
Do you know why this happens? What did I miss?
Here's my call to my smartform from my custom driver program:
" Change Smartform ZP_MMSF_P01_PURCHASE_ORDER
" to internal Function module name
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZP_MMSF_P01_PURCHASE_ORDER'
IMPORTING
FM_NAME = fmname
wa_cparam-no_dialog = 'X'.
wa_output-tddest = 'LOCL'. "or 'LP01'. "Spool: Output device
CALL FUNCTION fmname
EXPORTING
control_parameters = wa_cparam
output_options = wa_output
i_data = i_data
wa_lookup = wa_data_lookup
goods_amt = goods_amt
discount_amt = discount_amt
vat = vat
total_amt = total_amt
total_amt_inwords = total_amt_inwordsVijaya,
I have this problem though,
Whenever I try to provide values for CONTROL_PARAMETERS and OUTPUT_OPTIONS to the sapscript call in your code, the PO printing (even the preview) does not proceed. I do this because I wanted to suppress the printer dialog.
here is a fragment of the code:
" code I added
LS_COMPOSER_PARAM-tddest = 'LOCL'. "or 'LP01'. "Spool: Output device
LS_COMPOSER_PARAM-bcs_langu = sy-langu.
LS_CONTROL_PARAM-preview = 'X'.
LS_CONTROL_PARAM-no_open = 'X'.
LS_CONTROL_PARAM-no_close = 'X'.
LS_CONTROL_PARAM-device = 'PRINTER'.
LS_CONTROL_PARAM-no_dialog = 'X'.
DO NAST_ANZAL TIMES.
*--In case of repetition only one time archiving
* if sy-index > 1 and nast-tdarmod = 3.
* nast_tdarmod = nast-tdarmod.
* nast-tdarmod = 1.
* ls_composer_param-tdarmod = 1.
* endif.
IF SY-INDEX NE 1 AND REPEAT IS INITIAL.
REPEAT = 'X'.
ENDIF.
CALL FUNCTION LF_FM_NAME
EXPORTING
ARCHIVE_INDEX = TOA_DARA
ARCHIVE_PARAMETERS = ARC_PARAMS
CONTROL_PARAMETERS = LS_CONTROL_PARAM
MAIL_RECIPIENT = LS_RECIPIENT
MAIL_SENDER = LS_SENDER
OUTPUT_OPTIONS = LS_COMPOSER_PARAM
USER_SETTINGS = SPACE
IS_NAST = NAST
IS_REPEAT = REPEAT
I tried to trace it to the function module generated by smartform. The error propagates this way: From the function module, there is a call to function SSFCOMP_PROCESS_DOCUMENT. Then inside that function, there is a perform operation to tr_ssfcomp_process_doc
perform tr_ssfcomp_process_doc using startpage docstruc
header.
Inside that form, it calls the macro tr_active which checks the value of ssfcstat-trlevel (tracelevel) against c_trlevel_document. In the macro, if ssfcstat-trlevel is less than c_trlevel_document, the smartform will fail. c_trlevel_document is 15 and ssfcstat-trlevel is 0, and so the smartform fails.
(you can see the macro tr_active in include LSTXBCMAC and the form tr_ssfcomp_process_doc is in the include LSTXBCFTR)
When I do not put values in CONTROL_PARAMETERS and OUTPUT_OPTIONS, everything is ok.
Do you know why this happens?
Thanks in advance!
Edit: I have found out about transaction SFTRACE, but this is disabled.
Kyle -
AUTHORITY-CHECK & customized program
Hi,
I've applied an authority-check to my customized program. What I did was, I've created an authorization object name 'ZFI_PGRM' in SU21 and tie it with authorization fields BUKRS, ACTVT. This authority-check will validate on the company code (BUKRS) entered from the selection screen. Below are my lines in the customized program :
DATA: text TYPE string,
m_text TYPE string.
text = 'You are not authorised for Company Code'.
DATA: t_t001 LIKE t001 OCCURS 0 WITH HEADER LINE..
SELECT * FROM t001
INTO TABLE t_t001
WHERE bukrs IN s_bukrs.
LOOP AT t_t001.
AUTHORITY-CHECK OBJECT 'ZFI_PGRM'
ID 'BUKRS' FIELD t_t001-bukrs
ID 'ACTVT' FIELD '03'.
IF sy-subrc <> 0.
CONCATENATE text t_t001-bukrs INTO m_text SEPARATED BY space.
ENDIF.
ENDLOOP.
At the same time BASIS tie the autorization object 'ZFI_PGRM' to the user role in order to access the program using PFCG. The problem now is the result that I'm getting always SY-SUBRC = 12 eventhough the user is allowed to access the company's report. Please help...
HaryatiRun transaction SU53 after the auth check fails and maybe it will give you a clue as to what is going on.
-
Hello gurus,
for the F110 transaction, we need to execute a program after the standard RFFOD_U or RFFOD_L that takes the dme file, adds some information to the file name and leaves it in a specific folder.
Is it possible to add this program to the program list in the "printout/datamedium" tab of F110, so that it is automatically executed after every RFFOD_U execution? For example, for some payment methods we have
RFFOAVIS
RFFOD_U
RFFOEDI1
In the F110
What we want is to add our custom program to this list so:
RFFOAVIS
RFFOD_U
RFFODEDI
ZRFFO*
Another option would be to manually input it in the "lists" section below, but this would mean the user would have to select it in every payment run
Do you know how to include it in the "form/printing/data medium exchange" section of the Printout/data medium tab
Thanks
DanielThanks Shekhar,
but I guess I did not explain my problem in full;
1 We need to do it using the existing RFFO* programs, not with DMEE
2 We cannot use the cariants for these programs because the output file length is not long enough for the folder + file names that we need
3 we need to add the values of the payment run date and payment run ID to the file name -
Place Custom Program on Home Computer
I have a Java custom program, created by me. I wanted to put this program on my computer. I copy the file and put it in the "C" drive on the folder "program files". I then copy .exe file into the desktop so I can use it as a shortcut. The problem is that the custom program have an "MS access" database file that I use to record my daily activity. Therefore, whenever I click on the .exe icon, I can excuted my file safely but can't access the "access" database. Plus, my crystal report that I have in it doesn't work due to the path being invalid. I'm not familar with this. This is my first time eve using a custom software. Thanks for your help.
Hello Thomas,
The title of the component can also be set programmatically via IF_BSP_WD_HISTORY_STATE_DESCR~GET_STATE_DESCRIPTION method on the controller level as well.
Best Regards,
Yevgen -
Writing custom program errors to SLOG
I am looking for a way to put errors from custom program ( which would run as job) to system log, which should be visible via SM21. Can any of you help me with a function module with which I can achieve it ?
Hi Indrade,
Is it your first post in SDN ? Welcome!
for your problem try the following procedure:
1. Refresh memory
CALL FUNCTION 'BAL_GLB_MEMORY_REFRESH'
EXPORTING
* I_AUTHORIZATION =
i_refresh_all = 'X'
* I_T_LOGS_TO_BE_REFRESHED =
EXCEPTIONS
not_authorized = 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.
2. Create a Log
* define some header data of this log
l_s_log-extnumber = pu_ext_number.
l_s_log-aluser = sy-uname.
l_s_log-alprog = sy-repid.
l_s_log-object = pu_object.
l_s_log-subobject = pu_subobject.
* create a log
CALL FUNCTION 'BAL_LOG_CREATE'
EXPORTING
i_s_log = l_s_log
IMPORTING
e_log_handle = pc_log_handle
EXCEPTIONS
log_header_inconsistent = 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.
3. Add a message to the Log
DATA:
l_s_msg TYPE bal_s_msg,
l_log_handle TYPE balloghndl.
* define data of message for Application Log
l_s_msg-msgty = pu_msgty.
l_s_msg-msgid = pu_msgid.
l_s_msg-msgno = pu_msgno.
l_s_msg-msgv1 = pu_msgv1.
l_s_msg-msgv2 = pu_msgv2.
l_s_msg-msgv3 = pu_msgv3.
l_s_msg-msgv4 = pu_msgv4.
l_s_msg-probclass = pu_probclass.
l_s_msg-context-value = pu_context.
GET TIME STAMP FIELD l_s_msg-time_stmp.
* add this message to log file
* (I_LOG_HANDLE is not specified, we want to add to the default log.
* If it does not exist we do not care =>EXCEPTIONS log_not_found = 0)
CALL FUNCTION 'BAL_LOG_MSG_ADD'
EXPORTING
i_log_handle = l_log_handle
i_s_msg = l_s_msg
EXCEPTIONS
log_not_found = 0
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
4. Save Log
CALL FUNCTION 'BAL_DB_SAVE'
EXPORTING
i_t_log_handle = p_t_log_handle
EXCEPTIONS
log_not_found = 1
save_not_allowed = 2
numbering_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
I hope it will helps.
Please remember to reward points if the answer is useful, and to close the post when your problem is solved
Regards, Manuel -
Hai All,
i'm new in abap programming.
Currectly i facing a problem in customizing program which is i need to debug it. can anyone guide me on it? if possible pls give me some useful link in abap.
Thank you so much...............Hi Jee Jee,
Please reward points if helpful. Good luck and welcome to the world of abap!
Check out the following links for how to debug your program.
This link is a <b>demo</b> on how to debug your program :
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9cbb7716-0a01-0010-58b1-a2ddd8361ac0
<b>other links on debugging :</b>http://www.sap-img.com/abap/testing-and-debugging-abap-codes-functions.htm
http://www.sap-basis-abap.com/sapab002.htm -
Combo of T61 and customer support problems
My main problem is that my T61 freezes up. It came with a 2 gig ram, sbbb Intel core 2 duo t7500 processor, 1 gig turbo memory window's ultimate 32 bit os and an 80 gig hard drive. This problem has been going on intermittently (odd) since I received the laptop brand new. I may or may not be able to move the cursor over the screen when it is frozen. It does not high light anything, control-alt-delete does not work, nothing responds. I have to manually hold down the power button to turn the system off.
The different things it has done, and not all during the same occurrence: blue screen with white writing, black screen with white writing, black screen oxc 000000f-selected entry could not be loaded because application is missing or corrupt, the memory was dumped (I had used rescue and recovery backup disks then because I did not know if something was corrupt in the original software that came loaded on it), sometimes it checks the c-drive after being manually shut down, sometimes it does not, problem with window's registry (only did that maybe twice), and corrected master file table, corrected bit map (after checking c). Sometimes it freezes and gives no error messages during restart. I do not have anything loaded on this system that is not compatible with vista nor anything that exceeds the ram.
When I had to use my rescue and recovery disks because everything crashed, I called tech support. They told me I needed to update my drivers-especially my video driver. I tried to tell them that I had been going to the lenovo website for driver updates, using pc doc, updating bios, doing a registry cleanup, defraging the hd, and of course window's updates. So he gave me a link on lenovo's website for another update. During that call, I told the guy that the recovery disks that came with the laptop loaded XP on my system. He sent me out vista recovery disks-vista business, not ultimate, and it was freezing up on vista and xp-no matter what program I was using. The next time I called, lenovo had my computer shipped back and replaced the corrupt 2 gig ram. It came back with the same software it left with, so I know my hard drive had not been wiped. On the third call I was told to update my drivers, check the hard drive using bios, that it was my web browser, remove the battery.... By this time I was wondering about technical service which leads me to my other issue.
I called the month after my warranty ran out, because I thought I had an established history of problems with this $1600+ laptop that has not worked right, and I was told that the warranty had run out, they would not honor it, records after 30 days were wiped-so there went my established history. Now someone please tell me why a computer company would not keep records of customers warranty work requests? Especially during the warranty period. I was then given the number to out of warranty claims who told me it was out of warranty (duh) and she gave me the number to entitlement. They called me the next day, which was nice but unfortunately I was not expecting their call and did not have all my info available. Entitlement told me that someone from tech support would call me within the hour. My computer proceeded to freeze up-so I left it frozen while waiting for tech support to call. They did not so I called them, was told my warranty was out of date and I was transferred to another number. Now this entire time I had been polite in my requests and conversations, my family had even alerted them to a billing error that would have caused another customer some problems. The tech I was transferred to was extremely rude the entire time. I was not given the opportunity to explain my situation-which was what entitlement said the call would be about. I requested mediation, he told me someone would call me within two days, then he proceeded to hang up on me. No one has called.
I would appreciate some assistance, in my computer problems and how to get in touch with the right person about customer service. Thank you.obviously you have suffered a lot with the laptop os not working properly, have you tried to disable the turbo memory, sometimes that cause alot of trouble.
Regards,
Jin Li
May this year, be the year of 'DO'!
I am a volunteer, and not a paid staff of Lenovo or Microsoft
Maybe you are looking for
-
Problem with form after registering in applications
Hi all,i have developed a new form using template.fmb which i got from AU_TOP.I developed the new form from form builder 10g and registered in applications.Now,when i see my form in applications..there are somethings missing like, 1)Every form in Ora
-
Hi , When is do a newfs on a partition the superblock is replicated in all the cylinder groups. By default the superblocks are at 16 and 32 (the first cylinder group) sectors. The other offsets are given during creating a newfs or by using newfs -Nv.
-
Itunes freezes when I try to sync music to my iphone
I need help
-
Making eyes sharp color pop????
I know this has to have been covered here before. I am new to post processing and just bought PSE7 and Barbara's book. I will continue looking here and through the book but in the mean time can anyone help me out with this? Like I said... I am new. I
-
Reformatting External Hard Drive Without Losing Files
I recently switched from a crashed HP to a Macbook and am trying to reformat my external hard drive, but it looks like every option requires me to delete the files on my hard drive. Is there a way to avoid this? I'm a fitness instructor and ALL of my