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 .

Similar Messages

  • 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  ...

  • Value is not coming in excise invoice ..

    Hi .all,
    We have created one plant . For that we did STO , delivery , PGI , and billing ( commercial and excise ). But in Excise invoice , excise value is not coming ...
    Pls Advc ....

    hi,
    pls check whether u have done relevant setting for the new plant code.
    SPRO >Log general > Tax on Goods Movements > India > Basic Settings
    reg
    Deepak

  • Custom Field value is not getting populated in Display mode

    Hi Experts ,
    I have created a custom field on sales tab for BP Role Bill to prty in BP transaction in SAP CRM. The problem i am facing is that , after i chose my sales area field value is not populating in first time no matter whether i am in display or change mode but the moment i switch to the other mode the value is being populated. Kindly help me in solving this.
    Regards,
    Ameet

    Dear Chetan,
    If the field is added through AET, can you please check the Get & Set Methods?
    If the field value has fixed values which you have defined while creating, then check GET_V & GET_P methods.
    Thanks & Kind Regards,
    Ravi Kumar A R

  • 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[].

  • AET Generated field values are not saved.

    Hi Gurus,
    I have created two AET fields on the screen (marked below) and that should store values in table CRMD_CUSTOMER_H. When I create a new service request and enter the values and save, AET field values are not saved. Again, when I edit the same service request and enter the values and save , AET field values are saved on the database.
    While  debugging  I found that, relationship BTHeaderCustExt does not exist for the first time and second time onward its appearing. Due to this, data is not being saved at first time (Line no 27 : current is empty).
    When tried to create realtionship using create_related_entity , it throwing exception cx_crm_genil_model_error.
    Please advice me the soution for the same.
    Regards,
    Anand

    there should be a context node at your view level. Please check ON NEW FOCUS method is implemented or not.
    If not, you can implement that method with below code.
        DATA: lv_collection TYPE REF TO if_bol_bo_col,
              entity        TYPE REF TO cl_crm_bol_entity.
    *   get collection of dependent nodes
        entity ?= focus_bo.
        TRY.
            lv_collection = entity->get_related_entities(
                   iv_relation_name = 'BTHeaderCustExt' ).
            IF lv_collection IS NOT BOUND or lv_collection->size( ) = 0.
              IF entity->is_changeable( ) = ABAP_TRUE.
                TRY.
                    entity = entity->create_related_entity(
                     iv_relation_name = 'BTHeaderCustExt' ).
                  CATCH cx_crm_genil_model_error cx_crm_genil_duplicate_rel.
    *               should never happen
                ENDTRY.
                IF entity IS BOUND.
                  CREATE OBJECT lv_collection TYPE cl_crm_bol_bo_col.
                  lv_collection->add( entity ).
                ENDIF.
              ENDIF.
            ENDIF.
          CATCH cx_crm_genil_model_error.
    *       should never happen
            EXIT.
          CATCH cx_sy_ref_is_initial.
        ENDTRY.
        me->set_collection( lv_collection ).

  • When I try to access iTunes or safari, I get the following message:The procedure entry point QTCF_CFHTTP message set header field value could not be located in the dynamic link library QTCF.dll  I uninstalled and reinstalled.same result HELP!

    When I try to access iTunes or safari, I get the following message:The procedure entry point QTCF_CFHTTP message set header field value could not be located in the dynamic link library QTCF.dll  I uninstalled and reinstalled.same result HELP!

    Taken at face value, you're having trouble with a QuickTime program file there.
    Let's try something relatively simple first. Restart the PC. Now head into your Uninstall a program control panel, select "QuickTime" and then click "Repair".
    Does the repair go through okay? If so, are you able to launch iTunes and/or Safari now?

  • DI: Stock Transfer error (Unique field value does not match the system ...)

    Hi
    I made an add-on that makes stock transfers via DI API. The add-on has been running for two months with more than 10,000 stock transfers with almost no problems.
    The company that is using the add-on have all their products managed by serial/batch numbers.
    But just with one transfer Im getting the error in the stock transfer Add() method:
    "Unique field value does not match the system serial number [(----)29-52]"
    And I tried to debug it without success, I checked that the system serial numbers exists in the origin warehouse and are available. And I really can't find where is the problem.
    If somebody knows what this error means, please let me know.
    Thanks in advance,
    Regards,
    Allan

    Hi János, thanks for your answer.
    I found what was the problem, it was not exactly what you told me, but you gave me some insights to found the problem.
    The thing is that Im using UDT's to store the information of stock transfers (before creating a real SAP stock transfer), because of the funcionality of the add-on. After some user have done some steps or validations, the add-on actually does the real SAP stock transfer.
    The problem here was that my tables had some InternalSerial for some Item, for example the serial A-234, and before the real SAP stock transfer was made, they changed the serial from A-234 to A234 (in the serial number management). So the add-on was trying to create the transfer with the serial A-234, but the serial A-234 no longer exists.
    I have to create a validation that if they change the serial number for an item, I have to change it in my UDT's.
    On the other hand, Im not sure, but I think that I read before that you made a Warehouse Management add-on. This add-on that Im working now is a kind of warehouse management.
    Im having a lot of headaches because the poor accessibility to the user fields in the OSRI and OIBT tables. Im sure that you have faced problems with this. If you have any tips or advices about this it would be greatly appreciated.
    Thanks again,
    Regards
    Allan

  • Field value is not getting populated in Display mode

    Hello All,
    I have created a custom drop down field in the DEAL component through EEWB. From the GUI, I could able to select a value form the drop down list field and save it.
    In DISPLAY mode,  the value is not showing but when I change the screen to EDIT mode then the value is getting populated.
    Please advise.
    Thanks in advance.

    When debugging the set_property method I see the following code:
    If ME->IS_CHANGEABLE( ) = ABAP_TRUE and                  "CLASS=CL_CRM_BOL_ENTITY
               LV_PROPS_OBJ->GET_PROPERTY_BY_IDX( LV_IDX ) ne IF_GENIL_OBJ_ATTR_PROPERTIES=>READ_ONLY
    *     change value
          <VALUE> = IV_VALUE.
    In display mode none of these conditions are fulfilled, meaning value is not set.
    So, is there a way of avoiding this behavior?

  • Project server 2013----new custom field value is not synced between my work assignment view and project professional

    Hi All,
    I would like to add a new custom enterprise field in project server to caculate the effective work. I hope it can work as the default field "work" and "overtime work". And I add my custome enterprise field to my work assignment and the
    related details view. User can update the values in "my task" but after PM accept the updates, these values are not synced to the project center as well as project professional. Any idea?
    Regards,
    Anna

    Yes, I am saying that the PM cannot see the updated values in the enterprise project in Microsoft Project 2013. It is a task custom field. No errors for it. Would you please help create a task custom field on your side to see whether you can reproduce
    this issue? After creating the field, please add it to the "My task" related views so that project members can update the value for the task when they update the task information under "my tasK" page. After that, open the project plan as
    project manager to see whether you get the updated value. Thanks a lot!
    Regards,
    Anna

  • Tcode VL10G  quantity field values are not displaying ?

    Hi All,
    In TCODE - VL10G - Sales and Purchase Order display  -
    After passing the input values it displays the results with minimum fields in the ALV layout.  When I add Quantity fields to the layout - WMENG -Order quantity and any other Quantity related fields it is not displaying values in the results. Even though the values exists in the table.
    Can anyone tell me what could be the reason? In the input screen u2013 passing the values in USER ROLE tab has anything related to this issue?
    I tried to debug and could not find code related to VBEP table or other table which has quantity fields.
    Please let me know if any ideas? Thanks in advance.

    Hi,
    We are using - SAP ECC 6.0 system.
    Any hint how I can solve this?
    Thanks.

  • Custom field values are not storing in the data base

    Hi Friends,
    We have created one  Custom field called   ZZ_APPROVER in Rfx Header , we have included this field in the below  stuctures
    1.INCL_EEW_PD_HEADER_CSF_BID
    2.INCL_EEW_PD_HEADER_CSF
    The data type of this field ( ZZ_APPROVER ) is CHAR and the length is 1 .  we have given 2  fixed values in Value Range
    1 -
    X+2 Approver
    2 --- Provisional Approver
    so when we select either 1 or 2 ( in Drop Down ), its displaying properly on RFx Screen, but when we try save this document the values are not strong in the data base.
    Can any one give me idea why its not stroring in the data base
    Thanks in Advance
    Kumar Srini

    Hi Ganapathy,
    A Record is created in table BBP_PDHSC , for other z fields, the values are stroing , but for this field ( ZZ_APPROVER ) [ drop down list ], the value is not stroring
    Thnx
    Kumar Srini

  • Subscreen field  value is not  transferring from ABAP program to Screen

    Hi All,
    I have a requirement to add a new field in a standard program subscreen( program SAPLKACB, Screen: 1006 ). This subscreen is being called from main standard program SAPMV45A.
    When i see the new field value in Debug mode, some value is there. But when the subscreen is displayed value is not displayed. The value is available till end of Main program PBO. But it is displayed with no value, when the subscreen is shown.
    Please let me know what could be the reason behind this. Points will be awarded for the helpful  answers. It is very urgent.
    Regards,
    Yellappa.

    Hi
    did you add code to the flow lgic?
             INCLUDE MV45AOZZ.             " User-modules PBO
             INCLUDE MV45AIZZ.             " User-modules PAI
    Rgds,
    JP

  • Is join field value does not work for Custom object 4 to 15

    Hi Everybody
    I have Custom object 7 as Related Information to campaign object. I want to pull data from campaign to Custom Object 7. I tried with join field value function, but i am getting error.
    Is Custom object 4 to Custom Object 15 not exposed with join field value function.
    Can we pull data from child to parent or it is always other way ????

    Hi,
    JoinFieldValue is not supported in Custom Object 04-15.
    Thanks & Regards
    Sablok

  • '@' not getting displayed in the ALV report

    Hello,
    I am facing  a strange issue in the ALV report display. A string starting with '@' is not getting displayed and says "default icon " on the report. and this is varying from system to system for the same user.
    can anyone please help me in resolving the issue.
    Thanks in advance.
    Thanks and Regards,
    Santhosh Guptha N.

    @ is a default value as per ALV internal process. This is used in icons .
    I think this is causing the confusion.
    Check in the fieldcat if there is any adjsutment to be made to handle this.
    Br,
    Vijay

Maybe you are looking for

  • ITunes won't open, QuickTime error message

    By accident, I deleted QuickTime, and can now not open iTunes, so I downloaded QuickTime again, recieved a message that QuickTime has been successfully downloaded, but when I try to open/run it, I get this error message: "C:\Documents and Settings\Ow

  • Query to get account balance

    Hi everyone. I wrote a query to get the balance for an internal bank account below: select cba.bank_account_id, cba.bank_account_name, cba.bank_account_num, cbau.bank_acct_use_id, (glb.period_net_dr - glb.period_net_cr) begin_balance, hr_general.deco

  • Equivalent to calling a function in labview

    Hi, I don't use Labview regularly and would appreciate some advice for what is probably a straightforward problem! If I have one process started and running in a while loop, how can I start and run a second process in another while loop while simulta

  • Create effect as if music was playing in scene

    Greetings I'm new to Soundbooth, but after having worked for several years using PPro and AE I have now come to a point where I (think) actually need an advanced sound editing tool. I'm editing a scene where characters are leaving a movie theater whi

  • How to set focus on component guaranteed?

    Hi All, I want to run my swing based application on win NT OS with JDK1.5. Now i need to set focus on my JFrame window (this is my requirement) but smetime it focussed and sometime it fails. So i need some guaranteed solution or approach so that it f