ALV - Clearing Values with

Hi,
I am using REUSE_ALV_GRID_DISPLAY function module,
I am facing a problem with drop down list used for the fields that are displayed in ALV.
To get the search help or drop down for the field I am using the below code in field catalogue.
wa_p_i_fieldcat_alv-fieldname = 'VBTYP'.
wa_p_i_fieldcat_alv-ddictxt = 'M'.
wa_p_i_fieldcat_alv-seltext_m = 'VBTYP' .
wa_p_i_fieldcat_alv-seltext_l = wa_p_i_fieldcat_alv-seltext_s = wa_p_i_fieldcat_alv-seltext_m.
wa_p_i_fieldcat_alv-reptext_ddic = wa_p_i_fieldcat_alv-seltext_s.
wa_p_i_fieldcat_alv-ddic_outputlen = 1 .
wa_p_i_fieldcat_alv-col_pos = 4.
wa_p_i_fieldcat_alv-edit = 'X'.
wa_p_i_fieldcat_alv-ref_fieldname = 'VBTYP' .
wa_p_i_fieldcat_alv-ref_tabname = 'ZVBOOKING'.
APPEND wa_p_i_fieldcat_alv TO p_i_fieldcat_alv.
But for the field VBTYP the values are maintained in domain level value range.
So when I enter any value in the field 'VBTYP' and save the value, and try to deleted that value, FM is poping me an error message 'Enter an valid value', which should not happen, since its not a mandatory field in ZVBOOKING table.
Please any one guide me how to over come it. We are really trying hard to get a solution.
Thanks in advance for your help,
Best regards,
Smitha.

Hi,
The issue can be due to the refernece field exsitance on field 'VBTYP' in table 'ZVBOOKING'.
In that case standard ALV will automatically validate the value entered by you with the check table value.
If not, will show you the message. Try to populate some valid and then delete.
Regards,
Rajesh Kumar

Similar Messages

  • Not clear with the statement ( A large double value with redundant D )

    Hi,
    I am not clear about the statment below. What does redundant D means.
    *123.4E+306D// A large double value with redundant D*

    By default any floating-point literal in Java is a double, so the trailing D that specifies that explicitly is redundant.

  • User_command - Link ALV o/p with ME33K

    Good day Friends,
    I have to link my ALV o/p with ME23N OR ME53N OR ME33K according to user Selection ( Purchase Order, Purchase Requistion or Outline agreement)
    For ME23N & ME53N it's working successfully.
    For ME33K - It's linking with the o/p but not acception the i/p value.
    (Ex. I am clicking on ouline agreement value 25000013 or any other value, but it always shows the ME33K screen of outline agreement no. 25000025)
    Giving you the code for Reference ---
    In debugging for rs_selfield-value is giving the value as selected value (required value).
    I am unable to get where it get changed.
    FORM user_command USING r_ucomm LIKE sy-ucomm
                            rs_selfield TYPE slis_selfield.
      READ TABLE it_final INDEX rs_selfield-tabindex.
      CASE r_ucomm.
        WHEN '&IC1'.   " Hotspot
          IF rs_selfield-fieldname EQ 'BANFN' AND
             rs_selfield-value EQ it_final-banfn.
            IF rs_selfield-value IS NOT INITIAL.
              SET PARAMETER ID : 'BAN' FIELD rs_selfield-value.
              CALL TRANSACTION 'ME53N' AND SKIP FIRST SCREEN.
            ENDIF.
          ELSEIF rs_selfield-fieldname EQ 'KONNR' AND
             rs_selfield-value EQ it_final-konnr.
            IF rs_selfield-value IS NOT INITIAL.                          
              SET PARAMETER ID : 'VRT' FIELD rs_selfield-value.   " Here Value is Correct in debugging
              CALL TRANSACTION 'ME33K' AND SKIP FIRST SCREEN.
            ENDIF.
          ELSEIF rs_selfield-fieldname EQ 'EBELN' AND
             rs_selfield-value EQ it_final-ebeln.
            IF rs_selfield-value IS NOT INITIAL.
              SET PARAMETER ID : 'BES' FIELD rs_selfield-value.
              CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
            ENDIF.
          ENDIF.
        WHEN OTHERS.
      ENDCASE.
      CLEAR: it_final.
    ENDFORM.                    "USER_COMMAND

    Hi,
    Based on the Requirement you need to use the one of the Following 3  Parameter IDs
          " Check the parameter ids  CTR  SAG VRT
    In Your Code
    ELSEIF rs_selfield-fieldname EQ 'KONNR' AND
             rs_selfield-value EQ it_final-konnr.
            IF rs_selfield-value IS NOT INITIAL.                          
              SET PARAMETER ID : 'VRT' FIELD rs_selfield-value.   " Here Use CTR and SAG as Parameter IDs and check
    "SET PARAMETER ID : 'CTR' FIELD rs_selfield-value.
    "SET PARAMETER ID : 'SAG' FIELD rs_selfield-value.
              CALL TRANSACTION 'ME33K' AND SKIP FIRST SCREEN.
            ENDIF.
    Cheerz
    Ram

  • GR/IR clearing value

    Hi all
    There is a SA with many times GR and IR now i want to know the GR/IR clearing value about this SA.
    Which T-code can display this? I tried manys but all under vendor,account number.which can under a SA?
    Thanks a lot

    Hi King,
    You can see the GR/IR analysis in MR11 by selecting the PO.
    You can also see the total GR/IR in PO - ME23N under "Item Details" under tab "Pruchase Order history"
    Thanks, Ashok

  • Uploading cleared items with cleared item flag

    Hi,
    I want to upload cleared items of customers and vendors with flag/status indicating that the item is cleared. This will make the system enter the data in BKPF,BSEG and BSAD/BSAK(directly) and hence will save the effort to clear the items after initial upload.
    Can some please suggest a posible method to do this?
    Thanks in advance,
    Nitish

    Hi Nitish,
      U mentioned like that u need to upload the cleared items with flag set. If u obeserve BSEG table it have one field AUGBL. It indicates for cleared items. If item is related to cleared then AUGBL have value else it will space. So try the following  condtion.
    data: v_flag(1) type C.
    If itab-augbl NE ' '.
    move 'X' to v_flag.
    endif.
    move all the data from file to internal table and make the validation from that itab.
    Some t-codes are directly related to BSAD/BSAK tables menas if u post the document then directly uplaod to those tables. So which t-code u r using?If any thing, reply with clear information about the requirement. Hope this helps you.
    Regards,
    Kumar.

  • ReG: Open Item Clearing Value is showing is difference

    Hi All,
    Acutal invoice value is 3,289.90 . but it f-44  clearing value is shwoing 3,176.35. how can solve this problmem. plz help gurs.
    with regards
    JK Rao

    hi,
    have a look here
    http://help.sap.com/saphelp_47x200/helpdata/en/e5/07829e4acd11d182b90000e829fbfe/frameset.htm
    A.

  • Change "choiseListe" values with javascript

    Dear,
    Is it possible to change "choiseListe"  values  with javascript.
    Exemple il have a choseListe :
         Country //// Values
          USA            us
          France         fr
          Spain           sp
    When il click in a botton i whant to change this choceListe :
         Country //// Values
          Morocco           ma
         Portugal           pt
    Thanks

    Hi,
    Listboxes and dropdowns can be scripted against without too much difficulty.
    You would need something like this in the click event of the button:
    listbox1.rawValue = null; //clear previous choice
    listbox1.clearItems(); //clear the list items
    listbox1.addItem("Moocco", "ma"); //add new list items
    listbox1.additem("Portugal", "pt");
    Hope that helps,
    Niall

  • Alv cell color with FM

    hi ,
    can one send me program for alv cell color with help of function modules
    kiran

    Hi Kiran .
    <b>1.Cell Color.</b>
    While Building Fieldcatalog ,there is one field called
    EMPHASIZE.You have to set like this .
    i_field-emphasize = 'C26'.
    <b>2.ROW COLOR.</b>
    Have a look at this example .
    <b>a</b>.Define one variable COLOR in ur main ITAB.
    <b>b</b>.Fill it .
    <b>c</b>.Pass this info.
      w_layout-info_fieldname = 'COLOR'.
    <b>d</b>. display it .
    *& Report  ZGRID_COLOR                                                 *
    REPORT  zgrid_color                             .
    TYPE-POOLS slis.
    DATA: BEGIN OF i_pa0001 OCCURS 0,
    <b>        color(3) TYPE c,</b>
            pernr TYPE pa0001-pernr,
            subty TYPE pa0001-subty,
          END OF i_pa0001.
    DATA :i_field TYPE slis_t_fieldcat_alv,
          w_field LIKE LINE OF i_field,
          w_layout TYPE slis_layout_alv.
    START-OF-SELECTION .
      PERFORM get_data.
      PERFORM fieldcat.
      PERFORM layout_build.
      PERFORM dispaly .
    *&      Form  fieldcat
    FORM fieldcat .
      CLEAR :w_field,i_field[].
      w_field-fieldname = 'PERNR'.
      w_field-tabname   = 'I_PA0001'.
      w_field-seltext_m = 'PERNR'.
      APPEND w_field TO i_field.
      CLEAR w_field.
      w_field-fieldname = 'SUBTY'.
      w_field-tabname   = 'I_PA0001'.
      w_field-seltext_m = 'SUBTY'.
      APPEND w_field TO i_field.
      CLEAR w_field.
    ENDFORM.                    " fieldcat
    *&      Form  dispaly
    FORM dispaly .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
       i_callback_program                = 'ZGRID_COLOR'
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
    <b>   is_layout                         = w_layout</b>
       it_fieldcat                       = i_field
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      I_HTML_HEIGHT_TOP                 =
      I_HTML_HEIGHT_END                 =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = i_pa0001
    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.                    " dispaly
    *&      Form  get_data
    FORM get_data .
      SELECT pernr subty
      FROM pa0001
      INTO CORRESPONDING FIELDS OF TABLE i_pa0001
      UP TO 10 ROWS.
    LOOP AT i_pa0001.
        IF sy-tabix GT 5.
      <b>    i_pa0001-color = 'C51'.</b>
          MODIFY i_pa0001 INDEX sy-tabix.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " get_data
    *&      Form  layout_build
    FORM layout_build .
    <b>  w_layout-info_fieldname = 'COLOR'.</b>
    ENDFORM.                    " layout_build
    I hope it helps u .
    <b>Thanks,
    Venkat.O</b>

  • How to clear value set values from node info

    Hi,
    I have set some values on value set to display on a dropdown in my view.  using following method.
      l_node_info->set_attribute_value_set(  name      = 'XYZ'  value_set = l_value_set ).
    Now i need to clear node info value set. Otherwise particular attribute which i used for dropdown is always showing values added .
    Please suggest how to clear value set.
    Thanks,
    Venkat.

    Hi,
    Interface IF_WD_CONTEXT_NODE_INFO is for metadata of a node. It has nothing to do with the values in dropdown list.
    In order to manipulate the values in the dropdown of an attributes, you can use the IF_WD_CONTEXT_NODE.
    As you are saying its a dropdown, what I can suggest is to write supply function for the node.
    And then get the index (V_INDEX) of the value you wanted to see in the dropdown list, and then use the following code in the method WDDOINIT
    LO_NODE->SET_LEAD_SELECTION_INDEX( INDEX = V_TABIX ).

  • Clearning attribute values with amadmin

    How can I clear an attribute value with amadmin?
    In particular, I am trying to using ModifyServiceTemplate within OrganizationRequests to clear the bind dn for the ldap authentication module.
    I have tried "<Value></Value>", "<Value/>", and just leaving out the value element. The first two attempts cause the amadmin command to complain when it sends the request to the server. Leaving the value element out causes the document to not be valid according to the dtd so amadmin will not even process it.
    <Requests>
    <OrganizationRequests DN="o=mitre.org,o=isp">
    <ModifyServiceTemplate serviceName="iPlanetAMAuthLDAPService"
    schemaType="Dynamic">
    <AttributeValuePair>
    <Attribute name="iplanet-am-auth-ldap-bind-dn"/>
    <Value> </Value>
    </AttributeValuePair>
    </ModifyServiceTemplate>
    </OrganizationRequets>
    </Requests>

    I think you should use DeleteServiceTemplate:
    <OrganizationRequests DN="o=sun.com,o=isp">
    <DeleteServiceTemplate serviceName="iPlanetAMAuthLDAPService" schemaType="Dynamic"/>
    </OrganizationRequests>
    </Requests>
    If you want to keep the service template but you don't want a value for "iplanet-am-auth-ldap-bind-dn" maybe you can use <Value="">. I don't know for sure, but that would be just like if don't want to show the helptext for a channel.

  • Comparing a value with NULL

    Hi,
    A funny thing is happening to me. Is it only in oracle 9i or in every version.
    I am working on a state project on Data Warehousing and faced a small BUG. Here is the sample code.
    DECLARE
    v_Var varchar2(10) := 'a';
    v_Null varchar2(10) := null;
    BEGIN
         IF v_Var != v_Null THEN
              DBMS_OUTPUT.PUT_LINE('First: Not equal');
         ELSE
              DBMS_OUTPUT.PUT_LINE('First: Equal');
         END IF;
         IF v_Var = v_Null THEN
              DBMS_OUTPUT.PUT_LINE('Second: Equal');
         ELSE
              DBMS_OUTPUT.PUT_LINE('Second: Not equal');
         END IF;
    END;
    This anonymous block should return Not Equal for both the statements, but unfortunately it returns Equal for the First and Not equal for the Second.
    Is this a BUG?
    Is this happening only in version 9i (I use version 9.2.0.1.0)?
    Any help/suggestion is appreciated.
    Thanks! :)
    Kamal Vala

    Thanks Justin! :)
    I got a clear answer from U.
    Appreciated.
    In this case I can go with the second statement as any way it returns Not equal
    Here is the modified actual statement which I am using in my procedure and now it works.
    I have modified the Inner IF by adding ELSE part, comparing with = (Earlier !=) and passing the variable assign to the ELSE part.
    -- compare old values with new values after checking the NULL values for Approver.
    IF (vc_Approver IS NULL) AND (v_Approver IS NULL) THEN
    -- Not passing value to keep the same value for v_RecInsert as the value is not changed.
    NULL;
    ELSE
    IF vc_Approver = v_Approver THEN
    -- Not passing value to keep the same value for v_RecInsert as the value is not changed.
    NULL;
    ELSE
    v_RecInsert := TRUE;
    END IF;
    END IF;
    Here if v_RecInsert is TRUE then I have insert the record.
    Hi Garcia,
    I can't use NVL function here as I have to pass a value for NULL and If that value really comes in the field.....than it will problem again.
    Thanks! to Justin and Garcia for taking ur time.
    Kamal Vala :)

  • Multidimensional NSArray: How to find min value with valueForKeyPath ?

    Hi,
    I've setup a multidimensional NSArray with columns and rows. The data is read from a file and are float values.
    I can easily access the data like this:
    NSLog(@"Row[0][0] %f", [[[rows objectAtIndex:0] objectAtIndex:0] doubleValue] );
    NSLog(@"Row[0][1] %f", [[[rows objectAtIndex:1] objectAtIndex:0] doubleValue] );
    NSLog(@"Row[0][2] %f", [[[rows objectAtIndex:2] objectAtIndex:0] doubleValue] );
    etc.
    However I don't know how to get the min/max values for a column in a 2 dimensional NSArray.
    With a simple NSArray it's easy to retrieve the min/max value:
    NSArray *array = [NSArray arrayWithObjects:[NSNumber numberWithInt:16], [NSNumber numberWithInt:4], [NSNumber numberWithInt:128], nil);
    NSLog(“Min value : %@", [array valueForKeyPath:@"@min.intValue"]);
    Now, does someone know how to retrieve min/max values with valueForKeyPath: ?
    Any help is greatly appreciated.
    Cheers,
    Gilles

    #import <Foundation/Foundation.h>
    int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    NSMutableArray * array = [[NSMutableArray alloc]init];
    NSMutableArray * another = [[NSMutableArray alloc]init];
    NSNumber * num1 = [NSNumber numberWithFloat:1.1];
    NSNumber * num2 = [NSNumber numberWithFloat:1.2];
    NSNumber * num3 = [NSNumber numberWithFloat:1.3];
    [another addObject:num1];
    [another addObject:num2];
    [another addObject:num3];
    [array addObject:another];
    NSLog(@"%@",[[array objectAtIndex:0] valueForKeyPath:@"@min.floatValue"]);
    [another release];
    [array release];
    [pool drain];
    return 0;
    Maybe I'm not 100% clear on the question your asking, but doesn't the above code get the min(or max if you wanted) value for the second array

  • Displaying Variables values with Text also in the selection screen of repor

    hai
    I have one InfoObject ZPLANT .When i try to excute the report then im getting only the Values of ZPLANT(not Text of those values) .Like below
    ZPLANT :-
    101 -
    (im getting like this)
    101 London Plant ( i want like this ,when i try to excute the report).
    Please tell me how to do .
    rizwan

    Yes kamaljeet ,
    When we press F4 , then we will gwt some values .
    I want those values with description also ..
    Pls tell me how can i get those F4 values with text in the selection screen of report .
    i ll assing the points
    rizwan

  • If a  class method exporting a value with the generic type 'data'.

    Then how can I get the information?
    For exmple.
    cl_my_clss->get_value( exporting ev_data = .... ) .
    ev_data is a type of data.
    I can not use DATA : lv_mine type data. because generic data should be used in formal parameter, however , if I use a field symbol, how to assign value with out knowing the data type?
    Best regards,

    Hi Blake,
    As per my understanding,
    You are getting the data type from the database table....
    You want to use the same data type....
    Lets say for example:
    You have a db table x with field y having data type Z.
    What you do is that, while declaring the data type for the attribute in the method use the reference as table_name-field_name(x-y).
    Or....
    use ANY. This will give you a chance to map any field type to this method....
    Note: Using ANY will limit the syntax that you can use within the method......
    Regards,
    Kunjal

  • Get parked items moved into a cleared status with out actually posting the

    Hi,
        I need to find a way to get parked items moved into a cleared status with out actually posting the item for payment.  I do not have a PO or goods receipt to post them to. There are some invoicese which we are not paying but we want to keep those items in the history of the vendor. I need to be able to run a parked report of open items and not have these pull into that report.  I have a some parked invoices  for various vendors that I need to get moved into the cleared status.
    Requesting you to provide suggestion on this to proceed.
    Thanks and regards,
    Rj.

    hi,
    i dont think there is any suh format.as per my knowledge u have to post park documents then only it would clear.
    Regards,
    Greeshma

Maybe you are looking for