Internal Order Report - For the documnets when the cost ele. was not create

Hi,
We created internal orders for tracking capital expenditure relating to assets. At that time, we were not created asset GL's as cost element. Recently we created asset GL's as cost elements (category 90).
Now we are getting the internal order report after creation of cost element for the transactions done thereafter. We mentioned the internal order number in PO but not in accounting document earlier. Now we are maintaining internal order number in accounting document also.
So when we run OKBA we are getting CO document but, it is not tracking against internal order (since order number was not mentioned earlier). We executed one MM document in which internal order was mentioned through OKBB but there is no change in the internal order report.
Is there any possibility to get the internal order report for the transactions done before creation of cost element.
Please guide me
Best Regards
Madhusekhar Gupta G

Hi,
Thanks for your quick replies.
Can we get the report as follows.
1. Total Po's value for the internal Order (through Table EKKN)                                                      xxx
Less: Value already posted to Internal order after creation of cost elements (S_alr_87013019)  xxx
Less: Total Value to be invoiced (Tcode -ME2N)                                                                             xxx
Net amount to be posted to Internal Order manually                                                                        xxx
Is it correct?
Regards
Madhusekhar Gupta G
Edited by: gms gupta on Feb 20, 2012 4:33 PM

Similar Messages

  • The storage name for the MIDlet suite was not given

    I am trying to RUN my application (MIDP 2.0 CLDC1.0) using OTA option in net beans IDE.
    But it gives this message
    **The storage name for the MIDlet suite was not given**
    and abort the execution
    I am using Push registry.
    Also I am sending and receiving sms through mobile.
    Please help me in this topic?

    midlet1, I asked you less than 12 hours ago not to post to old threads that are long dead.
    [http://forums.sun.com/thread.jspa?threadID=5353188]
    If you continue to ignore the request, your user account is liable to be blocked.
    I'm locking this thread now.
    db

  • Atg.workflow.WorkflowException: The inner project was not created.

    Hi,
    I am trying to import some data into publishing server using startSQLRepository, but it is throwing the below error when I am executing the below script.
    startSQLRepository -m DCS.Versioned -repository /atg/registry/ContentRepositories/MediaRepository/ -import C:\keystore\MediaRepository.xml -project RajeevTest -user admin -comment mediaexport
    Caused by: atg.workflow.WorkflowException: The inner project was not created. Check that your project workflow has been initialized by the workflow engine
    at atg.epub.project.ProcessHomeMethods.initializeProcess(ProcessHomeMethods.java:410)
    at atg.epub.project.ProcessHomeMethods.initializeProcessWithGlobalWorkflow(ProcessHomeMethods.java:343)
    at atg.epub.project._ProcessHome_Impl.initializeProcessWithGlobalWorkflow(_ProcessHome_Impl.java:53)
    at atg.epub.project._ProcessHome_ReposImpl.initializeProcessWithGlobalWorkflow(_ProcessHome_ReposImpl.java:3)
    at atg.epub.project.ProcessHomeMethods.createProcessForImport(ProcessHomeMethods.java:172)
    at atg.epub.project._ProcessHome_Impl.createProcessForImport(_ProcessHome_Impl.java:25)
    at atg.epub.project._ProcessHome_ReposImpl.createProcessForImport(_ProcessHome_ReposImpl.java:3)
    ... 8 more
    Please help.
    Thanks,
    Rajeev

    I had already this problem, I solved with Oracle Metalink [ID 1038072.1]
    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=1038072.1
    Edited by: georgeo on Mar 16, 2012 8:57 AM

  • The DPM database was not created.

    Hi,
    I am trying to install DPM and it is driving me insane.
    I have installed SQL Server locally on the Server and I'm now trying to get DPM on.
    It gets all the way to the end and then gives me the following error :
    ID : 811 The DPM Database was not created.
    I can't see anything wrong with how SQL Server was setup, and the account that I am running the DPM install under is a SQL SysAdmin.
    Please help.

    Hi,
    I would recommend reviewing the
    DpmSetup.log
    DPM 2010:
    <Install Path>\ DPMLogs
    DPM 2012:
    <Install Path>\Program Files\Microsoft System Center 2012\DPM\DPMLogs
    DPM 2012 Sp1:
    <Install Path>\Program Files\Microsoft System Center 2012\DPM\DPMLogs
    DPM 2012 R2:
    <Install Path>\Program Files\Microsoft System Center 2012 R2\DPM\DPMLogs
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does
    not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Dwayne Jackson II. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights."

  • Standard report for the cost of raw materail in production of finished good

    Is there any standard report for calculation of raw material cost from the production order of finished goods.?
    plz help in this issue.
    Thanks.

    closed

  • Report for the cost for replacing the defective goods free of cost

    hi guru's,
      iam having the qury that iwant to create a report for the free of cost .For the senario that company wants the report for replacing the defective goods free of cost .pls help me out .IN SD module
    Edited by: joe mm on May 13, 2008 3:35 PM

    Dear joe
    I am sure, for giving free of cost, you should be having different document types like sale order for free goods, billing with no value.  So thru VF05, by selecting the billing document type, you can generate a report.
    thanks
    G. Lakshmipathi

  • Internal Order report for PM work order

    Hi There Experts,
                  My question is related to Plant Maintainance (PM) & Internal orders. Is there any standard report in SAP controlling or anywhere else which provides for each Internal Order number the list of Work Orders which have been charged to the Internal order and also if the Work Orders have PO's then a list of POs for each Work order.
    A rough picture of the report is as below:
    Internal Order                  Work Order/s              PO's
    11112222                             5673910                     4567890
                                               6789155                     1122445
    22555111                            77889933                                                                               
    If anybody could answer this it would really really help me.
    Thanks in Advance
    John

    Hi,
    Thanks for your quick replies.
    Can we get the report as follows.
    1. Total Po's value for the internal Order (through Table EKKN)                                                      xxx
    Less: Value already posted to Internal order after creation of cost elements (S_alr_87013019)  xxx
    Less: Total Value to be invoiced (Tcode -ME2N)                                                                             xxx
    Net amount to be posted to Internal Order manually                                                                        xxx
    Is it correct?
    Regards
    Madhusekhar Gupta G
    Edited by: gms gupta on Feb 20, 2012 4:33 PM

  • Show normal report or alv report for the radiobutton that was selected

    Hello... i'm a begginer on Abap, so I hope to writly espose my question...
    I'm trying to modifie an report i have to, when the user choose the values for selection, he also can choose if the output is shown as a normal view or as an alv. I want to do it by using radiobuttons, but I don´t no how to organise my code for the selected radiobutton...
    Thanks

    Hi,
    Copy and paste this code. undestand the logic.
    TABLES: vbrp.
    TYPE-POOLS: slis.
    TYPES: BEGIN OF gs_vbrp,
           vbeln TYPE vbrp-vbeln,  "sales order
           matnr TYPE vbrp-matnr,  "material no
           arktx TYPE vbrp-arktx,  "material description
           ntgew TYPE vbrp-ntgew,  "quantity
           gewei TYPE vbrp-gewei,  "quantity unit
           netwr TYPE vbrp-netwr,  "currency
           werks TYPE vbrp-werks,  "plant
           END OF gs_vbrp.
    DATA: it_vbrp TYPE STANDARD TABLE OF gs_vbrp,
          wa_vbrp TYPE gs_vbrp.
    DATA: fcat TYPE slis_t_fieldcat_alv,
          wa_fcat TYPE slis_fieldcat_alv.
    DATA: lyout TYPE slis_layout_alv,
          event TYPE slis_t_event,
          wa_event TYPE slis_alv_event.
    select-options: s_vbeln for vbrp-vbeln.
    parameters: p_alv type c radiobutton group AA,
                P_NORMAL TYPE C RADIOBUTTON GROUP AA.
      SELECT vbeln
             matnr
             arktx
             ntgew
             gewei
             netwr
             werks
             FROM vbrp
             INTO TABLE it_vbrp
             FOR ALL ENTRIES IN IT_VBRP
             WHERE vbeln EQ IT_VBRP-VBELN.
    IF P_ALV = 'X'.
    define imacro.
    wa_fcat-fieldname   = &1.
    wa_fcat-tabname     = &2.
    wa_fcat-reptext_ddic = &3.
    wa_fcat-col_pos     = &4.
    append wa_fcat to fcat.
    clear wa_fcat.
    end-of-definition.
    imacro 'VBELN'   'it_vbrk' 'PO Document'   '1'.
    imacro 'MATNR'   'it_vbrk' 'material no.'       '2'.
    imacro 'ARKTX'   'it_vbrk' 'Mat. description'   '3'.
    imacro 'NTGEW'   'it_vbrk' 'quantity'        '4'.
    imacro 'GEWEI'   'it_vbrk' 'quantity unit'     '5'.
    imacro 'NETWR'   'it_vbrk' 'net price'   '6'.
    imacro 'WERKS'   'it_vbrk' 'plant'     '7'.
    ****************DEFINE LAYOUT
    lyout-zebra             = 'X'.
    lyout-colwidth_optimize = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
       I_CALLBACK_PROGRAM                = sy-cprog
      I_CALLBACK_PF_STATUS_SET          = ' '
       I_CALLBACK_USER_COMMAND           = 'USER'
      I_CALLBACK_TOP_OF_PAGE            = 'MY NAME'
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
       I_GRID_TITLE                      = 'I M THAT'
      I_GRID_SETTINGS                   =
       IS_LAYOUT                         = lyout
       IT_FIELDCAT                       = fcat
      TABLES
        T_OUTTAB                          = IT_VBRP
    EXCEPTIONS
       PROGRAM_ERROR                     = 1
       OTHERS                            = 2
    ELSE.
    LOOP AT IT_VBRP INTO WA_VBRP.
    WRITE: /5 WA_VBRP-VBELN, WA_VBRP-MATNR.
    ENDLOOP.
    ENDIF.
    Cheers,
    Rudhir

  • I contacted the itunes store support and asked for  an explanation of a refund and then my first name (for the account data) was not accepted - though correct - only when cancelling the second name it went through. How can that be???

    Hello - I wonder what can have happened. I got a mail from the itunes store with the info of a refund for an App that I cannot have purchased. Then I asked for help via the support and had to fill out a form with data. My account name (first name and last name) was already there and when I finally wanted to submit my request for support it said that my first name ( there are 2 for that) was not correct. I had the idea of cancelling the 2nd 'first name = only M. and then the request was accepted.
    What might be the reason for all that turmoil? I mean the refund for s.th. that I did not buy and then the non acceptance of my first name's data?
    I appreciate a comment, aimeeh

    Make an appointment at the genius bar.
    If you went without an appointment, then it would make sense that you could be turned away.

  • Internal order report through report painter ?

    Dear Friends,
    I have requirement to execute the internal order report with the following parameters with separate T.code
    Kindly help is it possible to develop through report painter  or need development ?
    Input screen :
         Company code :
         Period (From to ):
         Order group:
         Or Values (from to ):
         Translate to target Currency : (If I select respective currency it will show in output )
         Exch. Rate Type : (P OR M)
    Output screen : same as S_ALR_87013019 - List: Budget/Actual/Commitments
    I had used report painter and changed the currency target also with this report S_ALR_87013019 - List: Budget/Actual/Commitments.
    Regards
    Sampat

    Hi,
    I think this is feasible in standard.
    You can look at cost center report 1VK>1S3W-001 (S_ALR_87013634) as an example.
    Regards
    Ali

  • Internal Order Number For DBM order

    Hi All,
    How to get the internal order no for the SAP DBM order number,?
    from which table can we fetch ?
    Regards,
    Rangakarthick

    Hi,
    In DBM order an internal order can be created on header level and on split level.
    On split level internal order is created within event BILLING_CREATE.
    The internal order (like other documents related to the DBM order like e.g. reservation as well) are displayed in the order document flow.
    In table /DBM/ORD_DOCFLOW you can fetch internal order number from DBM order.
    But its a little bit tricky:
    In field INSTID_A you have to select business object BUS2400 representing the DBM order.
    Field INSTID_B is populated with business object BUS2075 and the internal order number.
    e.g. if you want to select all internal orders for DBM order 29926 you have to select in initial screen
    field INSTID_A:
    "BUS2400   0000029926*" (consider: there are 3 spaces after BUS2400)
    and field INSTID_B:
    "BUS2075*"
    Example from image: DBM order: 299826
    Internal order header: (no split) 121526
    Internal order split: 235320 (same for both splits 0001 and 0002)
    Regards
    Joachim

  • DPM 2012 Install Fails, The Database was not Created ID 811

    Hi.
    I've tried installing DPM on a Standalone Server (SQL + DPM), and get the "Database was not Created" error. I initially tried DPM 2012 R2, and found that there is an issue with Disjoint Namespaces, so went to DPM 2012 SP1, but still getting
    the same error.
    The Install Account has full access rights (sysadmin) to the DPM SQL Instance, however cannot seem to get it right. The account using to do the install has full Enterprise admin, Domain Admin, Backup Operators & Administrators rights.
    When opeining SQL Managemet studio, I can see the database has been created but the setup fails and requires me to revert.Here is the last few lines of the Install Log File, please help I always mark as answer.
    2014-10-01 08:54:49 PM] Information : Configuration.DBConfigurator: Setting Read_Committed_SnapShot ON
    [2014-10-01 08:54:49 PM] Information : Creating tables
    [2014-10-01 08:54:49 PM] Information : Execute the SQL script
    [2014-10-01 08:54:49 PM] Data : FileName = "D:\Program Files\Microsoft System Center 2012\DPM\SQL\100\Tools\Binn\SQLCMD.EXE"
    [2014-10-01 08:54:49 PM] Data : Arguments = -b -E -d DPMDB_S_PRODBACKUP -i MiniSetupDBConfiguration.sql -r -S S-PRODBACKUP\SCDPM
    [2014-10-01 08:54:49 PM] Data : Error code = 0
    [2014-10-01 08:54:49 PM] Information : Adding DPM Server entry in tbl_AM_Server table
    [2014-10-01 08:54:49 PM] Information : Preloading Microsoft.Internal.EnterpriseStorage.Dls.AgentManager.DB.InstalledAgents
    [2014-10-01 08:54:49 PM] Information : Preloading Microsoft.Internal.EnterpriseStorage.Dls.EngineUICommon.DpmThreadPool
    [2014-10-01 08:54:50 PM] Data : Database connection string = Integrated Security=SSPI;server=S-PRODBACKUP\SCDPM;Pooling=false;database=DPMDB_S_PRODBACKUP;Pooling=false
    [2014-10-01 08:54:50 PM] Information : Grant execute permissions on dbo.prc_MOM_ProductionServer_Get to DPMDBReaders$S-PRODBACKUP
    [2014-10-01 08:54:50 PM] Information : Grant execute permissions on dbo.prc_MOM_HeartBeat_Get to DPMDBReaders$S-PRODBACKUP
    [2014-10-01 08:54:50 PM] Information : Configuration.DBConfigurator: Registering DPM category
    [2014-10-01 08:54:50 PM] Information : Configuration.DBConfigurator: Adding DPM Category to GlobalSettings table
    [2014-10-01 08:54:50 PM] Information : Configuration.DBConfigurator: Adding ConsiderOfflineMediaToCheckOffsiteReady to GlobalSettings table
    [2014-10-01 08:54:50 PM] Information : Add job definitions
    [2014-10-01 08:54:52 PM] Information : Creating schedules
    [2014-10-01 08:55:00 PM] * Exception :  => System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x800706BE): The remote procedure call failed. (Exception
    from HRESULT: 0x800706BE)
       at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
       at Microsoft.Internal.EnterpriseStorage.Dls.Engine.CProxyUtils.HandleErrors(Int32 hr, tagSAFEARRAY* exceptionResult)
       at Microsoft.Internal.EnterpriseStorage.Dls.Engine.SchedulerServicesProxy.Register(String scheduleXml)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Configuration.DBConfigurator.RegisterScheduleXml(String scheduleXml)
    [2014-10-01 08:55:00 PM] * Exception :  => The DPM database was not created.Use Add or Remove Programs in Control Panel to remove the DPM files and registry entries that were created during Setup. Verify that SQL Server is properly installed and that
    it is running, and then run Setup again.Microsoft.Internal.EnterpriseStorage.Dls.Setup.Exceptions.BackEndErrorException: exception ---> Microsoft.Internal.EnterpriseStorage.Dls.Setup.Exceptions.DatabaseConfigurationException: exception ---> System.Reflection.TargetInvocationException:
    Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x800706BE): The remote procedure call failed. (Exception from HRESULT: 0x800706BE)
       at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
       at Microsoft.Internal.EnterpriseStorage.Dls.Engine.CProxyUtils.HandleErrors(Int32 hr, tagSAFEARRAY* exceptionResult)
       at Microsoft.Internal.EnterpriseStorage.Dls.Engine.SchedulerServicesProxy.Register(String scheduleXml)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Configuration.DBConfigurator.RegisterScheduleXml(String scheduleXml)
       --- End of inner exception stack trace ---
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Configuration.DBConfigurator.RegisterScheduleXml(String scheduleXml)
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Configuration.DBConfigurator.RegisterSchedule(String scheduleXmlFile)
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Configuration.DBConfigurator.PopulateDefaultScheduleDefinitionsInDatabase(DBConfigurationReader dbCfgReader)
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Configuration.DBConfigurator.AddJobAndScheduleDefinitions()
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.MiniSetupConfiguration.PopulateDB(Boolean upgrading, Boolean isRemoteDb, String sqlServerMachineName)
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.BackEnd.MachineSpecificConfiguration(Boolean existingDB, Boolean upgrading, Boolean isRemoteDb, String sqlServerMachineName, String instanceName)
    *** Mojito error was: DatabaseCreateFailed; 0; None
       --- End of inner exception stack trace ---
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.BackEnd.MachineSpecificConfiguration(Boolean existingDB, Boolean upgrading, Boolean isRemoteDb, String sqlServerMachineName, String instanceName)
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.BackEnd.Configure(Boolean existingDB, Boolean upgrading, String databaseLocation, String sqlServerMachineName, String instanceName, Boolean oemSetup)
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.DpmInstaller.Configure()
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.ProgressPage.InstallDpm()
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.ProgressPage.InstallerThreadEntry()
    *** Mojito error was: DatabaseCreateFailed; 0; None
    [2014-10-01 08:55:02 PM] *** Error : The DPM database was not created.
    Use Add or Remove Programs in Control Panel to remove the DPM files and registry entries that were created during Setup. Verify that SQL Server is properly installed and that it is running, and then run Setup again.
    ID: 811
    [2014-10-01 08:55:02 PM] Information : Data Protection Manager installation has failed. To return the server to its original state, you must uninstall Data Protection Manager by using Add or Remove Programs in Control Panel. This will remove all files and components
    copied during installation.
    For details, click the Error tab.
    [2014-10-01 09:33:51 PM] Data : Error Code Web Link =
    http://go.microsoft.com/fwlink/events.asp?ProdName=Microsoft System Center Data Protection Manager&ProdVer=4.1.3313.0&EvtID=811&EvtSrc=MSDPM&LCID=1033&P2wAppId=p2wMsdpmEE

    Hi,
    Check the SQL Agent account on the remote SQL server and make sure the user account syntax is in the form of UserName\DomainName and not UserName@DomainName - if it is change it.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This
    posting is provided "AS IS" with no warranties, and confers no rights.

  • Package was not created because the code generation failed.

    The installable package was not created because the code generation failed. help me please 

    I am having the exact problem. Been stuck here for 4 days now! For some reason, I cannot successfully generate the packages. I have exported the script from touchdevelop into an app into appstudios successfully though. This error occurs for both Windows
    8.1 and Windows Phone.
    Please help!!
    Thanks,
    LPK.

  • Time Out error problem when i run the report for the whole plant

    Dear all,
    pls find the below coding, when i execute this report for the whole plant , it gives me time out error since it has to process huge database. pls suggest me in which part of my below coding i can improvise or any other better way to fetch the same result.
    pls note that
    i m using Views for querying.pls also note the comments given in Bold to understand the reason behind the coding.
    Views used in are - ZVPOD and ZVPRDCONF.
    START-OF-SELECTION.
      Data: zstat type jest-stat.
      data: stklocaf type mska-lgort.
      data: stklocas type mska-lgort.
    <u><b>To collect the status of the production order by joining the ZVPOD and JEST table.</b></u>
      CLEAR it_ZVPRODDET.
      SELECT DISTINCT ZVPOD~bukrs ZVPOD~aufnr ZVPOD~objnr
      jest~stat ZVPOD~werks ZVPOD~arbpl ZVPOD~J_3AKORD2
      FROM  ZVPOD
      INNER JOIN jest ON ZVPOD~objnr = jest~objnr
      INTO CORRESPONDING FIELDS OF wa_ZVPRODDET where
      plnbez in FGM and arbpl in wc and werks in plant
      and SSAVD in eldate
      and J_3AKORD2 in cups and jest~inact ne 'X'.
        APPEND wa_ZVPRODDET TO it_ZVPRODDET.
      ENDSELECT.
      SORT it_ZVPRODDET BY aufnr stat.
    <u><b>Loop thru Itab to check and delete the records from itab for the specified status.</b></u>
      LOOP AT it_ZVPRODDET INTO wa_ZVPRODDET.
        IF wa_ZVPRODDET-stat = 'I0045' .  " TECO - compl
          DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
        ELSEIF wa_ZVPRODDET-stat = 'I0009' .  " CNF - Confirmed
          DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
        ELSEIF wa_ZVPRODDET-stat = 'I0012' .  " DLV - Delivered
          DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
        ELSEIF wa_ZVPRODDET-stat = 'I0046' .  " CLSD - Closed
          DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
        ELSEIF wa_ZVPRODDET-stat = 'I0076' .  " DLFL - Del Flag
          DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
        ELSEIF wa_ZVPRODDET-stat = 'E0003' .  " SCLS - Short Close
          CLEAR tj30t.
          SELECT SINGLE txt04
          FROM tj30t INTO tj30t-txt04
          WHERE stsma = 'PRDHOLD' AND
                estat = 'E0003' AND
                txt04 = 'SCLS' AND
                spras = 'EN'.
          IF sy-subrc = 0.
            DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
          ENDIF.
        ENDIF.
    *      Condition for Prod Order released - REL
        IF wa_ZVPRODDET-stat = 'I0002'.
          mreleased = 'Y'.
        else.
          mreleased = 'N'.
        endif.
        zstat = wa_ZVPRODDET-stat.
        IF mreleased = 'N'.
          DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr
          and stat = zstat.
        ENDIF.
      ENDLOOP.
    <u><b>Loop thru the filtered ITAB to get all the production order details for the production order number specified in the where clause( zaufnr ) and populate another internal table.</b></u>
          LOOP AT it_ZVPRODDET INTO wa_ZVPRODDET.
            zaufnr = wa_zvproddet-aufnr.
            zarbid = wa_zvproddet-arbid.
            at new aufnr.
              SELECT DISTINCT * INTO CORRESPONDING FIELDS OF  walnpln
              FROM zvpod where plnbez in FGM and arbpl in wc and SSAVD in
             eldate and werks in plant and J_3AKORD2 in cups and aufnr = zaufnr.
                APPEND walnpln TO itablnpln.
              endselect.
            endat.
          endloop.
          clear walnpln.
    <u><b>
    Looping thru Internal table and performs all the following calculations and inner loop
    and also relevant querying.</b></u>
    <u><b>Assume that ITABLNPLN holds appox. 8000 records.</b></u>
    LOOP AT itablnpln  INTO walnpln.
            contot = 0.
            SELECT distinct * INTO CORRESPONDING FIELDS OF TABLE itablnp
            FROM zvprdconf where aufnr = walnpln-aufnr and
            j_3asize = walnpln-j_3akordx and stzhl ne '2' and stokz ne 'X'.
            clear zvprdconf.
            SELECT single isdd
            FROM zvprdconf into  zvprdconf-isdd
            where aufnr = walnpln-aufnr and
            j_3asize = walnpln-j_3akordx and stzhl ne '2' and stokz ne 'X'.
            SELECT single isdz
            FROM zvprdconf into  zvprdconf-isdz
            where aufnr = walnpln-aufnr and
            j_3asize = walnpln-j_3akordx and stzhl ne '2' and stokz ne 'X'.
            IF sy-subrc EQ 0.
              <u><b>Assume that ITABLNP  holds appox. 30 records.</b></u>
              loop at itablnp into walnp.
                contot = contot + walnp-J_3ALMNGA.
                move walnp-J_3ASIZE to walnpln-J_3ASIZE.
                move zvprdconf-isdd to walnpln-zdate.
                move zvprdconf-isdz to walnpln-ztime.
              endloop.
              walnpln-output = contot.
            endif.
            walnpln-wip = walnpln-menge - contot.
            if walnpln-werks = '1000'.
              stklocaf = '1050'.
              stklocas = '1060'.
            elseif walnpln-werks = '2000'.
              stklocaf = '2150'.
              stklocas = '2160'.
            endif.
           select single kunnr into walnpln-ship from vbpa where
           vbeln = walnpln-KDAUF and PARVW = 'WE'.
            zship = walnpln-ship.
            move zship to walnpln-ship.
            select  single kalab into walnpln-zactqty from mska
            where matnr = walnpln-plnbez
            and j_3asize = walnpln-J_3AKORDX and LGORT = stklocaf.
            condense walnpln-kdauf.
            zsales = walnpln-kdauf.
            concatenate zsales 'S' into zso.
            select single kalab into walnpln-zsndqty from mska
            where matnr = walnpln-plnbez
            and j_3asize = walnpln-J_3AKORDX and LGORT = stklocas
            and J_4KSCAT = zso.
            zmatn = walnpln-plnbez.
            zsale = walnpln-KDAUF.
            walnpln-kdauf = zsale.
            walnpln-plnbez = zmatn.
            zcust = walnpln-kunnr.
            walnpln-kunnr = zcust.
            select single bezei into walnpln-season from TVV2T where
            kvgr2 = walnpln-kvgr2 and SPRAS = 'E'.
            select single bezei into walnpln-shipmode from T173T where
            vsart = walnpln-vsart and SPRAS = 'E'.
            STRL = strlen( walnpln-j_3akord2 ).
            if  strl = 4.
              move walnpln-j_3akord2 to walnpln-j_3akord3.
              clear walnpln-j_3akord2.
            endif.
            move zremk to walnpln-remk.
            MODIFY itablnpln FROM  walnpln.
            contot = 0.
            clear itablnp.
          ENDLOOP.
          PERFORM build_fieldcatalog.
          PERFORM build_layout.
          PERFORM display_alv_report.

    Hi raja,
    Plese go through the suggessitions.
    1.avoide the select ...endselect. write the below select
    CLEAR IT_ZVPRODDET.
    SELECT DISTINCT
         ZVPOD~BUKRS
         ZVPOD~AUFNR
         ZVPOD~OBJNR
         JEST~STAT
         ZVPOD~WERKS
         ZVPOD~ARBPL
         ZVPOD~J_3AKORD2
      FROM ZVPOD
      INNER JOIN JEST ON ZVPOD~OBJNR = JEST~OBJNR
      INTO CORRESPONDING FIELDS TABLE  IT_ZVPRODDET
      WHERE PLNBEZ IN FGM AND
            ARBPL IN WC AND
            WERKS IN PLANT AND
            SSAVD IN ELDATE AND
            J_3AKORD2 IN CUPS AND
            JEST~INACT NE 'X'.
      IF SY-SUBRC = 0.
        SORT TABLE IT_ZVPRODDET.
      ENDIF.
    2..first of all dont delete a record inside the loop. instead use the Field symobols.
    have u obsereved you code in the loop!!!!. wht u r doing..
    u r removing the same record which u in the loop..
    If u wanto delete the entires with check to<b> stat</b>... <b>then.. why dont u put the STAT field in Wher e condition..?</b> by this you reduce the data base select time..
    Now the select query is like the below....
    CLEAR IT_ZVPRODDET.
    SELECT DISTINCT
         ZVPOD~BUKRS
         ZVPOD~AUFNR
         ZVPOD~OBJNR
         JEST~STAT
         ZVPOD~WERKS
         ZVPOD~ARBPL
         ZVPOD~J_3AKORD2
      FROM ZVPOD
      INNER JOIN JEST ON ZVPOD~OBJNR = JEST~OBJNR
      INTO CORRESPONDING FIELDS TABLE  IT_ZVPRODDET
      WHERE PLNBEZ IN FGM AND
            ARBPL IN WC AND
            WERKS IN PLANT AND
            SSAVD IN ELDATE AND
            J_3AKORD2 IN CUPS AND
            JEST~INACT NE 'X' AND
            ( STAT <> 'I0045' AND
              STAT <> 'I0045' AND
              STAT <> 'I0009' AND
              STAT <> 'I0012' AND
              STAT <> 'I0046' AND
              STAT <> 'I0076' AND
              STAT <> 'E0003' ).
      IF SY-SUBRC = 0.
        SORT TABLE IT_ZVPRODDET.
      ENDIF.
    <b>3.</b> WHT IS MEANING OF THE SELECT
    <b>  CLEAR TJ30T.
      SELECT SINGLE TXT04
      FROM TJ30T INTO TJ30T-TXT04
      WHERE STSMA = 'PRDHOLD' AND
            ESTAT = 'E0003' AND
            TXT04 = 'SCLS' AND
            SPRAS = 'EN'.
      IF SY-SUBRC = 0.
        DELETE IT_ZVPRODDET WHERE AUFNR = WA_ZVPRODDET-AUFNR.
      ENDIF.</b>....... IN WHERE CONDION U R GIven all are constant values right?..
    why u need select it inside the loop.. u can write before the SELECT from ZVPOD..
    that why first checke this field then go for fur thure selects..
    <b>now u r code looks like this....</b>
    CLEAR TJ30T.
    SELECT SINGLE TXT04
      FROM TJ30T INTO TJ30T-TXT04
    WHERE STSMA = 'PRDHOLD' AND
          ESTAT = 'E0003' AND
          TXT04 = 'SCLS' AND
          SPRAS = 'EN'.
    IF SY-SUBRC = 0.
      CLEAR IT_ZVPRODDET.
      SELECT DISTINCT
           ZVPOD~BUKRS
           ZVPOD~AUFNR
           ZVPOD~OBJNR
           JEST~STAT
           ZVPOD~WERKS
           ZVPOD~ARBPL
           ZVPOD~J_3AKORD2
        FROM ZVPOD
        INNER JOIN JEST ON ZVPOD~OBJNR = JEST~OBJNR
        INTO CORRESPONDING FIELDS TABLE  IT_ZVPRODDET
        WHERE PLNBEZ IN FGM AND
              ARBPL IN WC AND
              WERKS IN PLANT AND
              SSAVD IN ELDATE AND
              J_3AKORD2 IN CUPS AND
              JEST~INACT NE 'X' AND
              JEST~STAT <> 'I0045' AND
              JEST~STAT <> 'I0045' AND
              JEST~STAT <> 'I0009' AND
              JEST~STAT <> 'I0012' AND
              JEST~STAT <> 'I0046' AND
              JEST~STAT <> 'I0076' AND
              JEST~STAT <> 'E0003' ).
        IF SY-SUBRC = 0.
          SORT TABLE IT_ZVPRODDET.
        ENDIF.
      ENDIF.
    there are so many select inside the loop...... please Delete all of them.... write them be for the loop.......using the FOR ALL ENTRIES.....
    THEN LOOP THE TABLE USING THE WHERE CONDITIONS.
    <b>Plese write u updated code here again</b>..

  • Need to run the report for All Values when Null is passed in parameter

    Hi All,
    In my BIP report, I am using a parameter :asset with Type as Text, which means user will type the values for the parameter in the text box.
    Now, this parameter can take multiple comma separated values. I have a requirement to run the report for All Values when user doesn't enter any value in the parameter text box and if user enters any value(s) then the report will run for those values . The way, I tried to handle that in the query using couple of ways was :
    IMP : My Database is SQL Server
    where
    (table.asset = isnull((:asset), table.asset) or table.asset in (:asset))
    Now this works fine when I give a single asset number but when I give multiple values separated by comma like 123, 345 in the text box, then the statement fails saying 'encountered ,'
    I also tried simply
    table.asset in isnull((:asset),table.asset) -- but this doesn't work as it doesn't allow me to use in operater while using isnull and if i will use = operater then it won't work in case of multiple values
    Any suggestions on how can I handle this? Any help would be highly appreciated.
    Thanks,
    Ronny

    thanks for replying, but i tried this option too, it did not work for me, neither isnull nor coalesce. I mean, the solution work for single value but when i pass multiple values then separated by a comma then it doesn't work and shows me an error like "Incorrect Syntax ','". I am using SQL server as DB and bip is 10.1.3.4.1
    also please share the SR number, so i can also check the same.
    can there be any other work around to this?
    thanks,
    ronny

Maybe you are looking for

  • SSO to BSP

    Hi everybody, I've tried to perform SSO to an BSP from Portal through the AppIntegrator Generic iView Template. So I didn't used the BSP Template. First I created a system from par file sap.com.portal.howtos.webapp and made all the settings. After th

  • Printed Form's - Limited Rows

    Printed Forms Purchase Order / Repetitive Area0 If i exceed 10 items, a second page will be created - i have a huge blank spot between the end of report and page footer - Is the repetitive area0 limited to a particular number of rows? Please help! Ve

  • Ios 5 problem with Calender

    After upgrading to Ios 5, my calendar events are all gone and the plus button in the calender is gone. I don't use Outlook btw. Please help!

  • Safari is driving me nuts!

    I'm using a 27" iMac, 2.7 GHz Intel Core i5, 8GB RAM, Lion 10.7.1 and Safari 5.1, and I do not have Little Snapper installed. My biggest problem is getting the Safari can't connect to the server error, which I seem to get all the time. There's no rhy

  • Updated last week, MUSIC GONE.

    I updated for iTunes sometime last week. Soon thereafter, my iPod stopped working (namely it keeps telling me to plug it into the ac adaptor [which i dont have] to charge it, when i try to plug it into my USB port it wont charge) having checked every