Error in PERFORM statement in SAPSCRIPT...
Hello Experts,
I am having an error in my code below:
SAPSCRIPT:
Begin of insertion DEVK940799 11/10/2008 DEL_HIDALGO
DEFINE <YC_NAME1& = ''.
DEFINE <YC_NAME2& = ''.
DEFINE <YC_STR_SUPPL1& = ''.
DEFINE <YC_STR_SUPPL2& = ''.
DEFINE <YC_STR_SUPPL3& = ''.
DEFINE <YC_POST_CODE1& = ''.
DEFINE <YC_CITY1& = ''.
DEFINE <YC_BEZEI& = ''.
DEFINE <YC_LAND1& = ''.
PERFORM GET_VENDOR_DETAILS IN PROGRAM Z9999RFI_Z2574FFI_RA
USING ®UH-LIFNR&
CHANGING <YC_NAME1&
CHANGING <YC_NAME2&
CHANGING <YC_STR_SUPPL1&
CHANGING <YC_STR_SUPPL2&
CHANGING <YC_STR_SUPPL3&
CHANGING <YC_POST_CODE1&
CHANGING <YC_CITY1&
CHANGING <YC_BEZEI&
CHANGING <YC_LAND1&
ENDPERFORM
<YC_NAME1& <YC_NAME2&
<YC_STR_SUPPL1&
<YC_STR_SUPPL2&
<YC_STR_SUPPL3&
<YC_POST_CODE1&
<YC_CITY1&
<YC_BEZEI&
<YC_LAND1&
End of insertion DEVK940799 11/10/2008 DEL_HIDALGO
PROGRAM:
*& Report Z9999RFI_Z2574FFI_RA
REPORT z9999rfi_z2574ffi_ra.
* Start of Selection event
START-OF-SELECTION.
*& Form get_vendor_details
* text
* -->IM_LIFNR text
* -->CH_NAME1 text
* -->CH_NAME2 text
* -->CH_STR_SUPPL1 text
* -->CH_STR_SUPPL2 text
* -->CH_STR_SUPPL3 text
* -->CH_POST_CODE1 text
* -->CH_CITY1 text
* -->CH_BEZEI text
* -->CH_LAND1 text
FORM get_vendor_details USING im_lifnr
CHANGING ch_name1 TYPE adrc-name1
ch_name2 TYPE adrc-name2
ch_str_suppl1 TYPE adrc-str_suppl1
ch_str_suppl2 TYPE adrc-str_suppl2
ch_str_suppl3 TYPE adrc-str_suppl3
ch_post_code1 TYPE adrc-post_code1
ch_city1 TYPE adrc-city1
ch_bezei TYPE bezei
ch_land1 TYPE t005-land1.
DATA: ltyc_adrnr TYPE lfa1-adrnr.
SELECT SINGLE adrnr
FROM lfa1
INTO ltyc_adrnr
WHERE lifnr = im_lifnr.
IF sy-subrc = 0.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = ltyc_adrnr
IMPORTING
output = ltyc_adrnr.
SELECT SINGLE name1 name2 str_suppl1
str_suppl2 str_suppl3 post_code1
city1
FROM adrc
INTO (ch_name1, ch_name2, ch_str_suppl1,
ch_str_suppl2, ch_str_suppl3, ch_post_code1,
ch_city1)
WHERE addrnumber = ltyc_adrnr.
ENDIF.
ENDFORM. "get_names
It says that there is an error in perform but they both have the same number of parameters.
What do you mean by "Is it ok to customize the standard program RFFOUS_C"? I think you only have to copy a standard SAPScript for checks (if there is any...) and modify it acc. to your requirements. In the system you can customize that the standard print program will call your Z... SAPScript.
On the other hand I believe that all variables you want to use in the SAPScript has to be defined in as global in the print program (except the ones, which you define in the script (with DEFINE))
Similar Messages
-
SYntax error - on Perform Statement
Hello friends,
I have a syntax error in the following code.
the error is The field "P_I_PA0000" is unknown, but there are the following fields
in the function module.
Any suggestions.
Thanks,
Raju.
PARAMETERS: ps_file1like rlgrap-filename " Incoming file 1
DEFAULT 'c:\HR\ZCNV0008.txt' LOWER CASE,
DATA: BEGIN OF i_pa0000 OCCURS 100.
INCLUDE STRUCTURE pa0000.
DATA: END OF i_pa0000.
PERFORM upload_local_file USING ps_file1
CHANGING i_pa0000[].
*& Form upload_local_file
text
-->P_PS_FILE1 text
<--P_I_PA0000 text
FORM upload_local_file USING p_ps_file1
CHANGING p_i_pa0000[].
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = p_ps_file1
filetype = 'ASC'
TABLES
data_tab = p_i_pa0000[]
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
ENDFORM. " upload_local_fileIf it doesn't work, why did you mark it as "solved"?
I think this is what you are trying to do:
PARAMETERS: ps_file1 LIKE rlgrap-filename " Incoming file 1
DEFAULT 'c:\HR\ZCNV0008.txt' LOWER CASE.
DATA: BEGIN OF i_pa0000 OCCURS 100.
INCLUDE STRUCTURE pa0000.
DATA: END OF i_pa0000.
PERFORM upload_local_file
TABLES i_pa0000
USING ps_file1.
*& Form upload_local_file
* text
FORM upload_local_file
TABLES p_i_pa0000
USING p_ps_file1.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = p_ps_file1
filetype = 'ASC'
TABLES
data_tab = p_i_pa0000
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
ENDFORM. " upload_local_file
Rob -
How to use perform statements in sap scripts
how to use perform statements in sap scripts . and pls send me one progam for this
thnaks
rajaHi Raja,
<b>PERFORM</b> key work is used to include subroutine in sapscript form...
But the processing is lttle bit different form the one we use in ABAP.
Here the paramters passed to form is stored in internal table of name-value table. there are two table one for inbound parameter and other for outbound parameters.
Check out the example below to see how this is used..
<b>Definition in the SAPscript form:</b>
/: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
/: USING &PAGE&
/: USING &NEXTPAGE&
/: CHANGING &BARCODE&
/: ENDPERFORM
/ &BARCODE&
<b>Coding of the calling ABAP program:</b>
REPORT QCJPERFO.
FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
OUT_PAR STRUCTURE ITCSY.
DATA: PAGNUM LIKE SY-TABIX, "page number
NEXTPAGE LIKE SY-TABIX. "number of next page
READ TABLE IN_PAR WITH KEY PAGE.
CHECK SY-SUBRC = 0.
PAGNUM = IN_PAR-VALUE.
READ TABLE IN_PAR WITH KEY NEXTPAGE.
CHECK SY-SUBRC = 0.
NEXTPAGE = IN_PAR-VALUE.
READ TABLE OUT_PAR WITH KEY BARCODE.
CHECK SY-SUBRC = 0.
IF PAGNUM = 1.
OUT_PAR-VALUE = |. "First page
ELSE.
OUT_PAR-VALUE = ||. "Next page
ENDIF.
IF NEXTPAGE = 0.
OUT_PAR-VALUE+2 = L. "Flag: last page
ENDIF.
MODIFY OUT_PAR INDEX SY-TABIX.
ENDFORM.
Hope this is clear to understand...
Enjoy SAP.
Pankaj Singh. -
HOW TO USE PERFORM STATEMENT IN SMARTFORMS
Hi,
Can anyone tell me how to use call subroutine in smartform?
Thanks & Regards,
Gauarv.Hi,
Hope this helps you..
You can use the PERFORM command to call an ABAP subroutine
(form) from
any program, subject to the normal ABAP runtime
authorization
checking. You can use such calls to subroutines for
carrying out
calculations, for obtaining data from the database that is
needed at
display or print time, for formatting data, and so on.
PERFORM commands, like all control commands, are executed
when a
document is formatted for display or printing.
Communication between a
subroutine that you call and the document is by way of
symbols whose
values are set in the subroutine.
The system does not execute the PERFORM command within
SAPscript
replace modules, such as TEXT_SYMBOL_REPLACE or
TEXT_INCLUDE_REPLACE.
The replace modules can only replace symbol values or
resolve include
texts, but not interpret SAPscript control commands.
Syntax in a form window:
/: PERFORM <form> IN PROGRAM <prog>
/: USING &INVAR1&
/: USING &INVAR2&
/: CHANGING &OUTVAR1&
/: CHANGING &OUTVAR2&
/: ENDPERFORM
INVAR1 and INVAR2 are variable symbols and may be of any of
the four
SAPscript symbol types.
OUTVAR1 and OUTVAR2 are local text symbols and must
therefore be
character strings.
The ABAP subroutine called via the command line stated
above must be
defined in the ABAP report prog as follows:
FORM <form> TABLES IN_TAB STRUCTURE ITCSY
OUT_TAB STRUCTURE ITCSY.
ENDFORM.
The values of the SAPscript symbols passed with /: USING...
are now
stored in the internal table IN_TAB . Note that the system
passes the
values as character string to the subroutine, since the
field Feld
VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR
80). See the
example below on how to access the variables.
The internal table OUT_TAB contains names and values of the
CHANGING
parameters in the PERFORM statement. These parameters are
local text
symbols, that is, character fields. See the example below
on how to
return the variables within the subroutine.
From within a SAPscript form, a subroutine GET_BARCODE in
the ABAP
program QCJPERFO is called. Then the simple barcode
contained there
('First page', 'Next page', 'Last page') is printed as
local variable
symbol. -
i am writing a stored procedure in which i have made use of if statement my requirement is that in the if statement if a
certain record exists then go inside the if condition otherwise else condition i am getting error
my SQL Statement is this
create or replace
PROCEDURE usp_addAppointment_Mst
parameter list
AS
pAppdetailsid number(10,0);
v_Appcode varchar(10);
begin
if exists(Select * from dr_slots Where SlotId = pSlotId and MaximumPatient = AllocatedPatient )then
Select v_AppDetailsId from dual;
return ; -- this is my return statement
else
Select NVL(max(AppId),0) + 1 into v_Appid From Appointment_Mst;
v_Appcode := 'APP' || cast(*v_Appid* as varchar(5)); -error in this line
/*some code*/
Select AppDetailsId from Appointment_Dtls where AppDetailsId=pAppdetailsid;
end if;
end;
what i am doing is that if statement mentioned above becomes TRUE then execute select statement and return
from there otherwise it goes inside else statement and perform some operation which is there inside the transaction
and then select some value which actually the last statement in else block this is my actual requirement
while executing i am getting this error
Error(71,58): PLS-00103: Encountered the symbol "(" when expecting one of the following: . ) @ %
Edited by: user21354 on Feb 21, 2011 1:05 AM
Edited by: user21354 on Feb 21, 2011 1:08 AMWhat is this line doing in there?
variable declaration That's not valid PL/SQL code.
Please also consider posting your code using {noformat}{noformat} tags as desribed in the SQL and PL/SQL FAQ: SQL and PL/SQL FAQ -
Error: FF805 Tax statement item missing for tax code
Hi all,
We are getting an error when releasing billing document to accounting in 4.7system.
Error: FF805 Tax statement item missing for tax code O0
No tax item exists for tax code O0 in a G/L account item. A possible cause is an incorrect transfer of
parameters by the application to the Accounting interface.
Please give your inputs and will be rewared.
Quick reponse will be appreciated.
Thanks & Regards.Dear Mehak,
I am sorry for the late reply, but I started (in fact) to work in SDN Forum this year, even I entered earlier.
We have many FF805 errors reported by customers and the same solution has resolved the problem. Please note that the SD-FI interface changed from earlier releases. The note 400766 eplxains the checks made.
So it is possible that now you get error message FF805, when in an earlier release you didn't get it, eventhough no customizing change.
Please review note -> 392696 R/3 Tax Interface Configuration Guide
However please note => In the vast majority of cases, error FF805 occurs because of an error in your pricing procedure. The attached note 112609 explains in detail how tax codes are transfered to conditions.
The note 400766 explains the checks performed by the system on the Tax codes:
1. system checks whether there is a revenue line for each tax line.
2. in the reverse case, for each revenue line containing a certain tax indicator there must be a tax line with this indicator.
If the tax condition has condition value zero and condition base value zero, then it is not transferred to FI.
If you have revenue lines containing a tax indicator XX, but no tax line with tax indicator XX, then the error FF805 issues, and it is justified. => Please check these informations.
-> EXAMPLE
If tax condition MWST has base amount zero and value zero; for this reason it is not passed to accounting. But, according to the criteria reported by note 112609, its tax indicator EG: A7
has been assigned to the condition EG: ZBR1.
So in accounting there would be a revenue line with tax indicator A7, but there isn't any tax line with indicator A7 (because MWST doesn't pass to FI). The note 400766 states situation is unallowed, and error FF805 is justified.
IMPORTANT: Just a hint, any issue with FI, kindly report in the forum:
Expert Forums - SAP Solutions - ERP Financials
There you will find a lot of people that works with FI and can help you with future issues, including me
I hope I could help you
Kind Regards,
Vanessa Barth. -
Error in SQL Statement: SAPSQL_INVALID_TABLENAME
Hello all,
While displaying contents of infocube i am getting strange error ..
Error in SQL Statement: SAPSQL_INVALID_TABLENAME ABC
Message no. DBMAN256
( Table name length is 16 )
I am able to see the contents of Fact table.
Could not found any solution till now.. Any lights , views will be very much helpful.
Regards
Nimeshhi Nimesh,
check oss note 835816
Symptom
When you execute a query, a data-mart, SEM, APO or similar access, an SQL error 4004 occurs "Unknown table name" Open SQL: Short dump with UNCAUGHT_EXCEPTION CX_RSR_X_MESSAGE in the ABAP Call Stack, you find the RSDRC_BASIC_DB_QUERY_DATA_GET function module.
Prior to this, relatively large datasets (more than 10%) were deleted from the InfoCube.
Other terms
Business Information Warehouse, Factview, DBMAN256, DBMAN
256, SAPLRSDRS, DELETE, DELETE_FACTS, RSDRD_DELETE_FACTS
Reason and Prerequisites
During the purge, the fact tables are rebuilt again as of a certain percentage, for performance reasons. The factview is then not created again.
Solution
Views that are already missing can be compiled again with the SAP_FACTVIEWS_RECREATE report.
The correction prevents the problem reappearing.
BW 3.0B
Import Support Package 27 for 3.0B (BW3.0B Patch27 or SAPKW30B27) into your BW system. The Support Package is available whennote 0723258 with the short text "SAPBWNews BW3.0B Support Package 27", which describes this Support Package in more detail, is released for customers.
BW 3.10 Content
Import Support Package 21 for 3.10 (BW3.10 Patch21 or SAPKW31021) into your BW system. The Support Package is available whennote 0723263 with the short text "SAPBWNews BW3.1 Content Support Package 21", which describes this Support Package in more detail, is released for customers.
BW 3.50
Import Support Package 13 for 3.5 (BW3.50 Patch13 or SAPKW35013) into your BW system. The Support Package is available when note 0765114 with the short text "SAPBWNews BW Support Package 13 NetWeaver'04 Stack 13", which describes this Support Package in more detail, is released for customers.
In urgent cases you can use the correction instructions.
These notes may already be available before the Support Package is released, to make information available in advance. However, the short text then still contains the words "preliminary version". -
Sap script form perform statement
HI ALL ,
CAN ANYONE HELP ME WITH SAP-SCRIPT FORM AND PERFORM SYNTAX. THAT IS WHEN U NEED TO ADD A FIELD TO AN EXISTING SAPSCRIPT, BY USING AN EXTERNAL SUBROUTINE.
i NEED THE SYNTAX BOTH FOR PERFORM AND ENDPERFORM STATEMENT AND ALSO THE FORM STSEMENT. ANOTHER TRHING IS IF CAN LET ME KNOW HOW TO USE DEFINE STATEMENT IN SAPSCRIPT. WHATS ITS USE AND IS IT RELATED TO THE QUERY ABOVE.
else,
U PLZ LET ME KNOW ANY HELPFUL LINKS TO GO THROUGH.
THANLS IN ADVANCE,
ANUPMA.Hi anupma,
1. while calling subroutines from sapscripts,
there is a special technique,
which has got its own limitations.
2.
FORM abc
TABLES
in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
ENDFORM.
3. The perform in se38 program should be of the
above format only.
4. We cannot pass internal tables.
5. Rather we need to pass
VARIABLE NAME
VARIABLE VALUE
(see the structure of itcsy in se11)
6. In this form, we have to read
the internal table in_tab
to capture the variable name and its value.
7. Similary, to return the values,
we have to put one record (for each variable)
in out_tab.
regards,
amit m. -
Active failed. Communication error when performing integrations.
I actived an activity but the request failed. In the request log,the last rows indicated the reason,but I can't understand and don't know how to solve it. Below show the last rows of the log:
Change request state from SUCCEEDED to FAILED
Error! The following problem(s) occurred during request processing:
Error! Communication error when performing integrations. HTTP protocol error [reason: Parsing of the response body failed [reason: Comment must start with "<!--".]]. Request FAILED.
REQUEST PROCESSING finished at 2010-09-05 03:00:16.468 GMT and took 2 m 36 s 172 msI copied SCs' info from http://host:port/sap/monitoring/ComponentInfo below:
Software Components
Vendor Name Version Location Applied
sap.com WD-APPS 7.11 SP3 (1000.7.11.3.0.20090708034600) SAP AG 20100227111730
sap.com WD-FLEX 7.11 SP3 (1000.7.11.3.0.20090708034600) SAP AG 20100227114200
sap.com ENGINEAPI 7.11 SP3 (1000.7.11.3.0.20090707235900) SAP AG 20100227104639
sap.com LM-MODEL-CE 7.11 SP3 (1000.7.11.3.0.20090708100200) SAP AG 20100227110643
sap.com LM-SLD 7.11 SP3 (1000.7.11.3.0.20090708100200) SAP AG 20100227111825
sap.com WD-RUNTIME 7.11 SP3 (1000.7.11.3.0.20090714195600) SAP AG 20100227112212
sap.com WD-ADOBE 7.11 SP3 (1000.7.11.3.0.20090708034600) SAP AG 20100227110000
sap.com EP-MODELING 7.11 SP3 (1000.7.11.3.0.20090708052800) SAP AG 20100227113917
sap.com J2EE-FRMW 7.11 SP3 (1000.7.11.3.0.20090707235900) SAP AG 20100227110242
sap.com ENGFACADE 7.11 SP3 (1000.7.11.3.0.20090707223600) SAP AG 20100227111458
sap.com ESREG-BASIC 7.11 SP3 (1000.7.11.3.1.20090819222300) SAP AG 20100227110634
sap.com CAF 7.11 SP3 (1000.7.11.3.0.20090708030100) SAP AG 20100227114351
sap.com ESF 7.11 SP3 (1000.7.11.3.0.20090716184100) SAP AG 20100227111734
sap.com CORE-TOOLS 7.11 SP3 (1000.7.11.3.0.20090707235900) SAP AG 20100227112432
sap.com EP_BUILDT 7.11 SP3 (1000.7.11.3.0.20090708053700) SAP AG 20100227112608
sap.com APP-LIB 7.11 SP3 (1000.7.11.3.0.20090708094400) SAP AG 20100227105136
sap.com MOIN_BUILDT 7.11 SP3 (1000.7.11.3.0.20090708055000) SAP AG 20100227105811
sap.com LMNWABASICMBEAN 7.11 SP3 (1000.7.11.3.0.20090708100200) SAP AG 20100227112135
sap.com ESCONF_BUILDT 7.11 SP3 (1000.7.11.3.0.20090708053700) SAP AG 20100227110749
sap.com VCFRAMEWORK 7.11 SP3 (1000.7.11.3.0.20090708050100) SAP AG 20100227111401
sap.com LMINTERNALAGENT 7.11 SP3 (1000.7.11.3.0.20090708100200) SAP AG 20100227110251
sap.com APP-LIB-BASIC 7.11 SP3 (1000.7.11.3.0.20090708094400) SAP AG 20100227104638
sap.com ESI-UI 7.11 SP3 (1000.7.11.3.0.20090708094400) SAP AG 20100227112458
sap.com WDEXTENSIONS 7.11 SP3 (1000.7.11.3.0.20090708083400) SAP AG 20100227114257
sap.com LMNWACDP 7.11 SP3 (1000.7.11.3.0.20090708100200) SAP AG 20100227112218
sap.com EP-CONNECTIVITY 7.11 SP3 (1000.7.11.3.0.20090708052800) SAP AG 20100227112502
sap.com LMNWAUIFRMRK 7.11 SP3 (1000.7.11.3.0.20090708100200) SAP AG 20100227114149
sap.com SERVERCORE 7.11 SP3 (1000.7.11.3.0.20090721210400) SAP AG 20100227110257
sap.com CE-RA-EDM 7.11 SP3 (1000.7.11.3.0.20090708094400) SAP AG 20100227110932
sap.com EP-BASIS-API 7.11 SP3 (1000.7.11.3.0.20090708052800) SAP AG 20100227112504
sap.com ESMP_BUILDT 7.11 SP3 (1000.7.11.3.0.20090708055000) SAP AG 20100227110214
sap.com ESREG-SERVICES 7.11 SP3 (1000.7.11.3.2.20091001033900) SAP AG 20100227112210
sap.com ESP_FRAMEWORK 7.11 SP3 (1000.7.11.3.2.20090914172400) SAP AG 20100227112151
sap.com VCKITBI 7.11 SP3 (1000.7.11.3.0.20090708094400) SAP AG 20100227113947
sap.com BI_UDI 7.11 SP3 (1000.7.11.3.0.20090708053700) SAP AG 20100227114349
sap.com VCFREESTYLEKIT 7.11 SP3 (1000.7.11.3.0.20090708050100) SAP AG 20100227114146
sap.com EP-RUNTIME 7.11 SP3 (1000.7.11.3.0.20090715192600) SAP AG 20100227114235
sap.com BI-BASE-S 7.11 SP3 (1000.7.11.3.0.20090708074100) SAP AG 20100227114355
sap.com JSPM 7.11 SP3 (1000.7.11.3.0.20090721210400) SAP AG 20100227110220
sap.com UDDI 7.11 SP3 (1000.7.11.3.1.20090928214200) SAP AG 20100227110233
sap.com WSRM 7.11 SP3 (1000.7.11.3.0.20090708051400) SAP AG 20100227110903
sap.com UMEADMIN 7.11 SP3 (1000.7.11.3.0.20090708094400) SAP AG 20100227112447
sap.com SAP_BUILDT 7.11 SP3 (1000.7.11.3.0.20090708053700) SAP AG 20100227112125
sap.com VTP_BUILDT 7.11 SP3 (1000.7.11.3.0.20090708053700) SAP AG 20100227104841
sap.com J2EE-APPS 7.11 SP3 (1000.7.11.3.0.20090707235900) SAP AG 20100227112629
sap.com MESSAGING 7.11 SP3 (1000.7.11.3.3.20090909003900) SAP AG 20100227114300
sap.com FRAMEWORK 7.11 SP3 (1000.7.11.3.0.20090721210500) SAP AG 20100227114152
sap.com LMNWATOOLS 7.11 SP3 (1000.7.11.3.0.20090708100200) SAP AG 20100227114149
sap.com CAF-MF 7.11 SP3 (1000.7.11.3.0.20090708030100) SAP AG 20100227111731
sap.com CAF-UI 7.11 SP3 (1000.7.11.3.0.20090708093200) SAP AG 20100227112401
sap.com SAPNWDEMO 7.11 SP3 (1000.7.11.3.0.20090708094400) SAP AG 20100227104638
sap.com MMR_SERVER 7.11 SP3 (1000.7.11.3.0.20090708053700) SAP AG 20100227114353
sap.com DI_CLIENTS 7.11 SP3 (1000.7.11.3.0.20090708053700) SAP AG 20100227112503
sap.com UWLJWF 7.11 SP3 (1000.7.11.3.0.20090708074100) SAP AG 20100227113931
sap.com VCBASE 7.11 SP3 (1000.7.11.3.0.20090708050100) SAP AG 20100227112627
sap.com BI-WDALV 7.11 SP3 (1000.7.11.3.0.20090715032600) SAP AG 20100227111328
sap.com BI-WDEXT 7.11 SP3 (1000.7.11.3.0.20090708083300) SAP AG 20100227114258
sap.com SOAMONBASIC 7.11 SP3 (1000.7.11.3.0.20090708094400) SAP AG 20100227112447
sap.com EP-ADMIN 7.11 SP3 (1000.7.11.3.0.20090726162100) SAP AG 20100227114239
sap.com EP-BASIS 7.11 SP3 (1000.7.11.3.0.20090708052800) SAP AG 20100227112829
sap.com LMNWABASICAPPS 7.11 SP3 (1000.7.11.3.0.20090727232800) SAP AG 20100227114323
sap.com LMNWABASICCOMP 7.11 SP3 (1000.7.11.3.0.20090726191000) SAP AG 20100227112449
sap.com LMCFG 7.11 SP3 (1000.7.11.3.0.20090726191000) SAP AG 20100227112609
sap.com LMCTC 7.11 SP3 (1000.7.11.3.0.20090708100200) SAP AG 20100227114321
sap.com NWTEC 7.11 SP3 (1000.7.11.3.0.20090708094400) SAP AG 20100227112331
sap.com SR-UI 7.11 SP3 (1000.7.11.3.0.20090708094400) SAP AG 20100227112359
sap.com BASETABLES 7.11 SP3 (1000.7.11.3.0.20090707235900) SAP AG 20100227112423
sap.com CFG_ZA_CE 7.11 SP3 (1000.7.11.3.0.20090707235900) SAP AG 20100227105952
sap.com LM-CORE 7.11 SP3 (1000.7.11.3.0.20090707235900) SAP AG 20100227111845
sap.com DI_CBS 7.11 SP3 (1000.7.11.3.0.20090708100200) SAP AG 20100227111119
sap.com BRMS-BUILDT 7.11 SP3 (1000.7.11.3.0.20090708055000) SAP AG 20100227104935
sap.com XI_CNT_SAP_BASIS 7.11 SP1 (1000.7.11.1.0.20081108235600) SAP AG 20100226194653
sap.com BRMS-FACADE 7.11 SP3 (1000.7.11.3.0.20090708055000) SAP AG 20100227105857
sap.com BPEM-CONTENT 7.11 SP3 (1000.7.11.3.0.20090708082900) SAP AG 20100227111116
sap.com ADSSAP 7.11 SP3 (1000.7.11.3.0.20090708053700) SAP AG 20100227104529
sap.com BPEM-PP 7.11 SP3 (1000.7.11.3.0.20090708082900) SAP AG 20100227110939
sap.com BPEM-HIM 7.11 SP3 (1000.7.11.3.0.20090708055000) SAP AG 20100227110948
sap.com DI_DTR 7.11 SP3 (1000.7.11.3.0.20090708100200) SAP AG 20100227110723
sap.com BPEM-CORE 7.11 SP3 (1000.7.11.3.0.20090708055000) SAP AG 20100227112433
sap.com BPEM-FACADE 7.11 SP3 (1000.7.11.3.0.20090708055000) SAP AG 20100227111735
sap.com SAP_XIGUI 7.11 SP3 (1000.7.11.3.2.20090819222300) SAP AG 20100227111517
sap.com SAP_XIESR 7.11 SP3 (1000.7.11.3.3.20091001183900) SAP AG 20100227111819
sap.com SERVICE-COMP 7.11 SP3 (1000.7.11.3.0.20090708055000) SAP AG 20100227112210
sap.com BPEM-WDUI 7.11 SP3 (1000.7.11.3.0.20090708082900) SAP AG 20100227112404
sap.com GP-VC 7.11 SP3 (1000.7.11.3.0.20090708091600) SAP AG 20100227112422
sap.com GP-PP 7.11 SP3 (1000.7.11.3.0.20090708091600) SAP AG 20100227113936
sap.com GP-CORE 7.11 SP3 (1000.7.11.3.0.20090708091600) SAP AG 20100227112606
sap.com DI_CMS 7.11 SP3 (1000.7.11.3.0.20090708100200) SAP AG 20100227114059
sap.com BPEM-MON 7.11 SP3 (1000.7.11.3.0.20090708082900) SAP AG 20100227112502
sap.com VOICERT 7.11 SP3 (1000.7.11.3.0.20090708094400) SAP AG 20100227111455
sap.com BRMS-CORE 7.11 SP3 (1000.7.11.3.0.20090708055000) SAP AG 20100227114147
sap.com IDEUPDSITECE 7.11 SP3 (1000.7.11.3.0.20090708112000) SAP AG 20100227104951
sap.com BPEM-FLEXUI 7.11 SP3 (1000.7.11.3.0.20090708055000) SAP AG 20100227104710
sap.com BPEM-BUILDT 7.11 SP3 (1000.7.11.3.0.20090708055000) SAP AG 20100227104645
sap.com VOICEVC 7.11 SP3 (1000.7.11.3.0.20090708094400) SAP AG 20100227104733
sap.com IDEUPDSITETOOLS 7.11 SP3 (1000.7.11.3.0.20090708053700) SAP AG 20100227112428
test.sap.com HM-WDUIDMKTSCNR 7.11 SP0 (1000.7.11.0.0.1268322642085) Local Workplace 20100324083612
test.sap.com HM-WDUIDMKTCNT 7.11 SP0 (1000.7.11.0.0.1268322933427) Local Workplace 20100324083656
test.sap.com HM-WDUIDMKTCORE 7.11 SP0 (1000.7.11.0.0.1268322880287) Local Workplace 20100324083659 -
Adding in Select statement for SAPscript printout
Hi everyone,
I have a new requirement where i would need to output a new field in a sapscript printout.
A summary of the requirements is as follows:
-> If EKPO-PSTYP = '3'
-> select RSNUM
from EKET
where EKET-EBELN = EKPO-EBELN and
EKET-EBELP = EKPO-EBELP
-> select MATNR
from RESB
where RESB-RSNUM = EKET-RSNUM
-> display RESB-MATNR in printout
At the moment, the sapscript is only reading from table EKPO, whereas for the new requirement to work, i'll also need to read from table EKET and RESB. Am i right to understand that sapscript cannot read SELECT statements directly from the Change Editor and i would need to do a PERFORM statement?
The question now is, where do i put this part of the logic? Any ideas?
Message was edited by: Bernard LohHi,
Write a PERFORM in your script.
PERFORM GET_MATNR IN PROGRAM Z_SUBROTINEPOOL
USING W_EBELN W_EBELP
CHANGING W_MATNR
ENDPERFORM.
And check the following to write the FORM in the Z program.
The structure ITCSY is used in relation with SAPScripts. You can call a Routine in any program in SAPScript.
For eg: if you have a subroutine named ADD_INCOME in a program ZSHAIL_BASIC, you can call the subroutine in SAPScript as follows:
/: PERFORM ADD_INCOME IN PROGRAM ZSHAIL_BASIC
/: USING &var1&
/: CHANGING &var2&
/: ENDPERFORM.
Here the input parameter to the subroutine is var1 and the value returned by the subroutine is var2.
In the program ZSHAIL_BASIC, you have to call the subroutine as
FORM ADD_INCOME TABLES IN_TAB STRUCTURE ITCSY OUT_TAB STRUCTURE ITCSY.
ENDFORM.
IN_TAB is a structure of type ITCSY,which has 2 components, NAME and value.
So in the program, var1(which is sent from SAPScript) , will be stored as IN_TAB-NAME and its value will be in IN_TAB-VALUE. You can utilise the IN_TAB-VALUE and after performing the required operations, the return value should be assigned to table OUT_TAB.
This value can thus be obtained in var2 specified in SAPScript.
Also you can search for "SUBROUTINE IN SCRIPT"... "PERFORM IN SCRIPT", "ITCSY"....
Thanks and Regards,
Bharat Kumar Reddy.V -
Error: Before the statement "FORM", conclude with "ENDFUNCTION
Hi All,
I'm using this exit :EXIT_SAPLVEDA_001.
In this exit include zxvedu03 is used.
I have written a perform in this include zxvedu03 :
perform abc.
I have written the code
form abc.
endform.
in include ZXVEDF01.
I have called this
includeZXVEDF01
in the last line of include zxvedu03.
Now i'm getting error :
Incorrect nesting: Before the statement "FORM", the structure
introduced by "FUNCTION" must be concluded with "ENDFUNCTION".
I have even tried to create include from perform statement and then inserted code and vise versa too but results are same.
Please suggest how can i revolve this error.
Thanks.Hi,
This is my code of include ZXVEDU03:
if ( contrl-sndsad in rl_var2 ) or ( contrl-sndsad in rl_var1 ).
*** Uncommented below perform
perform contract_determine using contrl-sndsad segment
dxvbak
dxvbap
dxvbadr
dd_flag_k.
endif.
***statements**
include zxvedf01.
Code in includeZXVEDF01 :
form contract_determine using p_cntrl_sndsad p_segment type edidd
p_dxvbak structure wa_dxvbak
p_dxvbap structure wa_dxvbap
p_dxvbadr structure wa_dxvbadr
p_d_flag_k structure wa_d_flag_k.
*** statements**
endform.
Note: Include ZXVEDU03 is in EXIT_SAPLVEDA_001 and ZXVEDF01 is in ZXVEDU03.
EXIT_SAPLVEDA_001-> ZXVEDU03->ZXVEDF01 -
Error in Perform with SmartForms
I have a PERFORM statement in my SmartForms and I am getting an error as follows:
<b>Error analysis
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class
'CX_SY_DYN_CALL_PARAM_NOT_FOUND', was neither
caught nor passed along using a RAISING clause, in the procedure
"CONVERT_TO_PALLETS" "(FORM)"
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
A PERFORM was used to call the routine "CONVERT_TO_PALLETS" of the program
"ZRVADEK01".
This routine contains 4 formal parameters, but the current call
contains 6 actual parameters.
parameters.</b>
Below is the code in the SmartForm
*& Form CONVERT_TO_PALLETS
FORM convert_to_pallets
USING matnr
lfimg
vrkme
CHANGING w_nbrpal
w_nbrpce
w_nbrft2.
* Call form in external program
PERFORM convert_to_pallets IN PROGRAM zrvadek01
USING matnr
lfimg
vrkme
CHANGING w_nbrpal
w_nbrpce
w_nbrft2.
ENDFORM.
Following is part of the Form Routine in program zrvadek01
FORM convert_to_pallets TABLES inttab STRUCTURE itcsy
outtab STRUCTURE itcsy.
I am confused by this error because I have 6 parameters (3 each of using and changing) both in the perform call and the form definition.
Regards,
DavisHi
This is something related to PERFORM and FORM statements
check them correctly
parameters passed to perform is not matching with the FORM parameters
Why 2 FORMs appearing in the code
one is
<b>FORM convert_to_pallets</b> TABLES inttab STRUCTURE itcsy
outtab STRUCTURE itcsy.
and the other is
<b>
FORM convert_to_pallets </b>
USING matnr
lfimg
vrkme
CHANGING w_nbrpal
w_nbrpce
w_nbrft2.
but only one PERFORM
PERFORM convert_to_pallets IN PROGRAM zrvadek01
USING matnr
lfimg
vrkme
CHANGING w_nbrpal
w_nbrpce
w_nbrft2.
So which FORM it has to consider
why the first FORm is needed for you?
check and correct it.
Reward points if useful
Regards
Anji -
Passing tables with PERFORM statement
Hi all,
There is a table returned by a function module ZCDAPO_MATNR_CHECK_FOR_QUOTA .
I want to use the table returned by this FM in a subroutine.
So i pass this table thru FORM statement.
within PERFORM and ENDFORM i want to use the data in this table
and do some manipulation.
but i am getting an error saying for typing TABLES parameter only table types should be used
can anyone tell me where i am going wrong or please tell me how use tables in this PERFORM statement.for reference i will paste the code below,
TYPES : BEGIN OF x_quota ,
trpid type ztrpid ,
quota TYPE decv1_3 ,
END OF x_quota .
DATA : it_qheader TYPE TABLE OF zapo_trqtah,
wa_it_qheader LIKE LINE OF it_qheader.
DATA: it_qitem TYPE TABLE OF zapo_trqtap,
wa_it_qitem LIKE LINE OF it_qitem.
DATA : it_quotavalue TYPE TABLE OF x_quota ,
wa_it_quotavalue LIKE LINE OF it_quotavalue .
CALL FUNCTION 'ZCDAPO_MATNR_CHECK_FOR_QUOTA'
EXPORTING
i_matnr = 'AATESTQUOTA2'
i_werks = '5034'
IMPORTING
e_quota_exist_flag = lv_flag
TABLES
t_zapo_trqtap = it_qitem
t_zapo_trqtah = it_qheader
EXCEPTIONS
invalid_input = 1
OTHERS = 2.
perform f_loadquota_apo TABLES it_qitem.
form f_loadquota_apo tables it_qitem type zapo_trqtap.
LOOP AT it_qitem INTO wa_it_qitem.
wa_it_quotavalue-trpid = wa_it_qitem-ztrpid.
wa_it_quotavalue-quota = wa_it_qitem-zquota / lv_sum.
append wa_it_quotavalue to it_quotavalue.
endloop.
endform.Hi..
Using TABLES is like obselete.
So change your code like this:
Call the Subroutine like this:
<b>perform f_loadquota_apo using it_qitem[].</b>
You can change the Definition of Form like this:
<b>form f_loadquota_apo USING it_qitem LIKE zapo_trqtap[].</b>
LOOP AT it_qitem INTO wa_it_qitem.
wa_it_quotavalue-trpid = wa_it_qitem-ztrpid.
wa_it_quotavalue-quota = wa_it_qitem-zquota / lv_sum.
append wa_it_quotavalue to it_quotavalue.
endloop.
endform.
<b>Reward if Helpful</b> -
Hi all,
I am using perform statement in sap script.
I need take a "Terms of payment" text in a PO, the length of text is 180, but when return the text to script only take the 80 first words.
The ABAP code is:
data: text(255) type c.
call function 'READ_TEXT'
exporting
id = id
language = language "sy-langu
name = name
object = object
tables
lines = tlinetab
exceptions
others = 8.
if sy-subrc = 0.
loop at tlinetab.
concatenate text tlinetab-tdline into text
separated by space.
endloop.
endif.
clear tlinetab.
refresh : tlinetab. clear tlinetab.
read table out_table with key name = 'TEXT'.
ind = sy-tabix.
write text to out_table-value.
out_table-value = out_table-value.
modify out_table index ind.
The Sap Script code is:
/: DEFINE &ZID& = 'F07'
/: DEFINE &ZOBJECT& = 'EKKO'
/: PERFORM TEXTOS IN PROGRAM ZPEDIDO
/: USING &ZOBJECT&
/: USING &ZID&
/: USING &EKKO-EBELN&
/: CHANGING &TEXT&
/: ENDPERFORM
When I´m debugging the ABAP program the value that take the variables text and out_table-value is correct, but in the script is wrong.
How I resolve this problem?
Thank for u help.
John.Hi John,
How is your variable &TEXT& declared?
If it is done as a locale variable in the SAPscript form using the "DEFINE" clause, the maximum length will be 60 characters.
Try to define a variable in your main print program. This might work better.
See also:
http://help.sap.com/saphelp_47x200/helpdata/EN/d1/8031d0454211d189710000e8322d00/content.htm
Regards,
Arjan Aalbers -
Error while performing Oracle 11g upgrade
Hi,
I am facing error while performing an Oracle upgrade from 10.2.0.4 to 11.2.0.2.
DBUA was disconnected with error Ora 1092 Oracle instance terminated.
When tried to run manual upgrade it is showing the below error,
SQL> @catupgrd.sql
DOC>#######################################################################
DOC>#######################################################################
DOC>
DOC> The first time this script is run, there should be no error messages
DOC> generated; all normal upgrade error messages are suppressed.
DOC>
DOC> If this script is being re-run after correcting some problem, then
DOC> expect the following error which is not automatically suppressed:
DOC>
DOC> ORA-00001: unique constraint (<constraint_name>) violated
DOC> possibly in conjunction with
DOC> ORA-06512: at "<procedure/function name>", line NN
DOC>
DOC> These errors will automatically be suppressed by the Database Upgrade
DOC> Assistant (DBUA) when it re-runs an upgrade.
DOC>
DOC>#######################################################################
DOC>#######################################################################
DOC>#
DOC>######################################################################
DOC>######################################################################
DOC> The following statement will cause an "ORA-01722: invalid number"
DOC> error if the user running this script is not SYS. Disconnect
DOC> and reconnect with AS SYSDBA.
DOC>######################################################################
DOC>######################################################################
DOC>#
no rows selected
DOC>######################################################################
DOC>######################################################################
DOC> The following statement will cause an "ORA-01722: invalid number"
DOC> error if the database server version is not correct for this script.
DOC> Perform "ALTER SYSTEM CHECKPOINT" prior to "SHUTDOWN ABORT", and use
DOC> a different script or a different server.
DOC>######################################################################
DOC>######################################################################
DOC>#
SELECT TO_NUMBER('MUST_BE_11_2') FROM v$instance
ERROR at line 1:
ORA-01722: invalid number
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Please help ASAP as this is a production system.
Thanks,
Prabhakar
Edited by: prabhakaryc on Jun 19, 2011 2:47 PMprabhakaryc wrote:
Hi Orkun Gedik,
>
> Thank you for your quick reply.
>
> Yes i am running this on windows and i have set with correct ORACLE_HOME (11202 directory)
>
> Do you think any other reason ?
>
> I have seen this error log inside of catupgrd.sql and it seems to be very known error but i am not finding the solution anywhere ?
>
> Your quick reply helps me a lot.
>
> Thanks,
> Prabhakar
Hi Prabhakar,
>> DBUA was disconnected with error Ora 1092 Oracle instance terminated.
But, as far as I understand that you didn't completed DB upgrade succesfully. Under this circumstance, you shouldn't change ORACLE_HOME variable to 11.2.0.2. I suggest you that complete Oracle upgrade (restart DBUA) and do not execute upgrade procedures, manually.
Best regards,
Orkun Gedik
Maybe you are looking for
-
Is construction of webi directly in production a best practice?
with bex-query and universes well consolidated and tested by a IT group, can be considered the construction of webis directly in production without going through test and quality a Business Objects best practice? is possible allow end-users (non IT p
-
Problem inserting a clob using bpel and database adapter
We are having issues inserting a clob field into the database when the data is over 4000 characters. Anything under 4000 characters works fine. The error we are seeing is "Error while converting to a Java struct object. Unable to convert XSD element
-
Technical System Identification
Guys , I need to add JRUN into my system lanscape , What I want to know is What will be the <i><b>Technical System Identification</b></i>, while adding the technical system using technical system wizard. Thanks Manish
-
Hi all Do you have any suggestions on how to clear a wrongly created VAT control account? There are balances in that control account that the client would like to move out.
-
Outgoing mail server using Mail is no good? Have anything to do with iCloud?
I think after I switched over to iCloud - though I don't know why that would affect Mail - I now, can't get any messages to send. Outgoing mail server is bad. But I use the connection doctor and it says all is fine (green light). Any help?!