Error On trigger while adding a date

This is my trigger i want to add 15 dates to issue date,while running a trigger its showing error,
try to solve that trigger
create or replace
TRIGGER ISSUE_BOOK_TRI
BEFORE
INSERT ON issue_book FOR EACH ROW
DECLARE
CURSOR a IS
SELECT join_date FROM member_book;
p_join_date DATE;
BEGIN
OPEN a;
FETCH a INTO p_join_date;
IF p_join_date> :new.issue_date THEN
RAISE_APPLICATION_ERROR (-20322,'You may Issue book only after joining');
elsif
:new.return_date := :new.issue_date+15;
end if;
CLOSE a;
END;
Error(15,22): PLS-00103: Encountered the symbol "=" when expecting one of the following: . ( * @ % & = - + < / > at in is mod remainder not rem then <an exponent (**)> <> or != or ~= >= <= <> and or like like2 like4 likec between || indicator multiset member submultiset
Error(16,5): PLS-00103: Encountered the symbol "END" when expecting one of the following: begin function pragma procedure subtype type <an identifier> <a double-quoted delimited-identifier> current cursor delete exists prior

/* Formatted on 2012/04/25 14:22 (Formatter Plus v4.8.8) */
CREATE OR REPLACE TRIGGER issue_book_tri
  BEFORE INSERT
  ON issue_book
  FOR EACH ROW
DECLARE
  CURSOR a
  IS
    SELECT join_date
      FROM member_book;
  p_join_date   DATE;
BEGIN
  OPEN a;
  FETCH a
   INTO p_join_date;
  IF p_join_date > :NEW.issue_date
  THEN
    raise_application_error (-20322, 'You may Issue book only after joining');
  ELSIF 1 = 1 -- uuuuuu miss the condition here
  THEN
    :NEW.return_date := :NEW.issue_date + 15;
  END IF;
  CLOSE a;
END;

Similar Messages

  • Error with Dump while adding Currency field in UI

    Hello,
    I have a requirement to add a custom entity in MDGM with an currency attribute, and encountring dump while adding the field to Web Dynpro component in UI.
    Could some one point me a direction and see below :
    Custom Entity with attributes
    ZTSTOCK  data element is type curr (Lenght 13, Dec 2)
    Data Model is activated without errors and created custom Web Dynpro Form component. while designing it in UIBB by adding Element TSTOCK_VL encountring a error and dump.
    Error: Could not find attribute WAERS and also dump showing below:
    Category               ABAP Programming Error
    Runtime Errors         UNCAUGHT_EXCEPTION
    Except.                CX_WD_CONTEXT
    ABAP Program           CL_WDR_CONTEXT_NODE_INFO======CP
    Application Component  BC-WD-ABA-RUN
    Date and Time          21.05.2014 00:13:32
    Short text
         An exception occurred that was not caught.
    What happened?
         The exception 'CX_WD_CONTEXT' 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_WDR_CONTEXT_NODE_INFO======CP' has to be
         terminated.
    Any help please.
    BR, Srihari

    Yes, since the release of the current segment is 45 and you are now in a ECC6 system you cannot cancel the release (because there is no ECC6 version). Just use the add version button to create a new version for ECC6. Once you have that you can add fields and set the release to ECC6.
    If you later on need to add more segements you can then cancel the release for your ECC6 segment and add the fields and set the release to ECC6 again (because you already have an ECC6 segment)
    Hope that explains it,
    Michael

  • Error Code "-5002" While adding a Goods Issue Document

    Hi,
    While adding a goods issue document for only a specific combination of items I get "Internal Error (-5002) occured" message.
    The scenario is i am adding 5 rows with following specification
    Row1- Serial Managed Item
    Row2- Batch Managed Item
    Row3- Managed by none
    Row4- Batch Managed Item
    Row5- Serial Managed Item

    Hi I had the same Issue,
    What my problem solved was setting the baseline number for each serial and batch number on each specific line to the line number of that specific line.
    like this:
    doc.Lines.SerialNumbers.SetCurrentLine(doc.Lines.SerialNumbers.Count - 1);
    doc.Lines.SerialNumbers.InternalSerialNumber = 2;
    doc.Lines.SerialNumbers.BaseLineNumber = doc.Lines.SerialNumbers.Count - 1;
    Regards

  • Error 4 update while loading master data

    Hi Experts,
    While I am trying to extract master data for HR Object(0HR_OTYOBJ). I am getting errors in Detail Tab  as
    Record 6332 :0HR_OTYOBJ : Overlapping time intervals of data record 6332 with 6333 : '['19951107'/'1
    Record 6333 :0HR_OTYOBJ : Overlapping time intervals of data record 6333 with 6334 : '['19951115'/'1
    Like for 15 records.
    It is saying that Error 4 in the update .
    In status tab
    Error message during processing in BI
    Diagnosis
    An error occurred in BI while processing the data. The error is documented in an error message.
    System Response
    A caller 01, 02 or equal to or greater than 20 contains an error meesage.
    Further analysis:
    The error message(s) was (were) sent by:
    Update
    Can u pls give me ur suggests to sole this problem?
    Regards,
    Sridhar

    Hello,
    As per the error message in your data there are few overlapping records, that means with in the same time frame, there are duplicate records.
    Pls ask your HR functional consultant to check whether this is correctly maintained in SAP R/3.
    If this is correct in R/3, then goto 0HR_OTYOBJ properties and disable the time dependency of master data.
    Ravi

  • Error 0 update while loading master data

    Hi,
        Iam facing a problem while loading master data.Data has comes to PSA but it getting failed to load into infoobject it is showing the error " error in the 0 update".
    Ihave tried for manual update, even though it is showing same problem .masterdata 0material is copy back from production to Quality.presently iam uploading data in quality.can anybody give your valuable suggestions.
    Thanks & Regards,
    Mahi.

    I've a compounding characteristic in this characteristic.
    And the master data loading was fine yesterday but today it doesn't work.
    When I check with rsrv this characteristic, a dump with message:
    Error in ABAP application program.
    The current ABAP program "SAPLRRSI" had to be terminated because one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    In program "GP47HH4A9VROVK98YR0TT9S7TQ5 ", the following syntax error occurred
    in the Include "GP47HH4A9VROVK98YR0TT9S7TQ5 " in line 25:
    "Field "/BIC/MZCATWRT" is unknown. It is neither in one of the specifie"
    "d tables nor defined by a "DATA" statement. "DATA" statement."
    So I think something is wrong in this Char.
    But what can I do for that?
    Thanks a lot for all idea.
    Juan

  • Is it possible to integrate Picasa in WP 8.1 using Picasa Web Albums Data API ? some error is showing while adding refference..i am using proper prerequisites

    Documentation : https://developers.google.com/picasa-web/docs/1.0/developers_guide_dotnet
    This link is not working for WP 8.1
    Error 3
    Cannot find type System.ComponentModel.ExpandableObjectConverter in module System.dll.
    App2.WindowsPhone
    Error 2
    Type universe cannot resolve assembly: Google.GData.Client, Version=2.2.0.0, Culture=neutral, PublicKeyToken=04a59ca9b0273830.
    App2.Windows
    using Google.GData.Photos;
    using Google.GData.Client;
    using Google.GData.Extensions;
    using Google.GData.Extensions.Location;
    Any Solution ?

    Assuming that you are writing a WinRT Phone app, System.ComponentModel.ExpandableObjectConverter is not a valid object
    for WinRT.  You can see that it's not listed here:
    https://msdn.microsoft.com/en-us/library/windows/apps/hh454035.aspx
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • "Error on page" while adding a transaction iview to Role

    Hi,
    I am getting javascript error "Error on page" when I am trying to add a transaction iview to a Role.
    when i click on the error it shows
                     error : Expected ')'
    The error is coming only for few iviews while for others it if working fine.
    Does anyone know the reason for this error?
    Thanks,
    Kanchan

    /* Formatted on 2012/04/25 14:22 (Formatter Plus v4.8.8) */
    CREATE OR REPLACE TRIGGER issue_book_tri
      BEFORE INSERT
      ON issue_book
      FOR EACH ROW
    DECLARE
      CURSOR a
      IS
        SELECT join_date
          FROM member_book;
      p_join_date   DATE;
    BEGIN
      OPEN a;
      FETCH a
       INTO p_join_date;
      IF p_join_date > :NEW.issue_date
      THEN
        raise_application_error (-20322, 'You may Issue book only after joining');
      ELSIF 1 = 1 -- uuuuuu miss the condition here
      THEN
        :NEW.return_date := :NEW.issue_date + 15;
      END IF;
      CLOSE a;
    END;

  • Error REP-52005 while using cgicmd.dat file

    Hi,
    Per Oracle manual I added a simple key to cgicmd.dat
    statement: userid=uid/passwd@db report=stmt2.rdf
    Stopped and Started all 10gAS processes which includes Report service via OEM.
    Then I used the following URL in the browser,
    http:\\bigdaddy\reports\rwservlet?statement, I received the following error:
    REP-52005: The specified key statement does not exist in the key map file.
    Then I used one of the Oracle suppled keys such as oraqa. I received the simnlar message that it could not find key oraqa.
    What I did I need to do to fix this ?
    Thanks.
    Suresh

    Hi all,
    Resolved my own problem. You need to add %* as the last item of your key. From the documentation in cgicmd.dat it is not quite clear what it is supposed to do. So when I changed my key to
    statement: userid=uid/passwd@db report=stmt2.rdf %*
    it worked fine. Also, at least in 10gAS Midtier, you do not need to stop and start OC4J, OC4J_BI_forms or the report server as many have you believe.
    I checked if the key has been parsed by using the showmaps URL and clicking on parsed map file entries to see if the key has everything that I wanted it to have without re-starting anything.
    http://bigdaddy/reports/rwservlet/showmaps
    Suresh

  • Error in trigger while importing schema

    I am getting the below error while importing a schema back to a database..
    ORA-39083: Object type TRIGGER failed to create with error:
    ORA-04072: invalid trigger type
    Failing sql is:
    BEGIN DBMS_DDL.SET_TRIGGER_FIRING_PROPERTY('"pula"','"Trigger1"',FALSE) ; END;
    ORA-39083: Object type TRIGGER failed to create with error:
    I have checked the status of the trigger and everything id fine...
    Please help..!!

    Rajesh,
    Please go through this Wiki chapter on CoA import using DTW and you should be able to understand this better
    https://wiki.sdn.sap.com/wiki/display/B1/SAPBusinessOne...ToGo-10.DataTransfer+Workbench
    Suda

  • Error during BAPI while uploading Material data through MM01

    Hi all,
    i am facing one problem when uploading Material data thorough BAPI in MM01.i am attaching the code below and the error given.
    but in the debugger all the value is being stored.
    REPORT  ZFINISHED_MAT.
    Data: Begin of legacy_data occurs 0,
         MATNR LIKE MARA-MATNR,
         MBRSH LIKE MARA-MBRSH,            "Industry Sector
         MTART LIKE MARA-MTART,            "Matl Type
         WERKS LIKE MARD-WERKS,            "Plant
         LGORT LIKE MARD-LGORT,            "Storage location
         VKORG LIKE MVKE-VKORG,
         VTWEG LIKE MVKE-VTWEG,
         MAKTX LIKE MAKT-MAKTX,             "Matl Desc.
         MEINS LIKE MARA-MEINS,             "Base UOM
         MATKL LIKE MARA-MATKL,             "Matl.Grp
    *     BISMT LIKE MARA-BISMT,
         SPART LIKE MARA-SPART,             "Division
    *     BRGEW LIKE MARA-BRGEW,             "Gross weight
         GROES LIKE MARA-GROES,
         FERTH LIKE MARA-FERTH,
         ZEINR LIKE MARA-ZEINR,
         TAXKM1 LIKE MLAN-TAXM1,
         TAXKM2 LIKE MLAN-TAXM2,
         TAXKM3 LIKE MLAN-TAXM3,
         TAXKM4 LIKE MLAN-TAXM4,
         KTGRM LIKE MVKE-KTGRM,
    *     GEWEI LIKE MARA-GEWEI,             "Weight unit
    *     NTGEW LIKE MARA-NTGEW,             "Net weight
    *     KLART LIKE RMCLF-KLART,
         MTVFP LIKE MARC-MTVFP,             "Availibility Check
    *     XGCHP LIKE MARA-XGCHP,
         XCHPF LIKE MARA-XCHPF,             "Batch Management
         TRAGR LIKE MARA-TRAGR,
         LADGR TYPE MARC-LADGR,
         VPRSV LIKE MBEW-VPRSV,            "Price Control
         VERPR LIKE MBEW-VERPR,
    *     SPRAS LIKE MAKT-SPRAS,
      END OF LEGACY_DATA.
    DATA: BEGIN OF IT_MAKT OCCURS 0.
    INCLUDE STRUCTURE BAPI_MAKT.
    DATA: END OF IT_MAKT.
    *--- BAPI structures
    DATA: BAPI_HEAD LIKE BAPIMATHEAD, " Header Segment with Control Information
    BAPI_MAKT LIKE BAPI_MAKT, " Material Description
    BAPI_MARA1 LIKE BAPI_MARA, " Client Data
    BAPI_MARAX LIKE BAPI_MARAX, " Checkbox Structure for BAPI_MARA
    BAPI_MARD1 LIKE BAPI_MARD,
    BAPI_MARDX1 LIKE BAPI_MARDX, " Checkbox Structure for BAPI_MARD
    BAPI_MARC1 LIKE BAPI_MARC, " Plant View
    BAPI_MARCX LIKE BAPI_MARCX, " Checkbox Structure for BAPI_MARC
    BAPI_MVKE1 LIKE BAPI_MVKE,
    BAPI_MVKEX1 LIKE BAPI_MVKEX, " Checkbox Structure for BAPI_MVKE
    BAPI_MLAN1 LIKE BAPI_MLAN,
    BAPI_MLANX1 LIKE bapi_mlan1, " Checkbox Structure for BAPI_MLAN
    BAPI_MBEW1 LIKE BAPI_MBEW, " Accounting View
    BAPI_MBEWX LIKE BAPI_MBEWX, " Checkbox Structure for BAPI_MBEW
    BAPI_RETURN LIKE BAPIRET2. " Return Parameter
    *              $PARAMETERS DECLARATION$
    SELECTION-SCREEN BEGIN OF BLOCK B11
                              WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_FILE LIKE RLGRAP-FILENAME. " DEFAULT 'C:\TEST1.XLS'.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN END OF BLOCK B11 .
    *              $DATA DECLARATION$
    *DATA : BDC_DATA LIKE STANDARD TABLE OF BDCDATA WITH HEADER LINE.
    DATA : IT_EXCEL TYPE STANDARD TABLE OF  ALSMEX_TABLINE INITIAL SIZE 0 WITH HEADER LINE,
            IT_EXCEL_DUMMY TYPE ALSMEX_TABLINE.
    DATA : MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    DATA : L_MSTRING(480).
    DATA :L_SUBRC LIKE SY-SUBRC.
    DATA: V_FILE TYPE STRING.
    *              $AT-SELECTON SCREEN DECLARATION$
    AT SELECTION-SCREEN ON P_FILE.
      IF P_FILE IS INITIAL.
        MESSAGE E398(00) WITH 'FILE NAME NEEDS TO BE SPECIFIED'.
      ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
      CALL FUNCTION 'F4_FILENAME'
       EXPORTING
         PROGRAM_NAME        = SYST-CPROG
    *   DYNPRO_NUMBER       = SYST-DYNNR
         FIELD_NAME          = 'P_FILE'
       IMPORTING
         FILE_NAME           = P_FILE
    start-of-selection.
    perform data_fetch_to_xls.
    perform insertion.
    *&      Form  data_fetch_to_xls
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM data_fetch_to_xls .
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME                = P_FILE
          I_BEGIN_COL             = 1
          I_BEGIN_ROW             = 2
          I_END_COL               = 25
          I_END_ROW               = 2
        TABLES
          INTERN                  = IT_EXCEL
        EXCEPTIONS
          INCONSISTENT_PARAMETERS = 1
          UPLOAD_OLE              = 2
          OTHERS                  = 3.
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        WRITE: /'ERROR UPLOADING XLS FILE FROM PRESENTATION SERVER !' ,
               /'RETURN CODE : ', SY-SUBRC.
      ELSE.
    *************NOW FILL DATA FROM EXCEL INTO FINAL LEGACY DATA ITAB----LEGACY_DATA***************
        IF NOT IT_EXCEL[] IS INITIAL.
          CLEAR LEGACY_DATA.
          REFRESH LEGACY_DATA[].
          LOOP AT IT_EXCEL.
            IT_EXCEL_DUMMY = IT_EXCEL.
            AT NEW COL.
              CASE IT_EXCEL_DUMMY-COL.
                WHEN 1.
                  LEGACY_DATA-MATNR = IT_EXCEL_DUMMY-VALUE(18).
                WHEN 2.
                  LEGACY_DATA-MBRSH = IT_EXCEL_DUMMY-VALUE(1).
                WHEN 3.
                  LEGACY_DATA-MTART = IT_EXCEL_DUMMY-VALUE(4).
                WHEN 4.
                  LEGACY_DATA-WERKS = IT_EXCEL_DUMMY-VALUE(4).
                WHEN 5.
                  LEGACY_DATA-LGORT = IT_EXCEL_DUMMY-VALUE(4).
                WHEN 6.
                  LEGACY_DATA-VKORG = IT_EXCEL_DUMMY-VALUE(4).
                 WHEN 7.
                  LEGACY_DATA-VTWEG = IT_EXCEL_DUMMY-VALUE(2).
                WHEN 8.
                  LEGACY_DATA-MAKTX = IT_EXCEL_DUMMY-VALUE(40).
                WHEN 9.
                  LEGACY_DATA-MEINS = IT_EXCEL_DUMMY-VALUE(3).
                WHEN 10.
                  LEGACY_DATA-MATKL = IT_EXCEL_DUMMY-VALUE(9).
                WHEN 11.
                  LEGACY_DATA-SPART = IT_EXCEL_DUMMY-VALUE(2).
                WHEN 12.
                  LEGACY_DATA-GROES = IT_EXCEL_DUMMY-VALUE(32).
                WHEN 13.
                  LEGACY_DATA-FERTH = IT_EXCEL_DUMMY-VALUE(18).
                WHEN 14.
                  LEGACY_DATA-ZEINR = IT_EXCEL_DUMMY-VALUE(22).
                 WHEN 15.
                  LEGACY_DATA-TAXKM1 = IT_EXCEL_DUMMY-VALUE(1).
                 WHEN 16.
                  LEGACY_DATA-TAXKM2 = IT_EXCEL_DUMMY-VALUE(1).
                 WHEN 17.
                  LEGACY_DATA-TAXKM3 = IT_EXCEL_DUMMY-VALUE(1).
                 WHEN 18.
                  LEGACY_DATA-TAXKM4 = IT_EXCEL_DUMMY-VALUE(1).
                 WHEN 19.
                  LEGACY_DATA-KTGRM = IT_EXCEL_DUMMY-VALUE(2).
                WHEN 20.
                  LEGACY_DATA-MTVFP = IT_EXCEL_DUMMY-VALUE(2).
                 WHEN 21.
                  LEGACY_DATA-XCHPF = IT_EXCEL_DUMMY-VALUE(1).
                WHEN 22.
                  LEGACY_DATA-TRAGR = IT_EXCEL_DUMMY-VALUE(4).
                WHEN 23.
                  LEGACY_DATA-LADGR = IT_EXCEL_DUMMY-VALUE(4).
                WHEN 24.
                  LEGACY_DATA-VPRSV = IT_EXCEL_DUMMY-VALUE(1).
                WHEN 25.
                  LEGACY_DATA-VERPR = IT_EXCEL_DUMMY-VALUE(14).
                  APPEND LEGACY_DATA.
                  CLEAR LEGACY_DATA.
              ENDCASE.
            ENDAT.
            AT END OF ROW.
            ENDAT.
          ENDLOOP.
        ENDIF.
      ENDIF.
    ENDFORM.                    " data_fetch_to_xls
    *&      Form  insertion
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM insertion .
    LOOP AT legacy_data.
    * Header
    BAPI_HEAD-MATERIAL = legacy_data-MATNR.
    BAPI_HEAD-IND_SECTOR = legacy_data-MBRSH.
    BAPI_HEAD-MATL_TYPE = legacy_data-MTART.
    BAPI_HEAD-BASIC_VIEW = 'X'.
    BAPI_HEAD-SALES_VIEW = 'X'.
    BAPI_HEAD-STORAGE_VIEW = 'X'.
    *BAPI_HEAD-PURCHASE_VIEW = 'X'.
    BAPI_HEAD-ACCOUNT_VIEW = 'X'.
    * Material Description
    REFRESH IT_MAKT.
    *IT_MAKT-LANGU = legacy_data-SPRAS.
    IT_MAKT-MATL_DESC = legacy_data-MAKTX.
    APPEND IT_MAKT.
    BAPI_MARD1-PLANT = legacy_data-WERKS.
    BAPI_MARD1-STGE_LOC = legacy_data-LGORT.
    BAPI_MARDX1-PLANT = legacy_data-WERKS.
    BAPI_MARDX1-STGE_LOC = legacy_data-LGORT.
    ** Client Data - Basic
    BAPI_MARA1-MATL_GROUP = legacy_data-MATKL.
    *bapi_mara1-OLD_MAT_NO = legacy_data-bismt.
    BAPI_MARA1-BASE_UOM = legacy_data-MEINS.
    BAPI_MARA1-PROD_MEMO = LEGACY_DATA-FERTH.
    BAPI_MARA1-SIZE_DIM = LEGACY_DATA-GROES.
    BAPI_MARA1-DOCUMENT = LEGACY_DATA-ZEINR.
    BAPI_MARA1-BATCH_MGMT = LEGACY_DATA-XCHPF.
    *BAPI_MARA1-UNIT_OF_WT = legacy_data-GEWEI.
    BAPI_MARA1-TRANS_GRP = legacy_data-TRAGR.
    BAPI_MARA1-DIVISION = legacy_data-SPART.
    BAPI_MARAX-MATL_GROUP = 'X'.
    *BAPI_MARAX-OLD_MAT_NO = 'X'.
    BAPI_MARAX-BASE_UOM = 'X'.
    BAPI_MARAX-PROD_MEMO = 'X'.
    BAPI_MARAX-SIZE_DIM = 'X'.
    BAPI_MARAX-DOCUMENT = 'X'.
    BAPI_MARAX-BATCH_MGMT = 'X'.
    *BAPI_MARAX-UNIT_OF_WT = 'X'.
    BAPI_MARAX-TRANS_GRP = 'X'.
    BAPI_MARAX-DIVISION = 'X'.
    *SALES
    BAPI_MVKE1-SALES_ORG = legacy_data-VKORG.
    BAPI_MVKE1-DISTR_CHAN = legacy_data-VTWEG.
    *BAPI_MVKE1-DELYG_PLNT = legacy_data-DWERK.
    BAPI_MVKE1-ACCT_ASSGT = legacy_data-KTGRM.
    BAPI_MVKEX1-SALES_ORG = legacy_data-VKORG.
    BAPI_MVKEX1-DISTR_CHAN = legacy_data-VTWEG.
    *BAPI_MVKEX1-DELYG_PLNT = 'X'.
    BAPI_MVKEX1-ACCT_ASSGT = 'X'.
    ** Plant - Purchasing
    BAPI_MARC1-PLANT = legacy_data-WERKS.
    BAPI_MARC1-LOADINGGRP = legacy_data-LADGR.
    BAPI_MARC1-AVAILCHECK = legacy_data-MTVFP.
    *BAPI_MARC1-MRP_GROUP =  legacy_data-disgr.
    BAPI_MARCX-PLANT = legacy_data-WERKS.
    BAPI_MARCX-LOADINGGRP = 'X'.
    BAPI_MARCX-AVAILCHECK = 'X'.
    *BAPI_MARCX-MRP_GROUP =  'X'.
    * Accounting
    BAPI_MBEW1-VAL_AREA = legacy_data-WERKS.
    BAPI_MBEW1-PRICE_CTRL = legacy_data-VPRSV.
    BAPI_MBEW1-STD_PRICE =  legacy_data-VERPR.
    *BAPI_MBEW1-VAL_CLASS =  legacy_data-BKLAS.
    *BAPI_MBEW1-STD_PRICE = legacy_data-STPRS.
    *BAPI_MBEW1-PRICE_UNIT = legacy_data-PEINH.
    BAPI_MBEWX-VAL_AREA = legacy_data-WERKS.
    BAPI_MBEWX-PRICE_CTRL = 'X'.
    BAPI_MBEWX-STD_PRICE =  'X'.
    *BAPI_MBEWX-VAL_CLASS =  'X'.
    * TAX JURISDICTION CODE
    BAPI_MLAN1-TAXCLASS_1 = LEGACY_DATA-TAXKM1.
    BAPI_MLAN1-TAXCLASS_2 = LEGACY_DATA-TAXKM2.
    BAPI_MLAN1-TAXCLASS_3 = LEGACY_DATA-TAXKM3.
    BAPI_MLAN1-TAXCLASS_4 = LEGACY_DATA-TAXKM4.
    BAPI_MLAN1-TAXCLASS_1 = 'X'.
    BAPI_MLAN1-TAXCLASS_2 = 'X'.
    BAPI_MLAN1-TAXCLASS_3 = 'X'.
    BAPI_MLAN1-TAXCLASS_4 = 'X'.
    *--- BAPI to create material
    call function 'BAPI_MATERIAL_SAVEDATA'
    exporting
    HEADDATA = BAPI_HEAD
    CLIENTDATA = BAPI_MARA1
    CLIENTDATAX = BAPI_MARAX
    *PLANTDATA = BAPI_MARC1
    *PLANTDATAX = BAPI_MARCX
    * FORECASTPARAMETERS =
    * FORECASTPARAMETERSX =
    * PLANNINGDATA =
    * PLANNINGDATAX =
    * STORAGELOCATIONDATA =
    * STORAGELOCATIONDATAX =
    VALUATIONDATA = BAPI_MBEW1
    VALUATIONDATAX = BAPI_MBEWX
    * WAREHOUSENUMBERDATA =
    * WAREHOUSENUMBERDATAX =
    * SALESDATA = BAPI_MVKE1
    * SALESDATAX = BAPI_MVKEX
    * STORAGETYPEDATA =
    * STORAGETYPEDATAX =
    IMPORTING
    RETURN = BAPI_RETURN
    TABLES
    MATERIALDESCRIPTION = IT_MAKT
    * UNITSOFMEASURE =
    * UNITSOFMEASUREX =
    * INTERNATIONALARTNOS =
    * MATERIALLONGTEXT =
    * TAXCLASSIFICATIONS =
    * RETURNMESSAGES =
    * PRTDATA =
    * PRTDATAX =
    * EXTENSIONIN =
    * EXTENSIONINX =
    IF BAPI_RETURN-TYPE = 'E'.
    WRITE:/ 'Error:' ,BAPI_RETURN-MESSAGE ,'for material:' ,legacy_data-maTNR.
    ELSEIF BAPI_RETURN-TYPE = 'S'.
    WRITE: 'Successfully created material' ,legacy_data-maTNR.
    ENDIF.
    ENDLOOP.
    ENDFORM.                    " insertion
    The error: The field MARC-MTVFP/BAPI_MARC-AVAILCHECK is defined as a required field; it does not contain an entr
    suggestion will be vry helpful,
    Kind Regards,
    Edited by: Prasenjit Sengupta on Nov 16, 2009 9:11 AM

    Hi Prasenjit,
    Did you get any solution for this as I am getting same error from BAPI to update MRP controller in MARC table.
    Regards,
    Suruchi

  • Error in DTP while loading master data

    Hi Experts,
    When Iam loading 0MAT_SALES attributes master data, the load is complete till PSA. But whicle executing DTP to reach its further data target "info object" I getting an error Data record 7632 ('030001DF2116VBG20V-M9‚B '): Version '030001DF2116VBG20V-M9‚B ' is not valid. I understand that the same key values exist in the field.
    Iam also aware that if we check the tab "unique data records" in the update tab of DTP, it may be resolved.. but is this the right way to resolve this error? Or there is any other way to resolve this. Please help me to sort this.
    Also, in the above error statement, how can i see the record no "7632" in the PSA maintenance srceen?
    Points will be assigned.
    Best Regards,
    Geeta.

    Hi,
    Once you identify the master data record because of which the load is failing go and check the Master Data table for 0MAT_SALES(P-Table).And check for the OBJVER for the particular record.
    It might be happening that the same record exists in both M and A version(as you said data with same key exists)or the record might be in M Version.
    In that case run a Attribute changerun for 0MAT_SALES.This should bring all the records in A version.Then repeat the load and check.It mite go through.
    This might happen if there were changes in the Master data inthe last run and no change run was performed.
    Regards,
    Abhishek

  • Error V0 104 while adding select option on customized screen

    Hi all,
    I have a screen added on the standard transaction IW21 (with selection screen definition and called like subscreen). On this screen I have some SELECT-OPTIONS and when I press the button of selecting multiple values, I get the following message: "Requested function & is not available here" (V0 104), where & is long number starting with %..I have added entries to the tables T185F and T185 with the transaction VFBS, but I dont know how to assign the Function codes to SELECT-OPTIONS..
    Thanks in advance for feedback!
    Anna
    Edited by: Anna L on Jul 16, 2008 11:03 AM

    Just an explanation: no matter the error message I get, the values are transferred correctly from the multiple selection screen to my screen.
    I hope somebody got similar case and can give me some hint...
    Thank you,
    Anna

  • REGARDING ERROR MESAGE TRIGGER WHILE MAKING P.R AGAINST WBS ELEMENT.

    Dear FI/CO & PS Consultants,
                                                    in which node shell i have to configure  for getting the error message while creating the PURCHASE REQUISITION when  my budget is excedding.
    Actually i  craeted WBS ELEMENTS and budgeted. I created a PURCHASE REQUISITION and assigned the components , where the cost of all the components is higher than the budget assigned to WBS ELEMENT. But i am not getting the error message.
    Kindly do need full.
    Kindly send me the details to pardha at raincii.com
    Regards,
    Pardhu

    Hi,
    Please refer to the following informational notes that will explain the functionality:                                                                               
    Note: 178837 - Explains why BP604 appears/does not appear.                       
    Note: 783161 - Logic Explanation when AVC is appears not working                 
    Note: 873977 - Controlling elements in availability control                      
    Note: 166394 - Tolerance Limits information                                      
    Note: 1160675  Availability check, commitment carr. fwd. and budget           
    152571 -missing or wrong commitments
    459509 - commitments in purchasing
    634298  - commitment update in services
    772206
    See also note 47992  for checking the commitment activation for projects. 
    In transaction CUNI, the unit of measurements used at item level         
    must be set to value based commitment.                                   
    Regards,
    Edit

  • Error MUT-02041 : While exporting the data from Java system.

    Dear Friends,
    When exporting data from Java system (source system) using SAPINST. We are getting
    the below error in 4 of 5 (Archiving SDM Repository) stage.
    Error :
    MUT-02041 SDM call of createsdmkitjar ends with returncode 2
    With this, I am unable to proceed further. Please help me on this to proceed further.
    Thanks in advance,
    regards,
    Srinivas

    Hi All,
    I could find the below error log from sapinst.log file.
    =============
    Info: Exclude components as specified
    in /usr/sap/IPD/DVD_JAVA/51033746_1/Installation_Master_6.20_6.40_05_08/IM_AIX_PPC64/SAPINST/COMMON/INSTALL/JMIG/EXCLUDE.XML
    Info: Resulting JAR
    file: /oracle/IPD/sapdata1/data_export/SDM/SDMKIT.JAR
    Info: No temporal directory for packing is provided. SDM home directory
    will be used.
    Info: Pack directory exists already. Remove it first.
    Info: Start packing the components of com.gsk in
    packedOrigin_com.gsk.jar
    Info: Create /usr/sap/IPD/JC02/SDM/program/pack/packedOrigin_com.gsk.jarInfo: The components of com.gsk were successfully packed in
    packedOrigin_com.gsk.jar
    Info: Start packing the components of local in packedOrigin_local.jar
    Info: Create /usr/sap/IPD/JC02/SDM/program/pack/packedOrigin_local.jar
    Info: Create /oracle/IPD/sapdata1/data_export/SDM/SDMKIT.JAR
    Warning: Warning during command execution: No metadata files exist for
    development
    component 'revtrac_agu11'/'local'/'LOKAL'/'0.2009.08.11.10.56.14'/'0'.
    Cannot pack this archive.
    No metadata files exist for development
    component 'revtrac_aug13eartest'/'local'/'LOKAL'/'0.2009.08.13.14.44.25'/'0'. Cannot pack this archive.
    No metadata files exist for development
    component 'Aug10_09'/'local'/'LOKAL'/'0.2009.08.10.14.39.29'/'0'.
    Cannot pack this archive.
    No metadata files exist for development
    component 'Aug14'/'local'/'LOKAL'/'0.2009.08.14.10.46.38'/'0'. Cannot
    pack this archive.
    No metadata files exist for development
    component 'Aug14two'/'local'/'LOKAL'/'0.2009.08.14.10.55.21'/'0'.
    Cannot pack this archive.
    No metadata files exist for development
    component 'revtrac_aug11b'/'local'/'LOKAL'/'0.2009.08.13.14.36.43'/'0'.
    Cannot pack this archive.
    Missing archives may lead to errors after the packed SDM installation
    has been extracted later.
    Info: This SDM installation has been packed
    to /oracle/IPD/sapdata1/data_export/SDM/SDMKIT.JAR
    To unpack this installation again,
    extract /oracle/IPD/sapdata1/data_export/SDM/SDMKIT.JAR and invoke the
    SDM command install with parameter extractpackedinst=true
    Executed, but finished with warning(s). Return code: 2
    Error: Executed, but finished with warning(s). Return code: 2
    ERROR 2010-10-21 15:54:48
    MUT-02041 SDM call of createsdmkitjar ends with returncode 2
    =============
    Can you please check this and help me on this to proceed further.
    thanks..
    Srinivas

  • Error on UCCX while adding supervisor capability to the user

    Hi all,
    Her is the error "
    Unable to perform Cisco Unified CM User operation. You may refer to Application Administration logs for more details."
    I did some search for this error but I couldn't find anything. Any idea about this error??

    I saw this on my recent install, but then I was able to make the config change on the second server. Can you try that?
    Chris

Maybe you are looking for

  • Presentation variable is not supported in "SQL Issued"

    hi, there is a presentation variable called @{ps_var} from a prompt and I have written a custom sql and typed in "SQL Issued" !http://img31.imageshack.us/img31/8673/customsql.jpg! I found that the presentation variable is not supported in "SQL Issued

  • Not able to find JAVA after installation

    Dear sir, I would like to install ECC.6 on Red Hat Enterprises Linux 5.0 server for test purpose. I have already completed RHEL installation and perform all the recommendation written in SAP NOTES 171356, 1048303 etc. I have installed JAVA as per the

  • Lightroom 5 et creative cloud

    Bonjour, j'ai créé mon compte creative cloud il y a quelque mois et j'ai acheté photoshop cc et j'ai depuis quelques années lightroom (depuis la version 2 et maintenant la 5) j'ai vu aujourd'hui dans creative cloud lightroom que j'ai donc téléchargé

  • Where to download workbook template?

    Hi expert, Could you tell me where to download some workbooks as my template? Or you can just send to my email box: [email protected] I need them as reference to my current workbook. Thanks a lot!!

  • TDS Certificate printing Error

    hi Experts i have Run the TDS Cycle   but when i am Executing J1INCERT Tcode for Tds certificate printing it showing Error  the Error message is no data selected for printing.  We are Implimenting sap in 4.6c only Plz give me the suggestion where i n