Value are not coming (tcode cm50)

hi expert ,
in below code values are not comes into ITAB_TXTLINES (  WA_DATA ) . we use a standard program cm50 tcode . into
customize program  memory but values is not coming into wa.
values(arbpl ,werks,kapar,planr)
this is my first time i use standard progarm
so plz help
REPORT  ZPP_CM50  LINE-SIZE 170..
TYPE-POOLS : SLIS.
DATA : INT_CAT TYPE SLIS_FIELDCAT_ALV,
       INT_FCAT TYPE SLIS_T_FIELDCAT_ALV.
DATA : LS_LINE TYPE SLIS_LISTHEADER,
       VN_TOP  TYPE SLIS_T_LISTHEADER,
       IT_SORT TYPE  SLIS_T_SORTINFO_ALV,
       WA_SORT LIKE LINE OF IT_SORT.
DATA : LAYOUT TYPE SLIS_LAYOUT_ALV.
DATA: BEGIN OF SLIST_LISTLINE,
      LINE(1024)      TYPE   C,
      END OF SLIST_LISTLINE.
DATA: ITAB_TXTLINES LIKE SLIST_LISTLINE OCCURS 0 WITH HEADER LINE.
TABLES : CRHD , KAKO .
DATA: BEGIN OF ITAB_DATA OCCURS 0,
      AA(20),LEVEL(20),ITEM(20),OBJ(20),OBJID(20),
      OBJDES(20),OVRFLW(20),QTY(20),UOM(20),ICT(20),
      END OF ITAB_DATA.
DATA : WA_DATA LIKE ITAB_DATA.
DATA: TEXT TYPE C LENGTH 10,
      RSPAR_TAB  TYPE TABLE OF RSPARAMS,
      RSPAR_LINE LIKE LINE OF RSPAR_TAB,
      RANGE_TAB  LIKE RANGE OF TEXT,
      RANGE_LINE LIKE LINE OF RANGE_TAB.
*DATA: TEXT TYPE C LENGTH 10,
     RSPAR_TAB  TYPE TABLE OF RSPARAMS,
     RSPAR_LINE LIKE LINE OF RSPAR_TAB.
     RANGE_TAB  LIKE RANGE OF TEXT,
     RANGE_LINE LIKE LINE OF RANGE_TAB.
DATA  : LIST_TAB TYPE TABLE OF ABAPLIST.
SELECTION-SCREEN : BEGIN OF BLOCK ABC WITH FRAME TITLE TLT.
SELECTION-SCREEN   SKIP 1.
*SELECT-OPTIONS     ARBPL FOR CRHD-ARBPL.
SELECT-OPTIONS     WERKS FOR CRHD-WERKS.
SELECT-OPTIONS     KAPAR FOR KAKO-KAPAR.
SELECT-OPTIONS     PLANR FOR KAKO-PLANR.
SELECTION-SCREEN   SKIP 2.
SELECTION-SCREEN : END OF BLOCK ABC.
START-OF-SELECTION.
*RSPAR_LINE-SELNAME = 'TRUST_ID'.
RSPAR_LINE-KIND    = 'P'.
RSPAR_LINE-LOW     = 'RPF1'."'VD06011013'.
APPEND RSPAR_LINE TO RSPAR_TAB.
CLEAR RSPAR_LINE.
RSPAR_LINE-SELNAME = 'YEAR'.
RSPAR_LINE-KIND    = 'P'.
RSPAR_LINE-LOW     = '2009'.
APPEND RSPAR_LINE TO RSPAR_TAB.
CLEAR RSPAR_LINE.
RSPAR_LINE-SELNAME = 'REPONAME'.
RSPAR_LINE-KIND    = 'P'.
RSPAR_LINE-LOW     = 'FORM3A'.
APPEND RSPAR_LINE TO RSPAR_TAB.
CLEAR RSPAR_LINE.
SUBMIT RCCRY000 EXPORTING LIST TO MEMORY
USING SELECTION-SCREEN '1000'
                WITH CRHARBPL-LOW EQ ARBPL
                 WITH CRHWERKS-LOW EQ WERKS
                 WITH KAKKAPAR-LOW EQ KAPAR
                 WITH KAKPLANR-LOW EQ PLANR
                  AND  RETURN.
  CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
      LISTOBJECT = LIST_TAB
    EXCEPTIONS
      NOT_FOUND  = 1
      OTHERS     = 2.
  CALL FUNCTION 'LIST_TO_ASCI'
    EXPORTING
      LIST_INDEX         = -1
      WITH_LINE_BREAK    = ' '
    TABLES
      LISTASCI           = ITAB_TXTLINES
      LISTOBJECT         = LIST_TAB
    EXCEPTIONS
      EMPTY_LIST         = 1
      LIST_INDEX_INVALID = 2
      OTHERS             = 3.
  LOOP AT ITAB_TXTLINES .                                   "from 5.
    CLEAR WA_DATA.
    SPLIT ITAB_TXTLINES AT '|' INTO: WA_DATA-AA
                                     WA_DATA-LEVEL
                                     WA_DATA-ITEM
                                     WA_DATA-OBJ
                                     WA_DATA-OBJID
                                     WA_DATA-OBJDES
                                     WA_DATA-OVRFLW
                                     WA_DATA-QTY
                                     WA_DATA-UOM
                                     WA_DATA-ICT.
   IF ITAB_TXTLINE-SY-INDEX .
then
     DO 4 TIMES.
       REPLACE '.' IN WA_DATA-LEVEL WITH SPACE.
     ENDDO.
*DELETE ITAB_DATA-INDEX=1." WHERE WA_DATA = ITAB_DATA.
     CONDENSE WA_DATA-LEVEL.
     IF NOT WA_DATA-LEVEL IS INITIAL and not WA_DATA-LEVEL cp 'Emp*'.
        APPEND WA_DATA TO ITAB_DATA.
     ENDIF.
   ENDIF.
  ENDLOOP.
thanks.

Hi,
CM50 is generated from CM10 main program for parameter 'M'. It generates it on the runtime and exports values into memory. It's less likely you will be able to generate the whole set into a Z Program.
I didn't find a function module to do so. But, with your consultants help you can create your own function module that gives results similar to CM50, it's merely calculation of capacity of workcenters for a period using the sales order booked against the work centers in that period. If you try a bit you can create it.
Good luck.
Also remember, before you post a code, use  ...

Similar Messages

  • Values are not coming in report S_ALR_87013558

    Hi,
    I am running the budget report S_ALR_87013558. In that report except budget column, other values are coming(Actual,Comiitment, remordpla, assigned,available)....
    BUt I have assigned the budget..It is showing properly in S_ALR_87013557.
    In S_ALR_87013228 report, available it is showing in negative.
    How to rectify this issue?
    Regards
    Suresh

    Hi Virendra,
    Thanks for ur reply.
    I have ran CJEN for the project. But still it is showing the same in S_ALR_87013558 report.
    But the budget value is coming properly in S_ALR_87013557 report.
    How to goahead???
    Regards
    Suresh

  • IT Depreciation area '15' values are not coming

    Hi,
    We have configured the AA component and the transactions are working fine includes Acquisitions, Depreciation etc. we have created the group assets to take the IT Gross block and enabled the '15' Depreciation area for them and created the derived depreciation area '16', difference between Book (01) -IT (15). But the thing is, for individual assets (other than Group assets) system is not showing the IT Depreciation where the IT Depreciation is displaying for the group assets only, so the derived depreciation area '16' is displaying wrong amounts. For ex-
    Main Asset - 1000         
    Book(01)    - 200           
    IT(15)         - 0 (is not displaying in the AW01N)
    Derived Dep (01-15=16) - 200
    Group Asset - 1000     
    Book(01)  - 0 (is not displaying in the AW01N)
    IT(15)  - 400
    Derived Dep (01-15=16) - 400
    How should I get the correct values for derived depreciation area at individual asset level?
    Please give some inputs to resolve the above
    Thanks & Regards
    Ramki

    Hi Srinu,
    Thanks for your valuable reply.
    1) You should have all of your group assets under one asset class only and that asset class would have ticked in OAAX. - YES
    2) Group asset number should have assigned to the concerned assets in depreciation area details section. - In AS01, for every individual assets, we have assigned the Group Asset number since the Group asset is required for area '15'
    Regards,
    Ramki

  • Column Name values are not coming

    Hi All
    Something Strange problem i have received. I amusing Obiee 10.1.3
    In RPD Level & DB level, a column called "CVCR" is there with length of 30 Char... It has values (say some descriptions).. "HELLO WORLD"
    but at webcat level its displaying only "HELLO W"..........what might be missing ?
    We r using DAC.. checked the design tab --> of this table..and saw the length of CVCR column is 30... no failures... can any one please suggest on this

    Hi There
    Seems my fault in checking the Repository tables..There are two tables W_ & WC_... i missed out checking the base one W_ table where it has less length and thats y getting the half string values from answers...

  • Cess and Edu cess values are not coming/credited in accounting doc created

    Hi All,
    We have done rejection of materials ( 122 mvt type) from UD , the materials are exciseable and for that we are creating rejection invoice in J1IS  transaction ,  the document is getting posted but when we check the accounting entries we could see only Basic Act CENVAT - DEBIT and Cenvat Clearing A/C - CREDIT , there is no entries of Cess and Edu cess in accounting document. I have checked the configuration both Specify Excise Accounts per Excise Transaction & Specify G/L Accounts per Excise Transaction , but everything seems to be correct for me , do let me know if there is any setting/configuration missing. We are using TAXINN procedure.
    Thanks
    Benny

    Closed

  • Sales order are not coming in FS10N ?

    Issue:  How is it possible to see number of sales order in the detail of item in the transaction FS10N?
    When i see the Transaction FS10N for 2011 , at item level Sale Documents are Present , but when i Use the Same FS10N for 2012 , Sale Document values are not present ?
    Kindly tell me the possiblities why the Sale Document Values are not Coming ? Its Urgent .
    Best Regards
    Amit Arora

    Did you install any major upgrades or other system changes recently?  I am not saying that that could cause this, but I really cannot think of anything that would suddenly stop populating Sales Document and Sales Document Item when you enter a new fiscal year.  Also, are you sure you are looking at the line items that originated in the SD module?

  • Field value is not coming in my customize ALV report

    Hi All,
    Good day.
    I have added two fields in a customized ALV report. But the customized report was not developed by me. Therefore I am unable to understand the whole report. As per my requirement I have added 2 fields more like* quantity* & unit field in that ALV. But not understanding why values are not coming in my report though values are there in DB. Plz help me regarding this. The portion of the code is given below.
    SORT t_ekbe by belnr.
      loop at t_ekbe INTO w_ekbe where vgabe = '1'.
        on CHANGE OF w_ekbe-belnr.
          SELECT  MBLNR
            BWART
            SMBLN
            ERFMG   " This is the new added field
            erfme     " This is the new added field
          INTO CORRESPONDING FIELDS OF TABLE t_mseg
          from mseg
          where mblnr = t_ekbe-belnr
          AND   bwart = '101'.
        endon.
      ENDLOOP.
    Thanks,
    Tripod.

    hi ,
    Do according to this
    SORT t_ekbe by belnr.
      if  t_ekbe[] is not initial  .
          SELECT  MBLNR
            BWART
            SMBLN
            ERFMG   " This is the new added field
            erfme     " This is the new added field
          INTO CORRESPONDING FIELDS OF TABLE t_mseg
        for all entries in t_ekbe
          from mseg
          where mblnr = t_ekbe-belnr
          AND   bwart = '101'.
      endif.
    after this
    loop at t_ekbe .
    loop at t_mseg  where mblnr  = t_ekbe-belnr .
      t_ekbe-ERFMG = t_mseg-ERFMG .
    t_ekbe-erfme =   t_mseg-erfme  .
    modify t_ekbe transporting ERFMG  erfme .
    clear t_mseg .
    endloop.
    clear t_ekbe .
    endloop.
    Regards
    Deepak .

  • Payscale group and levels values are not appearing in IT0008

    Hi Friends,
    I craeted Payscale group & Level in V_T510. Eventhough these values are not coming as F4 (drop down)values in IT0008.
    Pls adivice where I have missed the configuration.
    Thanks

    Hi..
    ESG/CAP and and its grouping in V-t510 have already been maintained. however still it is not coming as drop down values.
    Pls suggest to resolve.
    Thanks

  • Screen values are not retained in Tcode BP, onclick of SAVE button

    Hi,
    In Tcode BP, I am selecting a Role with the Business Partner number. COMPANY CODE Push button on the Top is Enabled and Click on that.
    Enter the Company Code and provide the Account management tab by providing Reconciliation Acct 120113, Sort key as 035, Planning Group as E1. Go to Payment Transaction Tab, Enter the Payment terms as Z003, check Record payment history. Now, Click on SAVE Button on the TOP.
    The issue is that, The screen values are not retained in the Payment terms tab and Customer is not Created after saving of a BP Number which is related to a Customer.
    Regards,
    Deepthi.

    OSS Note 1254214 is applied and it is solved.

  • ALV report value is not coming in output

    Hi all,
    I have developed one ALV report using ABAP OOPS. i have used Custom Container to display my all values.
    below are the methods i am calling to dispaly and all values is coming in T_DATASET[] ans fcat, But after Executing my report it is not displaying any value.
    my container is blank in output only fcat-coltext is coming and fieldname value is not coming.
    wa_fcat-fieldname = 'T_DATASET-KAVS'.
                 wa_fcat-coltext = ' '.
    CALL METHOD grid1->set_table_for_first_display
        CHANGING
          it_outtab       = T_DATASET[]
          it_fieldcatalog = fcat.
    please guide me.
    Thanks in Advance.

    Check below code. And make sure you code below steps before calling set table for first display.
    IF G_CUSTOM_CONTAINER1 IS INITIAL.
    *     create container for ALV grid1
          CREATE OBJECT G_CUSTOM_CONTAINER1
             EXPORTING
               CONTAINER_NAME = 'CUST_CONT'.
    else.
        ENDIF.
        IF GRID1 IS INITIAL.
    *     create ALV grid
          CREATE OBJECT GRID1
             EXPORTING
               I_APPL_EVENTS = SELECTED    "application event
               I_PARENT = G_CUSTOM_CONTAINER1.
          G_LAYOUT1-EDIT       = 'X'.
          G_LAYOUT1-sel_mode   = '3'.
          G_LAYOUT1-NO_TOOLBAR = 'X'.
          G_LAYOUT1-ZEBRA      = 'X'.
          G_LAYOUT1-info_fname = 'ROWCOLOR'.
          G_LAYOUT1-GRID_TITLE = TEXT-006.
          G_LAYOUT1-STYLEFNAME = 'CELLTAB'.
          CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY
               EXPORTING IS_LAYOUT        = G_LAYOUT1
                         IT_TOOLBAR_EXCLUDING = GT_TOOLBAR_EXCLUDING
               CHANGING  IT_FIELDCATALOG  = GT_FIELDCAT_LVC[]
                         IT_OUTTAB        = CONP[].

  • Decimal values are not flowing to Excise Invoice created in J1IIN

    Dear Sap Gurus,
    Please help me with the problem. After creation of invoice in VF01 when i am creaing outgoing excise invoice decimal values for BED, ECS and SEC. ECess( AT1) are not coming instead values are rounded of to nearest whole number.
    for ex.
    if invoice values are as below
    BED= 16
    ECS= 3.2
    HSC= 1.6
    when excise iinvoice is created values are changes as below
    BED= 16
    ECS= 3
    HSC= 2
    please give propeer solution
    reg.
    suresh

    Check in Logistics - General -> Tax on Goods Movements -> India -> Basic Settings -> Maintain Company Code Settings. 
    Also ensure that in V/06, for the respective excise condition types, rounding is not activated.
    thanks
    G. Lakshmipathi

  • Parameter values are not showing in in the Organization Parameter form

    We have done a setup for an Inventory Organization.
    Everything was working fine.
    Values were showing everywhere.
    We have lot of transactions done in the org also.
    But suddenly yesterday when I was trying to open the Organization Parameter form for that specific organization, the form came up as blank and in the bottom the error is Query caused no records.
    I have checked data is there in the base table mtl_parameters.
    Value is coming for other organizations. Only one specific organization is having this issue.
    Even in Examine, I have taken the last query run on that form and ran the same in back end database, I can see all values are there in the database.
    But in frontend screen the values are not showing. even organization code also not showing.
    Navigation is: Inv Super user --> Setup --> Organization --> Parameter

    Have you checked Organization Access to ensure that no one restricted that org?
    Or shipping grants and roles?
    I think there are quite a few places that you can restrict access.

  • Excise Values are not flowing from J1IJ to VF01

    Hi All,
    I am facing the problem in Invoice to Customer(from Depot). Excise Values are not flowing from J1IJ. I maintained Alt Cal type as 356 in Pricing procedure for Excise condition types. Even though its not flowing. I am using Tax Procedure TAXINN.
    I have gone through SDN, everybody is suggesting about 356 routine.
    My scenario is STO from Plant to Depot and Sale from Depot to Customer.
    ME21N->VL10B->VF01(Proforma)->J1IIN->MIGO->VA01(from Depot)->VL01N->J1IJ(Depot Excise)->VF01(Invoice to Customer)
    In J1IJ, excise values are coming but in VF01 it is not coming.
    Kindly help me.
    With Regards
    Azeez.Mohd

    Hi,
    in j1ig initial screen which excise group/series group i need to enter
    is it of supplying plant or depot --- Enter Your Excise group
    If i enter material document no say 5000000265 (corresponds to migo-101 at depot )& year
    it'm getting error message excise invoice already exists for5000000265 --> Check the Year of material document
    You can also use the Excise Invoice Details tab
    Enter Vendor's Ex.Inv.No. , enter your STO's Excise Invoice No. and Click on Own factory and enter factory's Series Group in n case of STO from factory,
    use Depot Excise Invoice in case of transfer from another depot
    and Excise Inv. Date
    On next screen,
    In case of non availability of Internal Excise No., select the line item and click on button. On next screen, enter Excise Inv. No., Date, Challan Qty, Excise Base value, ensure that Excise Duty rates are maintained in respective duty rates column, you can also manually enter the excise duty amount and press Enter . System will give warning messages, press Enter for each message and press Back button. System will display the excise duty amount, check the same and click on Save button.
    Hope this will resolve your issue.
    Regards,
    Krishna O

  • Numc characteristic values are not saving in AUSP

    Hi All,
                  I am unable to save numc/Date type characteristic values in AUSP table using CL20N tcode. i am able to retrive CHAR values from AUSP table but NUMC / DATE  values are not saving in this table.
    Regards,
    Praveen

    Hi Praveen,
    If you are fetching ATINN from AUSP table, then you need to use conversion routine..
    Call the FM  CONVERSION_EXIT_ATINN_* & you will get the converted value.
    Thanks,
    Sharath

  • The prices are not coming automatically

    Hi gurus,
    In batch determination.  When i am creating a sales order the batch number is coming automatically.  But the thing is the prices are not coming automatically.  what could be the reason.  Even though i maintained the prices conditon records in vch1 but the system not picking up automatically.  Please give the solution.  It is urgent
    Thanks & Regards
    cheers

    Hi,
    Batch valuation is possible with the std functionality.
    It will allow to valuate each batch saperately.
    More information,
    http://help.sap.com/saphelp_46c/helpdata/en/61/969838e914a20de10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_46c/helpdata/en/25/2839124f7811d18a150000e816ae6e/frameset.htm
    Valuation for a Single Batch
    Use
    You use valuation for a single batch if you want to separate costs for externally processed batches from costs for internally processed batches, and if you want to keep the price and value of each individual batch in inventory management on a value basis.
    Integration
    Valuation for a single batch is carried out using separate values, just as partial stocks for a material are distinguished according to origin, for example. In valuation for a single batch, a separate characteristic category is created for each batch (batch number = characteristic category).
    Valuation for a single batch is a special kind of valuation type for batches.
    Prerequisites :To work with valuation for a single batch, you must choose valuation for a single batch (indicator X in the standard system) as substance characteristic type in the material master record.
    regards,
    Siddharth.

Maybe you are looking for

  • How to create an appointment in crm webui?

    hello experts! i'm verymuch new to crm webui. would anybody please let me know how to create an appointment in crm web ui. even though i established a account and contact relationship in t-code BP in GUI. The error still pops up asking me to enter Sa

  • Profit Centre substitution

    Hi, I've created an IO master without inputting the cost centre & profit centre. However, when I enter the IO in the line item of a P&L, the dummy profit centre was substituted. I would want to key in any cost centre & profit centre in my line item a

  • How do you reduce contacts listed in Messages application?

    In the messages app, when I am typing a new message for a contact it shows every phone number, every imessage address, every im address, etc.  Is there a way to reduce the set of addresses that show up for a contact?  Or, is there a way to only list

  • WebSAPConosole and SAPConsole Transactions

    I have a question regarding the SAPConsole transactions.  I need to develop Good Movement (Non-WM) transactions for SAPConsole using MB_GOODS_MOVEMENT_CREATE.  Does anyone know SAP Best Practice for doing this?  Is it to copy the R/3 transactions (MB

  • Control Material Master Views with IDOC load

    Hello all, I am wondering how best to control which views are available during IDoc processing for Material Master.  For example I just want the Basic Data 1 and Basic Data 2 tabs, I am only populating the relevant data and placing a value of u201CKu