Complex values and CFIF

We have a system whereby delegates can elect to attend a
number of workshops. The system uses a Cart system, storing the
selected workshops in a 2d array until the delegate has finished
selecting, at which point the array content is written to a table.
We want to be able to error check if a delegate selects a
workshop twice.
The code attached seemed to make sense, until we tried it and
found that CF didn't like us using the session.aCart[1] variable as
since v2 you can't seemingly use a complex value in this way.
Does anyone have a workaround on this, or any other
suggestions on how to catch a duplicate entry?
Kind regards

There might be an easier way altogether. Instead of
populating an array, populate a query. Once the delegate submits
his choices, do a Query of Queries where the first two words are
select distinct. Then loop through the resulting query to insert
your records.

Similar Messages

  • How do I give a letter a value and use that letter as a code througout a spredsheet?

    Hi I am trying to write a spread sheet to calculate the cost of repairing stock items. I cant figure out how to make the code = the cost, so that if somone types Hx3+Tx2+rx1 it would  = £8
    Which would mean: 3 x Hooks need replacing 2 x Tabs need replacing and 1 5cm rip needs repairing.
    SO I have made one table with the codes and the values and one table for the items and their various panels that may need repairing but I cant figure out how to make it work...?
    Can any of you help...?

    HI Mich,
    Here's an idea of the complexity of the issue, using the example in line 41:
    Issue 1: determining what is code, what is quantity, and how many items are in each cell.
    In the first cell, the formula has to determine, from the text string "Rx1 rx3" that:
    There are two items. Possible to do this by counting the spaces and adding 1, or, assuming ALL parts in the cell will contain a x sign, by counting the "x" characters..
    The first letter is code. But the code could also be the first two letters, or the first two letters plus a number (eg. WP5) or the first two letters plus the next two characters (eg. WP11). Other code lengths may also be possible. The length of the (first) could be determined using SEARCH to find the first x. Subtract 1 from that to determine the number of characters in the code, then use LEFT to extract the code from the formula.
    =LEFT(B2,SEARCH("x",B2,)-1)
    Now that the code has been extracted, that formula becomes the first argument of the VLOOKUP formula from the previous post, used to find the price of that item:
    VLOOKUP(LEFT(B2,SEARCH("x",B2,)-1),Price List :: B:C,2,FALSE)
    Next, the price must be multiplied by the number following the x. That number must be extracted. Assumption: The number is a single digit, between 1 and 9, inclusive. We can use MID:
    MID(B2,SEARCH("x",B2,)+1,1)
    =VLOOKUP(LEFT(B2,SEARCH("x",B2,)-1),Price List :: B:C,2,FALSE)*MID(B2,SEARCH("x",B2,)+1,1)
    The result above gives the cost for repairing the large rip in B2
    Next, if there is more than one type of repair to be done, the process above must be repeated with a new twist: This time we're looking for the second repair item in B2. The marker is a space, so we'll need to add a SEARCH for the first space, and use that as the starting point for both SEARCH functions in this section.
    Then the whole process (with another SEARCH added to each set) must be repeated for the third (possible) code and number in the cell.
    Repeat 7 for as many items as could be included in this cell.
    We don't know how many items will be recorded in each cell, so we have to allow for a maximum and provide some means of making the formula quit when there's nothing more to be done. This could be an IF, depending on the count of "x" or " " in the cell, or an IFERROR that would trap the error caused by searching beyond the last space. Whatever we used would need to be added to each iteration of the last formula shown above.
    As you can see, this quickly becomes a bit unwieldy, and a reason for my earlier suggestion to set up pairs of columns for each repair item.
    Regards,
    Barry

  • [GRC] IS-Risks in Complex Value Networks

    Hi everybody,
    I would like to discuss my current research project with you:
    Especially in complex value networks, it is important to have mutual risk understanding and mechanisms to control risks among all value adding partners. How can global sourcing projects along automotive supply chains manage and distribute risks among each member? How are risks and their spreading treated within trade cooperation, e. g. how do retailers deal with erroneous labeled EANs or misleading information on goods, provided by wholesaler or manufacturer? Compliance, risk and governance are important factors in the health sector. Time-critical processes in unstructured, complex hospital information systems need to be managed with careful regards to legal regulations and security related limitations.
    These are questions, I want to focus on and answer is my research. Do you have any experiences with these issues? What are interesting features in SAP GRC components, supporting these points indirectly or directly? What other features could you imagine to be implemented in future? What are, from your perspective, interesting GRC-topics?
    Kind regards     
    Manuel

    Quote from: DaLoona on 26-June-08, 18:30:31
    …Your talking nanoseconds here 
    To give you an idea, we are talking a few seconds gain per hour.  Not worth it if you are on the border of stability.  Unless you are shooting for some kind of benchmark award.
    Quote from: youeffsee on 26-June-08, 03:29:52
    ...overclocking is extremely addictive...
    Oh YEA!!!  I still remember my pride when my neighbor said my Pentium 75Mhz was faster than his 125Mhz Pentium.  I had it over-clocked to 92Mhz and had cleaned Windows 95 of all the overhead.

  • Powershell to create pop box which then creates a folder (with entered value) and sub folder with specific security

    Hi All,
    Complete novice to powershell would love some help to assist a new windows storage workflow I am implementing.
    I have a windows server 2012 file server (\\FS01) and projects share \\fs01\projects. 
    We use job numbers to create a project and name the folders with the job num (eg Job Num XX12345 , \\fs01\projects\XX12345)
    Then after each project folder is created we will create 4 subfolders underneath and specify the following rights to the following AD groups.
    Folder Name - AD Group- Permission
    Scoping - Project_Management -RW
    Delivery - Project_Management -R
    Finance - Finance- RW
    Assets - Creative - R
    I would like to create a script that lives in the route of \\FS01\Projects and when clicked a pop up box appears, the end users enters the job code  and then the script sets up the folder with the entered value and creates sub folders with the referenced
    AD groups and security.
    Any help would be awesome!
    Sammy

    Start by learning how to write PowerShell scripts.  What you are asking is a whole complex list of requirements.  This is a forum and not free consulting or training.
    Workflows are complex beasts that require a good knowledge of PowerShell.  Now is the time to start your training.  I recommend starting with a good book and taking your time learning PowerShell step-by-step.
    ¯\_(ツ)_/¯

  • Value and quantity is not displaying in Tcode MC.9 for some materials

    Dear Sir,
          For the material XYZ Material Type is FERT but when I check the stock in MC.9 with material type FERT, it is not displaying any value and quantity but when I donu2019t put any Material Type it is showing me the value with quantity. Even I tried to change the material type to FERT there also it gave me message as "No data exists for chosen selection". Why this massage is showing like this ?
    Please suggest.
    Regards,
    Sandip Sahu

    Hi,
    Some times there are some issues with S032 info structure. Check report RMCBMBEW and see if you can locate your material,
    Thanks

  • Stock report with value and qauntity for given date not month wise

    Hi gems,
    can any body give me the standard report for Stock value and qauntity for given date not month wise at storage location level

    Hi
    check the report S_P00_07000139 with the option inventory and raw material report- detail and selection date (from, to date same). List will give opening & closing balances with goods movment and their values.
    Thanks

  • Report for total IR value total GR value and Total P.O value

    Is there is any report to get IR value GR value and P.O value as well............?
    i don't need balance i want completed P.O and GR IR value with quantity.......
    Please help me to get this kind of report in SAP
    Thanks
    Neha

    Hi,
    You can find change view option in ME80FN by executing the report and its available near by print and change layout button.
    Click on the change view > select purchase order history.
    You will get the required report then.
    Also you can make the Z enhancement with the help of abapor.
    Thanks & Regards,
    Sandesh Sawant

  • Calculating Acqusition value and Accumulated depriciation

    Hi,
    I want to create a new report which shows the acqusition value . accumulated depriciation and monthly derpricaition for an asset.
    I have used funciton module 'DEPR_RECALCULATE' to find acuistion value and accumulated derp , but the acq value displayed is always equal to the acquistion value at the fiscal year start , irrerspective of the period entered .
    ALso in my report if i enter period as 7 , then acq value for the asset in period 7 should be displayed . and accumulated depr upto period 6 should be displayed .ie acq for asset during the  period entered and accum depr till period-1 should be displayed
    Could some one help me with a proper way to calculate asset acq and accumulatd depr .
    I tried looking into the std report RABEST01 , but it uses logical database ADA .And I would notbe able to use logical db , as the accum depr and acq value need to calculated for diff periods .
    Thanks,
    Lalitha Iyer

    Hi,
    Try report RAHAFA_ALV01.
    After executing the above report, go to change layout option and choose below fields.
    1) ***.acq.value
    Acq value start of FY
    2) Accum.dep.
    Accum dep start of FY
    3) Start book.val
    NBV start of FY (1-2) minus
    4) Trans.acq.val
    Acq transactions from FY start to Report date (in selection screen)
    5) Trns.AccDep
    Accum dep from FY start to Report date (in selection screen), this field will have values only some transfer transactions posted to that particular asset
    6) PlndDep
    Planned dep from FY start to report date
    7) End book val
    End book value on report date (3+4-5-6)
    You dont need to create a new report for this requirement.
    Transaction codes for this report are the below
    AR03         
    S_ALR_87012004
    S_ALR_87012005
    S_ALR_87012026
    S_ALR_87012027
    S_ALR_87012035
    S_ALR_87012036
    S_ALR_87012064
    S_ALR_87012065
    S_P6B_12000064
    Thanks,
    Srinu

  • PO reporting that can capture PO number, PO value and cost center

    Dear SAP expert and gurus,
    Would like to seek for your professional advise and consult on which report in MM that can capture the PO number, PO value and cost center.
    Kindly advise.
    Thank you
    Regards
    Leonard Tan

    ME80FN is a good report that captured the PO number and amount. However, the cost center is not being captured here. is there any suggestion?
    ME2K is not an ideal report to user cause, user requires the data to be shown in one line instead of 2 to 3 line.
    Is there any report like ME80FN can be captured PO number, PO value and Cost Center.
    Thank you
    Regards
    Leonard Tan

  • Display value and description of one field in alv grid

    Hi Folks,
       I want to display value and description of one field as one column in alv grid.
    for example iam having Xfield = 01,02,03.
    and 01 iam having text value as xxx,
    01 xxx
    02 yyy
    03 zzz
    Im report display the values are displaying as 01,02,03..
    but i want to display it as 01 xxx,02 yyy, 03 zzz.
    Please do needful.
    Thx.

    Hi, swetha
    You can do this with "concatenate".
    example:
    In you code check where you final internal table is getting filled up before that do this concatenate and then append it.
    data t_text type string.
    t_text = textfield
    CONCATENATE 'Xfield'
                     t_text
                      INTO wa_workarea SEPARATED BY space.
    cheers,
    Bhavana

  • Stock value and qty on particular date.

    Hi All.
    Could you  you guide me in which transcation I will get the report of existing stock value and qty for a particular valution class  on particular date like 15 Apr 2009.There is a transaction MB5B similar to my requirement  but there is no Valuation class as selection.
    Thanks in Advance
    Regards
    katta

    Hi,
    You can get valuation class data thru MC.9 or MC.1  but problem is it is for month only
    If you want to go for particular material analysis than use MB51 from go live to till date or MB5b with storage location selection
    Regards,
    Chetan Mistry

  • ALV: How do I suppress repeating values and page breaks on printed output?

    Good day, everyone!
    First, I've done a LOT of searching trying to find the answer to my question, but I'm not finding an answer.  If this has already been answered and you can point me to a URL, I would appreciate it.
    Here's my issue:  I have a rather simple ALV report.  It has the columns of Person ID, Personnel Number, For Period, In Period, and Amount.  I sort by Person ID and Personnel Number, and if the value repeats on the next line of the report, I want to suppress it (make it blank).
    I thought the answer was in the following code, where I set the GROUP attribute to asterisk:
      CLEAR sortcat_ln.
      sortcat_ln-spos      = '1'.
      sortcat_ln-fieldname = 'PERSONID_EXT'.
      sortcat_ln-up        = c_true.
      sortcat_ln-group     = '*'.
      APPEND sortcat_ln TO sortcat.
      CLEAR sortcat_ln.
      sortcat_ln-spos      = '2'.
      sortcat_ln-fieldname = 'PERNR'.
      sortcat_ln-up        = c_true.
      sortcat_ln-group     = '*'.
      APPEND sortcat_ln TO sortcat.
    It looks PERFECT on the screen -- the values are suppressed if they repeat, and everything appears together on one screen.  However, when I print the report, two things happen:  1) The values repeat on each row, even if they are the same, and 2) I get a page break after each Person ID / Personnel Number combination.
    I now realize that I can't use the GROUP attribute.  Is there some other way in ALV to blank these repeating values and keep all the rows together on one page, rather than page breaking after each value change?
    Thanks!
    Dave

    Hi
    Same requirement i had before, when i try to print preview. the output of the grid display is in grouping is ok, but when i print preview or print it doesnt cater the grouping and page breaks, so what i did i modify the internal table use in alv , after hitting the print preview/print with the format desired by the user. you can do that in user-command. see code below
    FORM user_command USING r_ucomm TYPE syucomm
                            rs_selfield TYPE slis_selfield.
      DATA lt_sort TYPE lvc_t_sort.
      CASE r_ucomm.
        WHEN '&RNT_PREV' OR '&RNT'.
          t_final_x[] = t_final[].
          PERFORM clear_redundant.
          PERFORM set_sort_criteria USING lt_sort.
        WHEN '&F03' OR '&PRINT_BACK_PREVIEW'.
          t_final[] = t_final_x[].
        WHEN OTHERS.
      ENDCASE.
    ENDFORM.                    "user_command
    hope it helps

  • Consingment stock report with values and periods..

    hello guys,
    i have an issue here.. consignmet stock are "managed" within SD. Is there a standard report which cointains info about consigment stock, its amounts (values) and periods ?
    Main point here - consingment stock is processed within SD, so for example t.code MB54 is not useful here .
    Thanks guys !
    Best regards,
    Laimonas

    Hi......MB54 wont help since that shows the Vendor consignment stocks.
    Use MB52 creatively like this.
    Goto MB52
    Put your plant name.
    In the section 'Selection : Special stock', Mark the check box and put 'W' in Special Stock indicator.
    Choose the other settings as per your choice.
    Execute.
    Now you will see a whole lot of stocks along wioth the Consignment stocks. If you only want to see the consignment stocks, do like this
    In the list, put you cursor on the column 'S' which is special stock (i think the 4th colm in the list). Now choose the filter icon and put the filter criteria a 'W' i.e. customer consignment stock.
    You can save this is a variant with a name, say /ZCONS.
    Now come back to the initial MB52 screen. In the bottom section for display options, put this variant name in the field Layout.
    So now when you next run the report with this variant, you will only get the customer consignment stocks with their values.
    Hope this helps.

  • Stock value and Quantity on a particular date

    Hi all,
    How to get the Stock value and Quantity on a particular date for the materials
    is there any standard report available or from which tables the corresponding  data can be fetched...
    With Regards,
    Vamsi.

    Hi
    MB5B - Stock on Posting Date
    MMBE  - Overview of the current stocks of a material at all places within plant  
    MB52  - Plant Stock availability
    Regards
    Anandh

  • No repeated values and in ascendant sort

    Hi all,
    I'm trying to put this:
    SELECT DISTINCT month FROM Concert ORDER BY month ASC;
    (no repeated values and in ascendant sort) into EJB-QL. This is what I've worked out:
    SELECT DISTINCT OBJECT(o)
    FROM Concert AS o
    ORDER BY o.month ASC
    (month is a field in the bean )
    But this (and several tries later) doesn't work.
    What's wrong with it??
    The query is for a findAll method -without- input parameters which returns a collection, is here the error??? If so, how can I solve it?
    I'm totally lost and frustrated, I'd really appreciate some light
    Thanks a lot in advance

    Your query is currect if table name and attribute name are currect.
    Can you write what type of error is comming?

Maybe you are looking for

  • Acrobat 9.4.4 Pro Extended are there optimum settings for OCR?

    PDF's from DWG files, with some graphics on the page, saved as TIFF files... ...and my version of Acrobat Pro 9 (on Win 7, 64 bit) WILL NOT recognize text. Or at best, only the largest characters on the page are captured. I've tried re-sizing the TIF

  • CTBW in R/3 for DataSource Enhancement

    Hi, I have a requirement. I need to add Batch class Characteristics details (in TC- CL02) in the datasource in CTBW. Could you please help me out for the Step by Step solution. Thanks & Regards, Pankaj

  • 3850 WLC - 5760 Anchor: Multiple Guest SSIDs issue

    Hi, I have configured a 3850 Foreign WLC and a 5760 as anchor WLC in a DMZ behind an ASA FW. The Anchor Controller is configured to advertise 3 GUEST Wireless: (INSIDE) ---- ASA FW (guest in interface) -------------------------- (Te1/0/1) 5760 ANCHOR

  • Could not assign Correlation in Integration Process

    Hi, in an Integration Process I have defined a Correlation and a Send Step. In the Send Step I see question marks for the fields use correlations and activate correlations. If I want to assign my correlation to this fields I can see it in the drop do

  • Nodemanager - InvocationHandler Java class not found

    on Unix env. I have Admin sever and nodemanager running. when I try to start a managed server, I get the following: The WebLogic Server did not start up properly. Exception raised: java.lang.NoClassDefFoundError: java/lang/reflect/InvocationHandler a