Dynamic Data selection for the Filed entered in Selection Screen.

Hi All,
My requirement is as follows.
1 select options in Selection Screen for MATNR (SO_MATNR)
1 parameter field in Selection Screen for entering a MARC field name. (P_FIELD)
Now the Program has to display the values of this Field (Entered by the user as P_FIELD) from MARC table, where MATNR is in SO_MATNR.
I understand that this would require a dynamic select statemant but could not figure out the correct way.
Please help me with the code for this requirement
Regards,
Sunil

Not sure If I understand correct, but here's an example on what I think you are looking for. I don't have an ECC system here (we're on CRM), but you should adept it to your tables and fieldname.
TABLES: but000.
DATA: lt_feld TYPE TABLE OF name_feld,
      lw_feld LIKE LINE OF lt_feld.
SELECT-OPTIONS: so_part FOR but000-partner.
PARAMETERS: field TYPE name_feld DEFAULT 'MC_NAME1'.
SELECT (field) FROM but000
  INTO TABLE lt_feld
  WHERE partner IN so_part.
LOOP AT lt_feld INTO lw_feld.
  WRITE:/1 lw_feld.
ENDLOOP.

Similar Messages

  • Dynamic selections for the FBL5N report

    Hi Experts,
    Can any body help how to add the account assignment group field in dynamic selections for the FBL5N report.
    rgds / Srini

    Hi Alex,
    Thanks for your quick response, here for the report FBL5N the logical database is DDF and the field which should be add in dynamic selection is (KTGRD) account assignment group is available in KNVV table but this table is not available in DDF logival database.
    Please suggest us how we can pickup this field into the report FBL5N for dynamic selections.
    regards / Srini

  • SSRS 2008 Column Chart with Calculated Series (moving average) "formula error - there are not enough data points for the period" error

    I have a simple column chart grouping on 1 value on the category axis.  For simplicity's sake, we are plotting $ amounts grouping by Month on the category axis.  I right click on the data series and choose "Add calculated series...".  I choose moving average.  I want to move the average over at least 2 periods.
    When I run the report, I get the error "Formula error - there are not enough data points for the period".  The way the report is, I never have a guaranteed number of categories (there could be one or there could be 5).  When there is 2 or more, the chart renders fine, however, when there is only 1 value, instead of suppressing the moving average line, I get that error and the chart shows nothing.
    I don't think this is entirely acceptable for our end users.  At a minimum, I would think the moving average line would be suppressed instead of hiding the entire chart.  Does anyone know of any workarounds or do I have to enter another ms. connect bug/design consideration.
    Thank you,
    Dan

    I was having the same error while trying to plot a moving average across 7 days. The work around I found was rather simple.
    If you right click your report in the solution explorer and select "View Code" it will give you the underlying XML of the report. Find the entry for the value of your calculated series and enter a formula to dynamically create your periods.
    <ChartFormulaParameter Name="Period">
                      <Value>=IIf(Count(Fields!Calls.Value) >= 7 ,7, (Count(Fields!Calls.Value)))</Value>
    </ChartFormulaParameter>
    What I'm doing here is getting the row count of records returned in the chart. If the returned rows are greater than or equal to 7 (The amount of days I want the average) it will set the points to 7. If not, it will set the number to the amount of returned rows. So far this has worked great. I'm probably going to add more code to handle no records returned although in my case that shouldn't happen but, you never know.
    A side note:
    If you open the calculated series properties in the designer, you will notice the number of periods is set to "0". If you change this it will overwrite your custom formula in the XML.

  • Proble while creating new Data Connection for the Webservice

    Hai All,
    when creating a new Data Conneciotn for the Webservice in the interactive form i got the following errror
    Cannot choose this operation:
    - there is no associated SOAP Binding
    edit -> new Data Connection -> WSDL -> i entered the wsdl url -> i got the methods in that webservice
    but when i select one of the method in the methods list i got above error
    i developed a webservice in NWDS and deployed the WAS ( created a webservice for the session bean)
    please help me to solve the problem
    Thanks in advance
    Siva Sankar N

    Problem was solved,
    Downloading the WSDLs:
    Download the 3 WSDL files from the WAS using the WS-navigator tool:
    Go to http://<was-host>:50000/wsnavigator/enterwsdl.html
    Select your WS
    Click in the menu “WSDLs”
    Download the default SAP WSDL
    You will have 3 WSDL files in the downloaded zip files.
    1) main.wsdl
    2)config1_XXXXVi_document.wsdl
    3_configl_document.wsdl
    Perform the follwing task to the above wsdl files, and use this wsdl files to the datasource
    1. Copy/paste the <wsdl:service> XML element from the main.wsdl to the Config1_SDN_adobeWSVi_document.wsdl.
    2. Copy the <wsdl:binding> XML element from the Config1_document.wsdl to the Config1_SDN_adobeWSVi_document.wsdl.
    3. Add the SOAP namespace (xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/") from the main.wsdl to the Config1_SDN_adobeWSVi_document.wsdl.
    4. Adjust the namespace reference by replacing “prt0” and “bns0” with “tns”.

  • Error opening data base for the library for Aperture

    Hello,
    I have been using Aperture all day and for some reason am now getting this error message when trying to open it again.
    Te was an error opening the data base for the library "users/*******/pictures/aperture3triallibrary.aplibrary
    Has this happened for anyone else?
    Many Thanks

    When I hold down ⌘⌥ firmly, at the same time, and with these keys held down double click the Aperture library that I want to repair, I get this panel:
    Then, when I select "Repair"  Aperture will show a progress bar and the Dock icon will stay highlighted.
    When it is finished, the Aperture window will open.
    When I select repair, it seems as though it doesn't run. I don't get a dialog box to confirm it's happening and on the dock the little light under the Aperture icon isn't lit, which seems it is'nt open or running.
    After you select "Repair", does the panel close and then nothing? Or does the panel not react?
    I still don't see fully, what is going on on your mac.
    But it is a good sign, that you can create a new library. That suggests, that Aperture is running correctly on your mac, and "only" your old library has a problem. Try to test the new library - import a few images and try to adjust them.
    Once you are convinced, that the new library is working well, you have three options.
    Try "Rebuild" instead of "Repair".
    Or try to import your old library into the new library (Aperture's main menu bar > File >Import > Library) - that is another approach to rebuilsd the library.
    Or restore from backup. To restore from Time Machine, open a Finder Window showing your Aperture library, and then enter Time Machine. Go back in time to the most recent date that has a working Aperture library and select "Restore". If you have enough space on your disk, restore to a different folder and don't overwrite your current library.
    Regards
    Léonie

  • How to schedule report filtered by dynamic date based on the date the Agent runs

    Hello
    I have a question about delivering report using OBIEE agent.
    If i am running an agent today to deliver report A, can I get report A based on Last Monday's date or any dynamic dates?
    For example, say today is Dec 18th 2013 and my agent is running according to how I set the schedule. Now the deliver content will have report A being delivered. Now report A has a date column, normally this column is filtered by current date. But if it's delivered through agents to various users, Report A's data should be the previous Monday, so in this case Dec 9th 2013. When this agent is run again said on Dec 27th 2013, then report A should be filtered by Dec 16th 2013, which is the previous monday of Dec 27th.
    Can something like this be achieved in OBIEE 11G?
    Thanks in advance.

    Yala,
    Not a straight forward way
    1) Let the report run through Agent with Current Date filter
    2) once it ran for the first time you can see IBOT name/last run time(LAST_RUNTIME_TS) in  S_NQ_JOB
    Create a repository variable 'last_run_agent' using below sql to get max(LAST_RUNTIME_TS)
    select max(LAST_RUNTIME_TS) from s_nq_job where name = 'AGENT_NAME';
    Edit the analysis report with current date filter and modify the filter condition accordingly to filter on newly created repository variable
    Thanks,
    Saichand

  • ODS as data source for the next ODS - can't see the name in the DS list

    Hello, experts!
    Need your help.  I'm trying to use Staging ODS for the transaction data to populate data into next level of ODS - Standard ODS.   The problem is that Staging ODS does not appear in the Data Source list for the Standard ODS when I Assign data sources(and would not let me paste the Staging ODS  data source name either).  I did Replicate data source for the Staging ODS and Generate Export data sources but it did not fix the problem. 
    Any suggestions?
    Thank you.
    Alina.

    OK, you're talking about the selection screen "Available datasources" showing only 50 entries right?
    In my system the screen can show more than 900... must be one of your user settings in the gui...
    just under the tab "restrictions" there is a line with an arrow pointing down; click this line to expand the restrictions...
    In the DataSource field enter 8* or 8<ODS_TECH_NAME> in order to see your DSource.
    Otherwise in RSA13 in your Dsources overview, right click it and "assign infosource"; it will also make it...
    hope this helps...
    Olivier.
    Edited by: Olivier Cora on Jul 30, 2008 6:31 PM

  • How can I reduce the selection for the characteristics value in a BW query

    Good morning,
    I need to find out how I can reduce the selection for the characteristics values in a BW query.
    In a BW query I have a characteristic "Due month".
    The characteristic values shown in the query are from 01.2001->03.2007. I would like to reduce it to the last 2 years,in the query view,  without deleting the data for the other years in the cube.
    Do you know how this can be done?
    Thank you in advance for your feedback.
    Kind regards,
    Linda Verding
    Staff Consultant - CSC

    hi,
    First thing you have to do is check the report how the data is being restricted only to those months.
    1) one it can be variable in which the code is written for that to populate for last few years.
    or else it must have been hardcoded for these months.
    Go into your report and underneath the characteristicsCALMONTH there must be an variable or hardcoding.
    You need to change this here in the report.
    You dont have to delete anything there.
    Regards, Siva

  • Error message PG009 : no data stored for the period

    During upgrade testing from 4.7 to ECC6 noticing an error message PG009 with a suggested solution "In table T582A maintain the indicators 'Choose with start', 'Choose with end', 'Choose without date' for each infotype"
    I am able to see recotds in 4.7, but however unable to view anything in ECC6. The message I get is No data stored for the time selected.

    We have the same problem - during upgrade phase. Any suggestions?

  • I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.Not working in USA timezone.

    I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.It works fine in our side (Timezone,kolkata ,india even for Timezone,slvaniya,USA) but our USA client is telling that on changing the date it not starts from start-up sequence.Can anyone plz suggest the reason for it.

    This is the code which we have used.
    //////////Return if it is first time for the day or not//////////////
    + (BOOL)isFirstTimeToday {
    BOOL result = YES;
    NSDate *now = [[NSDate alloc] init];     /// represents the current time
    NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
    NSDateComponents *components = [gregorian components:(NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit) fromDate: now];
    NSDate *today = [gregorian dateFromComponents:components];
    [now release];
    [gregorian release];
    NSDate *savedDate = [[NSUserDefaults standardUserDefaults] objectForKey:LAST_TIME_VISITED];
    if (savedDate) {
    if ([today earlierDate:savedDate] == today) {
    result = NO;
    return result;
    ////////Stores the date/////////////
    + (void)userDidVisitReenforceScreenToday {
    [[NSUserDefaults standardUserDefaults] setObject:[NSDate todayAtMidnight] forKey:LAST_TIME_VISITED];
    ////////////What [NSDate todayAtMidnight] stores/////////////////////
    + (NSDate *)daysFromNowAtMidnight:(NSInteger)nOfDays {
    NSDate *date = [NSDate dateWithTimeIntervalSinceNow: (86400*nOfDays)];
    NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
    NSDateComponents *components = [gregorian components:(NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit) fromDate: date];
    NSDate *dateAtMidnight = [gregorian dateFromComponents:components];
    [gregorian release];
    NSLog(@"dateAtMidnight : %@",dateAtMidnight);
    return dateAtMidnight;
    + (NSDate *)todayAtMidnight {
    return [self daysFromNowAtMidnight:0];
    Please Suggest..

  • I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.It works with iPod not with iPhone

    I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.It works with iPod not with iPhone

    Try posting in the developer forums to see if you can get some assistance,you'll have to be a registered developer for access though.
    developer.apple.com

  • Setting date format for the entire SQL Server installation - SQL Server 2008 R2-2012

    Hi,
    I need to safeguard the behaviour of SQL codes that inserting into SQL tables with some date columns. For this purpose, I need to change the date format for the SQL instance and not using CONVERT and CAST.
    I've seen the SET DATE FORMAT statement, but if I use it, could I solve my problem?
    Thanks

    The language setting is related to the database user.
    BOL: "DEFAULT_LANGUAGE = { NONE | <lcid> | <language name> | <language alias> }              
    Specifies the default language for the new user. If a default language is specified for the user and the default language of the database is later changed, the users default language remains as specified.
    If no default language is specified, the default language for the user will be the default language of the database. If the default language for the user is not specified and the default language of the database is later changed, the default
    language of the user will change to the new default language for the database."
    LINK: http://technet.microsoft.com/en-us/library/ms173463.aspx
    The default language setting can be overridden by SET LANGUAGE for the session:
    http://technet.microsoft.com/en-us/library/ms174398.aspx
    Example:
    SET LANGUAGE us_english; -- mdy
    SELECT CAST ('12/13/2014' as DATE); -- 2014-12-13
    GO
    SET LANGUAGE british; -- dmy
    SELECT CAST ('12/13/2014' as DATE);
    GO
    (1 row(s) affected)
    Changed language setting to British.
    Msg 241, Level 16, State 1, Line 2
    Conversion failed when converting date and/or time from character string.
    Kalman Toth Database & OLAP Architect
    SELECT Video Tutorials 4 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Dynamic Date Variant for SAP Job

    Hi Guru
    We have a program to be ran in the Background .
    I am unable to create a Variant for Date ( Current year Jan 01st to  Current Date).
    Could you please advice how to create a Variant with Dynamic Date Calculation for above date range.
    Thanks in Advance.
    Thanks
    Ravi

    Hi,
    I guess that you know how manage dynamic dates in a variant. (Please, tell me if you need help about it)
    You can try with two DATUM type fields in the ABAP program. Fix the first one with a fixed date u201901.01.2009u2019 and the second one will be fixed with the dynamic date u2018Current Dateu2019
    Regards,
    OLA

  • Library Update rqstd on Aperture 3.2; now won't open get msg "error opening data base for the library "~/Pictures/Aperture Library.aplibrary"   TIme machine won't load backup "error code -8003"

    Aperture working on OS 10.6.8 then Library Update rqstd on Aperture 3.2; said yes;
    now Aperture won't open,  get msg "error opening data base for the library "~/Pictures/Aperture Library.aplibrary"  
    TIme machine won't load backup "error code -8003"
    Tried reloading Aperture 3.2 but get same result.

    You’re running an outdated copy of Safari on your Desktop. That won’t work.
    In the Finder, select
    Go ▹ Applications
    from the menu bar, or press the key combination shift-command-A to open the Applications folder. Check that the Safari application is in that folder. If it is, use it, and delete the copy on your Desktop. Never move or copy built-in applications.
    If you've deleted Safari from the Applications folder, back up all data, then reinstall OS X. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade, so make a note of those before you begin.

  • Error " Data missing for the entry check while creating a new waste code

    Hi all, While setting a new Waste code I get the error " Data missing for the entry check, correction:". while filling the NAM- WASTECOCAT - LER item.
    This sould look for the catalog's name included in the phrase set but for some reason it doesn't find it giving me this error.
    I am changing original Characteristics, phrase set, classes, and value assignment type. Just to have my own estructure with Znames for all of them.
    I have also change the enviroment parameter "WAM_PHRSET_WACATLG" with the name of my phrase set.
    I have checked everything several times watching for typos or looking for a missing step.
    I have even tried including my new Z's characteristics in the classe and living the original SAP_EHS_1024_001_WASTE_CATALOG. (changing the enviroment parameter WAM_PHRSET_WACATLG to SAP_EHS_1024_001_WASTE_CATALOG) and it works.
    I will like to change this characteristic by Z_EHS_WA_WASTE_CATALOG
    Phrase set to Z_EHS_WA_WASTE_CATALOG.
    enviroment parameter WAM_PHRSET_WACATLG= Z_EHS_WA_WASTE_CATALOG
    After matching up the master data It should work fine but I might be missing something to get it running ok.
    ¿Any idea?
    Regards,
    Alvaro

    Hello Juan Carlos, the value and class that I want to duplicate and doesn't work is for Waste Code, I have also duplicated the one you have displayed (waste pproperties) without any problem.
    1.I have duplicated and changed class SAP_EHS_1024_001. to Z_EHS_WA
    2. Create a copy of the 5 characteristics included in this class.
    SAP_EHS_1024_001_WASTE_CATALOG
    SAP_EHS_1024_001_WASTE_CODE
    SAP_EHS_1024_001_WA_SUBCATEG
    SAP_EHS_1024_001_WA_CATEGORY
    SAP_EHS_1024_001_REMARK
    change the name by
    Z_EHS_WA_WASTE_CATALOG
    Z_EHS_WA_WASTE_CODE
    Z_EHS_WA_SUBCATEG
    Z_EHS_WA_CATEGORY
    Z_EHS_WA_REMARK.
    I checked the funcion C14K_WASTECATLG_CHECK is in the value of the Z_EHS_WA_WASTE_CODE characteristic
    I checked the funcion C14K_WASTECODE_CHECK is in the value of the Z_EHS_WA_WASTE_CATALOG characteristic
    3. Create phrase sets for each new category. with same name.
    4. Match up the master data.
    5. Change the enviroment parameter.to Z_EHS_WA_WASTE_CATALOG
    I think I have followed all the steps, but for some reason it doesn't find the catalog
    The phrase for the catalog is EWC in english and LER in spanish.
    Regards
    Alvaro.

Maybe you are looking for

  • PAR file missing in PAR selection list during iView creation

    Hi Gurus I created a jsp file and exported it through NWDS export option. But i dont get this par while iView creation. Its present when i searched in the support desk . Can anybody tell me the steps how to create a simple jsp in NWDS and test the sa

  • Change position images in slideshow

    Hello, I am trying to change the position of the images in my slideshow, but I don't know how I can do this. Does anyone have an idea? Thanks in advance!

  • I lost one of four black round rubber patch at base of my macbook pro. Where can I buy the new one?

    At the back of all Macbook pro will have 4 round rubber patch. I lost one of them. Where and how can I buy the new one?

  • Time Capsule internet stall during backups

    Just started to happen recently but it looks like everytime the backup starts, my internet connection begins to stall. As soon as the backup is complete, my internet is working again. It's not like the backups are large sizes, not sure what's going o

  • DataGrid question

    does anyone have any idea how to change the background color of a datagrid based on text in the data you get back? httpservice -> get data(rowdata) if rowdata.text == someline of data ){ set background black else if ( rowdata.text == someline of data