Runtime Error in enhanced DPR_Approval form in xRPM 4.5

Hi ,
I'm working on an enhancement for the DPR approval Adobe Form to display phases and tasks in a Project.
I have created a form based on the standard DPR_ARPPOVAL form and did the configuration on the SPRO.
Everything is mapped correctly but when I run the approval for a Phase on Project Management, I get the folllowing run-time error
I have checked the table mentioned in the error and the type exists. I have no clue how to fix this. I also checked the OSS notes but nothing helped.
I would appreciate if anyone could help me on this.
Version: SAP NW 2004s SP15
xRPM 4.5
Adobe Live cycle Designer 7.0
Error Description:
Error in the ABAP Application Program
The current ABAP program "CL_DPR_FORM_MODEL_APPROVAL====CP" had
terminated because it has
come across a statement that unfortunately cannot be executed.
The following syntax error occurred in program "/1BCDWB/SAPLSM00
include "/1BCDWB/LSM00000019F01 " in
line 1737:
"Field "DPR_TS_TASK_CHG-CURRENCY" is unknown. It is neither in o
"he specified tables nor defined by a "DATA" statement. "DATA" s
"t."
The include has been created and last changed by:
Created by: "SMULLAPUDI "
Last changed by: "SMULLAPUDI "
Error in the ABAP Application Program
The current ABAP program "CL_DPR_FORM_MODEL_APPROVAL====CP" had
terminated because it has
come across a statement that unfortunately cannot be executed.
Thank you,
Vasu

Found the Solution. Add the reference fields for currency and quantity fields used in the Interface.
This should resolve the issue

Similar Messages

  • Runtime error in enhancement spot-' mereq_topline does  not exists.'

    Hi all,
    I have implemented an implicit enhancement spot in ME53n.
    When i applied break point in enhancement spot and control goes to ebhancement spot in debugging mode, i got purchse requisition number in mereq_topline.
    When i tried to use this structure value in code i get runtime error-
    ' mereq_topline does  not exists.'
    Can you please guide how to resolve  this runtime error.
    thanks.
    Edited by: Sanjay_lnt on Sep 20, 2010 8:52 AM

    Sanjay,
    try to delete the enhancement and recreate it
    Thanks
    Bala Duvvuri

  • Getting runtime error while enhancing the view SRQM_INCIDENT_S/incidentSRL of SRQM_INCIDENT_S UI component

    context generation failed in view SRQM_INCIDENT_S/incidentSRL of UI Component SRQM_INCIDENT_S
    an exception has occured
    exception class CX_SY_MOVE_CAST_ERROR- source type \ class- CL_SRQM_INC_INCIDENTSRL_CTXT is not compatible, for the purposes of  assignment with target type / CLASS= ZL_SRQM_INC_INCIDENTSRL_CTX
    Method : ZL_SRQM_INCIDENTSRL_IMPL=>WD_CREATE_CONTEXT..
    initialization of view SRQM_INCIDENT_S/incidentviewset of ui component SRQM_INCIDENT_S failed....
    cannot display view srqm_incidet_s/mainwindow of ui component srqm_incident_s
    the above exceptions occured while enhancing the view of SRQM_INCIDENT_S search UI Component..
    please let me know the reason...

    Hi Srinivas,
    It seems to be standard SAP Issue. Please refer to SAP Note 1488728 for fixing the issue. The note recommends to implement the below code in the generated class ZL_SRQM_INC_INCIDENTSRL_IMPL by redefining the method WD_CREATE_CONTEXT.
    METHOD wd_create_context.
      context = cl_bsp_wd_context=>get_instance(
              iv_controller = me
              iv_type = 'ZCL_SRQM_INC_INCIDENTSRL_CTXT' ).
      typed_context ?= context.
      super->wd_create_context( ).
    ENDMETHOD.
    Regards,
    Mahesh

  • Runtime error in extractor enhancement

    Hi,
    I need to enhance the extractor 0WBS_ELEMT_ATTR with an additional field. The field is a Z field from the table PRPS.
    Now PRPS is a base table for the extractor for this extractor, so simply adding this field into the append structure should suffice.
    However, when I do this the extractor gives the following runtime error:
    Syntax error in program "SAPLPSBW "
    Component called ZZSO already exists.
    The error is in the function call  "e_fname".
    I have found that the same Z field is used in another structure CNCI_PRPS. Could this be leading to the error?
    Please let me know if any of you have any insights as to why this problem might be occurring.
    TIA,
    Amrita

    Hi,
    In my case the problem was caused because the same ZZ Field was used in two structures.
    One for ECC and one for BI. This was causing some interference.
    To solve this I changed the field name in my extract structure to ZZZSO and populated it via a CMOD routine.
    Hope this helps.
    Amrita

  • Runtime error while opening the main window in form.

    Hi,
    i am getting this run time error when i am copying the standard script j_2i_pla and opening text element for changes even same problem with with standard form also below is the dump error
    Runtime Errors         DATA_LENGTH_TOO_LARGE
    Except.                CX_SY_RANGE_OUT_OF_BOUNDS
    Date and Time          28.10.2009 10:44:20
    Short text
         Invalid partial field access: Length is too large
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "SAPLSTXK" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
    Error analysis
         An exception occurred that is explained in detail below.
         The exception, which is assigned to class 'CX_SY_RANGE_OUT_OF_BOUNDS', was not
          caught in
         procedure "TOKEN_COMMENT" "(FORM)", nor was it propagated by a RAISING clause.
         Since the caller of the procedure could not have anticipated that the
         exception would occur, the current program is terminated.
         The reason for the exception is:
         In the executed program "SAPLSTXK", the system attempted to access the field
         "ITF_TOKEN" of the type "C" and with the length 255 using the length 273.
         However, a partial field access with a length specification that is
         larger than the field length is not allowed.

    Hello,
    Please check the Character formats / Text stlyes/Paragarph defined within Main window, The error is because of some inconsistency withinthe layout component.
    Regards,

  • Runtime error in Adobe forms

    Hi,
    I am getting a run time error when i create ADOBE form and try to save. I am using SAP GUI 7.10 and ADOBE livecycle version 7.1. I did tried with ADOBE livecycle version 8.0 and getting same problem.
    NOTE:  This is the first ADOBE form i am trying to create in company.
    Below are the dump details ...Please let me know if any of you  have faced similar problem....Thanks
    Short text
        The current application triggered a termination with a short dump.
    What happened?
        The current application program detected a situation which really
        should not occur. Therefore, a termination with a short dump was
        triggered on purpose by the key word MESSAGE (type X).
    Error analysis
        Short text of error message:
        Control Framework : Error processing control
        Long text of error message:
         Diagnosis
             An error occurred when the system tried to process the commands
             from the Automation Queue on the presentation server.
             There are several possible reasons for this:
             - The installation of the SAP GUI on the presentation server is
             faulty or obsolete.
             - There is an error in the application program
             - There is an error in the SAPGUI or an integrated control
         Procedure
             1. Make sure that you have imported the appropriate Support
             Package, the current kernel, and GUI patch for the release of your
             system
             2. Check whether the error occurs locally on one or a few PCs, or
             generally on all PCs. Note whether the error only occurs for some
             users, for example because of a specific Customizing setting.
             If it only occurs locally, this suggests an installation problem
             with the PC. Check the installation; if necessary, reinstall the
             software. In the dump, search for the SY-MSGLI field, since it may
             point to the cause of the error.
             3. Activate the Automation Trace (in accordance with SAP Note
             158985).
             4.Start the transaction and continue until the screen immediately
             before the dump.
             5. From the System -> Utilities menu, choose Autom. Queue,
             Synchronous Processing.
             The status bar of the GUI displays the text:
                "Automation synchron flush mode on"
             6. If you now proceed with the application, the short dump will
             display the ABAP call that caused the error; the Automation Trace
             will contain the error on the presentation server.
             7. If necessary, load the short dump and trace files on to
             sapservX, so that SAP can analyze them.
        Technical information about the message:
        Message class....... "CNDP"
        Number.............. 006
        Variable 1.......... " "
        Variable 2.......... " "
        Variable 3.......... " "
        Variable 4.......... " "
    Trigger Location of Runtime Error
        Program                                 SAPLOLEA
        Include                                 LOLEAU02
        Row                                     29
        Module type                             (FUNCTION)
        Module Name                             AC_SYSTEM_FLUSH
    Source Code Extract
    Line  SourceCde
        1 FUNCTION AC_SYSTEM_FLUSH .
        2 *"----
        3 ""Lokale Schnittstelle:
        4 *"  IMPORTING
        5 *"     VALUE(CALLED_BY_SYSTEM) TYPE  C OPTIONAL
        6 *"  EXCEPTIONS
        7 *"      CNTL_SYSTEM_ERROR
        8 *"      CNTL_ERROR
        9 *"----
       10   data: sysubrc like sy-subrc.
       11
       12   CALL FUNCTION 'AC_FLUSH_CALL'
       13        EXPORTING
       14             SYSTEM_FLUSH = 'X'
       15             CALLED_BY_SYSTEM = CALLED_BY_SYSTEM
       16        IMPORTING
       17             MESSAGE_NR   = sysubrc
       18             MESSAGE_TEXT = SY-MSGLI.
       19
    20   sy-subrc = sysubrc.
    21
    22   CASE SY-SUBRC.
    23     WHEN 0.
    24     WHEN 1.
    25 *     system_error
    26       MESSAGE ID 'CNDP' TYPE 'X' NUMBER 007 RAISING CNTL_SYSTEM_ERROR.
    27     WHEN 2.
    28 *     method_call_error
    >>       MESSAGE ID 'CNDP' TYPE 'X' NUMBER 006 RAISING CNTL_ERROR.
    30     WHEN 3.
    31 *     property_set_error
    32       MESSAGE ID 'CNDP' TYPE 'X' NUMBER 006 RAISING CNTL_ERROR.
    33     WHEN 4.
    34 *     property_get_error
    35       MESSAGE ID 'CNDP' TYPE 'X' NUMBER 006 RAISING CNTL_ERROR.
    36     WHEN OTHERS.
    37       RAISE CNTL_ERROR.
    38   ENDCASE.
    39
    40 ENDFUNCTION.

    Hi Chandra,
    you can try following.
    Before saving PDF form, put external breakpoint in FM
    AC_FLUSH_CALL_INTERNAL.
    Save PDF Form, i guess it should go to this FM. Check which exception is setting sy-subrc = 2.
    (There are different checks in this FM for checking ActiveX, javabeen support etc).
    Hope this will help.
    Although, I never encountered the error you mentioned
    Regards,
    Mohaiyuddin

  • Runtime error in XML form

    Hi experts,
    I have created xml form in XML form builder. One of the DataSchema is to browse document from KM Content but i got and error when try to browse the document. The error is:
    Runtime Error
    An exception occured while processing the request.
    Additional information: null
    Exception ID = 709f0fad-331d-2e10-a4b7-9257c0f4c0ed
    Runtime Error
    An exception occured while processing the request.
    Additional information: null
    Exception ID = 719f0fad-331d-2e10-ac94-9257c0f4c0ed
    We are using SAP Netwever Portal 7.01EHP1. Please help me to solve this problem. TQ.
    Rgds,
    Nanie

    we got our problem solved with Note 1534667 - NullPointerException when trying to preview/save an XML Form

  • Adobe Interactive Forms Runtime Error: Unknown host

    I have installed the NW2004s sneak preview, configured the J2EE services for Adobe Interactive Forms,
    and am trying to test the TravelRequest sample web dynpro  that uses interactive form. I get the following runtime error:
    com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Severe : PDFDocument is NULL. Exception : Service call exception; nested exception is:
         java.net.UnknownHostException: pwdf3102
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:385)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1117)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:887)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRespond(WindowPhaseModel.java:573)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:152)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:330)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:297)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:706)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:660)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:228)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:56)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:40)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    I have seen several message postings similar to this, but none of the solutions seems to fit my case.
    Any ideas?
    Regards, Bob

    Hi,
    i got exactly the same error after installing nw2004s SP07  sneak preview.
    I checked oss note for changing the hostname - without success.
    But now i found the reason. I missed to configure the : "Destination URL for the Adobe Document Services" as described here:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/02/560f41ca73d349e10000000a1550b0/frameset.htm
    Hope this helps.
    Regards
    Matthias

  • Runtime Error For Converting Static pdf to Dynamic Xml Form pdf

    Hi All,
    I am converting my static pdf to dynamic xml form pdf using Adoble Livecycle Designer ES 8.2 it is giving runtime error dialog.
    My static pdf size is 12MB and it contains 46 pages(mostly all pages will have images). Do we have any limitations for converting static pdf to dynamic xml form pdf ?
    Error message image file is attatched to this thread.
    Can any body please help me on this.
    Advance Thanks
    Prasad Sagala

    Hi Paul,
    With out dividing into smaller chunks, Do we have any other alternative?
    Because in my other pdf reports having more than 50 pages (in between 100-600). If i want do divide smaller chunks it will be the long process.
    Thanks
    Prasad Sagala

  • Preventing Form Calc Runtime Error Message Dialog

    When there is an runtime error in a script written in JavaScript, Adobe Reader "swallows" the error (if it is not caught). I mean, it may write the error to the console, but the user isn't warned of the fact, through a message box.
    So, for the user, everything is well.
    For the programmer, because he can use a top level try/catch/finally statement, if he is interested in knowing of the fact, this behaviour is a good compromise.
    If there is a syntax error in a script written in JavaScript Adobe Reader also does not alert the user of the fact.
    If you write code in FormCalc the behaviour is the exact opposite.
    Syntax errors show up to the user. This may be admissible because, with thorough testing, it will happen in development-time.
    But runtime errors always show up to the user. A big dialog, as tall as your code, shows the code to the user, and, at the bottom, possibly already off the screen, the description of runtime error. This may be an ugly description, depending on what failed.
    As far as I know, there is no construct in the Form Calc language that allows catching errors, so you're stuck.
    To make things worse not every FormCalc function is available in JavaScript. Many useful functions only exist in FormCalc.
    I tried calling FormCalc scripts from JavaScript scripts, using the field.execEvent('...') and it works, appart from a lot of dificulties in passing parameters to, and returning results from, using fields' values as intermediaries of this interaction.
    Yet, a try/catch/finally block in the calling JavaScript script does not catch FormCalc errors...so we're back again to the same problem.
    All this, imho, is an absurd, and can only be understood as some market-like feature.
    Is there ANY undocumented way or dirty trick to prevent FormCalc error messages from displaying to the user?
    Or
    Is there ANY undocumented way or dirty trick to catch FormCalc error messages, in FormCalc code?

    Duarte:
    You cannot catch exceptions in FormCalc -- it doesn't have that language feature. If this is important to you, you need to stay with JavaScript. Of course there are certain functions that are available only in FormCalc. There is a way to get at those functions from JavaScript. See my blog post at:
    http://blogs.adobe.com/formfeed/2009/02/calling_formcalc_functions_fro.html
    John

  • Getting C++ Runtime Error R6025 trying to open LC form

    This is a form I created with LC 8.05/Acrobat Pro 8.1, now on my client's website at http://www.rachc.org/docs/CommonsRR4Form-Guidelines.pdf  -- is there something seriously wrong with this version of Live Cycle Designer? Or is it the current crop of Readers or 8.3 Acrobat pro? With IE the website completely freezes, but with Mozilla, just crashes acrobat. What's UP??
    MS C++ Runtime Library
    Acrobat.exe - Runtime Error
    R6025 - Pure Virtual Function Call
    Research on this Error shows faulty programing calls in acrobat -- is the latest versions of 8.3 and Reader causing this? If not, What then?
    BarryG

    i'm new and just trying to get help.

  • Forms runtime error

    I am getting below error in form 6 & 6i while runing, there are no issues in compiling, but after runing a form I am getting below error.
    Compiling procedure FETCH_DATA...
    Compilation error on procedure FETCH_DATA:
    PL/SQL ERROR 0 at line 0, column 0
    ORA-00600: internal error code, arguments: [17069], [52043992], [], [], [], [], [], []
    Compilation errors have occurred.
    Forms 6 and 6i.
    Database Oracle 10g2

    Oracle Database Version 10.2.0.1.0
    as far as i know you have to install the latest patchsets when running on 10g2.

  • WHILE DELETING A SALE ORDER GETTING A RUNTIME ERROR " Screen: Illegal message"

    Hi Experts,
    While deleting a sales order giving run time error.  PFB runtime error details.
    If you know any OSS message, please let m know. I tried, but there is no luck.
    Short text
        Screen: Illegal message
    What happened?
        The current screen processing action was terminated since a situation
        occurred where the application could not continue.
        This is probably due to an error in the ABAP program or in the current
        screen.
    What can you do?
        Note which actions and input led to the error.
        For further help in handling the problem, contact your SAP administrator.
        You can use the ABAP dump analysis transaction ST22 to view and manage
        termination messages, in particular for long term reference.
    Error analysis
        The program attempted to issue a " " message during "Exit Command" processing.
        This is an illegal operation.
        The program was terminated.
        Screen name.............. "SAPMV45A"
        Screen number............ 4001
    How to correct the error
        The program must be modified to correct the error.
        The modification must be made in "Exit Command" processing.
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
    Source Code Extract
    Line  SourceCde
        1 *---------------------------------------------------------------------*
        2 *       FORM YVBEP_LESEN                                              *
        3 *---------------------------------------------------------------------*
        4 *       Lesen der Tabelle YVBEP (nicht sortiert)                      *
        5 *---------------------------------------------------------------------*
        6 FORM YVBEP_LESEN USING US_POSNR
        7                        US_ETENR
        8               CHANGING CH_TABIX.
        9
       10   YVBEP = SPACE.
       11   YVBEP-MANDT = VBAK-MANDT.
       12   YVBEP-VBELN = VBAK-VBELN.
       13   YVBEP-POSNR = US_POSNR.
       14   YVBEP-ETENR = US_ETENR.
       15   READ TABLE YVBEP.
       16   IF SY-SUBRC > 0.
       17     MESSAGE E506 WITH US_POSNR US_ETENR.
       18   ENDIF.
    >>>>>   CH_TABIX = SY-TABIX.
       20
       21 ENDFORM.
    Could you please help on this issue.
    Thanks
    Srinu

    Hi Srinu,
    it looks like you got the error message Schedule line &1 &2 is missing in table YVBEP while deleting the sales order.
    It seems, that there are no SAP notes regarding this issue. Do you have this issue with all orders or with a single order?
    If only a single order causes this issue, maybe something was wrong during an update.
    If you get this error for many orders, then custom code (modification, enhancement, user exit in MV45AFZZ, ...) may be the reason for it.
    If you have no custom code in module pool SAPMV45A, then contact SAP for this issue.
    Regards,
    Klaus

  • BAPI Runtime Error DBIF_RSQL_INVALID_REQUEST with module "KONV_BEARBEITEN"

    Hi Experts
    I am trying to create a sales order using BAPI FM BAPI_SALESORDER_CREATEFROMDAT1. After executing the program it shows in output screen that the sales order created and also displays the newly created sales order number. But when I want to check the order from VA03 it shows Express document "Update was terminated" received by author AAA, where AAA is login name.
    I also analysis the sort dump for which the update process was terminated. I give the error details
    Runtime Errors         DBIF_RSQL_INVALID_REQUES
    Error analysis
        An invalid request was made to the SAP database interface in a statement
         in which the table "KONV " was accessed.
    Below are the module name and report from where the error is coming.
    Function Module name  RV_SALES_DOCUMENT_ADD
    Program Name  SAPLV45U
    Include  LV45UF0K
    Row  26
    Source code from Rruntime Error
      Line  SourceCde
    1 *****************************************************************
        2 *  Unterroutinen RV-Auftragsabwicklung alphabetisch sortiert:
        3 *  ----------------------------------------------------------
        4 *  Buchstabe K:
        5 *
        6 *****************************************************************
        7
        8 *----------------------------------------------------------------
        9 *       FORM KONV_BEARBEITEN
       10 *----------------------------------------------------------------
       11 FORM KONV_BEARBEITEN.
       12
       13   CHECK: FKONV_GEAENDERT NE SPACE OR
       14          VORGANG = CHARH.
       15
       16   IF VORGANG NE 'H'.
       17     DELETE FROM KONV WHERE KNUMV = VBAK-KNUMV.
       18 ENHANCEMENT-POINT KONV_BEARBEITEN_10 SPOTS ES_SAPLV45U.
       19   ENDIF.
       20
       21   LOOP AT FXKOMV.
       22     FXKOMV-MANDT = VBAK-MANDT.
       23     FXKOMV-KNUMV = VBAK-KNUMV.
       24     MODIFY FXKOMV.
       25   ENDLOOP.
    >>>>>   INSERT KONV FROM TABLE FXKOMV.
       27   IF SY-SUBRC NE 0.
       28     MESSAGE A100 WITH
       29   ENDIF.
       30
       31 ENHANCEMENT-POINT KONV
       32 ENDFORM.
       33 *eject
    Below is my source code.
    *& Report  Z_BAPI_SALESORDER
    REPORT  z_bapi_salesorder.
    * Sales document type
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text FOR FIELD p_auart.
    PARAMETERS: p_auart TYPE auart OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Sales organization
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text1 FOR FIELD p_vkorg.
    PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Distribution channel
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text2 FOR FIELD p_vtweg.
    PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Division.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text3 FOR FIELD p_spart.
    PARAMETERS: p_spart TYPE spart OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SKIP 1.
    * Sold-to
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text4 FOR FIELD p_sold.
    PARAMETERS: p_sold  TYPE kunnr OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Ship-to
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text5 FOR FIELD p_ship.
    PARAMETERS: p_ship  TYPE kunnr.
    SELECTION-SCREEN END OF LINE.
    SKIP 1.
    * Material
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text6 FOR FIELD p_matnr.
    PARAMETERS: p_matnr TYPE matnr   OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Quantity.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text7 FOR FIELD p_menge.
    PARAMETERS: p_menge TYPE dzmengc  OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Plant
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text9 FOR FIELD p_plant.
    PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Data declarations.
    DATA: v_vbeln            LIKE vbak-vbeln.
    DATA: header             LIKE bapisdhead.
    DATA: headerx            LIKE bapisdhead1x.
    DATA: item               LIKE bapiitemin  OCCURS 0 WITH HEADER LINE.
    DATA: itemx              LIKE bapisditemx OCCURS 0 WITH HEADER LINE.
    DATA: partner            LIKE bapipartnr  OCCURS 0 WITH HEADER LINE.
    DATA: return             LIKE bapireturn1    OCCURS 0 WITH HEADER LINE.
    DATA: lt_schedules_inx   TYPE STANDARD TABLE OF bapischdlx
                             WITH HEADER LINE.
    DATA: lt_schedules_in    TYPE STANDARD TABLE OF bapisdhedu
                             WITH HEADER LINE.
    * Initialization.
    INITIALIZATION.
      v_text   = 'Order type'.
      v_text1  = 'Sales Org'.
      v_text2  = 'Distribution channel'.
      v_text3  = 'Division'.
      v_text4  = 'Sold-to'.
      v_text5  = 'Ship-to'.
      v_text6  = 'Material'.
      v_text7  = 'Quantity'.
      v_text9  = 'Plant'.
    * Start-of-selection.
    START-OF-SELECTION.
    * Header data
    * Sales document type
      header-doc_type = p_auart.
      headerx-doc_type = 'X'.
    * Sales organization
      header-sales_org = p_vkorg.
      headerx-sales_org = 'X'.
    * Distribution channel
      header-distr_chan  = p_vtweg.
      headerx-distr_chan = 'X'.
    * Division
      header-division = p_spart.
      headerx-division = 'X'.
      headerx-updateflag = 'I'.
    * Partner data
    * Sold to
      partner-partn_role = 'AG'.
      partner-partn_numb = p_sold.
      APPEND partner.
    * Ship to
      partner-partn_role = 'WB'.
      partner-partn_numb = p_ship.
      APPEND partner.
    * ITEM DATA
      itemx-updateflag = 'I'.
    * Line item number.
      item-itm_number = '000010'.
      itemx-itm_number = 'X'.
    * Material
      item-material = p_matnr.
      itemx-material = 'X'.
    * Plant
      item-plant    = p_plant.
      itemx-plant   = 'X'.
    * Quantity
      item-target_qty = p_menge.
      itemx-target_qty = 'X'.
      APPEND item.
      APPEND itemx.
    *   Fill schedule lines
      lt_schedules_in-itm_number = '000010'.
      lt_schedules_in-sched_line = '0001'.
      lt_schedules_in-req_qty    = p_menge.
      APPEND lt_schedules_in.
    *   Fill schedule line flags
      lt_schedules_inx-itm_number  = '000010'.
      lt_schedules_inx-sched_line  = '0001'.
      lt_schedules_inx-updateflag  = 'X'.
      lt_schedules_inx-req_qty     = 'X'.
      APPEND lt_schedules_inx.
      CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
        EXPORTING
          order_header_in           = header
    *     WITHOUT_COMMIT            = ' '
    *     CONVERT_PARVW_AUART       = ' '
       IMPORTING
         salesdocument              = v_vbeln
    *     SOLD_TO_PARTY             =
    *     SHIP_TO_PARTY             =
    *     BILLING_PARTY             =
    *     RETURN                    =
        TABLES
          order_items_in            = item
          order_partners            = partner
    *     ORDER_ITEMS_OUT           =
    *     ORDER_CFGS_REF            =
    *     ORDER_CFGS_INST           =
    *     ORDER_CFGS_PART_OF        =
    *     ORDER_CFGS_VALUE          =
    *     ORDER_CCARD               =
    *     ORDER_CFGS_BLOB           =
         order_schedule_ex          = lt_schedules_in
    * Check the return table.
      IF v_vbeln <> space.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        WRITE: / 'Document ', v_vbeln, ' created'.
      ELSE.
        WRITE: / 'Error in creating document'.
      ENDIF.
    I am unable to trace the exact reason. Please help and thanks in advance.
    Edited by: Joy Banerjee on Oct 12, 2009 7:47 AM

    Hi Prashant,
    Set the profile parameter abap/buffersize value to maximum.Get the virtual memory increased.
    If it doesn't work, see in transaction db02 if there is sufficient tablespace.
    Let me knoe the status of tablespaces.
    Regards,
    Sabita

  • Runtime error in excise tax

    hi
    i am getting runtime error while doing googs receipt with tax code(without tax not getting error).please see this error.
    Runtime Errors         MESSAGE_TYPE_X
    Date and Time          27.08.2008 20:32:45
    Short dump has not been completely stored (too big)
    Short text
    The current application triggered a termination with a short dump.
    What happened?
    The current application program detected a situation which really
    should not occur. Therefore, a termination with a short dump was
    triggered on purpose by the key word MESSAGE (type X).
    Error analysis
    Short text of error message:
    Balance in transaction currency
    Long text of error message:
    Diagnosis
    A balance has occurred in transaction currency 'INR' with the
    following details:
    Exchange rate '00', amount '             8.00-' and currency key
    'INR'.
    The data in the transaction currency were transferred from the
    calling application.
    System Response
    Your data cannot be processed in FI.
    Procedure
    The error is probably in the calling application.
    Technical information about the message:
    Message class....... "F5"
    Number.............. 702
    Variable 1.......... 00
    Variable 2.......... " 8.00-"
    Variable 3.......... "INR"
    Variable 4.......... " "
    Trigger Location of Runtime Error
    Program                                 SAPLMBWL
    Include                                 LMBWLU21
    Row                                     59
    Module type                             (FUNCTION)
    Module Name                             MB_POST_GOODS_MOVEMENT
    Source Code Extract
    Line
    SourceCde
    29
       when a goods movement for an inbound or outbound delivery is posted
    30
       directly from VL31N/ VL01N, XBLNR is not yet known when we call
    31
       CKMV_AC_DOCUMENT_CREATE, but the number is supposed to be stored in
    32
       BKPF as well. There is no other way to forward XBLNR to FI as not
    33
       every document is posted by MB_CREATE -> a new function module in
    34
       MBWL for transferring the information, called by FI, meant to load
    35
       the complete function group for all MBxx postings when this isn't
    36
       required (Performance). Would be the better way to transport the
    37
       information after switching off MBxx in later release.
    38
       corresponding IMPORT ... FROM MEMORY ... can be found in
    39
       AC_DOCUMENT_POST (FORM FI_DOCUMENT_PREPARE (LFACIF5D))
    40
    l_mem_id = 'MKPF-XBLNR'.                                   " 641365
    41
    EXPORT xblnr = xblnr_sd TO MEMORY ID l_mem_id.             " 641365
    42
    ENDIF.
    43
    IF xmkpf-xabln IS INITIAL.                               "note 434093
    44
    CALL FUNCTION 'MB_XAB_NUMBER_GET'.                   "note 434093
    45
    ENDIF.                                                   "note 434093
    46
    47
    ENHANCEMENT-POINT MB_POST_GOODS_MOVEMENTS_01 SPOTS ES_SAPLMBWL STATIC.
    48
    49
    ENHANCEMENT-POINT MB_POST_GOODS_MOVEMENTS_02 SPOTS ES_SAPLMBWL.
    50
    CALL FUNCTION 'MB_CREATE_MATERIAL_DOCUMENT_UT'
    51
    EXCEPTIONS
    52
    error_message = 4.
    53
    As soon as we have started to put things into UPDATE TASK, we must
    54
    ensure that errors definitely terminate the transaction.
    55
    MESSAGE A is not sufficient because it can be catched from
    56
    external callers which COMMIT WORK afterwards, resulting in
    57
    incomplete updates. Read note 385830 for the full story.
    58
    IF NOT sy-subrc IS INITIAL.
    >>>>>
    MESSAGE ID sy-msgid TYPE x NUMBER sy-msgno WITH            "385830
    60
    sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    61
        MESSAGE A263.
    62
    ENDIF.
    63
    Optische Archivierung
    64
    Spaete Erfassung mit Barcode
    65
    Redesign of barcode handling -> note 780365
    66
    PERFORM barcode_update(sapmm07m) USING xmkpf-mblnr
    67
    xmkpf-mjahr
    68
    barcode.
    69
    70
    MOVE-CORRESPONDING xmkpf TO emkpf.
    71
    CALL FUNCTION 'MB_MOVEMENTS_REFRESH'
    72
    EXCEPTIONS
    73
    error_message = 4.
    74
    MOVE-CORRESPONDING xmkpf TO emkpf.
    75
    CALL FUNCTION 'MB_MOVEMENTS_REFRESH'
    76
    EXCEPTIONS
    77
    error_message = 4.
    78
    IF NOT sy-subrc IS INITIAL.

    Hi,
    Please check the following notes
    Note 1242773 - Getting short dump when doing GR for combined requisitions
    Note 1047059 - Run time error in migo/Goods receipt
    Regards,
    Jigar

Maybe you are looking for

  • Function Module for getting Payroll start date and end date

    Hi Gurus,   If I give one date then is there any function module to find the payroll period start date and enddate for that given date? Points will be awarded Thanks Ravi

  • Create Hyperlink when sending mail via Outlook

    Hi all, I want to mail a hyperlink from within function module via outlook. Creating the hyperlink and starting function <new mail> in outlook works just fine. But when the document (word, pdf, etc.) contains blanks, the hyperlink gets interrupted. F

  • White sceen is displyed

    my i pod in not working a white screen is displayed,it doesn't open, i have restored it but nothing has changed then after some trials is stops opening on i tunes please help

  • Redirecting popup windows to embed window

    I'm working on embedding javafx inside 3d engine. I'm using EmbeddedWindow/HostInterface route used by JFXPanel and it works perfectly for most of the cases. Unfortunately, popup windows (right click, top menu, choice box etc) are giving some trouble

  • Can't get rid of message

    I have a message in my inbox which shows greyed but I can't get rid of it- won't delete, move to another box. I think I gave it some accidental key strokes but nothing will get rid of it. Help