is this complete data declaration part of your code. if not can u post your complete data declaration part of the code?
types error
Re: how to read tab delimited text file line by line in internal table????
hello Vivek,
This program is exactly meet my requirement.But my loading file is txt file and having 9 columns.
My purpose i want to maintain historic data in a table.i will upload daily in cg3z with daily date.
I am attaching the file which i need to load in application server.
and everyday minimum record is 200000.
can you please help me out?
I am new to SAP ABAP.I am really confused in internal table and structure.
Thanks
Unresolved conflict between enhancement implementations
Hello Experts,
I have created an Implementation ZSD_PRICING_IMP2 of the ENHANCEMENT-SECTION PREISFINDUNG_06 SPOTS ES_SAPLV60A. This was made in include program LV60AA60. Now, when I perform a syntax check the system is giving me a warning message 'There is an unresolved conflict between enhancement "OI0_COMMON_SAPLV60A" and enhancement "ZSD_PRICING_IMP2". Does anyone know the meaning of this error? Also I noticed that the new enhancement implementation is not getting executed.
Re: Function Module Question-Using ranges for select in F.M or any other option
Ok I solved it myself...and what I think is the question should have been available for experts to give there opinion as the moderator was not able to understand the question and marked it as a basic question.
Thanks
Bhanu malik
Re: types error
There is nothing syntactically wrong with your code. Therefore I am locking this thread.
Re: BAPI Condition value multiplying by 10?
pass the same currency field in conditions_in & condition_inx
manoranjan
Re: IDOC (Outbound and Inbound both) needs to be triggered in same system
Hello Shaik,
I need to achieve this using IDOC since we can reprocess it easily.
Hope you understand the benefits of IDOC.
Regards,
Rahul
Re: IDOC - ACC_DOCUMENT
Hello Abie,
You can use below transaction codes.
BD87 - Status Monitor For ALE Message
WE05 - IDOC List
WE09 - IDOC Search For Business Content
Regards,
Rahul
VC_I_GET_CONFIGURATION_IBASE return value issue
Hi Friends
Right now I am using function module to fetch configuration value from IBASE.
When I execute the program, sometime its returning wrong value for some fields( In few scenarios).
For Example : We have one Characteristics(DOWNLOAD). In IBASE level the value "YES" assigned against DOWNLOAD but when I execute the report
its returning value "NO"against that serial number.I am not sure, why its returning wrong value.
Is there anything we need to activate or update to fetch right value.Suggestion will be appreciated.
Thanks
Gowrishankar
Table protection for entire table in loop
Hi guys,
I have a problem with page protection.
I have a structure like this (pic also attached)
LOOP
-- TABLE
---- HEADER
------ LINE1
---- MAIN
------ LINE2
---- FOOTER
------ LINE3
It displays a table, that has a table within.
My problem is that I cannot give page protection for the entire table. If the table in the next loop does not fit into the page, than I would like to put the whole table to the next page. I tried to put the whole table into a folder (page protection gets greyed out), and tried page protection with smart styles but none of these worked. Do I have to design my table display a different way?
Thanks for every help,
David.
Re: Page Break in a smartforms
Page break is happening now correctly.
But the problem now is I created a line type to disaply some text on the top of the table data.
I created a header and trying to display the data from the work area .
but it is not printing any thing at first page break it is able to get some text but for first page and other than 2nd page the text is not displaying.
Re: String Search operation Inputs required
Thanks Arindam for your time and help. This works and i am trying to use abap objects to perform this, any inputs on this will be helpful.
Re: String Search operation Inputs required
Hi Raja,
Thanks for your time and responding to my request. My requirement is to look at the data in a db table having such inconistencies as per the functionality this field is supposed to have full values and shouldnt have any leading or trailing spaces. pls let me know for any further inputs on this.
Re: String Search operation Inputs required
Welcome Just a query are you just trying to get the count of such entries can you elaborate a bit more the steps you are doing at present.
Cheers,
Arindam
XLSX and XLS not opening after attaching to order
Hi SAP Experts ,
I am trying to attach the Excel file to SAP work order and its getting attached. But not opening properly.
I am able to attach PDF and open it fine with no issues . Where am i going wrong ? What should i check for the XLS file and XLSX file to open properly.
Please suggest.
Here is the test code snippet .
REPORT z_xls_attach.
PARAMETERS: p_key TYPE swo_typeid OBLIGATORY default '000060129553',
p_type TYPE swo_objtyp OBLIGATORY default 'BUS2088',
p_file TYPE string OBLIGATORY default '\\192.168.1.137\AMR\Inbound\VS_test.xlsx' lower case,
p_desc TYPE so_obj_des OBLIGATORY default 'VS_xlsx'.
DATA: ls_fol_id TYPE soodk,
ls_obj_id TYPE soodk,
ls_obj_data TYPE sood1,
ls_folmem_k TYPE sofmk,
ls_note TYPE borident,
ls_object TYPE borident,
lv_ep_note TYPE borident-objkey,
* lv_offset TYPE i,
lv_lines TYPE i,
lv_filename TYPE c LENGTH 100, " file name and ext
lv_extension TYPE c LENGTH 12."4. " extension only
DATA: it_objhead TYPE STANDARD TABLE OF soli,
it_content LIKE STANDARD TABLE OF soli,
wa_content LIKE soli.
data:it_contentx LIKE STANDARD TABLE OF solix,
wa_contentx LIKE solix,
wa_SOLI TYPE SOLI.
ls_object-objkey = p_key.
ls_object-objtype = p_type.
TRY.
OPEN DATASET p_file FOR INPUT IN BINARY MODE.
IF SY-SUBRC NE 0.
MESSAGE 'No file available' TYPE 'I'.
LEAVE LIST-PROCESSING.
ENDIF.
WHILE sy-subrc = 0.
READ DATASET p_file INTO wa_content.
APPEND wa_content TO it_content.
ENDWHILE.
CLOSE DATASET p_file.
CATCH cx_sy_file_access_error.
MESSAGE 'Error reading file' TYPE 'E'.
ENDTRY.
CALL FUNCTION 'SO_CONVERT_CONTENTS_BIN'
EXPORTING
it_contents_bin = it_content[]
IMPORTING
et_contents_bin = it_content[].
CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
EXPORTING
region = 'B'
IMPORTING
folder_id = ls_fol_id
EXCEPTIONS
OTHERS = 1.
* Get file name and extension
CALL FUNCTION 'CH_SPLIT_FILENAME'
EXPORTING
complete_filename = p_file
IMPORTING
extension = lv_extension
name_with_ext = lv_filename
EXCEPTIONS
invalid_drive = 1
invalid_path = 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.
ls_obj_data-objsns = 'O'.
ls_obj_data-objla = sy-langu.
ls_obj_data-objdes = p_desc.
*lv_offset = STRLEN( p_file ) - 3.
*ls_obj_data-file_ext = p_file+lv_offset(3).
ls_obj_data-file_ext = lv_extension.
*ls_obj_data-objlen = LINES( it_content ) * 255.
CLEAR wa_content.
DESCRIBE TABLE it_content LINES lv_lines.
READ TABLE it_content INTO wa_content INDEX lv_lines.
ls_obj_data-objlen = ( lv_lines - 1 ) * 255 + strlen( wa_SOLI ).
* Object header
CLEAR wa_content.
wa_content = '&SO_FORMAT=BIN'.
APPEND wa_content TO it_objhead.
CLEAR wa_content.
CONCATENATE '&SO_FILENAME=' lv_filename INTO wa_content.
APPEND wa_content TO it_objhead.
CALL FUNCTION 'SO_OBJECT_INSERT'
EXPORTING
folder_id = ls_fol_id
object_type = 'EXT'
object_hd_change = ls_obj_data
IMPORTING
object_id = ls_obj_id
TABLES
objhead = it_objhead
objcont = it_content
EXCEPTIONS
active_user_not_exist = 35
folder_not_exist = 6
object_type_not_exist = 17
owner_not_exist = 22
parameter_error = 23
OTHERS = 1000.
IF sy-subrc = 0 AND ls_object-objkey IS NOT INITIAL.
ls_folmem_k-foltp = ls_fol_id-objtp.
ls_folmem_k-folyr = ls_fol_id-objyr.
ls_folmem_k-folno = ls_fol_id-objno.
ls_folmem_k-doctp = ls_obj_id-objtp.
ls_folmem_k-docyr = ls_obj_id-objyr.
ls_folmem_k-docno = ls_obj_id-objno.
lv_ep_note = ls_folmem_k.
ls_note-objtype = 'MESSAGE'.
ls_note-objkey = lv_ep_note.
CALL FUNCTION 'BINARY_RELATION_CREATE_COMMIT'
EXPORTING
obj_rolea = ls_object
obj_roleb = ls_note
relationtype = 'ATTA'
EXCEPTIONS
OTHERS = 1.
ELSE.
MESSAGE 'Not OK' TYPE 'I'.
RETURN.
ENDIF.
IF sy-subrc = 0.
MESSAGE 'OK' TYPE 'I'.
ELSE.
MESSAGE 'Not OK' TYPE 'I'.
ENDIF.
Re: Passing Data from ABAP to Excel then back to ABAP
Hi Ronnie,
we too have a similar requirement where any edits in excel, should be updated in abap tables upon clicking on single click on SAVE.
Kindly share if you could get a solution in SAP for this.
Warm regards,
Aastha
data type F
Hi,
Can some explain to me why below result is 9.2249999999999999E-01, not 9.225E-01?
DATA: l_calc_base TYPE f.
l_calc_base = ( 2008.00 - 163.00) / 2000.00.
Re: problem with the cockpit in PP module
Hi Hemant,
I am reactivating this thread after 6 years,, but I too have similar requirement.....!!!!!!!!!
Have you been able to do it ?
Any other ideas, which can help me to enhance Cockpit layout is also welcomed.....!!!!!!!!!
Thanking You All.
Re: data type F
Hi
Here is what it says in ABAP documentation.
- Floating point numbers - type F
The value range of type F numbers is 1x10**-307 to 1x10**308 for positive and negative numbers, including 0 (zero). The accuracy range is approximately 15 decimals, depending on the floating point arithmetic of the hardware platform. Since type F data is internally converted to a binary system, rounding errors can occur. Although the ABAP processor tries to minimize these effects, you should not use type F data if high accuracy is required. Instead, use type P data.
It clearly mentions that the accuracy when using type F is appoximately 15 decimals.
Regards,
Philip.
Re: what is meaning of SE in se38
Hi All,
Interesting thread but I still could not get any reasonable answer .....!!!!!!!
But I liked the thread .........!!!!!!!!
Thanking You All.