Urgent :Getting error "No ALE scenario active in Profit Center Accounting"

Hi Experts
I am working on a LSWM project ,which uses BAPI BAPI_PROFITCENTER_CREATE for upload of data,but I am facing a strange problem during the IDOC posting the error "No ALE scenario active in Profit Center Accounting" is shown and the status of IDOC goes to 51.
I have done all the ALE setting required for LSMW like File port ,partner type and partner number.
Please help me to solve this error.
Thanks
-Mitesh
Message was edited by:
        Mitesh Parekh

Hi,
Refer This SDN Blog, which gives you steps in detail....
LSMW – Step by Step Guide: Legacy System Migration Workbench is an R/3 Based tool for data transfer from legacy to R/3 for one time or periodic transfer.
Basic technique is Import data from Spreadsheet / Sequential file, convert from source format to target format and import into R/3 database. LSMW not part of standard R/3, if we need this product email [email protected]
Advantages of LSMW:
    • Most of the functions are within R/3, hence platform independence.
   • Quality and data consistency due to standard import techniques.
   • Data mapping and conversion rules are reusable across projects.
   • A variety of technical possibilities of data conversion.
   • Generation of the conversion program on the basis of defined rules
   • Interface for data in spreadsheet format.
   • Creation of data migration objects on the basis of recorded transactions.
   • Charge-free for SAP customers and partners.
Working With LSMW:
Use TCODE LSMW
Objects of LSMW:
  •Project   – ID with max of 10 char to Name the data transfer project.
  • Subproject   – Used as further structuring attribute.
  • Object   – ID with max of 10 Characters, to name the Business object .
  • Project can have multiple sub projects and subprojects can have multiple objects.
  • Project documentation displays any documentation maintained for individual pop ups and processing steps
User Guide: Clicking on Enter leads to interactive user guide which displays the Project name, sub project name and object to be created.
Object type and import techniques:
  • Standard Batch / Direct input.
  • Batch Input Recording
      o If no standard programs available
      o To reduce number of target fields.
      o Only for fixed screen sequence.
    • BAPI
    • IDOC
      o Settings and preparations needed for each project
Preparations for IDOC inbound processing:
    • Choose settings -> IDOC inbound processing in LSMW
    • Set up File port for file transfer, create port using WE21.
    • Additionally set up RFC port for submitting data packages directly to function module IDoc_Inbound_Asynchronous, without creating a file during data conversion.
    • Setup partner type (SAP recommended ‘US’) using WE44.
    • Maintain partner number using WE20.
    • Activate IDOC inbound processing.
    • Verify workflow customizing.
Steps in creating LSMW Project:
    • Maintain attributes – choose the import method.
    • Maintain source structure/s with or without hierarchical relations. (Header, Detail)
    • Maintain source fields for the source structures. Possible field types – C,N,X, date, amount and packed filed with decimal places.
    • Fields can be maintained individually or in table form or copy from other sources using upload from a text file
    • Maintain relationship between source and target structures.
    • Maintain Field mapping and conversion rules
    • For each Target field the following information is displayed:
      o Field description
      o Assigned source fields (if any)
      o Rule type (fixed value, translation etc.)
      o Coding.
      o Some fields are preset by the system & are marked with Default setting.
    • Maintain Fixed values, translations, user defined routines – Here reusable rules can be processed like assigning fixed values, translation definition etc.
    • Specify Files
      o Legacy data location on PC / application server
      o File for read data ( extension .lsm.read)
      o File for converted data (extension .lsm.conv)
    • Assign Files – to defined source structures
    • Read data – Can process all the data or part of data by specifying from / to transaction numbers.
    • Display read data – To verify the input data being read
    • Convert Data – Data conversion happens here, if data conversion program is not up to date, it gets regenerated automatically.
    • Display converted data – To verify the converted data
Import Data – Based on the object type selected
    • Standard Batch input or Recording
      o Generate Batch input session
      o Run Batch input session
    • Standard Direct input session
      o Direct input program or direct input transaction is called
BAPI / IDOC Technique:
    • IDOC creation
      o Information packages from the converted data are stored on R/3 Database.
      o system assigns a number to every IDOC.
      o The file of converted data is deleted.
    • IDOC processing
      o IDOCS created are posted to the corresponding application program.
      o Application program checks data and posts in the application database.
Finally Transport LSMW Projects:
    • R/3 Transport system
      o Extras ->Create change request
      o Change request can be exported/imported using CTS
    • Export Project
      o Select / Deselect part / entire project & export to another R/3 system
    • Import Project
      o Exported mapping / rules can be imported through PC file
      o Existing Project data gets overwritten
      o Prevent overwriting by using
    ‘Import under different name
    • Presetting for Inbound IDOC processing not transportable.
<b>One Last thing, Check in BD64 is the Distribution model is Active for Profit Center</b>.
Cheers...
Santosh.D
<i><b>Mark All the Usefull  Answers.</b></i>

Similar Messages

  • Error Message - No ALE scenario active in Profit Center Accounting

    Hi Friends ,
    I am uploading Profitcenter master using LSMW  Bapi method .  I am getting error message  " Getting error "No ALE scenario active in Profit Center Accounting"    in  step - IDOC Processing  of LSMW .
    I hope i am missing some specific settings for this requirement , any suggestions willl be highly appreciated .
    yah i have chekced the same query in sdn , but did not find any solution to that so i am posting this query .
    Thanks
    Prabhdutta

    Resolved by  BDC .

  • I am getting error while connecting to sqlplus by using apps account in 11i

    i am getting error while connecting to sqlplus by using apps account in 11i. Does anyone has similar error.
    [applmgr@appsc05t01 admin]$ sqlplus
    SQL*Plus: Release 8.0.6.0.0 - Production on Mon Sep 13 14:34:52 2010
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter user-name: apps
    ERROR:
    ORA-12514: Message 12514 not found; product=RDBMS; facility=ORA
    Enter user-name:
    Thanks
    Rao

    yes.
    login as: gorantla
    [email protected]'s password:
    Last login: Mon Sep 13 14:39:23 2010 from glng3wy9g1.actuant.pri
    [gorantla@appsc05t01 ~]$ sudo su - applmgr
    [applmgr@appsc05t01 ~]$ ora_setup
    Available databases:
    x = ATUXX
    y = ATUYY
    z = ATUZZ
    Select database: \c
    y
    ORACLE_SID=ATUYY
    IAS_ORACLE_HOME=/apps/ATUYY/atuyyora/iAS
    ORACLE_HOME=/apps/ATUYY/atuyyora/8.0.6
    APPL_TOP=/apps/ATUYY/atuyyappl
    [applmgr@appsc05t01 ~]$
    [applmgr@appsc05t01 ~]$
    [applmgr@appsc05t01 ~]$
    [applmgr@appsc05t01 ~]$ tnsping ATUYY
    TNS Ping Utility for Linux: Version 8.0.6.3.0 - Production on 13-SEP-2010 15:42:32
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    Attempting to contact (ADDRESS=(PROTOCOL=tcp)(HOST=dbrac05t01-vip.actuant.pri)(PORT=1611))
    OK (0 msec)
    [applmgr@appsc05t01 ~]$ sqlplus
    SQL*Plus: Release 8.0.6.0.0 - Production on Mon Sep 13 15:42:40 2010
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter user-name: apps
    ERROR:
    ORA-12514: Message 12514 not found; product=RDBMS; facility=ORA
    Enter user-name:
    Thanks
    Rao

  • DOC Splitting in New GL and Profit center accounting activation

    Dear All,
    I am in a dilemma regarding the following -
    We are activating doc splitting with profit center and segment as characteristics.
    1) While maintaining Controlling area settings(OKKP) - do we need to activate "Profit Center Accounting" component?
    2) Similarly, in IMG-Controlling - Profit Center Accounting- Basic Settings-Controlling Area Settings-Maintain Controlling Area Settings (0ke5), do we need to maintain any settings?
    I am of the opinion that ,based on the SAP Note - 826357, that we need not activate PC accounting as it is built into New GL Accounting.
    I am also of the opinion, again based on the note, that we can use classic PC accounting, but the note recommends and I quote
    we do not recommend you do this on a long-term basis due to the increased data volume and the increased time and effort required, and in the case of active document splitting, the update response changes.
    But I am not able to come to a conclusion.
    In earlier  implementations, I activated PC accounting in OKK5 in New GL doc split scenario. So keeping that in mind, pl guide me.
    Thanks & regards,
    Gov

    Hi
    Please set the Profit Center Accounting with Controlling Area.
    SPRO->CONTROLLING-->PROFIT CENTER ACCOUNTING -->CONTROLLING AREA SETTING -->MAINTAIN CONTROLLING AREA

  • ERROR IN NUMBER RANGE when doing profit center distribution

    hi
       iam getting this error while doing distribution in profit center accounting , can anyone help me with this
    ERROR:
    Diagnosis
    An error occurred during document number determination. No range was found for number range object GL_LOCAL, sub-object AUS2.
    System Response
    No document number was determined. Results could not be updated.

    follow steps below:
    1.  go to tcode snro
    2.  input GL_LOCAL in the object field
    3.  push "number ranges" button
    4.  push "Groups"(maintain) button
    5.  select "V0" group, since I use Document type 'V0' during PCA distribution
    6. push 'change' button
    7. insert the year you want

  • Specific scenario in PROFIT CENTER ACCOUNTING

    Can someone tell me his/her experience about a specific scenario in Profit Center Accounting where he/she faced a problem and did something special in configuration/development in order to move from legacy to SAP system.
    I would appreciate the help and award suitable points.
    Thanks
    Chandan

    Hi
    Below are some steps in the SAP transfer pricing:
    Define transfer prices
    Define transfer prices as surcharges on valuation prices
    Plan transfer price effects on results by valuation of quantities
    Valuate goods movements with transfer prices
    Perform manual postings and corrections
    Analyze results using reports
    More on below link
    http://help.sap.com/saphelp_45b/helpdata/EN/eb/13736a43c411d1896f0000e8322d00/frameset.html
    SKS

  • Getting Error in ALE Service....

    Hi All,
    I am getting error when i am sending the IDOC...
    The error is Entry in outbound table not found
    Status 29
    My selection Program is as following:
    *& Report  ZDS_CUST_IDOC
    REPORT  ZDS_CUST_IDOC MESSAGE-ID YM.
    TABLES:ZDSCUSTHDR.
    DATA: S_CONTROL_RECORD LIKE EDIDC, "IDOC CONTROL RECORD
          S_Z1DSEGMENT1 LIKE Z1DSEGMENT1. " CUSTOMER HEADER
    DATA: T_CUSTHDR LIKE ZDSCUSTHDR OCCURS 0 WITH HEADER LINE,
          T_EDIDD LIKE EDIDD OCCURS 0 WITH HEADER LINE,
          T_COMM_IDOC LIKE EDIDC OCCURS 0 WITH HEADER LINE.
    CONSTANTS: C_Z1SEG LIKE EDIDD-SEGNAM VALUE 'Z1DSEGMENT1'.
    SELECT-OPTIONS : S_KUNNR for ZDSCUSTHDR-KUNNR.
    START-OF-SELECTION.
    PERFORM FETCH_CUSTHDR.
    PERFORM CONTROL_REC.
    PERFORM MASTER_IDOC_DISTRIBUTE.
    END-OF-SELECTION.
    *&      Form  FETCH_CUSTHDR
          text
    -->  p1        text
    <--  p2        text
    FORM FETCH_CUSTHDR .
    SELECT *
      FROM ZDSCUSTHDR
      INTO TABLE T_CUSTHDR
      WHERE KUNNR IN S_KUNNR.
    LOOP AT T_CUSTHDR.
      S_Z1DSEGMENT1-KUNNR = T_CUSTHDR-KUNNR.
      S_Z1DSEGMENT1-NAME1 = T_CUSTHDR-NAME1.
      S_Z1DSEGMENT1-ADD1 = T_CUSTHDR-ADD1.
      S_Z1DSEGMENT1-REGIO = T_CUSTHDR-REGIO.
      T_EDIDD-SEGNAM = C_Z1SEG.
      T_EDIDD-SDATA = S_Z1DSEGMENT1.
      APPEND T_EDIDD.
      CLEAR T_EDIDD.
    ENDLOOP.
    ENDFORM.                    " FETCH_CUSTHDR
    *&      Form  CONTROL_REC
          text
    -->  p1        text
    <--  p2        text
    FORM CONTROL_REC .
    S_CONTROL_RECORD-MESTYP = 'ZDCUSHDR'. " MESSAGE TYPE
    S_CONTROL_RECORD-IDOCTP = 'ZDCUSIDOC'. " BASIC IDOC TYPE
    S_CONTROL_RECORD-RCVPRT = 'LS'. " PARTNER TYPE.
    S_CONTROL_RECORD-RCVPRN = 'ZDCU810'. "PARTNER NO.
    S_CONTROL_RECORD-RCVPOR = 'A000000068'. "PORT NO.
    ENDFORM.                    " CONTROL_REC
    *&      Form  MASTER_IDOC_DISTRIBUTE
          text
    -->  p1        text
    <--  p2        text
    FORM MASTER_IDOC_DISTRIBUTE .
    CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
      EXPORTING
        MASTER_IDOC_CONTROL                  = S_CONTROL_RECORD
      OBJ_TYPE                             = ''
      CHNUM                                = ''
      TABLES
        COMMUNICATION_IDOC_CONTROL           = T_COMM_IDOC
        MASTER_IDOC_DATA                     = T_EDIDD
    EXCEPTIONS
       ERROR_IN_IDOC_CONTROL                = 1
       ERROR_WRITING_IDOC_STATUS            = 2
       ERROR_IN_IDOC_DATA                   = 3
       SENDING_LOGICAL_SYSTEM_UNKNOWN       = 4
       OTHERS                               = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT T_COMM_IDOC.
      WRITE:/ 'NO. OF IDOC GENERATED:',T_COMM_IDOC-DOCNUM.
    ENDLOOP.
    ENDFORM.                    " MASTER_IDOC_DISTRIBUTE
    Please help me out asap.....
    Regards,
    Dhruv Shah

    Hi Dhruv..
    There are 2 issues:
    1. Error 29 comes when u did not maintain the PARTNER PROFILE for this message type in Tcode WE20. Check it.
    2. After calling the MASTER_IDOC_DISTRIBUTE you must execute COMMIT WORK.
    START-OF-SELECTION.
    PERFORM FETCH_CUSTHDR.
    PERFORM CONTROL_REC.
    PERFORM MASTER_IDOC_DISTRIBUTE.
    commit work. "Updates the Communication Idocs in Database
    <b>Reward if Helpful.</b>

  • Error MM335 when trying to change profit center on material master record

    We are trying to change the profit center that is assigned on the u201CSales: general/plantu201D tab in the material master (same as what shows on the u201CCosting1u201D tab of the material master).
    The following error message appears:  u201CYou want to change the profit center but there are still material stocks u2013 Message no. MM335.u201D
    Our SAP version is SAP ECC 5.0 with support pack 19.
    This particular material that we are trying to change only exists within one plant and one storage location in SAP.
    I have done the following in order to try and resolve this issue:
    1. Removed all inventory from the inventory management and warehouse management side for the material.
    2. Closed all open purchase orders and process orders for the material.
    3. Looked at the MD04 screen to verify there are no outstanding documents for this material.
    I also searched for OSS notes and found note #1249513 which was applied to our sandbox environment.  This note did not fix our problem.
    I had a developer to debug the code that is being triggered upon making a profit center change.  Two important pieces of information he found is that the SAP code is:
    1. Looking to see if the u2018New G/Lu2019 is turned on and u2018profit centeru2019 is active in the new G/L.
    2. Looking to see if previous period stock exists for the material.
    The code is then setting a flag which causes the error message to appear.
    I have found other comments in the forum stating to change the error to a warning for message MM335.  I believe this is not the correct solution; as this would allow a change to a profit center even if stock exists, open orders exist, etc.  I also know we could trick the system by temporarily changing the message to a warning and sending that through to production, changing the material master and following up with a transport to change the message back to an error.  This would work, but we want a final resolution to this problem.
    I believe that 2 OSS notes that were included in our latest support pack upgrade has caused this problem.  Those notes are: 1057674 and 1106510.
    I plan on opening a note with SAP, but was wondering if any users have experienced this same problem after a recent support pack upgrade.
    Regards,
    JH

    Following is additional information regarding this problem.  We were able to successfully change the profit center on some of our materials by making sure there was no stock in previous period and current period (and no open sales orders, purchase orders, etc.).
    - JH

  • Error in Profit center Accounting.

    HI Experts,
    We have two systems (Testing),(Production).
    Production:While posting Inventory adjustment with movement type "968", GL 55000000,It getting posted to profit center 926017 but profit center maitained in material master is 626003 and GL 55000000 is a P&L account type.
    BUt In Testing:
    While posting Inventory adjustment with movement type "968", GL 55000000,It getting posted to profit center 626003 which is maintained in the material master instead of profit center 926017.
    They are expecting it should get posted to profit center 926017 like production
    How to rectify this problem?
    I will appreciate your help.
    Thanks in advance,
    Vani.

    Hi,
    Thanks for your reply.
    I have checked for derivation rule but no derivation rule defined for GL 55000000.
    Client is using only 4.6, so they do not have document split active.
    One more update: I have displayed the material documents in respective systems. So I found that  in testing they used customer 8006120 and in production they used 80006010 customer but recon account is same for both the customers.
    Thanks,
    Vani.

  • Getting the total amount n creating extra profit center

    hello folks,
    I am uploading the data for open AR items, in this process..
    I am looping through the AR items internal table and for each one AR item i am taking multiple GL items looping through the GL item internal table internally.
    So here I have to do one more extra thing. I have to take the balance amount of the one AR item BSEG-WRBTR and compare with the sum of the GL items amounts for that particular AR line item and if there is any difference in the amount then with that difference amount i have to create one more extra line GL line item.
    here is the example : let us take the AR item balance amount is 100$ and the for that particular AR item if u have 3 GL line items each one with 30$ balance amounts. Then compare 100 = 303030 and  the difference is 10$. With that 10$ amount i have to create the one more GL line item how to do it can anyone guide me plzzzzzzzzzzzz
    here is my code.......
    FORM FORM_MAIN_LOGIC.
    DATA:BEGIN OF KUNNR1,
         KUNNR TYPE KUNNR,
         ALTKN TYPE ALTKN,
         BUKRS TYPE BUKRS,
         END OF KUNNR1.
    DATA: BEGIN OF IT_EXTENSION OCCURS 0,
            P_EXTENSION TYPE C,
            END OF IT_EXTENSION.
    DATA : LV_WRBTR TYPE WRBTR.
    DATA: BEGIN OF I_PRCTR,
          PRCTR TYPE PRCTR,
          END OF I_PRCTR.
    PERFORM FORM_READ_DATA_ALL.
    LOOP AT I_ARITEM.
        SELECT SINGLE KUNNR FROM KNB1 INTO KUNNR1-KUNNR WHERE ALTKN = I_ARITEM-P_KUNNR and BUKRS = 'U001' .
        IF SY-SUBRC <> 0.
          WA_ERROR-E_KUNNR = I_ARITEM-P_KUNNR.
          WA_ERROR-E_XBLNR = I_ARITEM-P_XBLNR.
          WA_ERROR-E_ERROR = ' CORRESPONDING SAP CUSTOMER NOT FOUND'.
          APPEND WA_ERROR TO IT_ERROR .
          MOVE KUNNR1-KUNNR TO I_ARITEM-P_KUNNR.
          MODIFY I_ARITEM.
        ENDIF.
      CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
       IMPORTING
         OWN_LOGICAL_SYSTEM                   = WA_DOCUMENTHEADER-OBJ_SYS.
        WA_DOCUMENTHEADER-OBJ_TYPE   = 'IDOC'.
        WA_DOCUMENTHEADER-OBJ_KEY    = I_ARITEM-P_AWKEY.
        WA_DOCUMENTHEADER-USERNAME   = SY-UNAME.
        WA_DOCUMENTHEADER-HEADER_TXT = 'BAPI Test'.
        WA_DOCUMENTHEADER-COMP_CODE  = 'U001'.
        WA_DOCUMENTHEADER-PSTNG_DATE = P_DATE.
        WA_DOCUMENTHEADER-REF_DOC_NO = I_ARITEM-P_XBLNR.
        WA_DOCUMENTHEADER-DOC_DATE = I_ARITEM-P_BLDAT.
        WA_DOCUMENTHEADER-PSTNG_DATE = I_ARITEM-P_BUDAT.
        WA_DOCUMENTHEADER-DOC_TYPE = I_ARITEM-P_BLART.
    fill AR (line 1)
        IT_ACCOUNTRECEIVABLE-ITEMNO_ACC = '1'.
        IT_ACCOUNTRECEIVABLE-CUSTOMER = I_ARITEM-P_KUNNR.
        IT_ACCOUNTRECEIVABLE-REF_KEY_1 = I_ARITEM-P_XREF1.
        IT_ACCOUNTRECEIVABLE-REF_KEY_2 = I_ARITEM-P_XREF2.
        IT_ACCOUNTRECEIVABLE-REF_KEY_3 = I_ARITEM-P_XREF3.
        IT_ACCOUNTRECEIVABLE-PMNTTRMS = I_ARITEM-P_ZTERM.
        IT_ACCOUNTRECEIVABLE-ALLOC_NMBR = I_ARITEM-P_ZUONR.
        IT_ACCOUNTRECEIVABLE-ITEM_TEXT = I_ARITEM-P_SGTXT.
        APPEND IT_ACCOUNTRECEIVABLE.
    fill extension segments.
        it_EXTENSION1-field1+3       = 1.
        it_EXTENSION1-field1+3(18)  = I_ARITEM-P_RSTGR.
        it_EXTENSION1-field1+3(10)       = I_ARITEM-P_WSKTO.
        append IT_EXTENSION1.
        IT_CURRENCYAMOUNT-ITEMNO_ACC   = 1.
        IT_CURRENCYAMOUNT-CURR_TYPE    = '00'.
        IT_CURRENCYAMOUNT-CURRENCY     = 'USD'.
        IT_CURRENCYAMOUNT-AMT_DOCCUR   = I_ARITEM-P_WRBTR.
        APPEND IT_CURRENCYAMOUNT.
    LOOP AT I_GLITEM.
    *******GET THE PROFIT CENTER AND UPDATE THE BAPI STRUCTURE************
    *SELECT SIGLE PRCTR FROM YOCTD_C009_MKDPR INTO I_PRCTR-PRCTR WHERE LEG_MRKT_DIV = I_GLITEM-P_MRDIV AND
                                                                      LEG_SBU = I_GLITEM-P_MRSBU.
    IF SY-SUBRC = 0.
    MOVE I_PRCTR TO I_GLITEM-P_PRCTR.
    MODIFY I_GLITEM.
    ENDIF.
    *IF PROFIT CENTER IS NOT FOUND THEN CREATE A NEW PROFIT CENTER.
    IF SY-SUBRC <> 0.
    I_GLITEM-P_PRCTR = 'P1331193'.
    MODIFY I_GLITEM.
    ENDIF.
    *******CHECK THE ROLL UP GL LINE ITEM AMOUNT WITH AR LINE ITEM AMOUNT.
    GET PROFIT CENTER FOR THE CORRESPONDING MARK DIV AND SBU.
    *SELECT SINGLE PRCTR FROM YOTCD_C009_MKDPR INTO I_GLITEM-PRCRT WHERE LEG_MRKT_DIV = I_GLITEM-MARDIV AND LEG_SBU = I_GLITEM-MRSUB.
      IT_ACCOUNTGL-ITEMNO_ACC     = 2.
      IT_ACCOUNTGL-GL_ACCOUNT     = P_HKONT.
      IT_ACCOUNTGL-ITEM_TEXT      = 'CONVERSION ACCOUNT'.
      IT_ACCOUNTGL-COSTCENTER     = P_KOSTL.
      IT_ACCOUNTGL-PROFIT_CTR     = P_PRCTR.
      APPEND IT_ACCOUNTGL.
    IT_CURRENCYAMOUNT-ITEMNO_ACC   = 2.
    IT_CURRENCYAMOUNT-CURR_TYPE    = '00'.
    IT_CURRENCYAMOUNT-CURRENCY     = P_WAERS.
    IT_CURRENCYAMOUNT-AMT_DOCCUR   = I_GLITEM-P_SAMNT * -1.
    APPEND IT_CURRENCYAMOUNT.
    ENDLOOP.
    PERFORM FORM_CHECK_DATA.
    PERFORM FORM_POST_DATA.
    PERFORM FORM_COMMIT_WORK.
    PERFORM FORM_LONG_TEXT.
    ENDLOOP.
    Please its bit urgent can anyone guide me...........
    SRI

    HELLO guys,
    I tried to write the logic as below.....
    IF I_GLITEM-P_XBLNR = I_ARITEM-P_XBLNR.
    APPEND I_GLITEM TO I_EXTRAGL.
    AT END OF P_XBLNR.
    V_GLBAL = V_GLBAL + I_EXTRAGL-P_SAMNT.
    IF I_ARITEM-P_WRBTR <> V_GLBAL.
    V_DIFBAL = I_ARITEM-P_WRBTR - V_GLBAL.
    ENDIF.
    ENDAT.
    ENDIF.
    Now i got the difference amount into V_DIFBAL... then how to create the extra GL ITEM...
    please can anyone guide me to complete this?
    SRI

  • Is it possible to get the balance sheet report by using profit center

    Dear Experts,
    could you please help me out regarding the following issue.
    business area wise we can get the balance sheet but i want to know is there any possibility to get the BS by using profit centers only for BS Items or can we assign biasness area as well as profit center in a single screen.

    I think you can use this report. S_ALR_87013336
    Regards
    Radha

  • Profit center accounting   activation for  3KEH  to  work

    Hi
    I  have   document splitting  activated, where I  have  sent  the constant  as  PC -  Dummy.
    Now in  3KEH - GL acct    interval    for  PC ,  I  have  defined  B/s account   and also  defined  different PC  for the same.
    But  when  I   have  transaction   using the  GL  in  3KEH,  it  takes   the    DUMMY  PC  and  not  the one  defined in  3KEH.
    So  I    unticked  the  standard  assignment in  Document spliting  and  in  which  case  , there is  NO  profit center  picked.
    Pl  advise  whether   I  have to  activate  PC Accounting in  controlling, so  that   3KEH  works.
    Thanks
    kamala

    HI
    Even  though  I  activate  PCA,  the  system   uses the setting defined in   'activate  docu splitting'  ie  the  constant.
    There  must be   some logic   on  when  the     assignment  of  GL  acct    to  PC based on derivation rule    in  3KEH  will   apply.  Does it  apply only to  FI  transactions,  or   even to  the  FI  docu  generated  from  other  modules.    From  the testing in F-02 or  FB60,   I  do not see    the  3KEH  setting  being  used.   System   reads   the   one in   'activate docu splitting'.
    Thanks   for  any  input on the above.
    kamala

  • Getting error while deploying in active active clustering

    Hi All,
    i am trying to deploy j2ee application in active to active clustered OAS 10g 10.1.3.3 at the time of deploying i am getting the following error
    08/10/23 22:22:45 WARNING: Application.setConfig Application: Security is in failed state as initialization failed.
    java.lang.NoClassDefFoundError
    08/10/23 22:22:45 oracle.oc4j.admin.internal.DeployerException: java.lang.InstantiationException: Application: Security is in failed state as initialization failed
    08/10/23 22:22:45      at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:515)
    08/10/23 22:22:45      at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:196)
    08/10/23 22:22:45      at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
    08/10/23 22:22:45      at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
    08/10/23 22:22:45      at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
    08/10/23 22:22:45      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    08/10/23 22:22:45      at java.lang.Thread.run(Thread.java:595)
    08/10/23 22:22:45 Caused by: java.lang.InstantiationException: Application: Security is in failed state as initialization failed
    08/10/23 22:22:45      at com.evermind.server.Application.setConfig(Application.java:496)
    08/10/23 22:22:45      at com.evermind.server.Application.setConfig(Application.java:339)
    08/10/23 22:22:45      at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1895)
    08/10/23 22:22:45      at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:512)
    08/10/23 22:22:45      ... 6 more
    08/10/23 22:22:45 Caused by: java.lang.NoClassDefFoundError
    08/10/23 22:22:45      at org.jgroups.JChannel.<init>(JChannel.java:109)
    08/10/23 22:22:45      at com.oracle.jgroups.AbstractGroup.<init>(AbstractGroup.java:71)
    08/10/23 22:22:45      at com.oracle.bricks.Manager.<init>(Manager.java:156)
    08/10/23 22:22:45      at com.oracle.bricks.j2ee.SessionManager.<init>(SessionManager.java:47)
    08/10/23 22:22:45      at com.oracle.bricks.j2ee.SessionManagerPrototypeImpl.create(SessionManagerPrototypeImpl.java:42)
    08/10/23 22:22:45      at com.oracle.bricks.SessionManagerFactory.createManager(SessionManagerFactory.java:159)
    08/10/23 22:22:45      at com.oracle.bricks.SessionManagerFactory.getManager(SessionManagerFactory.java:143)
    08/10/23 22:22:45      at com.oracle.bricks.SessionManagerFactory.create(SessionManagerFactory.java:112)
    08/10/23 22:22:45      at com.oracle.bricks.SessionManagerFactory.create(SessionManagerFactory.java:101)
    08/10/23 22:22:45      at com.evermind.server.ejb.JGroupEJBService.<init>(JGroupEJBService.java:63)
    08/10/23 22:22:45      at com.evermind.server.ejb.EJBContainer.initReplicationService(EJBContainer.java:124)
    08/10/23 22:22:45      at com.evermind.server.ejb.EJBContainer.preInit(EJBContainer.java:152)
    08/10/23 22:22:45      at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:170)
    08/10/23 22:22:45      at com.evermind.server.Application.setConfig(Application.java:438)
    08/10/23 22:22:45      ... 9 more
    08/10/23 22:22:45 WARNING: DeployerRunnable.run java.lang.InstantiationException: Application: Security is in failed state as initialization failedoracle.oc4j.admin.internal.DeployerException: java.lang.InstantiationException: Application: Security is in failed state as initialization failed
         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:126)
         at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
         at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.InstantiationException: Application: Security is in failed state as initialization failed
         at com.evermind.server.Application.setConfig(Application.java:496)
         at com.evermind.server.Application.setConfig(Application.java:339)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1895)
         at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:512)
         at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:196)
         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
         ... 4 more
    Caused by: java.lang.NoClassDefFoundError
         at org.jgroups.JChannel.<init>(JChannel.java:109)
         at com.oracle.jgroups.AbstractGroup.<init>(AbstractGroup.java:71)
         at com.oracle.bricks.Manager.<init>(Manager.java:156)
         at com.oracle.bricks.j2ee.SessionManager.<init>(SessionManager.java:47)
         at com.oracle.bricks.j2ee.SessionManagerPrototypeImpl.create(SessionManagerPrototypeImpl.java:42)
         at com.oracle.bricks.SessionManagerFactory.createManager(SessionManagerFactory.java:159)
         at com.oracle.bricks.SessionManagerFactory.getManager(SessionManagerFactory.java:143)
         at com.oracle.bricks.SessionManagerFactory.create(SessionManagerFactory.java:112)
         at com.oracle.bricks.SessionManagerFactory.create(SessionManagerFactory.java:101)
         at com.evermind.server.ejb.JGroupEJBService.<init>(JGroupEJBService.java:63)
         at com.evermind.server.ejb.EJBContainer.initReplicationService(EJBContainer.java:124)
         at com.evermind.server.ejb.EJBContainer.preInit(EJBContainer.java:152)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:170)
         at com.evermind.server.Application.setConfig(Application.java:438)
         ... 9 more
    Please help me out
    Thanks in Advance
    Regards
    Rams

    Check all the dimensions to see if any one of them is enabled for WF. Also, please paste the exact error message that you receive. Have you deployed this app before?

  • Getting error while definening Receivable Activity in R12

    Dear All,
    I am getting below error while defining the "Receivable activity".
    "Please define a party tax profile option for operating unit & Org_Id".
    I defined the party tax profile option in "Taxmanger", even though i am getting the same error. Please help me to resolve this issue.
    Regards,
    Venkata.P.

    Dear Manish,
    Earlier also i followed the note 419019.1, but in the party name column i selected some thing else instead of 'Operating Unit Owning Tax Content '. Now i selected correct Party Name and the issue is resolved.
    Regards,
    Venkata.P.

  • Urgent: getting error while pressing SAVE button on final grid screen

    Hi ABAPers,
          please help me to sort this problem, i want to save the records selected by the user to database table. but when i m pressing save on o/p grid screen its giving error as GETWA_NOT_ASSIGNED.
    This is my code
    TABLES: plaf,
            mara,
            makt,
            zcdr_d.
    Type Pools for ALV *************************************
    TYPE-POOLS: SLIS,
                ABAP.
    TYPES DECLARATION ************************************
    TYPES:
    ******Types declaration for the plaf
    BEGIN OF ty_plaf,
    plnum TYPE plaf-plnum,
    matnr TYPE plaf-matnr,
    END OF ty_plaf,
    ******Types declaration for the makt
    BEGIN OF ty_makt,
    maktx TYPE makt-maktx,
    END OF ty_makt.
    INTERNAL TABLE DECLARATION ***************************
    DATA:
    *---internal table for the type ty_plaf
    it_plaf TYPE TABLE OF ty_plaf,
    *---internal table for the type t_bseg
    it_makt TYPE TABLE OF ty_makt,
    *---internal table for fieldcat
    it_fcat TYPE TABLE OF slis_fieldcat_alv WITH NON-UNIQUE DEFAULT KEY
    WITH HEADER LINE INITIAL SIZE 0,
    *it_fcat1 TYPE TABLE OF slis_fieldcat_alv WITH NON-UNIQUE DEFAULT KEY
    *WITH HEADER LINE INITIAL SIZE 0,
    *---internal table for alv events
    it_events TYPE TABLE OF slis_alv_event WITH NON-UNIQUE DEFAULT KEY
    WITH HEADER LINE INITIAL SIZE 0,
    *it_events1 TYPE TABLE OF slis_alv_event WITH NON-UNIQUE DEFAULT KEY
    *WITH HEADER LINE INITIAL SIZE 0,
    *---final Internal table
    BEGIN OF it_final OCCURS 0,
    plnum LIKE plaf-plnum,
    sel TYPE C,
    matnr LIKE plaf-matnr,
    maktx LIKE makt-maktx,
    END OF it_final,
    BEGIN OF it_zcdr_d OCCURS 0,
    DSEL TYPE C,
            CBOOKNO LIKE zcdr_d-CBOOKNO,
            PLNUM LIKE zcdr_d-plnum,
            MATNR LIKE zcdr_d-matnr,
            MAKTX LIKE zcdr_d-maktx,
    END OF it_zcdr_d,
    *-------to pass the internal table data to database table
    itab TYPE TABLE OF zcdr_d with header line,
    it_save TYPE TABLE OF zcdr_d with header line.
    WORK AREA DECLARATION ********************************
    DATA:
    *---workarea for the type ty_plaf
    wa_plaf TYPE ty_plaf,
    *---workarea for the type ty_makt
    wa_makt TYPE ty_makt,
    *---workarea for the fieldcatalog
    wa_fcat TYPE slis_fieldcat_alv,
    wa_final LIKE LINE OF it_final,
    *---WORKAREA FOR THE PROCESSED DOCUMENT
    wa_zcdr_d LIKE LINE OF it_zcdr_d,
    *---LAYA OUT DECLARATION
    wa_layout TYPE slis_layout_alv.
    *---LAYA OUT DECLARATION
    *wa_layout1 TYPE slis_layout_alv.
    Variables DECLARATION ********************************
    DATA: v_repid LIKE SY-REPID,
               v_hkont LIKE bseg-hkont,
               v_pifno(16) TYPE C,
               v_pifdat LIKE SY-DATUM,
               v_pif(6) TYPE C,
               Field_Cat type Slis_T_fieldcat_alv with HEADER LINE,
               List_Top_Of_Page type Slis_T_Listheader.
    PARAMETERS ****************************************
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS : CBOOKNO(16) TYPE n OBLIGATORY.      "Customs Book number
    SELECTION-SCREEN END OF BLOCK b1.
    SELECT OPTION ****************************************
    SELECTION-SCREEN : BEGIN OF BLOCK blk WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP 1.
    SELECT-OPTIONS:
    Date
    so_pertr for plaf-pertr,
    Material
    so_matnr for plaf-matnr,
    Material Group
    so_matkl for mara-matkl,
    Plant
    so_plwrk for plaf-plwrk OBLIGATORY,
    Sales Order
    so_kdauf for plaf-kdauf.
    SELECTION-SCREEN : END OF BLOCK blk.
    LOAD OF PROGRAM ***************************************
    *LOAD-OF-PROGRAM.
    *IF sy-tcode NE text-002. "Condition for TCode Check
    MESSAGE 'RUN THROUGH THE TRANSACTION CODE' TYPE 'X'.
    *ENDIF. "End Condition for TCode
    INITIALIZATION ****************************************
    INITIALIZATION.
    PERFORM CLEAR_DATA.
    CLEAR: wa_layout.
    START-OF-SELECTION *************************************
    START-OF-SELECTION.
    *-------Getting the data from database
    PERFORM GET_DATA.
    *-------Populating field catalog
    PERFORM populate_fieldcatalog.
    PERFORM set_events USING it_events[].
    PERFORM top_of_page.
    *------Processing the Data and Moving to final Internal Table
    *PERFORM PROCESS_DATA.
    *------Displaying the data in the Output
    PERFORM DISPLAY_OUTPUT.
    *end-of-SELECTION.
    *call screen 0500.
    **&      Module  d0100_set_status  OUTPUT
          text
    *module d0500_set_status output.
    data : rt_extab TYPE slis_t_extab.
    perform set_pf_status USING rt_extab.
    *endmodule.                 " d0100_set_status  OUTPUT
    *module d0100_fcode input.
    perform user_command.
    *endmodule.                 " d0100_fcode  INPUT
    form CLEAR_DATA .
    **CLEARDING THE TABLES AND WORK AREAS
    CLEAR: it_plaf[],
    it_makt[],
    wa_plaf,
    wa_makt.
    endform. " CLEAR_DATA
    *& Form GET_DATA
    text
    --> p1 text
    <-- p2 text
    form populate_fieldcatalog.
      DATA: L_POS TYPE I.
    FIELD_CAT-COL_POS   = L_POS.
    L_POS = L_POS + 1.
    CLEAR FIELD_CAT.
    field_cat-SELTEXT_M = 'Planned Order Nos.'.
    field_cat-tabname = wa_final.
    field_cat-fieldname = 'PLNUM'.
    append field_cat.
    FIELD_CAT-COL_POS   = L_POS.
    L_POS = L_POS + 1.
    CLEAR FIELD_CAT.
    *field_cat-checkbox = 'X'.
    field_cat-SELTEXT_M = 'Check Box'.
    Field_Cat-outputlen = '1'.
    field_cat-tabname = wa_final.
    field_cat-checkbox  = abap_true.
    field_cat-edit = abap_true.
    field_cat-fieldname = 'CHK'.
    append field_cat.
    FIELD_CAT-COL_POS   = L_POS.
    L_POS = L_POS + 1.
    CLEAR FIELD_CAT.
    field_cat-SELTEXT_M = 'Material'.
    field_cat-tabname = wa_final.
    field_cat-fieldname = 'MATNR'.
    append field_cat.
    FIELD_CAT-COL_POS   = L_POS.
    L_POS = L_POS + 1.
    CLEAR FIELD_CAT.
    field_cat-SELTEXT_M = 'Material Description'.
    field_cat-tabname = wa_final.
    field_cat-fieldname = 'MAKTX'.
    append field_cat.
    endform. "  build_fieldcatalog
    form GET_DATA .
    SELECT
              a~PLNUM
              a~MATNR
              b~MAKTX
              c~matkl
              INTO CORRESPONDING FIELDS OF TABLE it_final
              FROM plaf as a
              Inner join makt as b
              on amatnr  = bmatnr
              Inner join mara as c
              on cmatnr = bmatnr
              where a~pertr in so_pertr
                    or a~matnr in so_matnr
                    or c~matkl in so_matkl
                    or a~kdauf in so_kdauf
                    or a~plwrk in so_plwrk.
    SORT it_final by plnum.
    endform. " GET_DATA
    FORM TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          IT_LIST_COMMENTARY = List_Top_Of_Page.
      ENDFORM.
    form DISPLAY_OUTPUT .
    DATA:   repid LIKE sy-REPID,
            Eventcat type Slis_T_Event,
            LAYOUT TYPE SLIS_LAYOUT_ALV.
        LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
        LAYOUT-ZEBRA = 'X'.
    repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
      I_CALLBACK_PROGRAM                  =  repid
       I_CALLBACK_PF_STATUS_SET          = 'SET_PF_STATUS'
       I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
       I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE'
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      = 'PLANNED ORDERS'
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         = layout
       IT_FIELDCAT                       = Field_Cat[]
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
       I_DEFAULT                         = 'X'
       I_SAVE                            = 'X'
      IS_VARIANT                        =
      IT_EVENTS                         = IT_EVENTS[]
      TABLES
        T_OUTTAB                          = it_final
    EXCEPTIONS
      PROGRAM_ERROR                      = 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.
    FORM set_events USING it_events TYPE slis_t_event.
    DATA: x_event TYPE LINE OF slis_t_event.
    clear x_event.
    x_event-name = 'USER_COMMAND'.
    x_event-form = 'USER_COMMAND'.
    append x_event to it_events.
    CLEAR x_event.
    call function 'REUSE_ALV_EVENTS_GET'
      EXPORTING
        I_LIST_TYPE           = 0
      IMPORTING
        ET_EVENTS             = IT_EVENTS
      EXCEPTIONS
        LIST_TYPE_WRONG       = 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.
    read table it_events into x_event with key name = 'USER_COMMAND'.
          if sy-subrc = 0.
          x_event-form = 'USER_COMMAND'.
          modify it_events from x_event index sy-tabix transporting form .
          endif.
    ENDFORM.
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'Z_PFSTAT'.
    ENDFORM. "set_pf_status
    *& Form user_command
    text
    -->R_UCOMM text
    -->RS_SELFIELDtext
    FORM user_command USING
             r_ucomm TYPE sy-ucomm
             rs_selfield TYPE slis_selfield. "#EC *
    if r_ucomm = '&DATA_SAVE' .
    LOOP AT it_final INTO wa_final.
    IF wa_final-sel EQ 'X'.
    MOVE: wa_final-plnum TO it_save-plnum,
    wa_final-matnr TO it_save-matnr,
    wa_final-maktx TO it_save-maktx,
    v_pifno TO it_save-CBOOKNO,
    SY-MANDT TO it_save-mandt.
    MOVE it_save to zcdr_d.
    *INSERT zcdr_d.
    *if l_valid = 'X'.
    MODIFY zcdr_d FROM TABLE it_save.
    endif.
    ENDLOOP.
    IF it_save is initial.
    MESSAGE 'Select Atleast one Check Box' TYPE 'E' .
    ELSE.
    *CONCATENATE 'Number ' V_PIFNO ' Genrated'
    IF SY-SUBRC EQ 0.
    MESSAGE S001(zcdr_d) WITH 'Number ' CBOOKNO ' Genrated'.
    ENDIF.
    endif.
    ENDFORM.

    Thanks a lot for the reply Kiran, but i have already checked it, but its the same one. In debugging mode its going for error when there is a call for method like: 
    call method gt_grid-grid->set_function_code
          changing
            c_ucomm = l_okcode.
    so i dont know where is the problem. & this is in PAI module of the system program.
    Thanks
    Pankaj

Maybe you are looking for

  • Acrobat 9 Standard batch processing

    Does Acrobat 9 Standard support batch processing of multipage tiffs? (I want them to have the OCR ability.) I read that you can do it in Acrobat 7 and 8 Pro.

  • Down payment issue

    one of Vendor  has a down payment which is a debit balance on their account, however other invoices that are due came into payment proposal to issue a check.  Customer had to manually block the invoice documents so payment would not generate.  Does n

  • XSL Transformation between arrays

    Dear all I create to XSD for my variables: <?xml version="1.0" encoding="UTF-8" ?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns="http://www.asre-andishe.com/Inspec/General" targetNamespace="http://www.asre-andishe.com/Inspec/Gene

  • Lost slideshow?

    Hello, I managed to delete a slideshow and then went on to re-save my project before I realized what I had done. Is there anyway that I can restore my project or find what I deleted? I'm supposed to have 40+ copies of this DVD by saturday. Edit Undo

  • PREMIUM MESSAGES

    Verizon knows darn well there is tons of companies out there scamming people with these premium charges ..... yet they offer no protection at all to the loyal customers. I have 5 lines and have been a loyal customer for years (formally alltell). One