Logic for Populating a Work Area

Hi Gurus,
I have a standard sap structure KNWEV. In the structure the values will get populated as give below.
For an Unloading point for different days ie for Monday the times for unloading will be
Monday  8 30 12 30 14 30 16 30.
Tuesday 9 30 12 30 14 30 16 30
The values will get populated for all the days for an unloading point. and its stored in structure as below.
KNWEV Field names and Field Values
Unloading_point   Monday1 Monday2 Monday3 Monday4 Tuesday1 Tuesday2 Tuesday3 Tuesday4 etc
Dock A                8 30       12 30      14 30       16 30      9 30         12 30       14 30          16 30
Suppose for a unloading date let it be 18 / March / 2009 , it is a Tuesday
I want to populate work area in my program with Unloading point and Time for Tuesday  taking values from KNWEV
Work Area
Unloading point   Tuesday1 Tuesday2 Tuesday3 Tuesday4 .
Dock A               9 30         12 30       14 30          16 30
Please let me know how can i move fields from structure to my work area taking the field names as Monday1 Monday2 .. and so on
Edited by: Avi on Mar 18, 2009 12:11 AM

Hi,
Use the code below...
data weekday type DTRESR-WEEKDAY
data string type string.
call function date_to_day
exporting
date = sy-datum
importing
weekday = weekday.
if weekday CS 'WED'.
   string = 'WEDNESDAY'.
elseif weekday CS 'SAT'.
   string = 'SATURDAY'.
endif.                                       " For all other days it takes it automatically....
read table itab into wa_knwev with key unloading_point = weekday.
" I don't know whether which variable contains the weekday in the internal table so i have used the variabel unloading point...
" The above read statement will get the record in the work area for the date you mention in the FM...
I hope this is what you required ...
if this is not meeting the requirement please do specify a bit more on your requirement
Regards,
Siddarth

Similar Messages

  • Link Safety measure with agent for a Work Area

    Hi,
    Is there any way to match a specific safet measure to a specific Agent for a given Work Area?
    For example, for a Work Area, I may have "dust" as an agent and i may need to link it with a specific safety measure oriented to people called "EPI Employee's training".
    Thanks in advance,
    Daniel Siñani

    Hi Daniel,
    For you to be able to define safety measure for any hazard inducing agent, logically you must have done the study of the risks posed by that agent. This study is called as risk assessment in SAP EH&S. So, you will have to create risk assessment for "dust". Here you may assign safety measure "EPI Employee's training" under category "Organizational" and type "Education and training". Moreover, you can define many more fields for tracking of the safety measure to its successful completion.
    Also, you can create SAP standard reports for Agents vs. Safety measures from following path:
    IHS>Reporting>Risk Assessment-->List Agents & Safety measures for a work area, and List Agents & Safety measures for a person.
    Regards,
    Pavan

  • Standard Work Area - Customize Query Functioncode for MDT

    Hi SAP Experts,
    I have a Query in the Standard Work Area and I want to configure it as report in Managers desktop and it should also be shown in the Enterprise Portal. I read the MSS Business Package for this where the steps for configuration are described. For a query I have to build an URL like this:
    "<Work Area><User Group><Query Name>
    A query is identified using these three parameters. If you want to use the query PHONE_LIST from the user group /SAPQUERY/H2, which belongs to the global work area (X), you should enter X*/SAPQUERY/H2/PHONE_LIST in this field."
    I think there should also be a character for the standard work area something like the "X" for the global work area. But I could not find out what it is. So please can you help me?
    Best Regards,
    Nadin

    Hi Deepak .
    It is possible .
    change the structure of the internal table .Add one more column to internal table of the type (structure of ZCAT_CODE ). Lets say the new added column is "col1" . For all the entries of the internal table you can assign the col1  = ZCAT_CODE .
    you can access the details  like this :
    wa_code-col1-text  .

  • Adobe forms: Displaying work area data in different windows

    Hi,
    I have a requirement of showing work area data in different windows i.e work area which has sent from program needs to come in different windows of the form. I have created a smartform which will perfectly doing the above logic. The above work area also contains amount fields. I am also passing language 'English' or 'French', based on this i am displaying some texts also.
    But Client wants to see the same requirement in Adobe forms. Ao i am new to Adobe forms, I need some help for performing the above scenario. I am doing my research on this. But i want to know the steps which will not reduce the performance.
    In smartform, first window contains personnel no from work area and the second window contains address from work area. Then i have created a template with employee premium amount column, company premium amount column and total of that, all these from work area. So work area will contain only one row which i have to show in different window and on template.
    In Adobe forms, How can i do the same this which i have done in smart forms.
    Please suggest me any one in doing this. I appreciate your answers.
    Thanks,
    s.vikgnesh

    Hi,
    Yes as Santoosh said there is no such wiondow option in Adobe forms.
    But if you use webdynpro java/Abap we can acheive this.
    think something like this below, if it works.
    have 2 views 1st for the adobe form, 2nd view in a new window for the work area screen.
    in the adobe view have a button for the work area and respective event handler.
    in the event handler call this window, and then reload the same adobe form.
    if from the work area form if you need value to be passed to this adobe form. have a event handler for this.
    when purpose is done, close that window and set value to the required context field on the form. and reload that adobe form.
    this is a fuzzy process and time consuming, unless business has no other option we dont go this approach.
    but for sure this works, we did the same for a EHS process.
    Cheers,
    Sai

  • Higher level work area

    Hi all,
    I am trying to develop a report on EHS
    in which user give input plant then it shows work area and when user double click on work area it shows higher level work area but in this i am unabel to find higher level work area table where higher level area data is stored so can ant body tell me the table name or field name for higher level work area  .
    Thanks
    Ankit Modi

    Hi again,
    the table TWGLV is also used to store data when defining a product catalog. The field "HigherLev. area" is only used, when you are creating a layout for a product catalog (transaction WWM1). Within this layout, you can build up a hierarchy an therefor, the field you asked for is used.
    The field is not integrated in the layout maintenance when talking about store layouts (with transactions like layout workbench, etc.)
    Regards
    TK

  • User-exit for populating ztable

    Customized new table:
    Info for the customized table:
    Table Name:     ZIN_BONDINV
    Field Name          Data Element          Type          Length     Short Text
    MANDT          MANDT          CLNT          03          Client
    VBELN          VBELN_VF          CHAR          10          Billing Document
    EXNUM          J_1IEXCNUM     CHAR          10          BOE or Excise Invoice #
    EXYEAR          J_1IEXYEAR          NUMC     04          Excise Year
    ZEILE               J_1IZEILE1          NUMC     04          Item no - GR at depot
    ZVBELN          VBELN_VL          CHAR          10          Delivery Number
    Z POSNR          POSNR_VL          CHAR          06          Delivery item
    ZWERKS          WERKS_D          CHAR          04          Plant
    This table to be used for storing the invoice created using delivery document along with other information extracted during billing document creation.
    Logic for populating the table:
    User Exit: RV60AFZC
    Form: USEREXIT_FILL_VBRK_VBRP
    This user exit should be used to update records in the customized table for the data with which billing document is created.  The data should be populated as follows:
         VBELN     =     VBRK-VBELN
         EXNUM     =     J_1IRG23D-EXNUM*
         EXYEAR     =     J_1IRG23D-EXYEAR*
         ZEILE          =     J_1IRG23D-ZEILE*
         ZVBELN     =     VBRP-VGBEL
         ZPOSNR     =     VBRP-VGPOS
         ZWERKS     =     VBRP-WERKS
    *The above data is read during splitting the billing document based on BOE (copy control routine 602) and should be used from there.

    Hi,
    I have already created the table named ZIN_BONDINV , there i have to insert the values and that has to be done according to the logic written in user-exit named:RV60AFZC(INCLUDE).

  • Some sounds don't work in Logic for me

    Hi.  I'm running Logic 9 on a 2010 13 inch MacBook Pro 2.4 ghz 4 GB OSX 10.6.7.  Logic works perfect for me except that every now and then a few select sounds do not work.  In fact, they do not load and cause my Logic to freeze and crash.  It is very frustrating because the sounds that do not work are dispersed randomly and I forget which one not to click and then my entire project is lost.  I can give you some of the sounds that I know off the top of my head that cause logic to crash: Orchestra>Choir>Chamber Ensemble, Gregorian Ensemble.  I noticed this folder around half don't work and then other folders 1 or 2 sounds don't work.  I would say that it's only about 1% of the entire library.
    I'm pretty sure it is not a memory problem because the files selected are no bigger than other files I select.  I thought that the files might have been corrupted somehow, so I actually reinstalled Logic 3 times, but I get the same problem.  I downloaded all the updates. I also checked my hard drive and there are no problems with it.  My only guess is that somehow the discs I bought did not get manufactured 100% correctly and some files did not get burned on properly.  I don't see how only a few select files wouldn't work, but I had bought some blu-rays before where it would freeze at a certain section and I exchanged it for a working copy.  Anyone have any leads or suggestions? 
    Thanks in advance,
    Richard

    Update 2:  I just went to the Genius Bar and they gave me a new copy of Logic.  I erased and installed my laptop once more just in case and installed Logic Pro.  I got the same problem.  Deductively, I beleive it's my laptop that is the source of the problem.  My laptop is working perfectly fine otherwise though.  Any ideas?

  • Work area field value not getting populated in table control grid.

    Hi all,
    I am currently facing an issue where I have declared a variable and have fetched the workarea field name in it. To be exact, the variable contains the workarea name whose value I am finally populating to the table control. Now although the workarea name when manually copied and pasted in field name in debugging mode exhibits the value of the it, Im unable to fetch the same value in the variable as I have only the work area name in it. I need the value of the workarea-field to be in the variable.Please provide your valuable suggestions for this issue...
    Regards,
    Edited by: Vishwanath Sreedharen on Jan 2, 2012 3:25 PM

    Hi Nabheet,
    Please consider the below example...
    DATA: l_var(30) TYPE C.
    CONCATENATE 'wa' '-' I_FIELD2-NAME INTO l_var.
    The i_field2-name contains the name of a custom table field CP_CUSTOM_GRP. So now the l_var contains wa_cp_custom_grp.
    Now consider the wa_cp_custom_grp has a value 'BA'.
    Now my issue is the l_var contains wa_cp_custom_grp but not its value(too obvious)... Would like to know whether is there a way through which the value of this wa_cp_custom_grp  'BA' could be populated to the variable l_var...

  • SUGGESTION ON BEST External HD to work with Mac Air and Logic - for sample streaming.

    SUGGESTION ON BEST External HD to work with Mac Air and Logic - for sample streaming.

    huge storage, low cost, high quality, very small and portable.
    BEST FOR THE COST, Toshiba "tiny giant" 15mm thick  2TB drive (have several of them, lots of storage in tiny package)    $100
    http://www.amazon.com/Toshiba-Canvio-Connect-Portable-HDTC720XK3C1/dp/B00CGUMS48    /ref=sr_1_3?ie=UTF8&qid=1390020791&sr=8-3&keywords=toshiba+2tb
    best options for the price, and high quality HD:
    Quality 1TB drives are $50 per TB on 3.5" or  $65 per TB on 2.5"
    Perfect 1TB for $68
    http://www.amazon.com/Toshiba-Canvio-Portable-Hard-Drive/dp/B005J7YA3W/ref=sr_1_ 1?ie=UTF8&qid=1379452568&sr=8-1&keywords=1tb+toshiba
    Nice 500gig for $50. ultraslim perfect for use with a notebook
    http://www.amazon.com/Toshiba-Canvio-Portable-External-Drive/dp/B009F1CXI2/ref=s    r_1_1?s=electronics&ie=UTF8&qid=1377642728&sr=1-1&keywords=toshiba+slim+500gb
    *This one is the BEST portable  external HD available that money can buy:
    HGST Touro Mobile 1TB USB 3.0 External Hard Drive $88
    http://www.amazon.com/HGST-Mobile-Portable-External-0S03559/dp/B009GE6JI8/ref=sr    _1_1?ie=UTF8&qid=1383238934&sr=8-1&keywords=HGST+Touro+Mobile+Pro+1TB+USB+3.0+7 2 00+RPM
    Most storage experts agree on the Hitachi 2.5"
    Hitachi is the winner in hard drive reliability survey:
    Hitachi manufacturers the safest and most reliable hard drives, according to the Storelab study. Of the hundreds of Hitachi hard drives received, not a single one had failed due to manufacturing or design errors. Adding the highest average lifespans and the best relationship between failures and market share, Hitachi can be regarded as the winner.

  • My serial number for Logic Studio doesn't work. I used one from a different box and it worked. How can I get a new number?

    My serial number for Logic Studio doesn't work. I used one from a different box and it worked. How can I get a new number?

    http://support.apple.com/kb/TS2005
    http://support.apple.com/kb/HT1861
    https://ssl.apple.com/support/proapps/serialnumbers/

  • How to find workarea ID for the work area name.

    Hi Experts..
    How to find workarea ID for the work area name.(Work area name CCIHT_WAH-WAID and I want to fetch characteristic data from table AUSP matching the OBJEK field,but I only have Work area name).Can anybody help me to find tables or relationship between Workarea ID and Workarea name for the same.I am using TCODE - CHIB02.Once I select a workarea and click on IHS Data button,I get data for that workarea.I need to find where this data comes from and How is this fetched.
    Points would be rewarded for helpful answers..
    Thanks
    Kunal Halarnakar

    U want to fetch the workarea description ?
    we can fetch it from CCIHT_WALD table with the RECN value.
    The informations are stored in AUSP table with the characterstic(ATINN) value.

  • Is there a way to force for rendering ALL clips in work area?

    Is there a way to force for rendering ALL clips in work area? All clips: not only the ones with the red horizontal line indicating that they need rendering! I ask for this because the rendered clips preview very smoothly, but the unrendered ones do not! My source footage (and project) involves Full HD (1920*1080i 25fps).

    If a Clip does not need Rendering, it will not be Rendered.
    Basically, what Rendering does is to convert the Clips, that do require Rendering, to DV-AVI (SD Projects on a PC). This will yield AVI files in the Media Cache, Render Files, and for playback, PrE will rely on those. If you look in the Render File folder, you will see a bunch of abstractly named files, but those files are now Linked in the PREL (Project file), and will be used by the program for playback.
    If one were to remove those Render files, and then Open that Project in PrE, they'd receive a message, "Where is file 04u434ip0ow.AVI?" [Note: that is just an example of the abstract Render file name, and is not the actual name, that one would see.]. One could Ignore those now missing Render files, and where they were used, there would then be red lines over those Clips.
    As Steve mentions, the Render files are used only for smoothest playback. As I use DV-AVI files for SD Projects on my PC, I will not need to Render for smoothest playback, until I make changes to the Clips, like overlay Titles, PiP, Effects, etc.. I might never Render the Timeline, even with those additions, but sometimes, I will Render a small segment many times, especially with animated Effects, as I adjust the parameters.
    If one is not getting the smoothest playback, then Rendering all files requiring Rendering will usually improve playback greatly.
    Good luck, and hope that this makes sense.
    Hunt

  • My wi-fi on my iPhone 4S is not working after updating to ios7 and is a few weeks out of warranty, the Apple store wants me to pay £160 for a new one, are they joking?!

    My wi-fi on my iPhone 4S is not working after updating to ios7 which was working perfectly fine before. It is a few weeks out of warranty now and the Apple store wants me to pay £160 for a new one, are they joking?!

    Hi there Juicy Guava,
    You may find the troubleshooting steps in the article below helpful.
    iPhone, iPad, iPod touch: Troubleshooting touchscreen response
    http://support.apple.com/kb/ts1827
    -Griff W. 

  • Working with Outlook 2011 for Mac, my mails are slow and I can work only on-line, when off-line, mail cannot be opened because it is only partially downloaded. How to solve??

    working with Outlook 2011 for Mac, my mails are slow and I can work only on-line, when off-line, mail cannot be opened because it is only partially downloaded. How to solve??

    Try http://www.microsoft.com/mac/support.

  • Adobe encore the software that's used to decode the media is not available on this system. installing the correct decoders for the file you are working with may help correct the problem

    Hi,
      I got this message after importing about ten or so H.264 files that I encoded from Adobe media encoder.  "adobe encore the software that's used to decode the media is not available on this system. installing the correct decoders for the file you are working with may help correct the problem."
    The files we're shot with HD cameras.  Edited in Premiere Pro CS3.  I installed the update 3.0.1 with still the same error.
    I also tried a brand new project and after about ten or so files being imported into a timeline, the system crash.  I tried this twice....
        Thanks in Advance

    Hi Hunt,
           Here is the skinny.  A window base PC.  footage shot with HD sony HD cameras,  Project imported to Premiere CS3.  Once completed sent file to Adobe media encoder and render them as H.264 widescreen high Quality.  Imported them to Adobe Encore CS3.  After about ten files or so.  I got the error message.  Did all the basic trouble shoot like restarting the computer, got latest patch.  Even build a new test project with the same problem.
        Something else I read in the forums, is the encore will transcoded the project to Mpeg 2 anyway, after looking at my project I realized those few files were indeed untranscoded.  So it will be a double compression and I dont want that.  So, my new question is, what is H.264 good for ?????????? I was research that Mpeg 2 is a faster render but H.264 is a slower render but better quality.....
       what do you think ????
       Peter

Maybe you are looking for

  • How to handle a failed transaction in Syclo Agentry SAP Work Manager 5.3

    Hello Experts, I have a transaction created on work order time entry. For some reason, when the transactions fails (when clicked on transmit button), the transmit stops as soon as the error is thrown from ECC. However, this transaction remains on the

  • I Cant Open iTunes At All

    I have XP and had to crate a new user for myself do to it freezing I deleted the other one already and now I keep getting a message that says the folder is locked or you do not have write permission for this folder I can not open iTunes folder in My

  • Maintenance Tools Assignment/Tracking/Issue to Employees.

    Dear All, We have Implemented Plant Maintenance Module for Manufacturing Plant. Maintenance department issue certain maintenance power tools/tool box to maintenance technicians to perform their daily/routine maintenance activities. We want to maintai

  • ODI-1444: The master repository signature mismatch

    ODI-1444: The master repository signature specified by the client 1346135525731|0 does not match the master repository signature of the agent 1346147892124|0. How to overcome this error?

  • Error, New Ipod Touch + Itunes

    I got a new Ipod Touch. And I still havent been able to get it working. It is still on the screen with the USB cable arrow Itunes. I run Windows 7. I have installed Itunes and Quicktime. My computer recognized the Ipod, and it is now listed in Device