Need solution for the following(Selection Screen)

Hi all,
currently iam working with report program,there i need to populate one field in the selection screen based on the another parameter in the same selection screen.
iam having field called work center as a parameter with the search help.
This search help is providing the corresponding plant for the particular work center.
Now what i need to do is,if i select the work center thru F4 help,i need the correseponding plant to get populated in the other textbox.
Currently iam having that work center field as parameter,
now i need another textbox for the plant adjacent to this workcenter textbox,in this textbox only i need that corresponding plant.
Following is the code for that workcenter textbox.
PARAMETERS:P_ARBPL LIKE CRHD-ARBPL MATCHCODE OBJECT CRAM.
Note: The Serach help CRAM is having corresponding  plant with the workcenter.

Hi swaminathan,
1. If u want to DIRECTLY
   populate other fields
   based upon selection,
  then we have to use our own
  selection function.
2. just copy paste this code in new program.
  ( it will display help for BUKRS
  and AS SOON AS the user selects some company code,
  the other fields
  get populated AUTOMATICALLY)
3.
REPORT abc.
DATA : dd     LIKE     TABLE OF dselc WITH HEADER LINE. "*--- IMPORTANT
DATA : ft     LIKE     TABLE OF dfies WITH HEADER LINE.
DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.
PARAMETERS : bukrs LIKE t001-bukrs .
PARAMETERS : butxt LIKE t001-butxt.
PARAMETERS : ort01 LIKE t001-ort01.
PARAMETERS : waers LIKE t001-waers.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR bukrs.
   SELECT * FROM t001 INTO TABLE t001.
IMPORTANT
   REFRESH dd.
   dd-fldname = 'BUTXT'.
   dd-dyfldname = 'BUTXT'.
   APPEND dd.
   dd-fldname = 'ORT01'.
   dd-dyfldname = 'ORT01'.
   APPEND dd.
   dd-fldname = 'WAERS'.
   dd-dyfldname = 'WAERS'.
   APPEND dd.
*------- IMPORTANT
   REFRESH ft.
   ft-tabname  = 'T001'.
   ft-fieldname = 'BUTXT'.
   APPEND ft.
   ft-tabname  = 'T001'.
   ft-fieldname = 'WAERS'.
   APPEND ft.
   ft-tabname  = 'T001'.
   ft-fieldname = 'ORT01'.
   APPEND ft.
   CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
     EXPORTING
      ddic_structure  = 'T001'   "*----- IMPORTANT IF STANDARD STRUCT
       retfield        = 'BUKRS'
       dynpprog        = sy-repid
       dynpnr          = sy-dynnr
       dynprofield     = 'BUKRS'
       value_org       = 'S'
     TABLES
       field_tab       = ft "*---- IMPORTANT
       value_tab       = t001
       dynpfld_mapping = dd   "* IMPORTANT
     EXCEPTIONS
       parameter_error = 1
       no_values_found = 2
       OTHERS          = 3.
regards,
amit m.

Similar Messages

  • Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    I want to add that I deleted all the old back-ups and created a new back-up without any issues except sync problem.

  • Need help for the following select query-- illegal character

    select product_group_id from product_group where description like '%%'
    I am not able to identify this character.
    When I try to type this character at
    SQL prompt, it does not accepts it.
    This character is in the description field and I have to replace it with NULL..
    Any suggestions..
    Thanks in advance
    null

    I'm not sure about the character you are talking about. But if you find this character in the ASCII character set, you can do all the operation against it with the help of CHR() function.

  • I need solutions for the following pls help

    1) what is the difference between doPost() and doGet()
    2) what is difference between sendRedirect() and forward()
    3) can we call destroy() in servlet class
    4) advantages and disadvantages of Hidden Form fields,URLRewritting,Cookies
    5) can we write a constructor for a servlet class

    1) in get request parameters are sent as part of request URL and its size is limited to some houndreds of KB (can't remember this limit) in case of post data is sent within request body. So in servlet you can have seaparate handling for get and post methods. I most cases you can create single routine like processRequest and call it from doGet and doPost
    2) Send redirect sends request to browser to redirect to different URL. Then browser redirects and user can see new URL (its done by browser), forward is used to move request processing to other servlet or JSP in SAME container. Client knows nothing and URL in browser does not change. It is typical approach used when implementing MVC approach. Eg. server gets request and process it eg. query data from database and puts result as request attribute (not parameter) then servlet forwards rerquest to JSP which is responsible for display (view).
    3) this is a public method of servlet so of course you can call it as any other visible method, but it is intended to let you make some cleansing when container is going to remove servlet.
    4) You shoud find some article on it, too large topic. Generally: url rewriting will work if cookies are enabled or disabled, when you use cookies for session id storage it won't work if cookies are disabled on client side. I can't see good reason to use hidden form fields when you can user URL rewriting.
    5) Of course you can but it won't be used by servlet container. Servlt's init method is the one you should use for initialization tasks.

  • Need to skip the variable selection screen when using dropdown

    Hello Friends,
    I have created a web template having a dropdown, a table and a text element. Basically I am trying to follow the guide "How to Use a Dropdown Box to Set Variable Values". It shows how to select values for a variable using dropdown.
    NOTE: The guide can be found here:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2642ab90-0201-0010-9193-d59de66cbab4
    What is happening is when I select a value for the variable in the dropdown, the correct url is getting formed but instead of displaying the report using the selected value, the variable selection screen appears. Given below is the url that gets formed:
    http://abcdev.wdf.sap-ag.de:8000/sap/bw/BEx?SAP-LANGUAGE=E&PAGENO=1&REQUEST_NO=3&CMD=PROCESS_VARIABLES&SUBCMD=VAR_SUBMIT&VAR_NAME_1=TSTPEROD&VAR_VALUE_EXT_1=04.2007
    Please assist me to get rid of the variable selection screen. Thanks!
    Regards,
    Prem.

    Hello Ray,
    Thanks for your reply. This has partially resovled the issue. I have awarded you points for that. Now I am able to skip the variable screen.
    However, the query results are not getting refreshed. I wanted to restirct the values based on the value given in the variable selection (In my case the dropdown box). Somehow I am not able to link the dropdown with the variable or the "SAPBWOpenURL(url);" function is having some issues.
    Please assist. Thanks!
    Regards,
    Prem.

  • Enabling Key and text for the Variable Selection screen

    I need to display key and text for a characteristic when selecting the drop down menu in the variable selection screen of a web report. In the Business Explorer tab within the info-object, I changed the General Settings to display Key and text, but when I open the drop down menu for this characteristic, it is still displaying the key only. Is there some other place where this change needs to happen?

    Hi,
    Did you try to log out and log in again into BEx?
    Best regards,
    Eugene
    Message was edited by: Eugene Khusainov

  • Need driver for the following . . .

    Hi, 
    I have been hunting and can't seem to locate drivers for the following hardware id:
    PCI\VEN_10EC&DEV_5227&SUBSYS_2166103C&REV_01
    Its there in the device manager as an unknown PCI device.
    this seems to be the realtek card reader, and having gone trough other threads, I have tried 3-4 versions of the realtek card reader drivers. None of them have worked. 
    My laptop is a HP Pavillion n210se. The technical support/manual/drivers link on its product page is broken.
    http://www8.hp.com/emea_middle_east/en/products/la​ptops/product-detail.html?oid=6762356#!tab=feature​...
    Can't find the model in the support/drivers download section of the global hp website.
    How do I get the card reader to work? (assuming the unknown device is a card reader)
    This question was solved.
    View Solution.

    Hi
    Please find the link given below select Network and download the driver.
    Driver Link
    Let us know how it goes!
    "I work for HP."
    ****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    Regards
    Manjunath

  • How to adjust mouse or trackpad parameters for the user selection screen?

    This is not critical, but annoying.  I can change the mouse or trackpad parameters by user, so anyone can use their own mouse or trackpad adjustment.  However I can not locate how to change this parameters for the welcome or user selection screen.  In my case I have two users, both of us use the trackpad with the one touch for click function, so no one press physically the trackpad for a click.  However, as the default parameter is the touch function deactivated we have to actually click the trackpad in that exclusive screen.
    Another example with mouse, normally we use the mouse with almost double of the default acceleration, but when in the user selection screen the mouse assumes default configuration and feels super SLOWWWWWWW.
    Again, this is not critical, but would be very nice to be able to modify this parameters in the welcome screen.
    Tyrone Carrion

    For the login screen, you are not associated with a normal user, but the system defaults...try logging in to the Admn account and change the behavior there...those settings should then apply to the login screen.

  • TS3276 I need feedback for the following issue. When I send email from this 27 inch iMac, the computer adds a string of characters in vertical column that represents the QWERTY key board, all alpha numeric characters are included. Yahoo mail, issue only o

    Restating my issue / question...
    When I send email from this iMac, there is a string of characters assigned. The characters are all the "alpha numeric" characters on the QWERTY key board. This only occurs when email is sent from this iMac. The issue does not manifest when using any other lap top or computer.
    Hence, I have ruled out the issue is a yahoo mail matter.
    Again, I can access the Yahoo mail account form multiple devices and send email without unintended assignment of character strings, but when I send wmail using this iMac, the issue happens everytime.
    Characters are stacked verticaly in a column. It looks as if all characters (except function keys) are included in the string.
    Any ideas?
    GMc

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac. 
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing. 
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click the line of text below to select it:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' | open -f -a TextEdit 
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). A TextEdit window will open with the output of the command. Post the contents of that window, if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    { sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|org\.(amav|apac|cups|isc|ntp|postf|x)/{print $3}'; sudo defaults read com.apple.loginwindow LoginHook; } | open -f -a TextEdit 
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3
    launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)/{print $3}' | open -f -a TextEdit 
    Step 4
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null | open -f -a TextEdit  
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' | open -f -a TextEdit 
    Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • Need sql for the following requirement

    EMP_DT EMP_TYPE emp_id
    01/01/2011               3 546
    01/03/2011 4 546
    01/05/2011 3 546
    01/08/2011 3 546
    01/09/2011 3 546
    01/10/2011 4 546
    01/12/2011 3 546
    01/14/2011 3 546
    01/16/2011 3 546
    01/18/2011 4 546
    01/19/2011 3 546
    Hi All,
    I have a table with two columns(emp date and type where date is mm/dd/yyyy type tied to employee).
    This data is inserted manually through online application. But behind the scenes I would like keep this date in the following fashion by a delete sql. When run the delete sql it should keep the data in following manner with employe type order 3,4,3,4,3,4 and so on. There shouldn't be any 3 empolyee type rows continuosly. Also when delete the data it should keep the smaller date out of three same employee type dates. example 01/12/2011,01/14/2011,01/16/2011 ---> we will keep the row 01/12/2011 and delete two other dates because they are same type of dates(3).
    EMP_DT EMP_TYPE emp_id
    01/01/2011               3 546
    01/03/2011 4 546
    01/05/2011 3 546
    01/10/2011 4 546
    01/12/2011 3 546
    01/18/2011 4 546
    01/19/2011 3 546

    Hi,
    So, on each row, you need to know what the value of emp_type was on the previous row. That sounds like a job for LAG.
    Here's one way to do that:
    WITH     got_prev_emp_type     AS
         SELECT     emp_dt, emp_type, emp_id
         ,     LAG (emp_type, 1, -1) OVER ( PARTITION BY  emp_id     -- Just guessing
                                                   ORDER BY      emp_dt
                                    ) AS prev_emp_type
         FROM    a_table
    --     WHERE     ...     -- If you need any filtering, put it here
    SELECT       emp_dt, emp_type, emp_id
    FROM       got_prev_emp_type
    WHERE       emp_type     != 3
    OR       prev_emp_type     != 3
    ORDER BY  emp_id
    ,            emp_dt
    ;This assumes that emp_dt is a DATE (or a TIMESTAMP). If it has some other dattype, convert it to a DATE.
    "DELETE" means "permanently remove rows from a table." Is that what you want, or do you just want to exclude some rows from a result set? The query above doesn't actually change the table. If that's what you want to do, you can use the query above as a sub-query in hte WHERE clause of a DELETE statement.
    DELETE  FROM  table_a
    WHERE  (emp_dt, ,emp_type, emp_id)   -- Just guessing
            NOT IN  (
                        WITH   got_prev_emp_type    AS
                    );This assumes that emp_dt, demp_type and demp_id are never NULL.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
    If you're asking about a DML statement, such as DELETE, the sample data will be the contents of the table(s) before the DML, and the results will be state of the changed table(s) when everything is finished.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using. All the code I psoted above assumes you have Oracle 9.1 or higher.

  • Need details for the following feilds

    Hi Gurus,
    Need mapping feild names ECC vs BI for these feilds..
    1)Journal Header ID and Line Number
    2)Journal Entry Line Description
    3) Journal Entry Header ID and
    4)Journal Entry Name
    I have a requirement to send these details details to the legacy system from the BI system.
    So, I need to get these deatils from the ECC and then I can transfer these details to other system.
    I am unable to find these deatils on the Stanadard GL Extractor :0FI_GL_14 - GL Line Item Details.
    Let me know your inputs...

    Hi lakshmi,
    The following links can help you on getting this information:
    http://help.sap.com/saphelp_nw70/helpdata/EN/49/5700570223413085021a8b4ef1087a/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/45/4f8e8bbf3f4f63a5dd197ef7d53fa2/frameset.htm
    At
    Nadja Xavier

  • I need answers for the following questions

    How many maximum number of fields can be there in a table?
    How many primary keys can be there in a table?
    What are the ways to find out the tables used in the program?
    Can you have two detail lists from the basic list at the same time?
    If yes how and if no why?
    What are the ways to find out the tables used in the program?
    whre you will use dailog programming?
    whre you will use module pool  programming?
    what z custom container?
    whre you will be using ale/idocs?
    n what r the objects u did in ale /idocs?
    how to set title bar?
    can we keep a tab strip in a tab strip?
    how?

    ->>>at most 16 primary keys can b there in a table
    ->>>use SQL trace ST05 transaction to see tables used in a prg
    ->>>to set title bar use set title bar
    SET TITLEBAR f.
    Extras:
    1. ... OF PROGRAM prog
    2. ... WITH g1 g2 ... gn
    Effect
    Sets the title of a window.
    You create these program-specific titles using the Menu Painter. If there is a text for title ID f, this is displayed in the title bar of the window, starting from the next time the screen changes.
    The return value SY-SUBRC shows whether the system found an entry.
    SY-SUBRC = 0:
    Entry found
    SY-SUBRC = 4:
    Entry not found
    If the statement occurs in an external subroutine, the system sets a title for the main program that called it. However, in a function module, the system sets a title for the fucntion group (but see also the addition OF PROGRAM ...).
    Once you have set a title, it remains active within the transaction until the next SET TITLEBAR statement.
    After SET TITLEBAR, the field SY-TITLE contains the current title.
    SY-TITLE is 70 characters long. Longer titles are not permitted.
    Notes
    The contents of field f are converted into a value of type C with length 20 (according to the standard conversion rules). The system uses this value to search for the required title. You should therefore use a field with type C, to avoid unnecessary conversions. For example, the system would derive the key ' 9 ' from a type I field with value '9'.
    You can use a namespace prefix with titles.
    Addition 1
    ... OF PROGRAM prog
    Effect
    The system does not search in the GUI of the main program of the current program group for f, but in the program specified in the field prog.
    Example
    DATA PROG LIKE SY-REPID.
    PROG = 'TESTPROG'.
    SET TITLEBAR 'ABC' OF PROGRAM PROG.
    This example sets the title 'ABC'for program 'TESTPROG'.
    Addition 2
    ... WITH g1 g2 ... gn
    Effect
    The WITH addition allows you to use up to 9 parameters in the title. You address these in the title as variables &1 to &9. Additionally, any single & characters are replaced from left to right with the contents of the corresponding parameter (the first ampersand with the first parameter following WITH, and so on). If you want to put an ampersand as a character in your title, you must double it (&& is output as &).
    If a parameter is missing, its corresponding variable is replaced by a space.
    Given the maximum length of 70 characters (length of SY-TITLE), it is possible that your title can be truncated if you use WITH.
    Example
    DATA: PAR1(4) VALUE 'par1',
          PAR2(4) VALUE 'par2'.
    SET TITLEBAR 'ABC' WITH PAR1 PAR2 'par3'.
    Given a title "ABC" as follows:
    "Title & &1&3 some_text & &2 && & &4",
    the example would produce a title bar like this:
    "Title par1 par1par3 some_text par2 par2 & par3  ".
    Note
    You can combine both of these additions. Note, then, that the ... OF PROGRAM addition must come before WITH.
    ->> module pool program & dialog programs r one & the same
    chk this thread same question was answered
    <b>/thread/157983 [original link is broken]
    ->>>go thru this link to know ALE/IDOCS
    <b>ALE and IDOCs</b>
    ->>>> chkout this link for <b>aLV custom container</b>
    <b>ALV List and Custom Container</b>

  • Need solution for the query

    hi All,
    I have 3 tables 1)PREVILEGES (groupname, previleges(values y or n only))
    2)GROUPS (groupid, groupname)
    3) USERS (uname, groupname).
    Here each user belongs to one group, each user hav a default previlege means example if user is consutant then he can access only consultant group. Means default previlege will be used. For default previleges, there is no record in Previleges table.
    The Problem is that, I need to reterive the groupname from users which de doesn't belong as well as his previleges from previleges, If there is no values in previleges in the table it should return n. or value what is therey.
    the different groups are
    SALES,CONSULTANT,VENDER,RECRUTER,ADMIN

    [url http://forums.oracle.com/forums/thread.jspa?threadID=491856&tstart=0]duplicate thread

  • Need suggestion for the following Design

    Hi All,
    I have the following requirement to be implemented.
    | |
    | < Start Day << Start Week ---- End Week >> End Day > |
    |____________________________________________________________________|
    The above has to be on top of a table.... (i.e a table action region)
    Table action allows us to have either "rowLayout" or "flowLayout" to begin with...
    The "Start Day", "Start Week" and so on are actions...
    Pls suggest me how to align " End Week >> | End Day > " to right (end of the table)....
    PS... I am unable to plot the image properly... the " ---- " in between is just spaces.
    Putting it simple, In a table action I want a button on the left most and right most corner...
    Regards,
    Santhosh.
    Edited by: Santy on Jan 21, 2011 4:09 AM

    Hi All,
    I have the following requirement to be implemented.
    | |
    | < Start Day << Start Week ---- End Week >> End Day > |
    |____________________________________________________________________|
    The above has to be on top of a table.... (i.e a table action region)
    Table action allows us to have either "rowLayout" or "flowLayout" to begin with...
    The "Start Day", "Start Week" and so on are actions...
    Pls suggest me how to align " End Week >> | End Day > " to right (end of the table)....
    PS... I am unable to plot the image properly... the " ---- " in between is just spaces.
    Putting it simple, In a table action I want a button on the left most and right most corner...
    Regards,
    Santhosh.
    Edited by: Santy on Jan 21, 2011 4:09 AM

  • Need a solution for the following error code on AIR-AP1231G-A-K9

    Dec 1 10:05:46.243: %DOT11-7-AUTH_FAILED: Station 0018.de89.d720 Authentication failed

    Hi
    Here you are the explanation:
    The specified station has failed authentication.
    The most common reasons are the user has entered the wrong password or the radius server maybe unavailable.
    Hope this helps

Maybe you are looking for

  • Reset Project 2010 to factory default settings

    I downloaded the trail of project 2010. I have been playing around with the settings.  But now I want to reset the settings back to the original factory conditions.  I do not see a button to do that. Please help. Eric

  • Query for PO total group by Supplier

    Hi All, Does any 1 have query which gives the total of PO's for a supplier? and that to top 10 suppliers? For example there are 100 PO's for Supplier 'A'. I need total of al 100 PO's for Supplier 'A'. Also is there iny report which gives for top 10 s

  • Function module to retrieve the material master data

    Hi all, creating material master dta i am using BAPI_MATERIAL_SAVEDATA .is there any f.m with same structures as BAPI_MATERIAL_SAVEDATA to retrieve the materi master data.

  • MySql with java

    hi all, I got one problem with MySql .. I am using MySql for database but I got problem while start the MySql that is Not found the Driver... i think the problem is path I have not set the path for MySql So please tell me if anyone knows how to set t

  • HasOwnProperty exception while profiling

    ReferenceError: Error #1037: Cannot assign to a  method hasOwnProperty on flash.utils.Dictionary.     at  ProfilerAgent/getStringId()     at ProfilerAgent/appendMembers()      at ProfilerAgent/getMembersHandler()     at  ProfilerAgent/socketDataHandl