Errors in abap code!!
Hi gurus,
iam getting errors like
1) l_biw_marc_smatnr is unknown..
2) l_tabix is unkown ..etc..
code is :
TABLES: BIW_MARC_S.
DATA: l_biw_marc_s LIKE biw_marc_s,
v_zzstprs LIKE mbew-stprs.
CASE i_datasource.
WHEN '0MAT_PLANT_ATTR'(001).
LOOP AT i_t_data INTO l_biw_marc_s.
l_tabix = sy-tabix.
clear v_zzstprs.
SELECT SINGLE stprs FROM mbew INTO v_zzstprs
where matnr = l_biw_marc_smatnr and
bwkey = l_biw_marc_s WERKS.
IF sy-subrc = 0.
l_biw_marc_s-zzstprs = v_zzstprs.
ENDIF.
MODIFY i_t_data FROM l_biw_mvke_s INDEX l_tabix.
ENDLOOP.
ENDCASE.
pls help me out!!
reply shall be appriciated! as iam not technical bw guy!!
Regards,
Jay
Hi,
add a statement
data: l_tabix type i.
to your code. That should solve one error. The other one might be a spelling issue. Check if you spelled it correctly in your code.
regards
Siggi
Similar Messages
-
Error in ABAP code whield efining structures
Hello,
I am getting following error when I run ABAP code.
Tables: ZROLE_OWNER, ZROLEMAP, AGR_1251, AGR_USERS.
DATA: BEGIN OF I_ROLE occurs 0,
ROLE LIKE ZROLE_OWNER-ROLE,
END OF I_ROLE.
DATA: BEGIN OF I_RATT occurs 0,
ROLENAME LIKE AGR_1251-AGR_NAME,
OBJECT LIKE AGR_1251-OBJECT,
FIELD LIKE AGR_1251-FIELD,
LOW LIKE AGR_1251-LOW,
HIGH LIKE AGR_1251-HIGH,
END OF I_RATT.
DATA: WA_RATT LIKE I_RATT occurs 0.
SELECT ROLE from ZROLE_OWNER into table I_ROLE
where SFLAG = ''.
LOOP AT I_ROLE.
*This will append all the values for above condition in WA-RATT.
SELECT AGR_NAME OBJECT FIELD LOW HIGH FROM AGR_1251
INTO TABLE WA_RATT
WHERE AGR_NAME = I_ROLE-ROLE.
APPEND WA_RATT TO I_RATT.
ENDLOOP.
I am getting error that WA_RATT cannot be converted to line type I_RATT.hi,
Tables: ZROLE_OWNER, ZROLEMAP, AGR_1251, AGR_USERS.
DATA: BEGIN OF I_ROLE occurs 0,
ROLE LIKE ZROLE_OWNER-ROLE,
END OF I_ROLE.
DATA: BEGIN OF I_RATT occurs 0,
ROLENAME LIKE AGR_1251-AGR_NAME,
OBJECT LIKE AGR_1251-OBJECT,
FIELD LIKE AGR_1251-FIELD,
LOW LIKE AGR_1251-LOW,
HIGH LIKE AGR_1251-HIGH,
END OF I_RATT.
DATA: WA_RATT LIKE line of I_RATT .
SELECT ROLE from ZROLE_OWNER into table I_ROLE
where SFLAG = ''.
LOOP AT I_ROLE.
*This will append all the values for above condition in WA-RATT.
SELECT AGR_NAME OBJECT FIELD LOW HIGH FROM AGR_1251
INTO WA_RATT
up to 1 rows
WHERE AGR_NAME = I_ROLE-ROLE.
endselect.
APPEND WA_RATT TO I_RATT.
ENDLOOP.
Thanks,
Rajinikanth. -
Error in ABAP code generation?
Hi,
I am using OWB 10.1 to generate ABAP code for SAP-Data-Extraction. For extracting date values there are two APAB lines which (want to) produce one line in the result SQLLDR-Script. ABAP will accept only around 73 characters per line and this is the reason for the two lines.
But ABAP does not accept a line break inside a string and thus this code runs into an ABAP-error.
This all seems to be standard - has anyone a solution?
generated ABAP-lines:
Line1: TRANSFER ',ERDAT_DATUM_AN_DEM_DER_SATZ_HI DATE ''yyyymmdd'' NULLIF
Line2: ERDAT_DATUM_AN_DEM_DER_SATZ_HI=''00000000''' TO DATAFILENAME.
many thanksHello Jean-Pierre,
many thanks for your answer. Not the expected solution but it works. Another solution we found is to put an ampersand behind the first line, which tells ABAP that this is a line break. But also here manually work is necessary and also changing generated code.
Cheers
Stefan -
LKM SAP BW to Oracle (SQLLDR) generates sintax error in ABAP code.
Hi Experts,
We are installing a SAP BW KM's in ODI 11g.
Actually, we are able to make reverse ingeneering succesfully.
Now we want to use the LKM in order to extract SAP data.
The KM fails, in step Generate ABAP Code. The code is uploaded to SAP system but with sintaxis errors.
That's the beginning of the SAPAbapExecuteOpenTool_8001_7001.log.
+##################################################+
+############ Open Tool Logger ####################+
+##################################################+
+############ Upload value: 1+
+############ Execute value: 1+
+############ BASE RKM FLAG: 0+
+############ ZRFC_RUN_INSTALL: 1+
+############ Abap Function Name: ZODI_8001_7001+
+############ Sap Host Name: XXXXXXXX+
+############ Sap User Name: XXXX+
+############ Sap password: ********+
+############ Sap Client: 100+
+############ Sap language: ES+
+############ Sap system no: 00+
+############ Sap Connection Pool Name: SAP_ODI_LKM_POOL_GLOBAL+
+############ Sap Connection Pool Size: 10+
+############ Sap Function group name: ZODIBW_LKM_FGRP+
+############ File Delimiter:+
+############ File Name: ZODI_8001_7001.txt+
+############ FTP Host: XXXXXXXXX+
+############ FTP User: ftpbi+
+############ FTP Password: ********+
+############ FTP Passive Mode: 1+
+############ FTP Transfer Time out: 100000+
+############ User abap parameter names: IV_DELIMITER,CHAR1;IV_FILENAME,CHAR255;IV_USER,CHAR35;IV_PWD,CHAR35;IV_HOST,CHAR35;IV_HASHVALUE,CHAR35;IV_PATH,CHAR35;IV_REQUID_L,RSSID;IV_REQUID_H,RSSID+
+############ Abap rfc table parameters: RETURN,BAPIRETURN;ET_FILE_RETURN,BAPIRET2+
+############ Log File Name: /tmp/SAPAbapExecuteOpenTool_8001_7001.log+
+############ OpenHub Path: /tmp/+
+############ Delta Extraction First Request ID : 0+
+############ Delta Extraction Last Request ID : 0+
+############ SAP Development Class : ZODIBW_PCKG+
+############ Max Row Count :+
+############ Fetch Batch Size :+
+############ Hash Value Marker: HVM+
+############ Generated Program:+
*** ODS DSO extraction
TYPES: BEGIN OF ty_final,
+/BIC/AZOFI_UTE00_/BIC/ZFI_SOCOR+
TYPE
+/BIC/AZOFI_UTE00-/BIC/ZFI_SOCOR,+
+/BIC/AZOFI_UTE00_SOURSYSTEM+
TYPE
+/BIC/AZOFI_UTE00-SOURSYSTEM,+
END OF ty_final.
In the SAP GUI shows a sintaxis error.
Functions Module ZODI_8001_7001. line 25
The name "/BIC/AZOFI_UTE00_/BIC/ZFI_SOCOR" is longer that allowed.
+30 characters.+
Really the TYPE "/BIC/AZOFI_UTE00_/BIC/ZFI_SOCOR" has 31 characters.
The sufix "/BIC/" is the "NAMESPACE", a SAP grouping concept.
AZOFI_UTE00 is a table name.
ZFI_SOCOR is a column name.
Are this sufix correct in the APAP code?
Has anyone had that problem?
Any comment will be wellcome.
Thank's in advance.Hi Somchai,
r U able to resolve ur issue ..........i'm also struck there at the same point.
I am using shared folder for file transfer and my error message is
java.lang.RuntimeException: Error occured in open tool execute method...Error in executing ABAP program...Error in executing ABAP program...Error occurred when creating dataset\\<hostname>\bi-interface$\ZODI_11001_12001_GLOBAL.txt
Thanks.
Edited by: Drona on Mar 26, 2012 7:25 AM -
Error in Abap code - Unknown column name
Hi
I have this error in my code.
Unknown column name "SUM(EKBE-MENGE)" field list. field list. field
My code
*Select sum(ekbe-menge)
into MCSTRUCT-ZQuant
from ekbe*
How do I resolve this.
thanksHi,
Try the following statement:
Select sum( menge )
into MCSTRUCT-ZQuant
from ekbe.
hope it helps...
regards,
Raju -
Error in Abap code when combining data from two tables
Hi,
I got error in my code when i try to select data based on two tables
error message Unknown column name "(" field list. field list. field list. field list.
select ( WLK1~ARTNR )
into ZOXE1D0041-ZZPROMO
from WLK1 INNER JOIN T001W
ON WLK1FILIA = T001WKUNNR.
where WLK1-PFLKN NE 'P' AND
WLK1-QUELL NE '2'.
Table 1 WLK1
ARTNR FILIA PFLKN QUELL
001 C001 P 2
002 C001 A 1
Table 2 T001W
KUNNR WERKS
C001 P001
My requirement is to extract from article number from table WLK1 where the customer number (FILIA) matches with Customer number from (T001W) and plant (WERKS).
In conclusion I like to have this only this row
ARTNR FILIA PFLKN QUELL
002 C001 A 1Hi
You need to append every article number after each select is performed
is this an intermal table ZOXE1D0041 with header line ? if yes
then do this way
select WLK1~ARTNR
into ZZARTICLE
from WLK1 INNER JOIN T001W
ON WLK1FILIA = T001WKUNNR
where WLK1~PFLKN NE 'P' AND
WLK1~PFLKN NE 'S' AND
WLK1~QUELL NE '2'.
ZOXE1D0041-ZZLISTARTICLE = ZZARTICLE.
Append ZOXE1D0041. " <edited>
endselect.
then ZOXE1D0041 will have all article numbers.
Edited by: Sonal Patel on Sep 5, 2009 10:27 AM -
Hi experts..
There is one one routine in BI which is written in ABAP..
When I try to compile that code.. it gives me following error :
E:Field "/BI0/APP_O0100" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement.
Can you please tell me what is the reason of this error.
Regards
Swati PhadtareHi,
This i think is because you have not activated the DSO 0PP_O01..... Please check in your AWB whether this object exits. If it exists then please activate this DSO again.
If it does not exist then please install it from your BI content.
If it exists and you need to find the related DB tables
Go to SE12
Give * PP_O01 * and press F4, If the DSO has been created you will get some search results.
From there please select the active table.
Regards,
Pramod
Edited by: Pramod Manjunath on Oct 6, 2008 3:39 PM -
Lead Creation Error thro ABAP Code
Hi CRM ABAP Experts,
I have written a code for lead creation by referring SDN Code. when i execute code , lead is created and transaction get saved in to system. but atlast one error comes. plz help me. when i pass testrun = 'X' then i am not getting error but lead trasaction is not created. and when i passedtestrun = blank then lead is created but gives below error.Below error i am facing.
Short text
An exception occurred that was not caught.
What happened?
The exception 'CX_OS_OBJECT_NOT_FOUND' 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_METHODCALL_PPF=============CP' has to be
terminated.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_OS_OBJECT_NOT_FOUND', was not
caught in
procedure "IF_MEDIUM_PPF~EXECUTE" "(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:
Could not find the referenced object with the OID
"00000000000000000000000000000000" (instance GUID) and
My Code is as follows
DATA: it_HEADER type standard table of BAPIBUS2000108_HEADER_INS.
DATA: wa_HEADER like line of it_HEADER.
DATA:it_ORGANISATION TYPE STANDARD TABLE OF BAPIBUS20001_ORGMAN_INS,
wa_ORGANISATION LIKE LINE OF it_ORGANISATION.
DATA: it_partner type table of BAPIBUS20001_PARTNER_INS.
DATA: wa_partner like line of it_partner.
DATA:HEADERX TYPE STANDARD TABLE OF BAPIBUS2000108_HEADER_INSX,
st_headerx TYPE bapibus2000108_header_insx,
PARTNERX TYPE STANDARD TABLE OF BAPIBUS20001_PARTNER_INSX,
st_partnerx TYPE bapibus20001_partner_insx,
i_orgx TYPE STANDARD TABLE OF BAPIBUS20001_ORGMAN_INSX,
st_orgx TYPE bapibus20001_orgman_insx,
i_save TYPE TABLE OF bapibus20001_object_id,
i_return TYPE TABLE OF bapiret2,
DATEX TYPE STANDARD TABLE OF BAPIBUS20001_APPOINTMENT_INSX.
DATA:i_itemx TYPE TABLE OF bapibus20001_item_insx,
i_item TYPE TABLE OF bapibus20001_item,
st_itemx TYPE bapibus20001_item_insx,
st_item TYPE bapibus20001_item,
i_schedulex TYPE TABLE OF bapibus20001_schedlinx,
i_schedule TYPE TABLE OF bapibus20001_schedlin,
st_schedulex TYPE bapibus20001_schedlinx,
st_schedule TYPE bapibus20001_schedlin.
DATA :c_x TYPE char01 VALUE 'X',
TESTRUN type BAPIFLAG-BAPIFLAG.
data i_input TYPE TABLE OF bapibus20001_input_fields.
data st_input TYPE bapibus20001_input_fields.
DATA:ORG_NO TYPE OBJEKTID,
PARTNER_NO1 TYPE BU_PARTNER,
CUST_BP TYPE BU_PARTNER,
SALE_OFF TYPE CRMT_SALES_ORG_RESP.
DATA:msg TYPE ZRETURN_ERROR.
DATA:w_item TYPE CRMT_ITEM_NO,
w_handle TYPE CRMT_HANDLE.
CLEAR:st_headerx.
st_headerx-handle = c_x.
st_headerx-process_type = c_x.
st_headerx-DESCR_LANGUAGE = c_x.
st_headerx-POSTING_DATE = c_x.
st_headerx-lead_type = c_x.
st_headerx-importance = c_x.
st_headerx-source = c_x.
APPEND st_headerx TO headerx.
CLEAR wa_header.
wa_HEADER-HANDLE = '0000000001'.
wa_HEADER-PROCESS_TYPE = 'ZCDL'.
wa_HEADER-DESCR_LANGUAGE = 'EN'.
wa_HEADER-POSTING_DATE = '20100603'.
wa_HEADER-IMPORTANCE = '5'.
wa_HEADER-SOURCE = '019'.
wa_HEADER-LEAD_TYPE = '0016'.
APPEND WA_HEADER TO IT_HEADER.
CLEAR:st_input.
st_input-ref_handle = '0000000001'.
st_input-ref_kind = 'A'.
st_input-objectname = 'ORDERADM_H'.
st_input-fieldname = 'PROCESS_TYPE'.
APPEND st_input TO i_input.
CLEAR st_input.
st_input-ref_handle = '0000000001'.
st_input-ref_kind = 'A'.
st_input-objectname = 'LEAD_H'.
st_input-fieldname = 'SOURCE'.
APPEND st_input TO i_input.
st_input-fieldname = 'IMPORTANCE'.
APPEND st_input TO i_input.
st_input-fieldname = 'LEAD_TYPE'.
APPEND st_input TO i_input.
*To fill the Organization X Structure
CLEAR:st_orgx.
st_orgx-ref_handle = c_x.
st_orgx-ref_kind = c_x.
st_orgx-dis_channel = c_x.
st_orgx-sales_org_resp = c_x.
APPEND st_orgx TO i_orgx.
*To fill the Organization Structure
CLEAR:wa_ORGANISATION.
wa_ORGANISATION-ref_handle = '0000000001'.
wa_ORGANISATION-ref_kind = 'A'.
wa_ORGANISATION-dis_channel = '01'.
wa_ORGANISATION-sales_org_resp = 'O 50000041'.
APPEND wa_ORGANISATION TO it_ORGANISATION.
*Fill input fields for Organization data
CLEAR st_input.
st_input-ref_handle = '0000000001'.
st_input-ref_kind = 'A'.
st_input-objectname = 'ORGMAN'.
st_input-fieldname = 'DIS_CHANNEL'.
APPEND st_input TO i_input.
st_input-fieldname = 'SALES_ORG'.
APPEND st_input TO i_input.
*To fill the Partner X Structure
st_partnerx-ref_handle = c_x.
st_partnerx-ref_kind = c_x.
st_partnerx-ref_partner_handle = c_x.
st_partnerx-kind_of_entry = c_x.
st_partnerx-partner_no = c_x.
st_partnerx-partner_fct = c_x.
st_partnerx-no_type = c_x.
st_partnerx-display_type = c_x.
st_partnerx-MAINPARTNER = c_x.
APPEND st_partnerx TO partnerx.
*To fill the Partner Structure
*CLEAR:wa_partner.
*wa_partner-ref_handle = '0000000001'.
*wa_partner-ref_kind = 'A'.
*wa_partner-ref_partner_handle = '0001'.
*wa_partner-kind_of_entry = 'C'. """""""A
*wa_partner-partner_no = '62563'.
*wa_partner-partner_fct = '00000022'.
*wa_partner-no_type = 'BP'.
*wa_partner-display_type = 'BP'.
*wa_partner-MAINPARTNER = 'X'.
*APPEND wa_partner TO it_partner.
CLEAR:wa_partner.
wa_partner-ref_handle = '0000000001'.
wa_partner-ref_kind = 'A'.
wa_partner-ref_partner_handle = '0001'.
wa_partner-kind_of_entry = 'C'. """""""A
wa_partner-partner_no = '62564'.
wa_partner-partner_fct = '00000021'.
wa_partner-no_type = 'BP'.
wa_partner-display_type = 'BP'.
wa_partner-MAINPARTNER = 'X'.
APPEND wa_partner TO it_partner.
CLEAR:wa_partner.
wa_partner-ref_handle = '0000000001'.
wa_partner-ref_kind = 'A'.
wa_partner-ref_partner_handle = '0001'.
wa_partner-kind_of_entry = 'C'. """"""""A
wa_partner-partner_no = '71024'.
wa_partner-partner_fct = 'ZCDLSM'.
wa_partner-no_type = 'BP'.
wa_partner-display_type = 'BP'.
wa_partner-MAINPARTNER = 'X'.
APPEND wa_partner TO it_partner.
*Fill input fields for Partner data
CLEAR st_input.
st_input-ref_handle = '0000000001'.
st_input-ref_kind = 'A'.
st_input-objectname = 'PARTNER'.
*st_input-logical_key = w_logickey_partner.
st_input-fieldname = 'DISPLAY_TYPE'.
APPEND st_input TO i_input.
st_input-fieldname = 'KIND_OF_ENTRY'.
APPEND st_input TO i_input.
st_input-fieldname = 'NO_TYPE'.
APPEND st_input TO i_input.
st_input-fieldname = 'PARTNER_FCT'.
APPEND st_input TO i_input.
st_input-fieldname = 'PARTNER_NO'.
APPEND st_input TO i_input.
st_input-fieldname = 'MAINPARTNER'.
APPEND st_input TO i_input.
*To fill the Item X Structure
st_itemx-handle = c_x.
st_itemx-header_handle = c_x.
st_itemx-ordered_prod = c_x.
st_itemx-number_int = c_x.
st_item-mode = c_x.
APPEND st_itemx TO i_itemx.
*To fill Schedule line X Structure
st_schedulex-item_handle = c_x.
st_schedulex-handle = c_x.
st_schedulex-quantity = c_x.
st_schedulex-logical_key = c_x.
APPEND st_schedulex TO i_schedulex.
CLEAR: w_item, w_handle.
w_item = '0000000010'.
*To fill the Item Structure
w_handle = 1.
st_item-handle = w_handle.
st_item-header_handle = '0000000001'.
st_item-ordered_prod = '400000120' .
st_item-number_int = w_item.
st_item-mode = 'A'.
APPEND st_item TO i_item.
*To fill Schedule line Structure
DATA:qty TYPE CRMT_SCHEDLIN_QUAN VALUE '1'.
st_schedule-item_handle = w_handle.
st_schedule-quantity = qty.
APPEND st_schedule TO i_schedule.
*Fill input fields for Item data
CLEAR st_input.
st_input-ref_handle = w_handle.
st_input-ref_kind = 'B'.
st_input-objectname = 'ORDERADM_I'.
st_input-fieldname = 'MODE'.
APPEND st_input TO i_input.
st_input-fieldname = 'NUMBER_INT'.
APPEND st_input TO i_input.
st_input-fieldname = 'ORDERED_PROD'.
APPEND st_input TO i_input.
Fill input fields for schedule line data
CLEAR st_input.
st_input-ref_handle = w_handle.
st_input-ref_kind = 'B'.
st_input-objectname = 'SCHEDLIN'.
st_input-fieldname = 'LOGICAL_KEY'.
APPEND st_input TO i_input.
st_input-fieldname = 'QUANTITY'.
APPEND st_input TO i_input.
CLEAR testrun.
*Testrun = 'X'.
CALL FUNCTION 'BAPI_LEAD_CREATEMULTI'
EXPORTING
TESTRUN = Testrun
TABLES
HEADERX = headerx
PARTNERX = partnerx
ORGANISATIONX = i_orgx
itemx = i_itemx
sched_linx = i_schedulex
HEADER = it_header
ORGANISATION = it_ORGANISATION
PARTNER = it_partner
item = i_item
SCHED_LIN = i_schedule
INPUT_FIELDS = i_input
RETURN = i_return
SAVED_PROCESS = i_save .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'x'.
IF SY-SUBRC = 0.
IF sy-subrc = 0.
ENDIF.
ENDIF.Hi,
Look at the post. No one will be able to understand anything out of this. Kindly Repaste code using markup.
Regards,
Harsh.
Edited by: Harsh Saxena on Aug 28, 2010 11:40 AM -
Hello,
I have the below code which gives the error message "In the OO context either an INTO or an ASSIGNING specification or the addition "TRANSPORTING NO FIELDS" must be used. addition "TRANSPORTING NO FIELDS" must be used."
Any suggestion is appreciated.
*-- CODE:
DATA: it_dates TYPE STANDARD TABLE OF /BIC/AZDDINVDT00,
hold_month(2) type c,
hold_day(2) type c,
hold_year(4) type c,
hold_date TYPE /BIC/OIZOCBEGDAT.
CLEAR : it_dates.
SELECT *
FROM /BIC/AZDDINVDT00
INTO TABLE it_dates
WHERE /BIC/ZOCDLDTYP = 'B'.
CHECK sy-subrc = 0.
read table it_dates index 1.
hold_month = it_dates-/bic/zocbegdat+4(2).
hold_day = it_dates-/bic/zocbegdat+6(2).
hold_year = it_dates-/bic/zocbegdat+0(4).
concatenate hold_year hold_month hold_day into hold_date.
<source_fields>-/BIC/ZOCBEGDAT = hold_date.}Jerry,
I made the changes but still having a small problem running the code. Below is my code & the error that it displays.
DATA: it_dates TYPE STANDARD TABLE OF /BIC/AZDDINVDT00,
wa_dates TYPE /BIC/AZDDINVDT00,
hold_month(2) type c,
hold_day(2) type c,
hold_year(4) type c,
hold_date TYPE /BIC/OIZOCBEGDAT.
CLEAR : it_dates.
SELECT *
FROM /BIC/AZDDINVDT00
INTO TABLE it_dates
WHERE /BIC/ZOCDLDTYP = 'B'.
CHECK sy-subrc = 0.
read table it_dates INTO wa_dates index 1.
hold_month = it_dates-/bic/zocbegdat+4(2).
hold_day = it_dates-/bic/zocbegdat+6(2).
hold_year = it_dates-/bic/zocbegdat+0(4).
concatenate hold_year hold_month hold_day into hold_date.
<source_fields>-/BIC/ZOCBEGDAT = hold_date.
Error is: "IT_DATES" is a table without a header line and therefore has no component called "/BIC/ZOCBEGDAT".
Please suggest.
Thanks. -
Hello all,
I am getting error in ABAP code .
The error is:Field "0" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
I have statement as calmonth = sy-datum + 0(6).
Any ideas are always welcome
Thanks,
JBThanks every body.
eliminating blanks worked.
AS I am new to ABAP,I have one more error saying
Unable to interpret "IT_YEAR". Possible causes of error: Incorrect spelling or comma error.The error occured at the staement:
<b>read it_year with key /BIC/LESS = calmonth+0(4) binary search.</b>
IT_YEAR is an internal table
data: it_year like /BIC/PZ_JB occurs 0 with header line.
Any ideas!!
JB -
Error in determining Paper Format for Printout triggering from ABAP Code
Hi Experts,
I am trying to trigger a printout from my ABAP code using "NEW-PAGE PRINT ON ...... NEW-PAGE PRINT OFF" statement.
I am passing the Print Parameters using the FM "GET_PRINT_PARAMETERS" as below:
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = ls_options-tddest
copies = 1
list_name = 'Notification'
list_text = 'ERROR NOTIFICATION'
immediately = 'X'
release = 'X'
new_list_id = ' '
* expiration =
line_size = 79
line_count = 23
layout = 'X_65_80'
sap_cover_page = ' '
receiver = 'SAP*'
department = 'System'
no_dialog = 'X'
IMPORTING
out_parameters = lv_params.
But I am facing a problem. Though I am passing X_65_80 to the LAYOUT in the Function Module, it is trying to print in LETTER format. But the specified printer as the printer supports only A4 paper format and as a result, I am not getting any printout.
Kindly help me with your suggestions to resolve this.
Thanks in advance.
Regards,
KeerthiHi,
I just found that this problem is even stranger.
I am able to print the said message on my local printer but when I try to print the same message on a different printer located at a different location, the printout does not get triggered. I am not getting any error messages also in this case.
What could be the possible reason for this?
Kindly share your views/experience with me on this one.
Thank you.
Regards,
Keerthi -
HTTP Error with Status code 403 when using ABAP Server Proxies
Hi All,
I have been working on ABAP Client and Server proxies in my project. The weblogs by Ravikumar, Prateek Shah, Siva Maranani & VijayaKumari were very helpful and thank them all for just helpful and guiding postings.
Interfaces using Client proxies are working fine and have been tested successfully. But I'm facing bit problems with Server Proxies. The scenario is of File to SAP system via XI. Data is coming correct up to Technical routing in pipeline but at call adapter(for Server Proxy to SAP)in XI pipeline I receive Error:
HTTP response contains status code 403 with the description Business Server Page (BSP) Error Error when sending by HTTP (error code: 403, error text: Business Server Page (BSP) Error)
Previously I was receiving authentication and authorization related error of status code 401 and then in communication channel I replaced user profile with a user id having role SAP_XI_APPL_SERV_USER. The basis peron has created new user id with role SAP_XI_APPL_SERV_USER only and that I'm using. I've tried creating a HTTP destination with the created user id and in test connection too receive same error message.
Please help me out with your inputs and understanding on the topic.
Thanks and Best Regards
Prashant RajaniHi Prashant,
Please take a look at these threads..They deal with the same problem, and they have been resolved here.
BSP Authorization error
Service cannot be reached . error code 403 the reason forbiddn
403 Error when accessing the server
Hope your issue gets resolved.
cheers,
Prashanth
P.S Please mark helpful answers -
How find the ABAP code with Error message
Hi
How to find the ABAP Code for Error Message?
Example:
Error Message: ZF026.
Regards
Odaiah Pelley
Edited by: Odaiah Pelley on Aug 22, 2008 4:21 AMHi
Excellent Answer, I appreciate it.
My question is with Error Message ZF026.
How to find ABAP Code ?
If I go for SE91 I will get same message as if I am getting error message.It is no use.
Regards
Odaiah Pelleyu -
Error in the ABAP Code for Customer Exit Variable
Could you please update me what is the wrong with the below ABAP Code developed for Customer Exit Variable in BW
i created a Variable (ZVWKNO) of Customer Exit,Single Value ,Mandatory and Variable is ready for input
In CMOD i had written the below Code:
When 'ZVWKNO'.
DATA: WEEK(2) TYPE N,
WEEKNO(2) TYPE N.
IF i_step = 1.
l_st_date = SY-DATUM.
CALL FUNCTION 'DATE_GET_WEEK'
EXPORTING
DATE = l_st_date
IMPORTING
WEEK = l_fn_week.
CHECK sy-subrc = 0.
WEEK = l_fn_week+4(2).
If WEEK 0.
WEEKNO = WEEK - 1.
l_s_range-low = WEEKNO.
l_s_range-sign = k_sign_inclusive.
l_s_range-opt = k_option_equals.
APPEND l_s_range to e_t_range.
ENDIF.
ENDIF.
But when i execute the query the default value is not populated with Week-1 No in the variable screen
Please update me what went wrong
ThanksCase ZVWKNO. "write this with out comments
When '1'. "write the value that needs to equal with value in varaible ZVWKNO after when in sungle quotes
DATA: WEEK(2) TYPE N,
WEEKNO(2) TYPE N.
IF i_step = 1.
l_st_date = SY-DATUM.
CALL FUNCTION 'DATE_GET_WEEK'
EXPORTING
DATE = l_st_date
IMPORTING
WEEK = l_fn_week.
CHECK sy-subrc = 0.
WEEK = l_fn_week+4(2).
If WEEK 0. "check this Week Minimum is '01' and Maximum '52'
WEEKNO = WEEK - 1.
l_s_range-low = WEEKNO.
l_s_range-sign = k_sign_inclusive.
l_s_range-opt = k_option_equals.
APPEND l_s_range to e_t_range.
ENDIF.
ENDIF.
Prabhudas -
Routine (ABAP Code) in Transformation error
Hi Experts
Please correct the ABAP CODE written as Field routine in Transformations
Requirment
If ZB_AMT = '0.00'
then result should be '0.00'
If ZB_AMT <> '0.00' and
SOURCE_FIELDS-/BIC/ZB_TPE1 = 'AMOUNT'
the result should be
CONCATENATE '$' SOURCE_FIELDS-/BIC/ZB_AMT INTO RESULT.
If ZB_AMT <> '0.00' and
SOURCE_FIELDS-/BIC/ZB_TPE1 = 'PERCENTAGE'
the result should be
CONCATENATE SOURCE_FIELDS-/BIC/ZB_AMT '%' INTO RESULT.
The code below is not working as it should please update me where i went wrong
Source Fields
SOURCE_FIELDS-/BIC/ZB_AMT (CHAR)
SOURCE_FIELDS-/BIC/ZB_TPE1 (CHAR)
CODE
IF SOURCE_FIELDS-/BIC/ZB_AMT = '0.00'.
RESULT = '0.00'.
ELSE.
IF SOURCE_FIELDS-/BIC/ZB_TPE1 = 'AMOUNT' AND
SOURCE_FIELDS-/BIC/ZB_AMT <> '0.00'.
CONCATENATE '$' SOURCE_FIELDS-/BIC/ZBON_AMT INTO RESULT.
IF SOURCE_FIELDS-/BIC/ZB_TPE1 = 'PERCENTAGE' AND
SOURCE_FIELDS-/BIC/ZB_AMT <> '0.00'.
CONCATENATE SOURCE_FIELDS-/BIC/ZB_AMT '%' INTO RESULT.
ENDIF.
ENDIF.
ENDIF.Your logic will not work, if your first check on amount is 0.00 fails, the other checks fail as well. I am not sure of the requirement but..try this..
IF SOURCE_FIELDS-/BIC/ZB_TPE1 = 'AMOUNT' AND SOURCE_FIELDS-/BIC/ZB_AMT = '0.00'.
CONCATENATE '$' SOURCE_FIELDS-/BIC/ZBON_AMT INTO RESULT.
ELSEIF SOURCE_FIELDS-/BIC/ZB_TPE1 = 'PERCENTAGE' AND SOURCE_FIELDS-/BIC/ZB_AMT = '0.00'.
CONCATENATE SOURCE_FIELDS-/BIC/ZB_AMT '%' INTO RESULT.
ELSEIF SOURCE_FIELDS-/BIC/ZB_AMT = '0.00'.
RESULT = '0.00'.
ELSE.
Do nothing or throw any message
ENDIF.
Maybe you are looking for
-
IWeb 09 and Mountain Lion compatibility
Hi all, has anyone already tried to run iWeb 09 with Mountain Lion? Perfect compatibility? Thanks. Antonio
-
I'd like to create a view such this: select ivw.a from ( select ta.a from table_a ta where ta.c = :1 ) ivw How should I create the view object, and how should I pass the paramerers for it? I tried to use the setWhereClauseParam method of oracle.jbo.R
-
Cisco WCS guest user expires after few days
1) Hardware we are using: WCS version 6.0.196. WLC version 6.0 2) Configuration steps we carried out: We have created guest user using Lobby admin account having for accessing WLC which we are having in network. it works fine for some days but after
-
Do I have to download an app to be able to print from my I pad?
How do I set up my I pad to print ?
-
Recover email archives on DLTtapeIV
So, we have been asked to recover emails archived by a company that retired their Sun Netra T 1405 and StorEdge L280 some years ago. We have no monitor or keyboard but reached the login via terminal session, no problem there. All ok until we enter th