Field level routine - Error.
Hi Team,
I am trying to write a routine for a quantity field as below.
Concept is:
Load DSO13 from DSO5 by doing a look up into DS12 for the qty field.
Transformation is between DSO5 and DS13. For every record in DSO5 check for the combination of Country, can type, market type, year and month in dso12. If there exists a matching record in dso12 add the qty field of dso5 with dso12 and populate the result.
Fields in DSO5: Country, can type, market type, year, month, salesorg,sold to, ship to, quantity
Fields in DS12: Country, can type, market type, year, month, quantity
I have written the following code:
ERROR: Unknown column name "SUM(/BIC/ZQUANTY)" until runtime, you cannot specify a field list.
DATA: rex_adj TYPE /bic/oizquanty,
source_qty type /bic/oizquanty.
SELECT SUM(/BIC/ZQUANTY) INTO source_qty FROM /bic/azedwdso500
WHERE
COUNTRY = SOURCE_FIELDS-country AND
/bic/zcantype = SOURCE_FIELDS-/bic/zcantype
AND /bic/zmkttype EQ SOURCE_FIELDS-/bic/zmkttype
AND calyear EQ SOURCE_FIELDS-calyear
AND calmonth EQ SOURCE_FIELDS-calmonth.
ENDSELECT.
SELECT SINGLE /bic/zadmts INTO rex_adj FROM /bic/azedwds1200
WHERE
/bic/zcountry = SOURCE_FIELDS-country
AND /bic/zcantype = SOURCE_FIELDS-/bic/zcantype
AND /bic/zmkttype EQ SOURCE_FIELDS-/bic/zmkttype
AND calyear EQ SOURCE_FIELDS-calyear
AND calmonth EQ SOURCE_FIELDS-calmonth.
IF Sy-SUBRC = 0.
RESULT = source_qty + rex_adj.
ENDIF.
Can you please help with your thoughts to make it work?
Regards,
Harika.
HI All,
Thanks for your replies.
First thing, to remove the syntax error, if we give spaces after SUM( <field name> ), it worked.
To improve the performance I have used internal table instead of SUM in the select statement.
It worked.
Thanks to One and all.
Regards,
Harika
Similar Messages
-
How to populate the Error stack during error records in field level routine
hi,
I am capturing the error records in Field level routine in transformation. now i want these records to reflect in error stack.
i am using 'Append monitor-rec to MONITOR' at the moment but i cant see any records in error stack.
but when i am using the same statement in start routine i am getting records in error stack.
can anyone please help as to how can i populate error stack through field level routine?Hi,
Try to do it in the end routine instead of the field routine.
It should work.
Regards,
Joe -
Hi,
I have field level routine in Update rules.
IF /BIC/ZDOCINDREF <> 'G'
ZPCONTRAT = 0CONTRACT.
ELSEIF /BIC/ZDOCINDREF ='K'
ZSALSCNT = 0CONTRACT.
ENDIF.
It giving syntax error;E:Field "/BIC/ZDOCINDREF" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement.
Please suggest.
Thanks,
KarunaHi,
Try writting it like this
IF /BIC/ZDOCINDREF = 'G'.
ZPCONTRAT = 0CONTRACT.
ELSEIF /BIC/ZDOCINDREF = 'K'.
ZSALSCNT = 0CONTRACT.
ENDIF.
Or
If this code is in some loop check the work area. if say work area is WA, put 'WA-' before /BIC/ZDOCINDREF. -
Facing problem in transformation field level routine
Dear experts,
I have 2 ODS Example : ODS1 and ODS2 and for my target cube(Ex:CUBE1) ODS1 is source while loading data i want to refer ODS2.
I place the data of ODs2 in one internal table.
I want to check each and every records from my source and ODS2.
I used read statement and loop seperately,Both works in different manner.
Can anyone explain me what exactly loop and read will do?
Kindly help as quick.
Regards,
Kiruthika...Hi,
This is beacuse there is exactly one record which matches.
In such cases you should always go with read.
When you know x=y, then use read.
when you know x=a, x=b, x=c so on use loop.
also if you need all records where x>y or x<y or x>=y, basically conditions use loop.
If you need patterns say x like %y, use loop.
Final verdict, if there is only one and exactly one record which will be returned when you compare two key values then use read.
hope this helps.
thanks,
rahul -
Error in infopackage level routine
hi guys
I am trying to write a infopackage level routine for dynamic flatfile selection.Im getiing error:Error 1 while loading external data.
I did like this:
I am accessing one external harddisk having BW-R3 software installed in it through VM Ware from my laptop.here I saved one flatfile with name DFF_10.10.2009.csv in D drive.so path becomes -- D:\DFF_10.10.2009.csv
then in my infopackage...i wrote code ..here it is
DATA: XFILE LIKE P_FILENAME .
CONCATENATE 'D:\DFF_' SY-DATUM '.csv' INTO XFILE .
P_FILENAME = XFILE .
now tried to schedule infopackage....to see if it worksand loads data from flatfile.....but it throws error....Error1 while loading external data....
how can I fix this?
Thanks in adv,
Rgds,
SDATA:
ch1(32) TYPE x VALUE
'00200120022003200420052006200720082009200A200B200C200D200E200F20',
ch2(32) TYPE x VALUE
'10201120122013201420152016201720182019201A201B201C201D201E201F20',
ch3(60) TYPE c VALUE
'¿ ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¡ ¯ ® ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ '.
DATA:
ch4(90) TYPE c VALUE
'ø ÷ æ ß ? ? ? ? ? ? ? ? ? ? ? ! ~ ` #'.
FIELD-SYMBOLS: TYPE c.
DATA: l_ZPWRKCTY TYPE /BIC/OIZPWRKCTY,
l_ZPSTNAMe TYPE /BIC/OIZPSTNAME.
l_ZPWRKCTY = SOURCE_FIELDS-FIPS_NAME.
translate l_ZPWRKCTY to upper case.
RESULT = l_ZPWRKCTY.
CONDENSE RESULT.
Exclamation mark is not permitted as a first symbol of the field
content
IF RESULT(1) = '!'.
RESULT(1) = ' '.
ENDIF.
CONDENSE RESULT.
The only # sign is not permitted
IF STRLEN( RESULT ) = 1.
IF RESULT(1) = '#'.
RESULT(1) = ' '.
ENDIF.
ENDIF.
Replace Invalid Characters by SPACE
ASSIGN ch1 TO .
TRANSLATE RESULT using ch3.
TRANSLATE RESULT using ch4.
CALL FUNCTION 'SCP_REPLACE_STRANGE_CHARS'
EXPORTING
INTEXT = RESULT
IMPORTING
OUTTEXT = RESULT.
Remove leading and trailing blanks if any
CONDENSE RESULT. -
How to fix the field level Error(Invalid Date)
Hi All,
Error: 1 (Field level error)
SegmentID: ACK
Position in TS: 5
Data Element ID: ACK05
Position in Segment: 5
Data Value: 162014
8: Invalid Date
can anyone help me out, How to fix above error? i searched about this but only information about the error is given and no where it is mentioned how to fix it and how is it generated please help me out.
Thanks,
NitishAre you sending or receiving the EDI?
Either way, "162014" is simply not a valid EDI data format. Dates in x12 are expressed as CCYYMMDD so December 30, 2013 would appear as 20131230.
If you are receiving, you need to contact the sender and have them correct the output.
If you are sending, you need to property format that date value. For example:
myDateVar.ToString("yyyyMMdd"); -
Error during transport-Structure change at field level (convert table /BIC)
Hi,
I am trying to transport from DEV to Test when I encountered this error.
The tables are both consistent when I checked with SE14.
Start of the after-import method RS_CUBE_AFTER_IMPORT for object type(s) CUBE (Activation Mode)
Error/warning in dict. activator, detailed log > Detail
Structure change at field level (convert table /BIC/DZCRUSDI026)
Table /BIC/DZCRUSDI026 could not be activated
Return code..............: 8
Following tables must be converted
DDIC Object TABL /BIC/DZCRUSDI026 has not been activated
Error when activating InfoCube ZCRUSDI02
Error/warning in dict. activator, detailed log > Detail
Structure change at field level (convert table /BIC/DZCRUSDI023)
Structure change at field level (convert table /BIC/FZCRUSDI02)
Table /BIC/DZCRUSDI023 could not be activated
Table /BIC/FZCRUSDI02 could not be activated
Return code..............: 8
Following tables must be converted
DDIC Object TABL /BIC/DZCRUSDI023 has not been activated
Error when resetting InfoCube ZCRUSDI02 to the active version
How do I resolve this
thanksHi,
There are no Inactive objects in the cube in DEV system. Also must of the changes I made in Test are already in the cube in TEST But the cube is not active.
SAP proposed that the cube be activated manually but is not a good procedure to activate in TEST system.
Error when resetting InfoCube ZCRUSDI02 to the active version
Message no. RSO410
Diagnosis
Errors arose when activating InfoCube ZCRUSDI02. An active version already existed before the activation.
System Response
InfoCube ZCRUSDI02 could not be reset to the old active version. Since the generated objects no longer correspond to the old active version, they were reset to inactive.
Procedure
The old active version of InfoCube ZCRUSDI02 can no longer be used. Remove the cause of the activation error and activate InfoCube ZCRUSDI02 anew.
thanks -
Start routine errors while activating transformations 2LIS_13_VDITM
Hi Friends,
I have an error while activating transformation for Cube: 0SD_C03
Transformation Z2LIS_13_VDITM
The start routine error is like this->
Start Routine: Syntax error in routine
Rule (target: 0SUBTOT_1S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0SUBTOT_2S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0SUBTOT_3S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0SUBTOT_4S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0SUBTOT_5S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0SUBTOT_6S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0QUANT_B, group: 01 Standard Group): Syntax error in routine
Rule (target: 0DOC_ITEMS, group: 01 Standard Group): Syntax error in routine
Rule (target: 0NET_VAL_S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0COST_VAL_S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0GR_WT_KG, group: 01 Standard Group): Syntax error in routine
Rule (target: 0NT_WT_KG, group: 01 Standard Group): Syntax error in routine
Rule (target: 0VOLUME_CDM, group: 01 Standard Group): Syntax error in routine
Rule (target: 0BP_GRP, group: 01 Standard Group): Syntax error in routine
Rule (target: 0CP_CATEG, group: 01 Standard Group): Syntax error in routine
S:RSTRAN:552 38 0CRM_PROD 01 Standard Group 0MATERIAL
Rule (target: 0DEB_CRED, group: 01 Standard Group): Syntax error in routine
Rule (target: 0PROD_CATEG, group: 01 Standard Group): Syntax error in routine
Key rule 43 (target field: 0VERSION): Initial update set
pls guys if some one can suggest me to solve this i would be very greateful
Bala
Edited by: bala dondeti on Jun 20, 2011 12:32 PM
Edited by: bala dondeti on Jun 20, 2011 12:43 PMThanks for the info Umesh,
Just to be sure - I should simply change "SOURCE_PACKAGE" to "DATA_PACKAGE" in the code of the start routine? "Source_Package" is present in two places in that code:
METHODS
start_routine
IMPORTING
request type rsrequest
datapackid type rsdatapid
EXPORTING
monitor type rstr_ty_t_monitors
CHANGING
SOURCE_PACKAGE type tyt_SC_1
RAISING
cx_rsrout_abort.
and then after that in:
Migrated update rule call
Perform routine_9998
TABLES
SOURCE_PACKAGE
CHANGING
l_abort.
Or should I revert to the 3.5 version? (as a side note, that Data Source (2LIS_13_VDITM) has been activated in 7.0 version by default, when I replicated data sources in BW).
Praveen, as to your remarks, I have the datasource 2LIS_13_VDITM (in version 7.0) active, along with the appropriate Infosource. Transformation between the DataSource and InfoSource is active, and only the transformation between the InforSource and the Cube poses problems.
BR,
Alek -
Data conversion is necessary at field level
Hi everybody.
Im a BW consultant in a BCS project, and I had to make a change in a objetct that is used in BCS as a custom attribute.
What I made, is to remove the ALPHA routine in the object.
Later, the BCS consultant generetad the data basis again, and now when enter the UCWB a warning is showed, the message below:
But I dont know how to do the procedure showed in the message, does anyone face with the same problem? Any suggestion?
Best Regards,
Thiago
Field /BIC/ZC_EMPBPM: Data conversion is necessary
Message no. UGMD418
Diagnosis
Following a change to the definition of field /BIC/ZC_EMPBPM it is necessary to convert the old data for this field before the new attributes can be activated. This arises, for example, when the following attributes have been changed:
Conversion exit
Version or time dependency of hierarchies
System Response
You cannot start the application. A data conversion is necessary first.
Procedure
Execute the necessary data conversion at the field level. To do this, press the respective button with the symbol in the hierarchical detail display at the level of field /BIC/ZC_EMPBPM. If necessary, the system will prompt you for more information in a separate dialog box.
Regards!
Edited by: Thiago França Carvalho Silveira on Jun 10, 2010 11:13 PMHi,
I quess the following should help.
Execute UCWB01 t-code, goto your data basis, in the tabstrip for assigning roles drag and drop any characteristic, then save. The system will find the change and check and regenerate data structures (that's what you need).
Then either in UCWB or UCWB02 t-code got your ConsArea and regenerate it. -
I was looking at the Add/Modify Customer page – page 7 in the Sample Application which can be loaded into Oracle XE and was surprised to discover that there doesn’t seem to be any field validation. For example customer first name is set to varchar2(20) at database level yet more than 20 characters can be entered into the application field and there is no error message when moving cursor focus to another field. Credit Limit field is numeric only but alpha characters can be entered and again, there is no error message when moving cursor focus to another field. Error messages are only displayed on hitting the Create button and even then they are standard ORA-99999 type messages – not very friendly to your average end-user I would suggest! I would be amazed if field-level validation (javascript maybe?) can’t be included in XE applications – assuming it can be, can anyone tell me how it works, even point me towards a working example – if I’m really lucky(!) Phil
As part of the page editor, looks in the center for validations. Right there you can enable all kinds of validations required for the objects in your page.
If you require you can use JavaScript to activate those validations also. Check the
Page Definition = Validation
You can use Item Validation or Page Validation.
A look to the APEX user manual will help with more examples on this.
Regards Dino. -
Hi,
We have some forms and we want to implement validation on field level. Means, as soon as i enter a value and move to next field, if the value entered is not as per desired regular expression than it should show the error. What i am trying is applying validator attribute on inputText and setting auto submit to true. It is working but some times page suddenly refresh itself and then the validation don't work.
Also one validation is to match the passwords (new password and confirm password). If i am using above method i am also not able to get the correct value of new password to match eith confirm password.
Can someone please suggest whats the right way to implement this functionality in ADF.
I am using jDev 11.1.1.4 and using Placeholder data control.
Please suggest
ThanksIf <af:validateRegExp> meets your requirements then sure, use it. The neat thing about the default validators will do both client side and server side validation. As such bypassing the JavaScript validators by sending raw HTTP requests to your server will still result in the required validation being applied via the server side.
For cross field validation, that's most easily done at the JSF bean level. It will require a round trip to the server to perform the validation though (rather than just validated at the client level). Is that an issue? There's an alternative solution but if you're not worried about round trips, go with the simple solution.
CM. -
Hi Any one can explain the reason for Com Routine Error 40.075.
Description:
Error for COM routine using application program (return code 40.075)
All input time series to which you can distribute are fixed
And Please provide the solution also.
Thanks and Regards,
RAVI SAGAR CHENNUProcedure
Remove at least one of the fixings of the aggregated time series
objects.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
You have fixed information in your planning area, which is causing the
issue to occurs.
So in tscube, if you try and load data into a key figure which has
at least one value fixed, the load will fail, if your selection criteria
in tscube overlaps with the aggregate level of the fixing. The reason is
because, tscube does the data set in one shot for the selection criteria
If your cube is a backup cube and you already have the fixing
information in it, you can use macro to unfix the fixing information in
the planning area, then use tscube to load.
Before executing the TSCUBE,you can schedule this macro job and then
execute the TSCUBE.while defining the macro you can check whether
the keyfigure value is fixed or not using the macro function
IS_FIXED(). If it's fixed then please unfix the cell.
You have fixed information in your planning area, which is causing the
issue to occurs.
To run the macro considering fixings, please, update your macro. Change
the Row properties and flag the "Adjust Fixings" information for each
row.
Also please find the below notes related to fixings:
1599645
687074 Macros: General notes on fixing with macros
643517 Macrobuilder: Fixing key figures with a macro
Even that these notes do not apply because of the SP, information is
relevant.
Also, please, take a look at the online documentation:
http://help.sap.com/saphelp_scm50/helpdata/en/92/cd15426bf3dd2ce10000000
a1550b0/frameset.htm -
Why I can not find field:Level in Project Hierarchy in BAPI_BUS2054_NEW?
Dear experts,
Why I can not find the field of "Level in Project Hierarchy" in structure BAPI_BUS2054_NEW?
I only define the data to upload wbs:
PROJECT DEFINITION
PROJECT DESCRIPTION
PROJECT PROFILE
WBS Element
WBS description
Can you tell me which fields must to upload?
Looking forward to your reply.
Many thanks.
MerryzhangAnyone can help me ?I need the field "Level" in BAPI_BUS2054_NEW,But I can not find it.
-
Am getting Routine error R6034. I can not open iTunes. Windows Vista Home 64 bit
For the first time,am getting a routine error R6034. Do not let open my iTunes, and possible lost all my contents. Why is this happening, is it nothing secure on the Internet no more even our music? Please I appreaciate any good help. I tried to redownload am stil the same message. During reinstallation.."Service Apple mobile device failed to start. Verify that you have sufficient privileges. Options ABORT,RETRY,OR IGNORE. That is what am getting.
Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
Remove all of these items in the following order:
iTunes
Apple Software Update
Apple Mobile Device Support (if this won't uninstall move on to the next item)
Bonjour
Apple Application Support
Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
Please note:
Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
HT1925: Removing and Reinstalling iTunes for Windows XP
HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
tt2 -
E-Recruitment - Requisition - Infotype Field Level Change Log
Hi Experts,
We are implementing SAP E-Recruitment, and would like to know how to capture the changes made in Requisition at infotype field level.
For example: If a support team member is added/delete in the Requisition (Tab - Support Team), then these changes (NEW/DELETE) at the infotype field level are required.
I have tried to maintain the infotype and the required fields in V_T582A, V_T585A, V_T585B and V_T585C. But didnt get any result when I executed the report RPUAUD00. Is there any additional configuration required for this?
Please adivse.
Thanks and Regards,
Dinakaran RHi,
You can just to that with the infotype table log. Support team is stored in table HRP5131.
Regards,
Nicole
Maybe you are looking for
-
This happens every time on a Google search. Greyed-out thumbnails will show individually if double-clicked. Every page of images after page 1 experiences the same problem. Reload does not help. Is this a Google problem or a Firefox problem?
-
Saving array data from a waveform chart
I am using a CRIO 9004 and a 9237 bridge module to measure some strains from strain gauges. I've got one timed loop that reads the DMA FIFO and puts the arrays of values (16 data points, 4 per channel) into a queue. In the consumer timed loop a For
-
What is a PHP server and how do I make it work??
I've heard about it, and I'm trying to make form, but apparently you need a PHP server. What is it and where do I get one and how do I make it work??? Thanks! Happy flashing!
-
How to handle events on standard toolbar
hi, the following code i worte is to load a form and fill data from db table ..but i'm getting only one record and the buttons on standard toolbar like next, previous, first and last are not enabled and not working...what should i do? plz give me the
-
I was working on an InDesign file, saved the file and tried to export it. I then got this message "Adobe InDesign is shutting down. A serious error was detected. Please restart InDesign to recover work in any unsaved InDesign documents" - Return to F