Field level Routine

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,
Karuna

Hi,
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.

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

  • 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

  • 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,
    S

    DATA:
      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.

  • 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 PM

    Hi,
    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.

  • 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.
    Merryzhang

    Anyone can help me ?I need the field "Level" in BAPI_BUS2054_NEW,But I can not find it.

  • 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 R

    Hi,
    You can just to that with the infotype table log. Support team is stored in table HRP5131.
    Regards,
    Nicole

  • JDeveloper 11.1.1.2.0 - Help text at field level

    Hi,
    We are making use of the Help.properties file to produce field level text. I have field's such as the following
    <af:inputText value="#{bindings.DocumentName.inputValue}"
                                    label="#{bindings.DocumentName.inputValue eq null ? ''  : bindings.DocumentName.hints.label}"
                                    required="#{bindings.DocumentName.hints.mandatory}"
                                    columns="#{bindings.DocumentName.hints.displayWidth}"
                                    maximumLength="#{bindings.DocumentName.hints.precision}"
                                    shortDesc="#{bindings.DocumentName.hints.tooltip}"
                                    id="it4"
                                    autoSubmit="true"
                                    helpTopicId="WORKFLOW_EDITPURCHASEORDER_DOCUMENTNAME"
                                    readOnly="true"
                                    rendered="true"Is there a elegant way to disable the help text? e.g. provide a form level radio button to enable/disable help text? The only way i can think at the moment would
    be to set the helpTopidId to a key that doesnt exists using an EL expression.
    Regards

    Hi,
    I think what you suggest is the way to go in this case
    Frank

  • 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,
    Nitish

    Are 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");

  • Field Level Authorisation Control

    Hi Expert,
                i want field level authorisation control for Usage Probablity in Bill of Material. In CS02- Change Material BOM for some user i want to restrict to change the usage probablity of particular component.
    how to do this. i already tried through creating & adding authorisation object in Role but it's not working.
    Pls suggest solution with detailed steps.
    Regards,
    Dev

    Dev,
    You can better try using, transaction variants using transaction SHD0 and assign them to the respective users.
    You can do a search in this forum to find topics on how to create transaction variants.
    Regards,
    Prasobh

  • 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
    thanks

    Hi,
    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

  • Field level trigger on qualifier field

    Hello,
    Here is my scenario.
    I have a qualified field : ACTIVE FLAG  in address qualified table.
    What i want to do is if the value of this field changes to N (possible values of this field : Blank,Y and N),i want my workflow to trigger.
    I know its possible with field trigger option where you create one time stamp field and will give the field you want to comare
    but in case of qualified tables you can not select qualifier as a selected field for timestamp field.you can only select non qualifiers.
    is there any other way this can be achieved?
    thanks
    Bindi

    SharePoint doesn't provide field level permissions.  Fellow MVP Dan Holme has a good article that recommends some approaches on this here:
    http://sharepointpromag.com/blog/3-approaches-restricting-access-sharepoint-columns-and-metadata
    Another approach you could take is to make the form an InfoPath form from in an InfoPath LIBRARY instead.  This way you can control the form fields and prevent users from directly editing fields.  It also plays really well with workflow.
    I trust that answers your question...
    Thanks
    C
    |
    RSS |
    http://crayveon.com/blog |
    SharePoint Scripts | Twitter |
    Google+ | LinkedIn |
    Facebook | Quix Utilities for SharePoint
    thanks for your reply , seems that creating two lists will work for me better. but can you provide some useful links that talks about how to create two lists and link them , and specify different permissions for each list using web-parts...

  • Field level Validation in SAP PI

    Hi All,
    I am integrating with a 3rd Party system (File to Proxy scenario). Source file contains around 30 fields. I was asked to do field level validations for each of this field in PI. Is this a good practice. Do we do field validation in PI Integration development? I think PI should contain more of integration logic than field level validations. Please suggest.
    Also out of all the 30 fields few are numeric, some are text and some are dates. While creating data types do I need to created all as string or based on their nature I need to use integer,date etc? Please suggest which is the best practice.
    Thanks.

    I agree with Rahul.
    Yes we can perform validation in PI (most of the cases we do by request of the Business team).
    But always have a thumb rule for your self.
    1. Check first weather the source system is capable of doing the validation at its end.
    2. If YES make sure the source system does the validations required. (I am sure most of the app would be able to the validation).
    3.If NO then accept the validation process to be done in PI end.
    One Important thing:
    What kind of validation are you taking about? i assume this is field level validation rite?
    and this is a Proxy to file scenario rite.
    I will strongly suggest you to do following things at source and receiver Business systems.
    1.gather a meeting the with the end business teams (source and receiver).
    2.Force them to create data type at their end (sorce and target)with  same data type structure- with same field length even.
    ie, if source first field is integer with maxlen25  corresponding reciver field is also integer with maxlen25, if source has char field then in reciver also its char.
    If you make both the source and reciever business to have same data type at there end, NO VALIDATION would be required to be done in PI
    also in this case you can declare all the data type as STRING in PI and pass the data to receiver system. (which has the same data type as sender).
    Regards,
    Senthilprakash.

  • Best way to author field level help for a CHM?

    Hi
    I have been asked to create an HTML help (CHM) system for a .Net application which will include context sensitive help at both page and field level.
    I have used map ids for page level help before - i.e. assigned a map id to topics and given this list to a developer for implementation, but I have never created field level help.
    I've been looking at the 'What's This?' help project wizard but am confused as to whether this is the best approach and how it fits with the project as a whole (or even if it compatible with .Net applications). Does this mean that I need two help projects for the application - one for the main help, and one for the field level help? Is there a way to create field level help without using the 'What's This?' wizard?
    I am using Robohelp 7.
    Any advice gratefully received!
    Chloe

    Hi, Chloe,
    As Peter notes, even Microsoft has backed away from using field-level Help in the last few years, so it may be worth trying to determine whether your users will benefit from having it available to them. That's not to say that you can't deliver field-level Help, however, as all the required methods for calling it are still available to .NET developers.
    To clarify, what Madcap Software calls "DotNet Help" is just a proprietary Help viewer that the company hopes will be more modern and appealing to writers than the older HTML Help (.chm) viewer. HTML Help remains the recommended format for Windows applications, whether .NET or not, and you can use any authoring tool that is capable of outputting a .chm file to create online Help for a .NET application.
    The method that your developers use to call field-level Help determines how it should be authored. If they use the standard .NET method (the SetHelpString method of the HelpProvider class), each text string is embedded in the application code itself, and not retrieved from your .chm file. More information here:
    http://msdn.microsoft.com/en-us/library/system.windows.forms.helpprovider.sethelpstring(VS .71).aspx
    http://support.microsoft.com/kb/821777
    http://helpware.net/mshelp2/demo2/h1xNET.htm
    Alternatively, developers can use the old HTML Help API to retrieve the text string from a .chm file. See:
    http://msdn.microsoft.com/en-us/library/ms670082(VS.85).aspx
    http://helpware.net/htmlhelp/how_to_whatsthis.htm
    http://support.microsoft.com/?kbid=317406
    The drawback of both methods is that the Help popups are plain text only — no graphics, text formatting, hyperlinks, etc. To work around this, some people use the third-party KeyHelp control to create feature-rich HTML popups. See:
    http://www.keyworks.net/keyhelp.htm
    This allows you to deliver the type of Help that you mentioned in your second message ("is there a way to do this so that these topics open in a small popup, without the TOC / tri-pane structure?").
    Pete

Maybe you are looking for

  • Alerts not triggering in web client

    I'm trying to get alerts to work on a Web IC in our CRM 2007 system I am using the standard alert CMRELATEDDOCUMENTS And have created the following Rule Policy in the rule modeler Rule Policy Details Context: Intent Driven Interaction (IC WebClient)

  • How to add attribute to ISE 1.2

    The authentication details page shows under "Other Attributes" an attribute called SelectedAuthenticationIdentityStores Is there a way I can create rules based on this attribute? I can't find it anywhere in the policy conditions options. Thanks in ad

  • PC crashed how do I transfer content to new computer?

    My PC crashed and all I have is the content of my iPhone and on my son's iPod and the iPad. How do I transfer their content to the new computer.

  • Application Logging in Standalone weblogic - quick questions

    Hi In JDeveloper, we could write our application logging to logs for debugging and viewable from JDeveloper. When we deploy to Standalone weblogic server, we cant find our logging. Of the 3 loggers (Msg Catalog, nonCatalog, Commons log API), Which lo

  • Mail not moving messages or deleting from server until application quitted

    I have an Outlook.com email account. When I delete messages or move them in Apple Mail, the change is not reflected on the server until I quit the program completely. This isn't happening with other actions. Mail is immediately marked as read or flag