Delete the entry from dropdown list in the pop up window in ALV report

Hi All,
I have a requirement in the ALV interactive report ZMM_IMPL .If we enter selection screen parameters its displaying the first screen.If we click on 'Goods Issue' tab ,it display the pop up window for Requirement Pick list with Batch number ,Storage location and Quantity.Here we have F4 option for batch number(MCH1-CHARG) and we could see all batches (with stock and without stock) in the drop down.
Now my requirement is i would need to delete the non stock batches from drop down values.
Ex:we clich F4 in batch number field(CHARG) ,could see 4 batches Test1 ,Test2 ,Test3 and Test4 .Here Test1 ,Test2 are Batch stock and other two are Non stock batches. We could see all these batches (with and without stock) in MCHB table.Now i would need to delete non stock batches(Batch with zero qty (MCHB-CLABS = 0) from drop down.
Any idea on this.
Regards,
Rpn

Hi,
User wants to appear only batches with stock value in the drop down .Here Batches test1, test2 , test3 have stock but  test4  has no stock value. Now the requirement is  if stock does not exist in any of those batches it should not appear in the drop down and propose batches based on quantity.
Batch stock value can be seen through transaction MB52  and could see only Test1.Test2 and Test3.
They have arleady code in the program for F4 help to Batch number as following,
  CLEAR: lips.
  REFRESH: gt_lips.
  lips-vbeln = f_vbeln.
  lips-posnr = f_posnr.
  lips-matnr = f_matnr.
  lips-werks = f_werks.
  lips-lfimg = f_bdmng.  "store the requirement quantity for display
  lips-pstyv = f_res_del.  "use to store RES or DEL      "DV1K919143
  CALL SCREEN '0100' STARTING AT 10 2.
for the ok code to be BT_SAVE all the validation are complete
  IF g_ok_code NE 'BT_SAVE'.
    f_answer = 'A'.
  ENDIF.
The logic for screen '0100' as follows
PROCESS BEFORE OUTPUT.
*&spwizard: pbo flow logic for tablecontrol 'TC_LIPS'
  module TC_LIPS_change_tc_attr.
*&spwizard: module TC_LIPS_change_col_attr.
  loop at   GT_LIPS
       into GS_LIPS
       with control TC_LIPS
       cursor TC_LIPS-current_line.
    module TC_LIPS_get_lines.
*&spwizard:   module TC_LIPS_change_field_attr
  endloop.
  MODULE STATUS_0100.
PROCESS AFTER INPUT.
*&spwizard: pai flow logic for tablecontrol 'TC_LIPS'
  loop at GT_LIPS.
    chain.
      field GS_LIPS-CHARG.
      field GS_LIPS-LGORT.
      field GS_LIPS-LFIMG.
      module TC_LIPS_modify on chain-request.
    endchain.
    field GS_LIPS-SELKZ
      module TC_LIPS_mark on request.
  endloop.
  module TC_LIPS_user_command.
*&spwizard: module TC_LIPS_change_tc_attr.
*&spwizard: module TC_LIPS_change_col_attr.
MODULE USER_COMMAND_0100.
MODULE USER_COMMAND_EXIT_0100 AT EXIT-COMMAND.
process on value-request.
  field gs_lips-charg module lips-charg_values.
Logic for F4 help as following
DATA: mc_object LIKE dd23l-mconame,
         help_lips LIKE lips.
   DATA: dseltab LIKE dselc OCCURS 10 WITH HEADER LINE.
   DATA: lf_shlpname LIKE dd30v-shlpname,
         lx_shlp TYPE shlp_descr_t,
         ls_interface LIKE ddshiface,
         lf_rc LIKE sy-subrc,
         lt_retvalues LIKE ddshretval OCCURS 0,
         ls_retvalue LIKE ddshretval.
   help_lips = lips.
   IF NOT help_lips-matnr IS INITIAL.
     CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
       EXPORTING
         input        = help_lips-matnr
       IMPORTING
         output       = help_lips-matnr
       EXCEPTIONS
         length_error = 1
         OTHERS       = 2.
     IF sy-subrc <> 0.
    exit.                        "Ignore conversion errors "50A
     ENDIF.
   ELSE.
     EXIT.
   ENDIF.
   SET PARAMETER ID 'MAT' FIELD help_lips-matnr.
   SET PARAMETER ID 'WRK' FIELD help_lips-werks.
  Export parameters to memory to enable search help via classes
   CLEAR dseltab.
   REFRESH dseltab.
   dseltab-fldname = 'MANDT'.
   MOVE sy-mandt TO dseltab-fldinh.
   APPEND dseltab.
   dseltab-fldname = 'MATNR'.
   MOVE help_lips-matnr TO dseltab-fldinh.
   APPEND dseltab.
   dseltab-fldname = 'WERKS'.
   MOVE help_lips-werks TO dseltab-fldinh.
   APPEND dseltab.
   dseltab-fldname = 'CHARG'.
   MOVE help_lips-charg TO dseltab-fldinh.
   APPEND dseltab.
   EXPORT dseltab TO MEMORY ID 'DSELTAB'.
  Get description for search help
   mc_object = 'MCH1'.
   lf_shlpname = mc_object.
   CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
     EXPORTING
       shlpname = lf_shlpname
       shlptype = 'SH'
     IMPORTING
       shlp     = lx_shlp
     EXCEPTIONS
       OTHERS   = 1.
  Enable value copy from search help to dynpro field
   READ TABLE lx_shlp-interface INTO ls_interface
                                WITH KEY shlpfield = 'CHARG'.
   ls_interface-valfield = 'X'.
   MODIFY lx_shlp-interface FROM ls_interface INDEX sy-tabix.
  Start search help dialog
   CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
     EXPORTING
       shlp          = lx_shlp
     TABLES
       return_values = lt_retvalues
     EXCEPTIONS
       OTHERS        = 1.
   IF sy-subrc EQ 0.
     READ TABLE lt_retvalues INTO ls_retvalue
                             WITH KEY fieldname = 'CHARG'.
     IF sy-subrc EQ 0.
       lips-charg = ls_retvalue-fieldval.
       gs_lips-charg = ls_retvalue-fieldval.
     ENDIF.
   ENDIF.
How to delete entry from F4 help.Any idea?
Regards,
Reddy

Similar Messages

  • Getting the description from dropdown list

    hi sdns,
    Just a quick check. My WD program have a set of dropdown list (by key) which is derived and populated by a complex series of logic.
    Now I need to update a textview of the description of dropdown list I select. I don't want to go through the complex codes again just to retrieve te descriptions but I want to directly access to the valueset to retrieve the description. I tried "gettext()" but it's giving me error.
    Anyone kind enough to provide me some snippet of codes to directly access to the selected description of my dropdown list? points will be awarded for useful answers....thanks.
    Jansen

    Hi Jansen,
    Let the attribute bound to DDKey be Val in Context.
    You will be putting key-value to DDKey by
    IWDAttributeInfo boutiqueInfo=wdContext.getNodeInfo()..getAttribute(IPrivate<View>.IContextElement.VAL);
    ISimpleTypeModifiable stf1=boutiqueInfo.getModifiableSimpleType();
    IModifiableSimpleValueSet svs=stf1.getSVServices().getModifiableSimpleValueSet();
    To get the text of the dropDown, first get the key of the dropDown selected by
    String key=wdContext.currentContextElement.getVal();
    Now u can get the value of this key from the SVS variable of DDby Key
    String ddValue=svs.getText(key);
    The key is case sensitive, so ensure the case also.
    U can check the existence of the key by
    if(svs.containsKey(key))
    and value by
    if(svs.containsText(key))
    Regards
    Fahad Hamsa

  • Get the value from dropdown list (selectedIndex) and text field -- not working

    Hi All,
    I am trying to find and change by the values selected by user using dropdown and text field. Here is the code.
    ChangeRevDetails();
    function ChangeRevDetails(){
              var myDialog = app.dialogs.add({name:"Enter copyright information"});
    //    var monthlist = col1.dropdowns.add('myList', undefined, myList);
              var col1 = myDialog.dialogColumns.add();
              var col2 = myDialog.dialogColumns.add();
        col1.staticTexts.add({staticLabel:"Month:"});
              col1.staticTexts.add({staticLabel:"Year:"});
        col1.staticTexts.add({staticLabel:"Rev. no.:"});
        var myList = [ "January", "February",  "March", "April", "March", "April", "May", "June", "July", "August", "Sepetember", "October", "November", "December" ];
         var myMonth = col2.dropdowns.add({stringList:myList, selectedIndex:0, minWidth:100});//{minWidth:100});
         var myYear = col2.textEditboxes.add({editContents:"2013", minWidth:100});  
         var MyRev = col2.textEditboxes.add({minWidth:100});
        var RevMonth = (myList [myMonth.selectedIndex]);
        var RevYear = myYear.editContents;
        var RevNumber = MyRev.editContents;
        var RevToReplace1 = RevMonth +", "+ RevYear;
        var RevToReplace2 = RevMonth +", "+ RevYear + " Rev. " + RevNumber;
        var myResult = myDialog.show();
            if(myYear.editContents == "") //entry is ""
            alert("Please enter some text into the contents field.");
            ChangeRevDetails();
            else if(myResult == true) //user entered datas
                alert (RevMonth);
                alert (RevYear);
                alert (RevNumber);
                alert (RevToReplace1);
                alert (RevToReplace2);
                app.findGrepPreferences = NothingEnum.nothing;
                app.changeGrepPreferences = NothingEnum.nothing;
                // grep find/change
                app.findGrepPreferences = app.changeGrepPreferences = null;      
                app.findGrepPreferences.findWhat = "[\\l\\u]+?\\s?\\d{4},?\\s+[\\l\\u]+\\.*\\s+\\d+";
                app.findGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
                app.changeGrepPreferences.changeTo = RevToReplace1;
                app.changeGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
                app.activeDocument.changeGrep();
                app.findGrepPreferences = NothingEnum.nothing;
                app.changeGrepPreferences = NothingEnum.nothing;
        else //implies user clicked cancel
        myDialog.destroy();
    The problem is, it is not taking the value which the user selects from the dropdown and the text field. It takes the default value as "January" and the year is "2013" as both of these values are given as selectedIndex:0 and editContents:"2013". I have compared the coding with some other working scripts as well, but it is not working. I have added several alert boxes to check the value we get.
    Also, the find and change is also not working. Please help me on this. Thanks.
    Regards,
    Muthuraj. D

    Change the order for dialogresults:
    var myYear = col2.textEditboxes.add({editContents:"2013", minWidth:100});  
    var MyRev = col2.textEditboxes.add({minWidth:100});
    var myResult = myDialog.show();
    if(myYear.editContents == "") //entry is ""
    alert("Please enter some text into the contents field.");
    ChangeRevDetails();
    else if(myResult == true) //user entered datas
    var RevMonth = (myList [myMonth.selectedIndex]);
    var RevYear = myYear.editContents;
    var RevNumber = MyRev.editContents;
    var RevToReplace1 = RevMonth +", "+ RevYear;
    var RevToReplace2 = RevMonth +", "+ RevYear + " Rev. " + RevNumber;
    didn't have a look for the find change problem

  • Choosing the language from dropdown list

    Hi,
    I have a Language dropdownlist which does have 2 languages :-
    1) English
    2) French
    When I select English it should display the text in english , else in french. I have done this using
    <message resources> tag in struts-config.xml using multiple .properties file. Is there any another way to go it without using <message resources> because i what to make it generic irrespective of the view technology that is been used. Please do clarify. Thanks in advance.

    Hi Jansen,
    Let the attribute bound to DDKey be Val in Context.
    You will be putting key-value to DDKey by
    IWDAttributeInfo boutiqueInfo=wdContext.getNodeInfo()..getAttribute(IPrivate<View>.IContextElement.VAL);
    ISimpleTypeModifiable stf1=boutiqueInfo.getModifiableSimpleType();
    IModifiableSimpleValueSet svs=stf1.getSVServices().getModifiableSimpleValueSet();
    To get the text of the dropDown, first get the key of the dropDown selected by
    String key=wdContext.currentContextElement.getVal();
    Now u can get the value of this key from the SVS variable of DDby Key
    String ddValue=svs.getText(key);
    The key is case sensitive, so ensure the case also.
    U can check the existence of the key by
    if(svs.containsKey(key))
    and value by
    if(svs.containsText(key))
    Regards
    Fahad Hamsa

  • I bookmarked a youtube video and it was the removed due to terms of use violation and now I can't remove the bookmark from my list because the video now goes to a broadcast yourself page. I know how to remove the active youtube bookmarks. Help please.

    Details provided in question.

    Do you try to go to the page to remove the bookmark?
    An alternative method is to right-click on the bookmark and choose delete.

  • Selecting a Role from dropdown list throws error

    Hi,
    I'm using CRM Web UI 7.0. I'm facing problem selecting a Role from dropdown list in the assignment block Roles in the screen Employee. The problem is that the dropdown list doesn't show any value on clicking and gives an error message "Error on page" at the bottom of page. The roles exist in the system and also I'm able to see them for Accounts screen & in the GUI.
    Kindly help.
    Regards,
    Shaili

    Hi,
    Just to add to this issue: WebUI-> Account Management-> Contacts-> Roles-> Edit list. When we try to add a role from dropdown in Firefox, it works fine but same throws an error in Internet Explorer related to some script.
    Did someone face similar issue and how was it solved?
    Regards,
    Shikha

  • How to delete one number in the dial pad dropdown list?

    When calling a phone number from Skype, I mistyped the phone number.  Now whenever I call a phone number, the dial pad's dropdown list includes the mistyped phone number.  I want to delete that single number from the dial pad's dropdown list. Unfortunately I obeyed some people's suggestions in other topics.  Now the contents of all chat histories with all ordinary Skype contacts are gone.  I used to save logs of those forever, but the attempt to delete one phone call history actually deleted all chat histories with everyone.  That was not what I wanted. ... And then, to add insult to injury, whenever I call a phone number, the dial pad's dropdown list still includes the mistyped phone number that I want to delete. Is there any way to do it? Even though I make more typos than everyone else, even though my keyboard's Backspace button gets a pounding, surely I'm not the only one?

    NOT My day - just typed out a message and clicked Preview. The message is gone. Short reply - this is suppose, at heart, to be a telephone system. BASICS like keyboard entry error correction should be available (in an intuitive way). Backspace doesn't erase last entry and you cannot even delete ALL the entry. Would you fix this or explain why it cannot be done - and then find out how it can.

  • In looking at my calendar for January, I found all the entries from last year. I thought I would delete the while month and start over, but it deleted all calendars from icloud.  Can I get them restored and how.  Stoormy

    In looking at my calendar for next year I found all the entries from last year were there as well as a few more  I intended to delete January and just start over but everything was deleted including from icloud,  Any way I can get those restored.
    Thanks  Glenn

    Maybe here:
    iCloud: Troubleshooting creating backups

  • Delete all entries from the following tables - Follow-up Activities (oracle)

    Hello,
    I performed a homogeneous system copy of our development BW system with the database (oracle 11.2.0.3) from the BW production system!
    I already start the oracle database and the SAP system in the target system/server (development BW system) and I´m doing some follow-up activities. One of this activities is (at the system copy guide 6.2.3.2 Activities at Database Level) is to delete all entries from the following tables:
    DBSTATHORA, DBSTAIHORA, DBSTATIORA, DBSTATTORA
    I tried to delete them using SQL Plus:
    sqlplus /nolog
    SQL> connect /as sysdba
    SQL> delete from DBSTATTORA;
    delete from DBSTATTORA
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ... and it show me that error message.
    This is strange because when I go to transaction SE14 and check the DBSTATTORA I see that table exist and contain a lot of entries!
    Why this is happened in SQL Plus!? I´m running the correct SQL statement for doing this type of task or not?
    How can I delete the entries of that tables? Can I do that using the transaction SE14?
    Can you help me please?
    Thank you,
    samid raif

    Hello
    sqlplus /nolog
    SQL> connect /as sysdba
    SQL> delete from DBSTATTORA;
    delete from DBSTATTORA
    ERROR at line 1:
    ORA-00942: table or view does not exist
    It doesn't surprise me as you are not mentioning the schema name here. Instead it should be
    delete from SAPSR3.DBSTATTORA;
    Assuming the schema owner is SAPSR3. if the owner is different then replace that with the correct one.
    Regards
    RB

  • How to add the entries and how to delete the entries from custom Z-table?

    Hi Experts,
    My requirement is I need to add the entries from program to three custom z-tables . Assume as zabc1,zabc2,zabc3.
    Here how to add the entries from program to Z-table.???
    And one more requirement is I want to provide a deletion checkbox in selection screen . Initial it was unchecked. If I am giving tick mark then the entries should be deleted from above custom Z-tables. this all will done in backgroung job?
    Could you please guide me the logic how to crack this???
    Let me know if you need more Info
    Thanks
    Sanju

    Hi Sanjana,
    What you can do is to use the ABAP keyword INSERT or MODIFY to add or modify records to a given database table. Here are the syntax taken from SAP documentation:
    *Insert Statement
    INSERT dbtab
    Syntax
    INSERT { {INTO target VALUES source }
           | {     target FROM   source } }.
    Effect
    The INSERT statement inserts one or more rows specified in source in the database table specified in target. The two variants with INTO and VALUES or without INTO with FROM behave identically, with the exception that you cannot specify any internal tables in source after VALUES.
    System Fields
    The INSERT statement sets the values of the system fields sy-subrc and sy-dbcnt.
    sy-subrc Meaning
    0 At least one row was inserted.
    4 At least one row could not be inserted, because the database table already contains a row with the same primary key or a unique secondary index.
    The INSERT statement sets sy-dbcnt to the number of rows inserted.
    Note
    The inserted rows are finally included in the table in the next database commit. Up until this point, they can still be removed by a database rollback.
    *Modify Statement
    MODIFY dbtab
    Syntax
    MODIFY target FROM source.
    Effect
    The MODIFY statement inserts one or several lines specified in source in the database table specified in target, or overwrites existing lines.
    System fields
    The MODIFY statement sets the values of the sy-subrc and sy-dbcnt system fields.
    sy-subrc Meaning
    0 At least one line is inserted or changed.
    4 At least one line could not be processed since there is already a line with the same unique name secondary index in the database table.
    The MODIFY statement sets sy-dbcnt to the number of processed lines.
    Note
    The changes are transferred finally to the database table with the next database commit. Up to that point, they can be reversed using a database rollback.
    Hope it helps...
    P.S. Please award points if it helps...

  • How to delete the entries from NAST table

    Hi,
    Please help me out by providing any function module that delete's the entries from hte NAST table.
    Regards,
    Kiran.L

    REPORT ZSCD_TEST13.
    delete from nast where VSTAT = '1'.
    =====
    If you see the FM : NAST_DELETE_OBJECT, its only useful when NACHA = 7 (i.e. message transmission medium = Simple Mail)
    For others its not useful.
    We had similar issue few days back and after long RnD, we straightaway deleted the entries using the Zprogram.
    regards,
    Edited by: Pranu Pranu on Aug 19, 2008 1:42 PM

  • How to delete the entries from the transport request

    i need to delete the entries programatically from the transport request for all the entries which is exists in the package for the tables e070 and e071.

    Hi,
    I think you need to have authorization for that thru auth group SA.
    One more thing is where ever its created like source client only you can do if u have authorization.
    Regds
    Sivaparvathi
    Please reward points if helpful...

  • How can I select properties from dropdown lists using only the keyboard?

    Hi,
    I am using SAP Netweaver Studio and when modifying UI elements in views, I want to select the value for a property from the corresponding dropdown list in the Properties view using only the keyboard.
    When a property row is selected, "Enter" toggles to Edit mode, Alt+ArrowDown expands the list, but ArrowUp or ArrowDown directly selects the previous/next item list and changes to Selected mode.  Which key is used to navigate between the list items without selecting them immediately?
    Thanks a lot. I deal with lots of views and this would save me quite a few massage hours
    Maria
    Edited by: Maria Marinova on Feb 14, 2008 9:40 AM
    Edited by: Maria Marinova on Feb 14, 2008 9:40 AM

    Thanks Andrew. When creating an external table does it requires an access to SQL*Loader?
    CREATE TABLE dept_external (
       deptno     NUMBER(6),
       dname      VARCHAR2(20),
       loc        VARCHAR2(25)
    ORGANIZATION EXTERNAL
    (TYPE oracle_loader
    DEFAULT DIRECTORY admin
    ACCESS PARAMETERS
    RECORDS DELIMITED BY newline
    BADFILE 'ulcase1.bad'
    DISCARDFILE 'ulcase1.dis'
    LOGFILE 'ulcase1.log'
    SKIP 20
    FIELDS TERMINATED BY ","  OPTIONALLY ENCLOSED BY '"'
    deptno     INTEGER EXTERNAL(6),
    dname      CHAR(20),
    loc        CHAR(25)
    LOCATION ('ulcase1.ctl')
    REJECT LIMIT UNLIMITED;

  • The inbox for Mac Mail lists every incoming message twice. When I delete a message it deleted both entries. I have tried the solution in "help" and it doesn't work. Any suggestions?

    The inbox for Mac Mail lists every incoming message twice. When I delete a message it deleted both entries. I have tried the solution in "help" and it doesn't work. Any suggestions?

    I am wondering if anyone is seeing my question? This is my first time and I am not sure if I am communicating correctly. If you are seeing the question above regading deleted messages reappearing please reply so I will at least know I am getting the message out.
    Thank you.

  • How 2 disply 2 or More coulmns from the DBase to Dropdown list in JSP

    Dear Friends,
    Please can anyone help us, on displaying the 2 or more columns into a single Dropdown list in the JSP page, by using Struts-tag Libraries
    We are displayig only 1 coulmn from the DBase resultset to Dropdown list,
    When we try to concatenate, 2 columns of the resulset, the data format has changed
    Please help, Early response is appreciated
    Thanking you
    Jagadish

    WE are using sturts , Fallowing is code for
    extracting the O_NOUN and O_MODIFIER table Columns from the DBase and setting into
    "mat_Reg_ActionForm" form
         Statement stmt = null;
         ResultSet rs = null;
         ArrayList objQualList = new ArrayList();
         String query = " SELECT UNIQUE O_NOUN , O_MODIFIER FROM O_NOUN_MOD ";     
         stmt = conn.createStatement();
    rs = stmt.executeQuery(query);
         String columnLabel = (rsmd.getColumnName(0)+"|"+rsmd.getColumnName(1));
         String columnLabel = "Object"+"|"+"Modifier";
         objQualList.add(columnLabel);
         while(rs.next())
         String objModifier = (rs.getString("O_NOUN")+"|"+rs.getString("O_MODIFIER"));     
         objQualList.add(objModifier);
         mat_Reg_ActionForm.setObject(objQualList);
    Fallowing the iteration with which we are displaying the data in the Drop downl List
    "mat_Reg.jsp"
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <html>
    <head><title></title>
    </head>
    <body>
    <html:form action="mat_Reg.do" name="mat_Reg_ActionForm" type="com.pilog.bo.ManfPartNoActionForm">
         <html:select name="mat_Reg_ActionForm" property="object">
              <html:options name="mat_Reg_ActionForm" property="object"/>
         </html:select>
    </TR>
    </TABLE>
    </html:form>
    </body>
    </html>
    Is this code will help you give us some guidence ! Your early reply will be appreciated
    Thankng you

Maybe you are looking for