Error generating Document Series...

Hi,
I have created 4 user define tables and it's registion. After successfull registration of UDO. It is not allowing me to change series of other transaction. It show error --- "Another User Modified table (NNM1)"....
Thanks in advance.
Manish

Manish,
Please see this SAP Note ...
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=0001128871
Sap Note#: 1128871
Eddy

Similar Messages

  • Export entire Dashboard in excel is giving error generating document when table view have subtotals

    Hi all,
    We have dashboard with multiple tabs and are trying to Export entire Dashboard into excel.
    Excel file is generated with all dashboard tabs as sheets but few of those sheets are empty with Error generating document message in first cell.
    After further analysis we concluded that cause is table view with subtotals enabled. Pivot tables with subtotals are generated properly.
    Obvious workaround solution to recreate table views into pivots is not possible due high number of reports.
    We are running Oracle Business Intelligence Product Version 11.1.1.7.150120 (Build 150113.1200 64-bit)
    Any ideas or solutions about this problem would be much appreciated.
    Thank you;
    Klaudio

    We just found culprit
    Rows per page of table view must be max 999999999 which is more than enough for our needs.

  • I am trying to print a fillable form.  It will not print and I get two error messages "document could not be printed" and "there were no pages selected to print."  Th latter is not true.  Won't print all, the page I am on, nor any series of pages inserted

    I am trying to print a fillable form - - an application for a Chinese visa.  It will not print and I get two error messages:  "document could not be printed" and   "there were no pages selected to print."  The latter is not true.  Won't print at all, the page I am on, nor any series of pages inserted.
    Am using a MAC desktop and a Cannon PIXMA MX922 printer.
    I need to print this form now that it is filled out?  What can I do? 

    Hello PW, I am having this problem and all suggestions haven't worked yet. Where is the Preferences|Documents you are referring to? I am on a PC and using Windows.
    EDIT: I found it and did, but still not working.

  • Document Series Error after creation of a new Posting Period

    Hi
    While Creation of a new Document Series for user created UDO (after creation of new Posting Period
    with Period Indicator) on update its showing a message box
    "Application Error occurred, Dump file created in path  C\Program Files\SAP\..\Log......"
    And soon SAP B1 gets exit.
    Can any one help me to come out of this problem.

    Hi,
    Whenever Dump file created, it is high time to log a message to SAP support.  This problem is beyond forum function.
    Thanks,
    Gordon

  • Error while accessing documents in document tab in Generate document proper

    Hi Experts,
    I am facing issue while generating document properties.
    I am doing this is qualification for one infoobject and I am getting error as " Operation SDOK_M_ATTR_CREATE could not be carried out for". In development this is fine but in qualification it is in error.
    I tried RSRV for this infoobject and it is consistent.
    Could you please let me know how to solve this issue.
    Regards,
    Raghu

    Hi Purnima,
    Please take a look at note: 431126
    I hope this helps.
    best regards
    Orla.

  • Error when Generating Document Number

    Hi Friends,
    I am trying to generate Document Number which uses C1-DOC-NBR and generate Document Number . when i click on Freeze/Complete button of bill ,the following error is coming .
    Document Sequence for Issuing Center HITECH with Branch 1011 and Document Type C1IN
    not found
    But i already attached issue center to the user ,SA characterstic type ie(public/non public),and all other parameters for that algorithm.
    pls help to solve this error.
    Thanks&Regards
    sivaram

    You need to verify the configuration of "Issuing Center", also ensure that "HITECH" Issuing Center is part of the User's Characteristic Value as defined under Document Number Details algorithm on the Installation Record.

  • Jwsc Ant task generates [ERROR] - A document style operation must not have

    If the wsdlc Ant task is run on a WSDL file to generate the JWSC file and subsequently the jwsc task is run an error gets generated:
    [ERROR] - A document style operation must not have a non header INOUT or OUT Parameter.

    If the wsdlc Ant task is run on a WSDL file to generate the JWSC file and subsequently the jwsc task is run an error gets generated:
    [ERROR] - A document style operation must not have a non header INOUT or OUT Parameter.

  • DI API Problem when generating documents with Item with BOM "Template"

    I have a web application we've been using for years, we created an interface to select with child items from the BOM template you want to add, just like in SAP when you add this items in the document lines.
    For some reason through the DI it automatically adds again this items additionally to the ones I selected, is there a way to change this behaviour?
    I checked the Document.Lines.Count property when I add the item and after I add it in SAP and I get the total items that I put in the first place, but in the final document in SAP its completly different

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using SAPbobsCOM;
    namespace SAP_Error_Demo
        class Test
            public static void Execute()
                try
                    Company company = new Company
                                              DbServerType = BoDataServerTypes.dst_MSSQL2005,
                                              Server = ".",
                                              UseTrusted = true,
                                              CompanyDB = "ESHOPS",
                                              UserName = "manager",
                                              Password = "manager"
                    int returnValue = company.Connect();
                    int errCode;
                    string errMsg;
                    if (!returnValue.Equals(0))
                        company.GetLastError(out errCode, out errMsg);
                        MessageBox.Show(string.Format("Connection Error: {0}", errMsg));
                        return;
                    Documents document = (Documents) company.GetBusinessObject(BoObjectTypes.oOrders);
                    document.CardCode = "yuval";
                    document.Series = 2;
                    document.DocDate = DateTime.Now;
                    document.DocDueDate = DateTime.Now.AddMonths(1);
                    document.DocCurrency = "$";
                    Document_Lines lines = document.Lines;
                    lines.ItemCode = "21725";
                    lines.Quantity = 1;
                    lines.UnitPrice = 54.021;
                    lines.Price = 54.021;
                    lines.VatGroup = "V1";
                    returnValue = document.Add();
                    if (!returnValue.Equals(0))
                        company.GetLastError(out errCode, out errMsg);
                        MessageBox.Show(string.Format("An error ocurred when adding document: {0}", errMsg));
                        return;
                    MessageBox.Show("Document was generated successfully");
                    company.Disconnect();
                catch (Exception ex)
                    MessageBox.Show(string.Format("Error: {0}", ex.Message));

  • Excise Invoice creation error -Billing document does not exists

    Dear Experts,
    I have created supplementary sales order, billing with refernece through sales order by VF01.
    Now I want to create Excise Invoice but system gives error Billing Document does not exists
    I have checked billing document in VBRK table & it is showing in table.
    My item categroy is L2N -and set it to C
    I have assigned Billing type under Outgoing excise invoice ->Assign billing type to delivery type still my excise invoice is not generating.
    Pl. guide me.
    Thanks
    Trupti

    Resolved my problem.
    Actually in Billing item categroy if you put SD Doc. Catg. as M you can do excise invoice even if you have not created the
    outbound delivery.
    So cycle will be Supplementary Sales Order->VF01 with ref. to SO->J1IIN -Excise invoice creation.
    Thanks to all.
    Trupti.

  • Error generating release against scheduling agreement  (cause 6) in ME38

    Hello Experts,
    Need your inputs on the the below error getting generated in ME38
    Error generating release against scheduling agreement  (cause 6)
    Message no. 06857
    Diagnosis
    The function module for generating a scheduling agreement release (forecast delivery schedule or JIT delivery schedule) has run up against an error, causing processing to be terminated.
    In this case the cause of the error is 6.
    System Response
    The error may involve one of the following situations:
    1: The nature of the error cannot be specified precisely.
    2: The forecast delivery schedule or the JIT delivery schedule was generated but no message record could be generated.
    3: A document type for which the functions "Generate forecast delivery schedule" or "Generate JIT delivery schedule" are not defined may be involved.
    4: A material for which the function "Generate JIT delivery schedule" is not defined may be involved.
    5: A scheduling agreement that has not yet been released by all persons responsible may be involved.
    6: The factory calendar has not been maintained correctly.
    Procedure
    Error source 1:
    Check whether the vendor and plant shown in the PO actually exist in the system.
    Error source 2:
    Check the Customizing facility for message determination with respect to delivery schedules created under scheduling agreements (print operation '9').
    Error source 3:
    In Customizing, maintain the document types accordingly ( Define document types for scheduling agreement). Then create a new scheduling agreement with a document type for which release documentation is defined.
    Error source 4:
    Maintain the JIT delivery schedule indicator in the material master record.
    Error source 5:
    Have the scheduling agreement released by the person(s) responsible.
    Error source 6:
    If you are using a release creation profile without aggregation, you must maintain the factory calendar for the next 999 days
    Regards,
    Santosh

    Hello Mallinath,
    I referred the note and following are the observarion in the system.
    Step1:Run T-code SE16 (table T001W) to check the calendar ID of the plant.
    -----Referred the Calendor ID
    Step2: Check the JIT/Forecast delivery schedule of release creation profile in customizing. (T-code OLME -> Scheduling Agreement -> Maint. Rel. Creation Profile for Sched. Agmt. w. Rel. Docu.)
    Run T-code SCAL to adjust the period of the calendar ID which checked in STEP 1 according to the JIT/Forecast delivery schedule of the release creation profile which checked in STEP 2.
    (For example, if the JIT/Forecast delivery schedule of the release creation profile is "999" days, then the calendar should be extended for the next 999 days at least)
    ---------In this case factory calendor is valid till 2015 and according to note needs to change the factory calendor till 2018( or for 999 days) ?
    Waiting for your inputs.
    Thanking you,
    Santosh

  • Please Help!! Error in document : BKPFF $ DEVCLNT

    Hi All Gurus,
    I am trying to use BAPI - BAPI_ACC_DOCUMENT_POST to post to FB50.
    I am using the below paramaters -
    DOCUMENTHEADER         
    TABLES
           ACCOUNTGL              
           CURRENCYAMOUNT
    RETURN.
    But I am getting the error -   Error in document : BKPFF $ DEVCLNT. Can someone please help me with this. I have been breaking my head over this. Dont know what is going wrong!                     .
    Thanks, Nina.

    Thanks for all your help, Aaron.
    *T Y P E S *
    TYPES: BEGIN OF t_indata,
                   t_ddate(8) TYPE c,
                   t_ref(17) TYPE c,
                   t_dbank(8) TYPE c,
                   t_disno(4) TYPE c,
                   t_glacnt(10) TYPE c,
                   t_descrip(50) TYPE c,
                   t_damt(13) TYPE c,
                   t_jobid(8) TYPE c,
                   t_rexpen(8) TYPE c,
                   t_tperiod(8) TYPE c,
                   t_tnumb(8) TYPE c,
                   t_ctrans(8) TYPE c,
                   t_ccenter(10) TYPE c,
           END OF t_indata.
    TYPES: BEGIN OF t_error,
                   t_ddate(8) TYPE c,
                   t_ref(17) TYPE c,
                   t_dbank(8) TYPE c,
                   t_disno(4) TYPE c,
                   t_glacnt(10) TYPE c,
                   t_descrip(50) TYPE c,
                   t_damt(13) TYPE c,
                   t_jobid(8) TYPE c,
                   t_rexpen(8) TYPE c,
                   t_tperiod(8) TYPE c,
                   t_tnumb(8) TYPE c,
                   t_ctrans(8) TYPE c,
                   t_ccenter(10) TYPE c,
                   message(100)     type c,  " Error message
          END OF t_error.
    *W O R K A R E A S *
    DATA: w_indata TYPE t_indata,
          w_error TYPE t_error.
    *I N T E R N A L T A B L E S *
    DATA: i_indata TYPE STANDARD TABLE OF t_indata WITH HEADER LINE,
          i_error TYPE STANDARD TABLE OF t_error WITH HEADER LINE.
    DATA: i_acgl LIKE BAPIACGL09 OCCURS 0 WITH HEADER LINE,
          i_currency LIKE BAPIACCR09 OCCURS 0 WITH HEADER LINE,
          i_return LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    *V A R I A B L E S *
    DATA: v_file       TYPE string,
          v_string(1022),                " To read data from file
          v_ddate(10)  TYPE c,
          v_pdate(10)  TYPE c,
          v_dcre       type wrbtr,            " Dollar Amount credit conv
          v_ddeb       TYPE wrbtr,           " Dollar Amount debit conv
          v_lines TYPE i,                   " used for format message
          v_msg(100),                        " used for Error message
          v_ind   TYPE i,
          v_index type i.
    DATA: V_DOCHEADER LIKE BAPIACHE09.
         V_OBJ_TYPE LIKE BAPIACHE09-OBJ_TYPE,
         V_OBJ_KEY LIKE BAPIACHE09-OBJ_KEY,
         V_OBJ_SYS LIKE BAPIACHE09-OBJ_SYS.
    *C O N S T A N T S *
    CONSTANTS: c_creacnt TYPE string VALUE '111444',  " Liability account
               c_del type x value '09',               " for hash delimited file
               c_fslash VALUE '\',                    " Used for Forward slash
               c_bslash VALUE '/'.                    " Used for backward slash
    *S E L E C T I O N S C R E E N
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF BLOCK first WITH FRAME TITLE text-001.
    PARAMETERS: p_fname LIKE rlgrap-filename OBLIGATORY DEFAULT 'C:\CorpCard.txt',  " File name
                rd_pserv RADIOBUTTON GROUP radi DEFAULT 'X',                    " Pres. Server
                rd_aserv RADIOBUTTON GROUP radi.                                " App.  Server
    Error file
    parameters: p_efile type rlgrap-filename default
    '/tmp/CorpCard_error'.
    SELECTION-SCREEN END OF BLOCK first.
    At selection-screen
    Check which file is selected
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
    Perform to get the current value of the selection screen
      PERFORM get_current_value.
      IF rd_aserv = 'X'.
        MESSAGE i398 WITH 'Can not browse unix directories'(030).
      ELSE.
      F4 help for presentation server file name
        PERFORM get_local_file_name USING 'P_FNAME' CHANGING p_fname.
      ENDIF.
    AT SELECTION-SCREEN.
    perform to validate input file
      PERFORM validate_filename USING p_fname.
    S T A R T O F S E L E C T I O N *
    START-OF-SELECTION.
    Presentation File upload
      if rd_pserv = 'X'.
        perform upload_pre_file.
      endif.
    Unix File Upload
      if rd_aserv = 'X'.
        perform upload_unix_file.
      endif.
    Perform to populate the internal table to the bapi.
    PERFORM populate_debit.
    Perform to populate the internal table to the bapi.
    PERFORM populate_credit.
    Perform to process the input data and post to FB50
      PERFORM post_data.
    E N D O F S E L E C T I O N *
    END-OF-SELECTION.
    *if not i_error[] is initial.
    perform to generate error file and send to application server
    perform generate_error_report.
    endif.
    *&      Form  get_current_value
    FORM get_current_value .
    Local internal table for screen fields
      DATA: BEGIN OF i_dynpfields OCCURS 0.
              INCLUDE STRUCTURE dynpread.
      DATA: END OF i_dynpfields.
      CLEAR   i_dynpfields.
      REFRESH i_dynpfields.
      i_dynpfields-fieldname = 'RD_ASERV'.
      APPEND i_dynpfields.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname               = sy-cprog
          dynumb               = sy-dynnr
        TABLES
          dynpfields           = i_dynpfields
        EXCEPTIONS
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          invalid_parameter    = 7
          undefind_error       = 8
          double_conversion    = 9
          OTHERS               = 10.
      IF sy-subrc <> 0.
        MESSAGE i398  WITH 'Unbale to read the selection screen values'(031)
      ELSE.
        READ TABLE i_dynpfields INDEX 1.
        IF sy-subrc = 0.
          MOVE i_dynpfields-fieldvalue TO rd_aserv.
        ENDIF.
      ENDIF.
    ENDFORM.                    " get_current_value
    *&      Form  get_local_file_name
    FORM get_local_file_name USING p_file
                          CHANGING p_cfile.
    Local variable
      DATA: l_fname LIKE ibipparms-path,   " File name
            v_repid LIKE sy-repid.
      l_fname = p_file.
      v_repid = sy-repid.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = v_repid
          dynpro_number = sy-dynnr
          field_name    = p_file
        IMPORTING
          file_name     = l_fname
        EXCEPTIONS
          OTHERS        = 1.
      IF sy-subrc = 0.
        p_cfile = l_fname.
      ENDIF.
    ENDFORM.                    " get_local_file_name
    *&      Form  validate_filename
    FORM validate_filename  USING p_fname TYPE any.
      IF rd_aserv = 'X'.
    Local variable for file length
        DATA : l_len TYPE i.
        l_len = STRLEN( p_fname ).
        IF p_fname CA space.
          IF sy-fdpos < l_len.
            MESSAGE e398 WITH 'File name should not contain spaces'(032).
          ENDIF.
        ENDIF.
        IF p_fname CA c_fslash.
          MESSAGE e398 WITH 'File name should not contain \'(033).
        ENDIF.
        IF p_fname NA c_bslash. " No directory path given
          MESSAGE w398 WITH 'File will be created in home directory'(034).
        ENDIF.
      ENDIF.
      IF p_fname0(1) = c_fslash AND p_fname1 = space.
        MESSAGE e398 WITH 'File name should not contain only /'(035).
      ENDIF.
    ENDFORM.                    " validate_filename
    *&      Form  upload_pre_file
    FORM upload_pre_file.
    v_file = p_fname.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = v_file
          filetype                = 'ASC'
          has_field_separator     = 'X'
          dat_mode                = ' '
        TABLES
          data_tab                = i_indata
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      IF sy-subrc <> 0.
        MESSAGE e398 WITH 'Unable to upload the file'(002).
      ENDIF.
    ENDFORM.                    " upload_pre_file
    *&      Form  upload_unix_file
    FORM upload_unix_file .
      open dataset p_fname for input in text mode encoding default.
      if sy-subrc <> 0.
        message i398 with 'File open error(012)'(012) p_fname.
        stop.
      else.
        do.
          clear: v_string.
          read dataset p_fname into v_string.
          case sy-subrc.
            when 0.
              split v_string at c_del
                   into  i_indata-t_glacnt
                         i_indata-t_descrip
                         i_indata-t_damt
                         i_indata-t_ccenter.
                append i_indata.
              clear i_indata.
            when 4.
              exit.
            when 8.
              message i398 with 'Unable to Read the File'(008) p_fname.
              stop.
          endcase.
        enddo.
        close dataset p_fname.
      endif.
    ENDFORM.                    " upload_unix_file
    *&      Form  post_data
    FORM post_data .
    V_DOCHEADER-BUS_ACT = 'RFBU'.
    *V_DOCHEADER-OBJ_TYPE = 'BKPF'.
    *V_DOCHEADER-OBJ_KEY = '$'.
    V_DOCHEADER-USERNAME = 'VSAWANT'.
    V_DOCHEADER-COMP_CODE = 'BP01'.
    V_DOCHEADER-DOC_DATE = SY-DATUM.
    V_DOCHEADER-PSTNG_DATE = SY-DATUM.
    *V_DOCHEADER-FIC_PERIOD = '00'.
    V_DOCHEADER-HEADER_TXT = 'Amex Card Upload'.
    V_DOCHEADER-DOC_TYPE = 'SA'.
       CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
         EXPORTING
           DOCUMENTHEADER          = V_DOCHEADER
         CUSTOMERCPD             =
         CONTRACTHEADER          =
       IMPORTING
          OBJ_TYPE                = V_DOCHEADER-OBJ_TYPE
          OBJ_KEY                 = V_DOCHEADER-OBJ_KEY
          OBJ_SYS                 = V_DOCHEADER-OBJ_SYS
         TABLES
           ACCOUNTGL               = i_acgl
         ACCOUNTRECEIVABLE       =
         ACCOUNTPAYABLE          =
         ACCOUNTTAX              =
           CURRENCYAMOUNT          = i_currency
         CRITERIA                =
         VALUEFIELD              =
         EXTENSION1              =
           RETURN                  = i_return.
         PAYMENTCARD             =
         CONTRACTITEM            =
         EXTENSION2              =
         REALESTATE              =          .
    refresh i_acgl.
    refresh i_currency.
    clear i_acgl.
    clear i_currency.
    if V_DOCHEADER is initial.
      i_error[] =  i_indata[] .
        read table i_return index 1.
        i_error-message = i_return-message.
        append i_error.
        clear  i_error.
    else.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        wait up to 3 seconds.
    endif.
    ENDFORM.                    " post_data
    *&      Form  populate_debit
    FORM populate_debit .
    DATA: l_debamt(16) type c.
    clear: v_index,
           l_debamt.
    loop at i_indata from 2.
    v_ddeb = i_indata-t_damt.
      v_dcre = v_dcre + i_indata-t_damt.
      v_index = v_index + 1.
        i_acgl-ITEMNO_ACC = v_index.
        i_acgl-GL_ACCOUNT = i_indata-t_glacnt.
        i_acgl-ITEM_TEXT = i_indata-t_descrip.
        i_acgl-DOC_TYPE = 'SA'.
        i_acgl-COMP_CODE = 'BP01'.
        i_acgl-COSTCENTER = i_indata-t_ccenter.
        i_acgl-DE_CRE_IND = 'S'.
        append i_acgl.
        clear i_acgl.
       write v_ddeb to l_debamt currency 'USD'.
        i_currency-ITEMNO_ACC = v_index.
        i_currency-CURRENCY = 'USD'.
        i_currency-AMT_DOCCUR = i_indata-t_damt.
        append i_currency.
        clear i_currency.
       clear: v_ddeb.
    endloop.
    ENDFORM.                    " populate_debit
    *&      Form  populate_credit
    FORM populate_credit .
    DATA: l_creamt(16) type c.
    clear: l_creamt.
      v_index = v_index + 1.
        i_acgl-ITEMNO_ACC = v_index.
        i_acgl-GL_ACCOUNT = c_creacnt.
       i_acgl-ITEM_TEXT = .
        i_acgl-DOC_TYPE = 'SA'.
        i_acgl-COMP_CODE = 'BP01'.
        i_acgl-DE_CRE_IND = 'H'.
        append i_acgl.
        clear: i_acgl.
       write v_dcre to l_creamt currency 'USD'.
        i_currency-ITEMNO_ACC = v_index.
        i_currency-CURRENCY = 'USD'.
        i_currency-AMT_DOCCUR = v_dcre.
        append i_currency.
        clear: i_currency.
        clear: v_index.
    ENDFORM.                    " populate_credit
    *&      Form  generate_error_report
    FORM generate_error_report .
    data: credit(16) type c.
    WRITE :/1 'Title: Corporate Card Upload'(006),
             / 'Program:'(007), sy-repid,
             /  'Date:'(008), SY-DATUM.
      skip 1.
      uline:/(200).
      format color col_heading on.
      write:/(1) sy-vline,
             (8) 'Posting Date'(020),
             (1) sy-vline,
             (12) 'GL Account'(021),
             (1) sy-vline,
             (17) 'Description'(022),
             (1) sy-vline,
             (17) 'Dollar Amount'(023),
             (1) sy-vline,
             (17) 'Cost Center'(024),
             (1) sy-vline,
             (100) 'Error/Success Message'(028),
             (1) sy-vline.
      uline:/(200).
      format color off.
      write:/(1) sy-vline,
              (8) sy-datum,
              (1) sy-vline,
              (12) '113000',
              (1) sy-vline,
              (17) 'Clearing Account',
              (1) sy-vline,
              (17) v_dcre,
              (1) sy-vline,
              (100) i_error-message,
              (1) sy-vline.
      uline:/(200).
      loop at i_error from 2.
        write:/(1) sy-vline,
               (8) sy-datum,
               (1) sy-vline,
               (12) i_error-t_glacnt,
               (1) sy-vline,
               (17) i_error-t_descrip,
               (1) sy-vline,
               (17) i_error-t_damt,
               (1) sy-vline,
               (17) i_error-t_ccenter,
               (1) sy-vline,
               (100) i_error-message,
               (1) sy-vline.
      endloop.
      uline:/(200).
    clear: v_dcre.

  • BAPI_ACC_DOCUMENT_POST & generated document number

    Hi,
    I am using BAPI function BAPI_ACC_DOCUMENT_POST to post financial documents in the system. My question is, how properly retrieve generated document number (BKPF-BELNR). We are using internal document number generation so the function generates document number. But, function itself, does not return generated document number. Currently, after commit I try to locate a record of generated document using reference key ... Isn't there any better way how to get generated document number?
    Tkank you.

    Yes, I found this code ... as I wrote, there is not problem if I set curtp = '10'. BUT, there is another problem, with different currencies. Then, when I try to post document in different currency that the currency of company code is, function raises error "Inconsistent currency information" ...
    here is an example, how I fill tax information, as requested:
    DATA:   docHeader     TYPE BAPIACHE09,
            accGL         LIKE BAPIACGL09 OCCURS 0 WITH HEADER LINE,
            accReceivable LIKE BAPIACAR09 OCCURS 0 WITH HEADER LINE,
            accAmnt       LIKE BAPIACCR09 OCCURS 0 WITH HEADER LINE,
            accTax        LIKE BAPIACTX09 OCCURS 0 WITH HEADER LINE,
            extension     LIKE BAPIACEXTC OCCURS 0 WITH HEADER LINE,
            tax_account   TYPE STRING,
            tax_code      TYPE STRING,
            tax_trans     TYPE STRING,
            tax_spec      LIKE ZIFPRMS-VALUE,
            itemno        TYPE N LENGTH 10.
    * initialize document header
      docHeader-bus_act    = 'RFBU'.
      docHeader-username   = sy-uname.
      docHeader-header_txt = fin_data-text.
      docHeader-comp_code  = header-company_code.
      docHeader-doc_date   = header-document_date.
      docHeader-pstng_date = fin_data-posting_date.
      docHeader-ref_doc_no = header-id_sale.
      docHeader-doc_type = params-doc_type.
    * process document items, in loop
      LOOP AT fin_items INTO fin_item.
    * initialize AR (line 1)
         accReceivable-itemno_acc = itemno.
         accReceivable-customer   = cus_data-id_contact.
         accReceivable-comp_code = header-company_code.
         CONCATENATE fin_item-text ' (receivable)' INTO accReceivable-item_text.
         accReceivable-pmnttrms = params-payment_term.
         accReceivable-pmnt_block = params-payment_block.
         IF doc_type = 'APR'.
            accReceivable-sp_gl_ind = 'F'.
         ENDIF.
         APPEND accReceivable.
    * initialize receivable amount
         accAmnt-itemno_acc = itemno.
         accAmnt-currency = fin_data-currency.
         accAmnt-curr_type = '10'.
         accAmnt-amt_doccur = fin_item-vat_base + fin_item-vat.
         IF doc_type(2) = 'CR'.
            accAmnt-amt_doccur = accAmnt-amt_doccur * ( -1 ).
         ENDIF.
         APPEND accAmnt.
         itemno = itemno + 1.
    * do not continue when posting a down payment request
         CHECK doc_type < > 'APR'.
    * initialize GL account line item
         accGL-itemno_acc = itemno.
         accGL-gl_account = params-doc_gl_account.
         CONCATENATE fin_item-text ' (revenue)' INTO accGL-item_text.
         accGL-pstng_date = fin_data-posting_date.
         accGL-tax_code = tax_code.
         accGL-doc_type = params-doc_type.
         accGL-costcenter = fin_item-cost_centre.
         APPEND accGL.
    * initialize GL amount
         accAmnt-itemno_acc = itemno.
         accAmnt-currency = fin_data-currency.
         accAmnt-curr_type = '10'.
         accAmnt-amt_doccur = - ( fin_item-vat_base ).
         IF doc_type(2) = 'CR'.
            accAmnt-amt_doccur = accAmnt-amt_doccur * ( -1 ).
         ENDIF.
         APPEND accAmnt.
         itemno = itemno + 1.
    * initialize TAX account line item
         IF STRLEN( tax_code ) > 0.
            accTax-itemno_acc = itemno.
            accTax-gl_account = tax_account.
            accTax-tax_code   = tax_code.
            accTax-cond_key   = 'MWAS'.
            APPEND accTax.
    * initialize tax amount
            accAmnt-itemno_acc = itemno.
            accAmnt-currency = fin_data-currency.
            accAmnt-curr_type = '10'.
            accAmnt-amt_doccur = - ( fin_item-vat ).
            accAmnt-amt_base = - ( fin_item-vat_base ).
            IF doc_type(2) = 'CR'.
               accAmnt-amt_doccur = accAmnt-amt_doccur * ( -1 ).
               accAmnt-amt_base = accAmnt-amt_base * ( -1 ).
            ENDIF.
            APPEND accAmnt.
            itemno = itemno + 1.
         ENDIF.
      ENDLOOP.
    * translate customer field to BAPI format
      CALL FUNCTION 'MAP2E_BAPICOBL_CI_TO_BAPIEXTC'
         TABLES    INTERNAL_CI_COBL      = cust_ext
                   EXTENSION_CODINGBLOCK = extension.
    * call BAPI function to create customer invoice
      CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
         EXPORTING DOCUMENTHEADER = docHeader
         IMPORTING OBJ_TYPE = obj_type
                   OBJ_KEY  = obj_key
                   OBJ_SYS  = obj_sys
         TABLES    ACCOUNTGL = accGL
                   ACCOUNTRECEIVABLE = accReceivable
                   ACCOUNTTAX = accTax
                   CURRENCYAMOUNT = accAmnt
                   EXTENSION1 = extension
                   RETURN = returnTab.
    Edited by: Rastislav Mojzis on Jul 9, 2008 7:18 AM

  • Error: Application document not posted

    hi,
    while posting IDOC into R3, I got below error in WE05.
    under status records
    51  Error: Application document not posted
    Account group is not defined in table T077K
    reward points always helpful for helpers.
    Regards,
    Nageswari

    HI,
    Check the posting program use call transaction, if no analyze the error message and fix the problem. If yes then debug your program step by step until you hit the error screen.
    If error in IDoc data , then Exit the IDoc restart from BD87, else problem with application configuration, restart from beginning.
    --related Data error contact your Functional team
    Also see the below links
    IDOc testing - /people/suraj.sr/blog/2005/12/29/generate-test-case-for-an-idoc-scenario
    /people/sravya.talanki2/blog/2005/10/27/idoc146s-not-reaching-xi133-not-posted-in-the-receiver-sap-systems133
    idoc erros - http://help.sap.com/saphelp_nw04s/helpdata/en/6a/e6194119d8f323e10000000a155106/content.htm
    Regards
    Chilla

  • Error generating the output preview

    Hi friends!
    Could you help me u2013 when I run Output Preview in bit invitation process Iu2019ve got a system error u201CError generating the output previewu201D. 
    What could be a reason?

    Note 1172470 - BBP_BID: Error generating the output preview
    Note Language: English Version: 3 Validity: Valid from 26.05.2008
    Summary
    Symptom
    From transaction "Process bid"(BBP_QUOT) when you click on print preview,
    you get the error "Error generating the output preview". Due to this error
    the preview is not displayed.
    More Terms
    BBP_BID 210, output preview, print preview, preview, bid, quotation, quot,
    BBP_QUOT, BBP_OUTPUT, SAPLBBP_OUTPUT, pdf, BBP_OUTPUT_QUOT_PREVIEW_SMART,
    SYSTEM_INSTALLED_LANGUAGES.
    Cause and Prerequisites
    This is caused by a program error.
    Solution
    Implement the attached corrections or import the corresponding support
    package
    Header Data
    Release Status: Released for Customer
    Released on: 26.05.2008 11:14:52
    Priority: Correction with medium priority
    Category: Program error
    Main Component SRM-EBP-CA-PRT Document Output / Forms
    Additional Components:
    SRM-EBP-QUO Quotation, Bid
    Valid Releases
    Software Component Release From
    Release
    To Release and Following
    SRM_SERVER 550 550 550
    Support Packages
    Support Packages Release Package Name
    SRM_SERVER 550 SAPKIBKT13
    SRM_SERVER 600 SAPKIBKU05
    Please raise customer message

  • Need SP_TN for specific user must use specific document series and warehouse in Marketing Documents

    Hi experts,
       I need SP_TN for specific user must use specific document series and warehouses in Marketing Documents SAP B1.
       Kindly give solution ASAP.
    Thanks in advance

    Hi Nagarajan,
       It show (1) Not allowed to add PO.
       I used the following SP
    IF  @object_type = '22' AND @transaction_type IN (N'A',N'U')
    BEGIN
    IF Exists
    (SELECT T0.DocEntry FROM POR1 T0 INNER JOIN OPOR T1 ON T0.DocEntry = T1.DocEntry
    WHERE  T1.DocType = 'I' AND T1.Series = '142' OR T1.Series = '145' AND T0.[WhsCode] = 'STEX-01'
    or T0.[WhsCode] = 'STNEX-01' and T1.[UserSign] ='1'
    and T1.docentry = @list_of_cols_val_tab_del)
    BEGIN
    SELECT @error = 1
    SELECT @error_message = 'Not allowed to add PO'
    END
    END
    warm regards,
    Guhan

Maybe you are looking for

  • Unable to capture the Idle time for BSP page

    Hi Experts, I want to capture the Idle time of my BSP page. If that is 5 mins then i have to display the pop up displaying the remaining time. Please let me know how to capture the IDLE TIME. not the time after the page is loaded. Any suggestion will

  • I need a method to target specific columns in an IP query embedded in a WAD

    I have an IP enabled WAD with multiple embedded queries.  I need a method to target specific columns of specific queries so as to enable text wrapping.  Does anyone have a technique that has worked for them that they can share? Sheldon

  • Unit Conversion Code to display the BW report in one unit

    Hi i want to display the units in US standards in initial view of report and allow users to convert in local units if they want. A. I find that data is comingfor "factory area" field in cube in various units such as FT(Feet), MT (Meters), ST, IN. as

  • Copa error during billing

    Hi , while sales order billing vf01 the system is throwing following error. Valuation with material cost estimate: error with product "4000000129" Message no. KE350 Diagnosis In Profitability Analysis (CO-PA), the system tried to valuate a line item

  • Linksys Wre54G range expander

    Can I use a Linksys WRE54G range expander with a Linksys E 3000 router using WPA2/WPA shared ?