Urgent. [Items - Valuation Method] error when creating documents

I have recently upgraded one of my customers databases to the newest 2005 sp: 01 pl: 45 version
Before that, they were running 2005, but with no service pack.
However, after the upgrade they cannot any longer create salesorders, invoices etc!
They allways get 'Items - Valuation Method' when pressing the add-method.
Every item is checked as Stock Item, but not purchased Item. I cannot change any of this, it seems.
But they do NOT use any logistics, they only use SBO as an invoicing system. And they will not use it for logistics in the future either. 'Response to Release of Stock below the Minimum level' is set to 'Without warning'.
How can I quickly make salesorders/invoices work again? Does anyone know what might have happened during the upgrade?
Help is highly appreciated!
Regards, Runar

Hi Runar,
I realize that this is a very late response, if you have not already logged a message with SAP support you should do that.
When releasing 2005 SP01 a lot of the logic of the Inventory transactions where corrected to avoid inconsistencies. Among these changes were certain settings on Items that could no longer be changed.
Hope it helps.
Jesper

Similar Messages

  • Error when creating document flow for delivery

    Hi,
    I would like to post the GR for Inbound delivery. I receive an error the TO is not confirmed. I have tried to confirm the tranfer order and I receive the "error when creating document flow for delivery . In order to avoid inconsistencies the goods movement posting was cancelled." It seems like the document already exist.
    How can I do to confirm the TO and post the GR.
    Thanks
    Dede

    In Inbound delivery after GR only a TO is created and confirmed.
    So please check the PO history and see a GR is there or not .
    Once a GR is found create a TO and do the confirmation

  • Inbound delivery - Error when creating document flow for delivery #########

    Hello all:
    When attempting to PGI an inbound delivery (via VL06I - For Goods receipt - select inbound delivery - click Post Goods Receipt) I received error messgae VL 659:
    Diagnosis
    As the system was recording the document flow for the goods movement, it determined that the subsequent document number is either blank or identical to the number of the preceding document.
    System response
    In order to avoid inconsistencies, the goods movement posting was cancelled.
    All WMS transfer orders tied to this inbound delivery are complete.  This hasn't happened with any other delivery.    Any suggestions as to what I can do?
    Thanks,
    Bill

    Hi,
    I would suggest you to go trough OSS notes using the error message number as search key (e.g. 352243, 645119, 197864).
    If you fail to find any maybe it would be worth of contacting SAP AG.
    Regards,
    Csaba

  • Error when creating link to documents from material

    Hi all,
    while creating the purchase order the error message "Error when creating link to documents from material 61260224060" is displayed.
    why this error message is displayed.?
    Regards,
    GaneshRaja

    Hello Ganesh
    Please check material master - view 'Bases data 2'.
    There is checkbox 'No link'. You can activate this checkbox if you are not storing any drawing/designe docuemnt for this material.
    Try to do this and check out again.....
    If this helps you in resolving your issue, i would appreciate if you reward the answer with suitable points.
    Best Regards
    Avinash

  • Error when creating billing / accounting document with VF01

    Hi All,
    When I use VF01 to create an invoice with reference to a LF D/N, I got the following error after saving.
    "An exchange rate type is not defined for country CN
    Message no. FF 802". And billing document is created but with no accounting document.
    I checked the exchange rate type is defined. but I can not find the place where I can assign to the specific country.
    Best Regards
    Jean

    Thanks for your help.
    Hi Dave,
    I checked in S_BCE_68000174, it has been already assigned.
    Hi Ferry,
    In FTXP, the tax code has been maintained.
    And you are right, when I maintain the field KURST in table T005, it is ok. But I am confused in 4.6C, the field KURST can be maintained by T-code OY01, but in 470, exchange rate type cannot be found in OY01. Where can I set in 470?  And why in 470, even field KURST is empty in table T005, but there is no such error when creating billing document?
    Many Thanks
    Jean

  • Error when create purchase order

    Hi all,
    I have a strange error when create po. it is display : Please enter item number greater than 0.that only a vendor and a material.I check the vendor and the material is same as other vendor and materials.if i first input the vendor and input the material then display message : Please enter item number greater than 0,but i can't input the item number. if i first input material and enter,then input vendor the system is ok. I check configer is ok. and other vendor , material also ok.
    thanks to reply.
    james

    Hi,
    Go to SPRO-Materials Management-Purchasing-Purchase Order-Define Document Types..
    Select your doc type which you are selcting at the time of PO creation..
    Say for e.g. NB.
    Now you have to maintain " Item Number Interval" as 10 in front of your doc type.
    This option is just after "Document Type Description".
    Now save and check.
    Cheers...
    Utsav..

  • Error when creating a folder ,iviews in the portal

    Dear sap gurus ,
    I m facing a error when  creating a   Folder or an iview in my portal i'm using EP 7.0 sp11 ,The error is :
    Portal Runtime Error
    An exception occurred while processing a request for :
    <b>iView : pcd:portal_content/com.sap.pct/admin.templates/iviews/editors/com.sap.portal.defaultFolderWizard
    Component Name : com.sap.portal.admin.defaultwizards.DefaultFolderWizard
    SQLException is not transient, error code = 1654, sql state = 72000 Batch rolled back. Caused by java.sql.BatchUpdateException: ORA-01654: unable to extend index SAPSR3DB.SYS_C004057 by 128 in tablespace PSAPSR3DB at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:343) at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10698) at com.sap.sql.jdbc.basic.BasicPreparedStatement.executeBatch(BasicPreparedStatement.java:263) at com.sap.sql.jdbc.oracle.Oracle10gPreparedStatement.executeBatch(Oracle10gPreparedStatement.java:100) at com.sap.sql.jdbc.direct.DirectPreparedStatement.executeBatch(DirectPreparedStatement.java:1129) at com.sap.sql.jdbc.common.CommonPreparedStatement.executeBatch(CommonPreparedStatement.java:991) at com.sap.engine.services.dbpool.wrappers.StatementWrapper.executeBatch(StatementWrapper.java:270) at com.sapportals.portal.pcd.pl.AttributeHeadersTable.insert(AttributeHeadersTable.java:259) at com.sapportals.portal.pcd.pl.PlObject.save(PlObject.java:518) at com.sapportals.portal.pcd.pl.PlContext.createSubcontext(PlContext.java:544) at com.sapportals.portal.pcd.gl.xfs.XfsContext.createChildOnPersistence(XfsContext.java:1374) at com.sapportals.portal.pcd.gl.xfs.XfsContext.createChildAndNotify(XfsContext.java:1128) at com.sapportals.portal.pcd.gl.xfs.XfsContext.createChild(XfsContext.java:1087) at com.sapportals.portal.pcd.gl.xfs.XfsContext.createSubcontext(XfsContext.java:843) at com.sapportals.portal.pcd.gl.xfs.BasicContext.createBasicSubcontext(BasicContext.java:190) at com.sapportals.portal.pcd.gl.PcdPersContext.createSubcontext(PcdPersContext.java:191) at com.sapportals.portal.pcd.gl.PcdFilterContext.filterCreateSubcontext(PcdFilterContext.java:254) at com.sapportals.portal.pcd.gl.PcdProxyContext.createSubcontext(PcdProxyContext.java:147) at com.sapportals.portal.pcd.gl.PcdGlContext.createSubcontext(PcdGlContext.java:440) at com.sapportals.portal.pcd.gl.PcdProxyContext.createSubcontext(PcdProxyContext.java:624) at com.sapportals.portal.pcd.gl.PcdProxyContext.createSubcontext(PcdProxyContext.java:619) at com.sap.portal.admin.wizard.folderwizardpanes.SavePane.doAfterSubmit(SavePane.java:59) at com.sapportals.admin.wizardframework.core.WizardInstance.doPost(WizardInstance.java:356) at com.sapportals.admin.wizardframework.core.WizardInstance.doWizard(WizardInstance.java:174) at com.sapportals.admin.wizardframework.core.WizardInstance.doWizard(WizardInstance.java:99) at com.sapportals.admin.wizardframework.AbstractDynamicWizard.doContent(AbstractDynamicWizard.java:98) at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209) at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114) at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189) at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215) at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645) at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189) at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753) at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240) at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522) at java.security.AccessController.doPrivileged(Native Method) at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160) 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) .
    Exception id: 10:50_23/11/07_0005_16892850
    See the details for the exception ID in the log file</b>
    Thanks and Regards,
    sathya

    Hi Sathya
    The following line in your log tells you what is wrong:
    ORA-01654: unable to extend index SAPSR3DB.SYS_C004057 by 128 in tablespace PSAPSR3DB
    This is a configuration that you or the dba people need to do. The first thing I would check is if autoextend is on/off on your tablespace PSAPSR3DB. If it's 'off' you either need to put it to 'on' or manually extend the size of your tablespace depending on how much harddrvive space you have to play with. Here is a more detailed solution on how to do it:
    Oracle Error : ORA-01654: unable to extend index string.string by string in tablespace string
    Cause: Failed to allocate an extent of the required number of blocks for an index segment in the tablespace indicated.
    Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more files to the tablespace indicated.
    Br
    Göran

  • Error when Creating a ServiceClientFactory instance JAVA API

    When invoking Assembling a PDF document  quick start I'm having a compilation error when creating a ServiceClientFactory instance:
    //Create a ServiceClientFactory instance
    ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
    The error is: The type com.adobe.idp.Context cannot be resolved. It is indirectly referenced from required .class files
    All the required jars are a path.
    What esle can be a problem ?
    Thanks, Yan

    Since you are using SOAP, you need to have the AXIS jars available.  They are in the LiveCycle_ES_SDK\client-libs\thirdparty directory:
    activation.jar (required for SOAP mode)
    axis.jar (required for SOAP mode)
    commons-codec-1.3.jar (required for SOAP mode)
      commons-collections-3.1.jar  (required for SOAP mode)
    commons-discovery.jar (required for SOAP mode)
    commons-logging.jar (required for SOAP mode)
    dom3-xml-apis-2.5.0.jar (required for SOAP mode)
    jaxen-1.1-beta-9.jar (required for SOAP mode)
    jaxrpc.jar (required for SOAP mode)
    log4j.jar (required for SOAP mode)
    mail.jar (required for SOAP mode)
    saaj.jar (required for SOAP mode)
    wsdl4j.jar (required for SOAP mode)
    xalan.jar (required for SOAP mode)
    xbean.jar (required for SOAP mode)
    xercesImpl.jar (required for SOAP mode)

  • Error when viewing documents from content server

    hi all,
    I have a question.
    we have installed an SAP Content Server on Windows 2003 server, and have connected it to our SAP ECC 5.00 ERP.  The purpose is so that documents that are attached to a transaction (through Generic Objects Services - Create Attachment), get stored onto the content server rather than the SAP database.  We have done all the necessary configuration in oac0, oact, and SKPR08.  We are able to attach a document to the transaction, and it gets stored onto the content server.  Our issue is when viewing the attachment. 
    This is the error we are getting as soon as we try to view the attachment:
    "Windows cannot find c:\documents and settings\<username>\SAPWorkDir\<filename>.  Make sure you typed the name correctly, and then try again.  To search for a file, click the Start button, and then click Search."
    After pressing OK to the message, the system then gives this error:
    "File could not be exported
    Message no. SO315
    Diagnosis
    You have selected either the Export function or a PC document to be exported from the system. The file could not be exported to the
    PC. Possible reasons:
    1. The file is already open and is being used by an application.
    2. The directory to which the file is to be exported is write-protected.
    Procedure
    In the first case, close the application.
    In the second case, remove the write-protection attribute from the directory or enter another directory."
    Why is the system trying to open the file from the user's C:\ drive?
    Does anyone have a solution to this error?
    Cheers,

    Hi Aleem,
    Refer to below KB & note, this should help you.
    1849203 - Error message Database error for <GET DATA FROM KPRO> (SO013) and/or File could not be exported (SO315) when opening a document in Attachment list
    764972 - Errors when creating workflow attachment
    Regards,
    Ravi

  • Error in transporting ODS(Error when creating the export DataSource.......)

    Hi All,
        When I try to transport ODS from dev to quality i m getting the following error.
      <b>DataSource 8XADDR1 does not exist in source system BQ1CLNT355 of version A  
    Error when creating the export DataSource and dependent Objects             
    Error when activating ODS Object XADDR1                                     
    </b>
        <b>XADDR1</b> is my ODS.  <b>BQ1CLNT355</b>  is myself source system. When i checked the connection in the source system tab in Quality,it is ok.
      Please Suggest solution,if any body encountered same problem. It is very urgent for me.
    Regards,
    Ramana.

    Hi
    You generate export datasource once again
    Replicate your source system in qual and then try to transport the ODS and the datamart object 8ODS ....
    Hope this helps
    Reg
    N Ganesh
    assign points if useful***

  • Error when creating project for ESS

    I am getting the folowing error when creating a project in Dev Studio for the ESS leave application ess~lea. Pls help
    Failed to sync DC "sap.com/ess/lea(sap.com_SAP_ESS_1)" in configuration "JDI_XSSTrack_D". File "C:\Documents and Settings\User\.dtc\0\DCs\sap.com\ess\lea\_comp\.dcdef" does not exist locally after sync but it exists on the serve
    Regds
    Thirur

    Uninstalled and reinstalled the dev studio. Now it works.

  • Error when creating service node. [rc:special_service_error]

    Hi,
        I have updated or created Inbound Service Interface in PI ISR, but when i acitivate the SI in SPROXY, the following message raised:""Error when creating service node. [rc:special_service_error] Method: ServiceCreate; return code: 3  Exception of class CX_SRT_WSP_ICF",
       anyone can solve this issue,thanks?
    Gongtao

    Please check with your SAP Security Team if you have complete authorization/roles to generate proxies.
    See related issue on this link: Inbound Proxy Error - JDBC to PROXY Scenario
    Regards,
    Jenny

  • Bapi-salesorder creation error in  creating document

    hai friends..
      iam doing creation of sales order using bapi .-structures..
      but error in creating doucment ....
    can u send me some example .. abt sales order .creation ..
    once u check my code ...
    DATA: BEGIN OF HEADER OCCURS 0,
           VBELN LIKE BAPIVBELN-VBELN,
           AUART LIKE VBAK-AUART,
           VKORG LIKE VBAK-VKORG,
           VTWEG LIKE VBAK-VTWEG ,
           SPART LIKE VBAK-SPART,
           VKBUR LIKE VBAK-VKBUR,
           KUNNR LIKE BAPIPARNR-PARTN_NUMB ,"vbak-kunnr,
        END OF HEADER.
    DATA: BEGIN OF ITEM OCCURS 0,
           VBELN LIKE BAPIVBELN-VBELN,
           POSNR LIKE BAPISDITM-ITM_NUMBER ,"vbap-posnr,
           MATNR LIKE VBAP-MATNR,
          NETWR LIKE VBAP-NETWR,
           KWMENGE LIKE VBAP-KWMENG,
          WERKS LIKE VBAP-WERKS,
          NETPR LIKE VBAP-NETPR,
       END OF ITEM.
    DATA:  ORDER_HEADER_IN LIKE BAPISDHD1,
           ORDER_HEADER_INX LIKE BAPISDHD1X.
    DATA: ITAB_HEAD likE order_header_in,
          ITAB_HEADX likE ORDER_HEADER_INX.
    DATA: ITAB_ITEM  TYPE STANDARD TABLE OF  BAPISDITM WITH HEADER LINE,
          ITAB_ITEMX TYPE STANDARD TABLE OF  BAPISDITMX WITH HEADER LINE.
    DATA: KUST TYPE STANDARD TABLE OF  BAPIPARNR WITH HEADER LINE,
           RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    DATA: VNO  LIKE BAPIVBELN-VBELN,
          VCNT LIKE VBAP-POSNR.
    LOOP AT HEADER.
        VCNT = 10.
        CLEAR ITAB_HEAD.
       ORDER_HEADER_IN-REFOBJTYPE = 'OR'.
       ORDER_HEADER_IN-REFOBJKEY = 'OR'.
       ORDER_HEADER_IN-REFDOCTYPE = 'OR'.
       ORDER_HEADER_IN-DOC_TYPE = HEADER-AUART.
        ITAB_HEAD-DOC_TYPE = HEADER-AUART.
        ITAB_HEAD-SALES_ORG = HEADER-VKORG.
        ITAB_HEAD-DISTR_CHAN = HEADER-VTWEG.
        ITAB_HEAD-DIVISION = HEADER-SPART.
        ITAB_HEAD-SALES_OFF = HEADER-VKBUR.
        KUST-PARTN_NUMB = HEADER-KUNNR.
         ITAB_HEADX-DOC_TYPE = 'X'.
         ITAB_HEADX-SALES_ORG = 'X'.
        ITAB_HEADX-DISTR_CHAN = 'X'.
        ITAB_HEADX-DIVISION = 'X'.
        ITAB_HEADX-SALES_OFF = 'X'.
        LOOP AT ITEM WHERE VBELN = HEADER-VBELN.
          REFRESH RETURN.
          ITAB_ITEM-ITM_NUMBER = VCNT.
          ITAB_ITEM-MATERIAL = ITEM-MATNR.
          ITAB_ITEM-NET_WEIGHT = ITEM-KWMENGE.
          APPEND ITAB_ITEM.
          ITAB_ITEMX-ITM_NUMBER = VCNT.
          ITAB_ITEMX-MATERIAL = 'X'.
          ITAB_ITEMX-NET_WEIGHT = 'X'.
          APPEND ITAB_ITEMX.
          VCNT  = VCNT + 10 .
        ENDLOOP.
        CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
          EXPORTING
        SALESDOCUMENTIN               = SALESORDER
            ORDER_HEADER_IN              = ITAB_HEAD
         ORDER_HEADER_INX              = ITAB_HEADX
        SENDER                        =
        BINARY_RELATIONSHIPTYPE       =
        INT_NUMBER_ASSIGNMENT         =
        BEHAVE_WHEN_ERROR             =
        LOGIC_SWITCH                  =
        TESTRUN                       =
        CONVERT                       = ' '
         IMPORTING
           SALESDOCUMENT                 = VNO
          TABLES
           RETURN                        = RETURN
           ORDER_ITEMS_IN                = ITAB_ITEM
           ORDER_ITEMS_INX               = ITAB_ITEMX
            ORDER_PARTNERS                = KUST.
       CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              WAIT          = 'X'.
             IMPORTING
               RETURN        = RETURN.
    LOOP AT return WHERE type = 'E' OR type = 'A'.
    EXIT.
    ENDLOOP.
    IF sy-subrc = 0.
    WRITE: / 'Error in creating document'.
    ELSE.
    COMMIT WORK AND WAIT.
    ENDIF.
        WRITE: / '   Sales Order NO  IS: ', VNO.
        WRITE: / SPACE.
        CLEAR VNO.
        WRITE SY-ULINE.
      ENDLOOP.
    my HEader  is    123    OR  1000 30 10 SATYA.
    ITem  2  IS     123   10  HAI   15
    once u check it ......

    Hi Satya,
    just check this
    REPORT  Z_STANDARD_SALES_ORDER no standard page heading.
    DATA DECLARATION
    CONSTANTS : C_X VALUE 'X'.
    Structures to hold Sales order header data
    DATA : HEADER LIKE BAPISDHD1," OCCURS 0 WITH HEADER LINE,
           HEADERX LIKE BAPISDHD1X." OCCURS 0 WITH HEADER LINE.
    Internal Tables to hold Sales order ITEM DATA
    DATA : ITEM LIKE BAPISDITM OCCURS 0 WITH HEADER LINE,
           ITEMX LIKE BAPISDITMX OCCURS 0 WITH HEADER LINE.
    Internal Tables to hold Partners ITEM DATA
    DATA : PART LIKE BAPIPARNR OCCURS 0 WITH HEADER LINE.
    Internal Tables to hold Partners SCHEDULE DATA
    DATA: SCHEDULE LIKE BAPISCHDL OCCURS 0 WITH HEADER LINE,
          SCHEDULEX LIKE BAPISCHDLX OCCURS 0 WITH HEADER LINE.
    Internal table to hold messages from BAPI call
    DATA: RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    DATA  W_MSG(150).
    *DATA: begin of wa_MESSAGE,
         message(150),
         end of wa_message.
    *DATA: itab_msg like table of wa_message with header line.
    Data: Begin of Record occurs 0,
          Control type i,
          DOC_TYPE like HEADER-DOC_TYPE,
          SALES_ORG like HEADER-SALES_ORG,
          DISTR_CHAN like HEADER-SALES_ORG,
          DIVISION like HEADER-DIVISION,
          PURCH_NO_C like HEADER-PURCH_NO_C,
          PARTN_NUMB like PART-PARTN_NUMB ,
          PARTN_ROLE like PART-PARTN_ROLE ,
          ITM_NUMBER like ITEM-ITM_NUMBER,
          MATERIAL like ITEM-MATERIAL,
         TARGET_QTY like item-TARGET_QTY,
          REQ_QTY LIKE BAPISCHDL-REQ_QTY,
          TARGET_QU like item-TARGET_QU,
          PLANT like ITEM-PLANT,
          PMNTTRMS like header-PMNTTRMS,
          End of record.
    data: itab like ALSMEX_TABLINE occurs 0,
          wa like ALSMEX_TABLINE.
    data: SO like BAPIVBELN-VBELN.
    Selection Screen
    selection-screen begin of block b1 with frame title text-001.
    PARAMETERS: P_FILE LIKE RLGRAP-FILENAME OBLIGATORY.
    selection-screen end of block b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
      PERFORM GET_FILE USING P_FILE.
    Start of Selection
    start-of-selection.
      DATA: xl type string.
      xl = '*.xls'.
      IF not P_FILE CP xl.
        Message 'Wrong input file format' type 'E'.
      ENDIF.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME                      = P_FILE
          I_BEGIN_COL                   = 1
          I_BEGIN_ROW                   = 1
          I_END_COL                     = 13
          I_END_ROW                     = 3000
        TABLES
          INTERN                        = itab
    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.
      ENDIF.
    DATA POPULATION
      loop at itab into wa.
        if wa-col = '0001'.
          record-Control = wa-value.
        elseif wa-col = '0002'.
          record-DOC_TYPE = wa-value.
        elseif wa-col = '0003'.
          record-SALES_ORG = wa-value.
        elseif wa-col = '0004'.
          record-DISTR_CHAN = wa-value.
        elseif wa-col = '0005'.
          record-DIVISION = wa-value.
        elseif wa-col = '0006'.
          record-PURCH_NO_C = wa-value.
        elseif wa-col = '0007'.
          record-PARTN_NUMB = wa-value.
        elseif wa-col = '0008'.
          record-PARTN_ROLE = wa-value.
        elseif wa-col = '0009'.
          record-PMNTTRMS = wa-value.
        elseif wa-col = '0010'.
          record-ITM_NUMBER = wa-value.
        elseif wa-col = '0011'.
          record-MATERIAL = wa-value.
        elseif wa-col = '0012'.
          record-REQ_QTY = wa-value.
        elseif wa-col = '0013'.
          record-TARGET_QU = wa-value.
        elseif wa-col = '0014'.
          record-PLANT = wa-value.
        endif.
        AT END OF row.
          APPEND record.
          CLEAR: wa, record.
        ENDAT.
      endloop.
      DATA: tot_lines type i,
            tot_po type i,
            index type i.
      describe table record lines tot_lines.
      read table record index tot_lines.
      tot_po = record-control.
      DO tot_po times.
        index = index + 1.
        clear: HEADER,HEADERX,ITEM[],ITEMX[],RETURN,RETURN[],SCHEDULE[],SCHEDULEX[], PART[],PART.
        refresh: ITEM[],ITEMX[],RETURN[],SCHEDULE[],SCHEDULEX[],PART[] .
    POPULATE HEADER FLAG.
        HEADERX-UPDATEFLAG = c_x.
        HEADERX-doc_type = c_x.
        HEADERX-SALES_ORG = c_x.
        HEADERX-DISTR_CHAN = c_x.
        HEADERX-DIVISION = c_x.
        HEADERX-PURCH_NO_C = c_X.
        HEADERX-PMNTTRMS = c_X.
        loop at record where control = index.
    POPULATE HEADER DATA FOR PO
          HEADER-DOC_TYPE = record-DOC_TYPE.
          HEADER-SALES_ORG = record-SALES_ORG.
          HEADER-DISTR_CHAN = record-DISTR_CHAN.
          HEADER-DIVISION = record-DIVISION.
          HEADER-PURCH_NO_C = record-PURCH_NO_C.
          HEADER-PMNTTRMS = record-PMNTTRMS.
    *POPULATE ITEM DATA.
          ITEM-ITM_NUMBER = record-ITM_NUMBER.
          ITEM-MATERIAL = record-material.
         ITEM-TARGET_QTY = record-TARGET_QTY.
          ITEM-TARGET_QU = record-TARGET_QU.
          ITEM-PLANT  = record-PLANT .
          APPEND ITEM.
    *POPULATE ITEM FLAG TABLE
          ITEMX-ITM_NUMBER = record-ITM_NUMBER.
          ITEMX-UPDATEFLAG = C_X.
         ITEMX-TARGET_QTY = C_X.
          ITEMX-PLANT = C_X .
          ITEMX-MATERIAL = C_X .
          ITEMX-TARGET_QU = C_X .
          APPEND ITEMX.
    *POPULATE SCHEDULE  TABLE
          SCHEDULE-ITM_NUMBER = RECORD-ITM_NUMBER.
          SCHEDULE-REQ_QTY = RECORD-REQ_QTY.
          APPEND SCHEDULE.
    *POPULATE SCHEDULE  TABLE
          SCHEDULEX-ITM_NUMBER = RECORD-ITM_NUMBER.
          SCHEDULEX-REQ_QTY = C_X.
          APPEND SCHEDULEX.
        endloop.
    *POPULATE PARTNER  TABLE
        PART-PARTN_NUMB = record-PARTN_NUMB.
        PART-PARTN_ROLE = record-PARTN_ROLE.
        APPEND PART.
    *BAPI CALL
        CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
              EXPORTING
               ORDER_HEADER_IN               = HEADER
               ORDER_HEADER_INX              = HEADERX
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
              IMPORTING
               SALESDOCUMENT                 = SO
              TABLES
               RETURN                        = RETURN
               ORDER_ITEMS_IN                = ITEM
               ORDER_ITEMS_INX               = ITEMX
               ORDER_PARTNERS                = PART
               ORDER_SCHEDULES_IN            = SCHEDULE
               ORDER_SCHEDULES_INX           = SCHEDULEX
      ORDER_CONDITIONS_IN           =
      ORDER_CONDITIONS_INX          =
      ORDER_CFGS_REF                =
      ORDER_CFGS_INST               =
      ORDER_CFGS_PART_OF            =
      ORDER_CFGS_VALUE              =
      ORDER_CFGS_BLOB               =
      ORDER_CFGS_VK                 =
      ORDER_CFGS_REFINST            =
      ORDER_CCARD                   =
      ORDER_TEXT                    =
      ORDER_KEYS                    =
      EXTENSIONIN                   =
      PARTNERADDRESSES              =
        loop at return where type = 'E' and ID NE 'MEPO' and ID NE 'BAPI'.
          WRITE:/ Return-message.
        endloop.
    *Confirm the document creation by calling database COMMIT
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            WAIT = 'X'.
    *Messages
        loop at return where type = 'S' and number ne '233'.
         WRITE:/ Return-message.
          CALL FUNCTION 'FORMAT_MESSAGE'
            EXPORTING
              ID        = return-ID
              LANG      = SY-LANGU
              NO        = return-NUMBER
            IMPORTING
              MSG       = W_MSG
            EXCEPTIONS
              NOT_FOUND = 1
              OTHERS    = 2.
          WRITE W_MSG.
         itab_msg-message = w_msg.
         append itab_msg.
          clear: W_MSG.
        ENDLOOP.
      enddo.
         -->P_W_FILE  text
    FORM GET_FILE  USING    P_W_FILE.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        CHANGING
          FILE_NAME     = P_W_FILE
        EXCEPTIONS
          MASK_TOO_LONG = 1
          OTHERS        = 2.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.     "GET_FILE
    Regards,
    Sachin

  • Error when creating Delivery

    Hi experts,
         I've received an error when creating Delivery from AR Reserve Invoice :
    [Delivery - Rows - Warehouse Code][line: 0] , 'No matching records found  '' (CRD1) (ODBC -2028)'  [Message 131-183]
    Don't know what is this, but some of the transaction in Delivery from AR Reserve invoice I mean no error.
    Regards,

    HI,
    Pl. check the links of BP Master.
    Set Bill to and ship to address manually for the Business Partner and set the new address as default .
    Also check the settings of Items Default warehouse Etc.
    Hope Helpful!!!

  • Error when creating interval for number range object

    Hi,
           I am trying to transport my BW stuff from QA to Production and I am getting the following error in the transport logs. The info objects are inactive in RSA1.
    Start of the after-import method RS_IOBJ_AFTER_IMPORT for object type(s) IOBJ (Activation Mode)
    Characteristic YRESD: Error when creating interval for number range object BIM0000396
    Can some body advise me what's wrong? Is something need to be maintained in number ranges?
    Also when I am checking the objects in RSA1, I am getting a message saying "source system WD110 does not exist", WD110 is our dev system. How can I change the source system after transport?
    Thanks.
    Edited by: Raj G on Mar 20, 2008 11:38 AM

    Also when I am checking the objects in RSA1, I am getting a message saying "source system WD110 does not exist", WD110 is our dev system. How can I change the source system after transport?
    Which system are you checking this?
    refer: Re: Transport Source Systems from DEV to Testing for step to map the source systems for transport

Maybe you are looking for

  • Workshop Usability Study @ JavaOne - Earn $200

    Are you attending JavaOne or plan on being in the San Francisco and an experienced Eclipse user? BEA Systems is conducting usability sessions of our new BEA Workshop for WebLogic 10. Qualified developers will earn $200 for their participation. More i

  • Slideshows (pics) in iDVD, can i put them to fit the screen

    when im doing a video project in iDVD, if id like to do a slideshow, is it possible for the photos to fit to the screen and do the same effects (dissolve, page flip) as iPhoto?.. Im mostly concered for the pictures to fit the screen (when im going to

  • How can i calculate ACCRUAL_RATE

    Dear friends, How can i calculate the ACCRUAL_RATE , I am using the PTO_SIMPLE_BALANCE_MULTIPLIER . Yearly Leave Entitlement for varioius Grades are Grade A = 20 , Grade B=25 and Grade C=30. Frequincy = M Multiplier =1 i am using the monthly accrual

  • ATI open-source driver and modelines

    Since the 8.3x versions of fglrx do not work with custom modelines, I have tried to switch to the open-source driver. However, I still seem to have a problem with modelines. Here is the relevant section in my xorg.conf file: Section "Monitor" Identif

  • The real Pantone color files!

    Please make the old pantone color book files available (have only current CS6, have not saved CS2-5)